Lines Matching refs:BANK_SZ
170 #define BANK_SZ 8 macro
171 #define MAX_LINE (MAX_BANK * BANK_SZ)
173 #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ)
225 return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_bank_shift()
443 u8 regaddr = pinctrl | addr | (off / BANK_SZ); in pca953x_recalc_addr()
481 return pinctrl + addr + (off / BANK_SZ); in pcal6534_recalc_addr()
491 value[i] = bitmap_get_value8(val, i * BANK_SZ); in pca953x_write_regs()
515 bitmap_set_value8(val, value[i], i * BANK_SZ); in pca953x_read_regs()
524 u8 bit = BIT(off % BANK_SZ); in pca953x_gpio_direction_input()
539 u8 bit = BIT(off % BANK_SZ); in pca953x_gpio_direction_output()
559 u8 bit = BIT(off % BANK_SZ); in pca953x_gpio_get_value()
576 u8 bit = BIT(off % BANK_SZ); in pca953x_gpio_set_value()
587 u8 bit = BIT(off % BANK_SZ); in pca953x_gpio_get_direction()
647 u8 bit = BIT(offset % BANK_SZ); in pca953x_gpio_set_pull_up_down()
1044 bitmap_set_value8(val, 0x02, i * BANK_SZ); in device_pca957x_init()