Home
last modified time | relevance | path

Searched refs:BANK_SZ (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/pinctrl/
Dpinctrl-cy8c95x0.c118 #define BANK_SZ 8 macro
119 #define MAX_LINE (MAX_BANK * BANK_SZ)
310 return CY8C95X0_PIN_TO_OFFSET(pin) / BANK_SZ; in cypress_get_port()
316 return BIT(CY8C95X0_PIN_TO_OFFSET(pin) % BANK_SZ); in cypress_get_pin_mask()
417 bitmap_replace(tmask, tmask, mask, chip->shiftmask, BANK_SZ * 3); in cy8c95x0_write_regs_mask()
421 bitmap_replace(tval, tval, val, chip->shiftmask, BANK_SZ * 3); in cy8c95x0_write_regs_mask()
426 bits = bitmap_get_value8(tmask, i * BANK_SZ); in cy8c95x0_write_regs_mask()
459 write_val = bitmap_get_value8(tval, i * BANK_SZ); in cy8c95x0_write_regs_mask()
488 bitmap_replace(tmask, tmask, mask, chip->shiftmask, BANK_SZ * 3); in cy8c95x0_read_regs_mask()
492 bitmap_replace(tval, tval, val, chip->shiftmask, BANK_SZ * 3); in cy8c95x0_read_regs_mask()
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-pca953x.c170 #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()
[all …]