Lines Matching refs:AW9523_PINS_PER_PORT

29 #define AW9523_PINS_PER_PORT		8  macro
177 int ret, pin = aw9523_pins[grp].number % AW9523_PINS_PER_PORT; in aw9523_pmx_set_mux()
234 int regbit = pin % AW9523_PINS_PER_PORT; in aw9523_pconf_get()
261 if (pin >= AW9523_PINS_PER_PORT) in aw9523_pconf_get()
267 if (pin >= AW9523_PINS_PER_PORT) in aw9523_pconf_get()
288 int regbit = pin % AW9523_PINS_PER_PORT; in aw9523_pconf_set()
326 if (pin >= AW9523_PINS_PER_PORT) { in aw9523_pconf_set()
335 if (pin >= AW9523_PINS_PER_PORT) { in aw9523_pconf_set()
431 unsigned int n = hwirq % AW9523_PINS_PER_PORT; in aw9523_irq_mask()
449 unsigned int n = hwirq % AW9523_PINS_PER_PORT; in aw9523_irq_unmask()
464 port_pin = i * AW9523_PINS_PER_PORT; in aw9523_irq_thread_func()
525 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_get_direction()
538 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_get()
616 ret = _aw9523_gpio_get_multiple(awi, AW9523_PINS_PER_PORT, in aw9523_gpio_get_multiple()
644 reg = AW9523_REG_OUT_STATE(AW9523_PINS_PER_PORT); in aw9523_gpio_set_multiple()
662 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_gpio_set()
674 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_direction_input()
689 u8 regbit = offset % AW9523_PINS_PER_PORT; in aw9523_direction_output()
837 return (reg > AW9523_REG_PORT_MODE(AW9523_PINS_PER_PORT) && in aw9523_is_reg_hole()
839 (reg > AW9523_REG_INTR_DIS(AW9523_PINS_PER_PORT) && in aw9523_is_reg_hole()
853 reg == AW9523_REG_IN_STATE(AW9523_PINS_PER_PORT) || in aw9523_volatile_reg()
868 reg == AW9523_REG_IN_STATE(AW9523_PINS_PER_PORT); in aw9523_precious_reg()
889 u8 p1_pin = AW9523_PINS_PER_PORT; in aw9523_hw_init()