Lines Matching refs:MAX_LINE
121 #define MAX_LINE (MAX_BANK * BANK_SZ) macro
151 DECLARE_BITMAP(irq_mask, MAX_LINE);
152 DECLARE_BITMAP(irq_trig_raise, MAX_LINE);
153 DECLARE_BITMAP(irq_trig_fall, MAX_LINE);
154 DECLARE_BITMAP(irq_trig_low, MAX_LINE);
155 DECLARE_BITMAP(irq_trig_high, MAX_LINE);
156 DECLARE_BITMAP(push_pull, MAX_LINE);
157 DECLARE_BITMAP(shiftmask, MAX_LINE);
413 DECLARE_BITMAP(tmask, MAX_LINE); in cy8c95x0_write_regs_mask()
414 DECLARE_BITMAP(tval, MAX_LINE); in cy8c95x0_write_regs_mask()
421 bitmap_andnot(tmask, mask, chip->shiftmask, MAX_LINE); in cy8c95x0_write_regs_mask()
422 bitmap_shift_left(tmask, tmask, 4, MAX_LINE); in cy8c95x0_write_regs_mask()
425 bitmap_andnot(tval, val, chip->shiftmask, MAX_LINE); in cy8c95x0_write_regs_mask()
426 bitmap_shift_left(tval, tval, 4, MAX_LINE); in cy8c95x0_write_regs_mask()
483 DECLARE_BITMAP(tmask, MAX_LINE); in cy8c95x0_read_regs_mask()
484 DECLARE_BITMAP(tval, MAX_LINE); in cy8c95x0_read_regs_mask()
485 DECLARE_BITMAP(tmp, MAX_LINE); in cy8c95x0_read_regs_mask()
492 bitmap_andnot(tmask, mask, chip->shiftmask, MAX_LINE); in cy8c95x0_read_regs_mask()
493 bitmap_shift_left(tmask, tmask, 4, MAX_LINE); in cy8c95x0_read_regs_mask()
496 bitmap_andnot(tval, val, chip->shiftmask, MAX_LINE); in cy8c95x0_read_regs_mask()
497 bitmap_shift_left(tval, tval, 4, MAX_LINE); in cy8c95x0_read_regs_mask()
546 bitmap_shift_right(tmp, tval, 4, MAX_LINE); in cy8c95x0_read_regs_mask()
547 bitmap_replace(val, tmp, tval, chip->shiftmask, MAX_LINE); in cy8c95x0_read_regs_mask()
884 DECLARE_BITMAP(ones, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
885 DECLARE_BITMAP(irq_mask, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
886 DECLARE_BITMAP(reg_direction, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
888 bitmap_fill(ones, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
894 bitmap_or(irq_mask, chip->irq_mask, reg_direction, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
895 bitmap_complement(irq_mask, irq_mask, MAX_LINE); in cy8c95x0_irq_bus_sync_unlock()
961 DECLARE_BITMAP(ones, MAX_LINE); in cy8c95x0_irq_pending()
962 DECLARE_BITMAP(cur_stat, MAX_LINE); in cy8c95x0_irq_pending()
963 DECLARE_BITMAP(new_stat, MAX_LINE); in cy8c95x0_irq_pending()
964 DECLARE_BITMAP(trigger, MAX_LINE); in cy8c95x0_irq_pending()
966 bitmap_fill(ones, MAX_LINE); in cy8c95x0_irq_pending()
978 cur_stat, MAX_LINE); in cy8c95x0_irq_pending()
980 bitmap_and(pending, new_stat, trigger, MAX_LINE); in cy8c95x0_irq_pending()
982 return !bitmap_empty(pending, MAX_LINE); in cy8c95x0_irq_pending()
989 DECLARE_BITMAP(pending, MAX_LINE); in cy8c95x0_irq_handler()
998 for_each_set_bit(level, pending, MAX_LINE) { in cy8c95x0_irq_handler()
1057 DECLARE_BITMAP(mask, MAX_LINE); in cy8c95x0_pin_dbg_show()
1058 DECLARE_BITMAP(pwm, MAX_LINE); in cy8c95x0_pin_dbg_show()
1060 bitmap_zero(mask, MAX_LINE); in cy8c95x0_pin_dbg_show()
1255 DECLARE_BITMAP(pending_irqs, MAX_LINE); in cy8c95x0_irq_setup()
1260 bitmap_zero(pending_irqs, MAX_LINE); in cy8c95x0_irq_setup()
1270 bitmap_fill(chip->irq_mask, MAX_LINE); in cy8c95x0_irq_setup()
1419 bitmap_zero(chip->push_pull, MAX_LINE); in cy8c95x0_probe()
1420 bitmap_zero(chip->shiftmask, MAX_LINE); in cy8c95x0_probe()