Lines Matching refs:pos

72 	unsigned long pos;  in gpio_read_bit()  local
74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit()
77 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit()
80 dr->reg_width) >> pos) & 1; in gpio_read_bit()
86 unsigned long pos; in gpio_write_bit() local
88 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
92 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit()
95 __set_bit(pos, &dr->reg_shadow); in gpio_write_bit()
97 __clear_bit(pos, &dr->reg_shadow); in gpio_write_bit()
134 unsigned long mask, pos; in read_config_reg() local
136 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in read_config_reg()
142 return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; in read_config_reg()
150 unsigned long mask, pos, data; in write_config_reg() local
152 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in write_config_reg()
158 mask = ~(mask << pos); in write_config_reg()
159 value = value << pos; in write_config_reg()
251 int k, m, n, pos, bit_pos; in get_config_reg() local
263 pos = 0; in get_config_reg()
273 if (config_reg->enum_ids[pos + n] == enum_id) { in get_config_reg()
281 pos += ncomb; in get_config_reg()
291 int pos, pinmux_enum_t *enum_idp) in get_gpio_enum_id() argument
304 if (pos) { in get_gpio_enum_id()
305 *enum_idp = data[pos + 1]; in get_gpio_enum_id()
306 return pos + 1; in get_gpio_enum_id()
328 int in_range, pos, field, value; in pinmux_config_gpio() local
357 pos = 0; in pinmux_config_gpio()
362 pos = get_gpio_enum_id(gpioc, gpio, pos, &enum_id); in pinmux_config_gpio()
363 if (pos <= 0) in pinmux_config_gpio()