Lines Matching refs:regbit

234 	int regbit = pin % AW9523_PINS_PER_PORT;  in aw9523_pconf_get()  local
253 val &= BIT(regbit); in aw9523_pconf_get()
257 val &= BIT(regbit); in aw9523_pconf_get()
288 int regbit = pin % AW9523_PINS_PER_PORT; in aw9523_pconf_set() local
308 BIT(regbit), 0); in aw9523_pconf_set()
321 mask = BIT(regbit); in aw9523_pconf_set()
322 val = arg ? BIT(regbit) : 0; in aw9523_pconf_set()
391 static int aw9523_get_port_state(struct regmap *regmap, u8 pin, u8 regbit, in aw9523_get_port_state() argument
397 dir = aw9523_get_pin_direction(regmap, pin, regbit); in aw9523_get_port_state()
525 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_get_direction() local
529 ret = aw9523_get_pin_direction(awi->regmap, offset, regbit); in aw9523_gpio_get_direction()
538 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_get() local
543 ret = aw9523_get_port_state(awi->regmap, offset, regbit, &val); in aw9523_gpio_get()
548 return !!(val & BIT(regbit)); in aw9523_gpio_get()
560 static int _aw9523_gpio_get_multiple(struct aw9523 *awi, u8 regbit, in _aw9523_gpio_get_multiple() argument
568 ret = regmap_read(awi->regmap, AW9523_REG_CONF_STATE(regbit), &dir_in); in _aw9523_gpio_get_multiple()
575 ret = regmap_read(awi->regmap, AW9523_REG_IN_STATE(regbit), in _aw9523_gpio_get_multiple()
584 ret = regmap_read(awi->regmap, AW9523_REG_OUT_STATE(regbit), in _aw9523_gpio_get_multiple()
662 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_set() local
666 BIT(regbit), value ? BIT(regbit) : 0); in aw9523_gpio_set()
674 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_direction_input() local
679 BIT(regbit), BIT(regbit)); in aw9523_direction_input()
689 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_direction_output() local
694 BIT(regbit), value ? BIT(regbit) : 0); in aw9523_direction_output()
699 BIT(regbit), 0); in aw9523_direction_output()