Lines Matching refs:reg_width
37 unsigned long reg_width) in gpio_read_raw_reg() argument
39 switch (reg_width) { in gpio_read_raw_reg()
54 unsigned long reg_width, in gpio_write_raw_reg() argument
57 switch (reg_width) { in gpio_write_raw_reg()
78 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit()
81 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit()
84 dr->reg_width) >> pos) & 1; in gpio_read_bit()
92 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
96 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit()
103 gpio_write_raw_reg(dr->mapped_reg, dr->reg_width, dr->reg_shadow); in gpio_write_bit()
123 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in config_reg_helper()
126 *posp = crp->reg_width; in config_reg_helper()
144 crp->reg, field, crp->reg_width, crp->field_width); in read_config_reg()
146 return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; in read_config_reg()
160 crp->reg, value, field, crp->reg_width, crp->field_width); in write_config_reg()
165 data = gpio_read_raw_reg(mapped_reg, crp->reg_width); in write_config_reg()
173 gpio_write_raw_reg(mapped_reg, crp->reg_width, data); in write_config_reg()
189 if (!data_reg->reg_width) in setup_data_reg()
194 for (n = 0; n < data_reg->reg_width; n++) { in setup_data_reg()
223 if (!drp->reg_width) in setup_data_regs()
227 drp->reg_width); in setup_data_regs()
261 r_width = config_reg->reg_width; in get_config_reg()