Lines Matching refs:pos

76 	unsigned long pos;  in gpio_read_bit()  local
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()
90 unsigned long pos; in gpio_write_bit() local
92 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
96 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit()
99 __set_bit(pos, &dr->reg_shadow); in gpio_write_bit()
101 __clear_bit(pos, &dr->reg_shadow); in gpio_write_bit()
138 unsigned long mask, pos; in read_config_reg() local
140 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in read_config_reg()
146 return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; in read_config_reg()
154 unsigned long mask, pos, data; in write_config_reg() local
156 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in write_config_reg()
162 mask = ~(mask << pos); in write_config_reg()
163 value = value << pos; in write_config_reg()
255 int k, m, n, pos, bit_pos; in get_config_reg() local
267 pos = 0; in get_config_reg()
277 if (config_reg->enum_ids[pos + n] == enum_id) { in get_config_reg()
285 pos += ncomb; in get_config_reg()
295 int pos, pinmux_enum_t *enum_idp) in get_gpio_enum_id() argument
308 if (pos) { in get_gpio_enum_id()
309 *enum_idp = data[pos + 1]; in get_gpio_enum_id()
310 return pos + 1; in get_gpio_enum_id()
332 int in_range, pos, field, value; in pinmux_config_gpio() local
361 pos = 0; in pinmux_config_gpio()
366 pos = get_gpio_enum_id(gpioc, gpio, pos, &enum_id); in pinmux_config_gpio()
367 if (pos <= 0) in pinmux_config_gpio()