Lines Matching refs:BANK_SZ
118 #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()
497 bits = bitmap_get_value8(tmask, i * BANK_SZ); in cy8c95x0_read_regs_mask()
535 read_val |= bitmap_get_value8(tval, i * BANK_SZ) & ~bits; in cy8c95x0_read_regs_mask()
536 bitmap_set_value8(tval, read_val, i * BANK_SZ); in cy8c95x0_read_regs_mask()
1321 chip->nport = DIV_ROUND_UP(CY8C95X0_PIN_TO_OFFSET(chip->tpin), BANK_SZ); in cy8c95x0_probe()