Lines Matching defs:shift
164 CRQB_IOID_SHIFT = 6, /* CRQB Gen-II/IIE IO Id shift */
165 CRQB_PMP_SHIFT = 12, /* CRQB Gen-II/IIE PMP shift */
166 CRQB_HOSTQ_SHIFT = 17, /* CRQB Gen-II/IIE HostQueTag shift */
172 CRPB_IOID_SHIFT_6 = 5, /* CRPB Gen-II IO Id shift */
173 CRPB_IOID_SHIFT_7 = 7, /* CRPB Gen-IIE IO Id shift */
214 ERR_IRQ = (1 << 0), /* shift by (2 * port #) */
215 DONE_IRQ = (1 << 1), /* shift by (2 * port #) */
237 DMA_IRQ = (1 << 0), /* shift by port # */
239 DEV_IRQ = (1 << 8), /* shift by port # */
877 * Consolidate some rather tricky bit shift calculations.
882 * shift is one output, for use with main_irq_cause / main_irq_mask registers.
887 #define MV_PORT_TO_SHIFT_AND_HARDPORT(port, shift, hardport) \
889 shift = mv_hc_from_port(port) * HC_SHIFT; \
891 shift += hardport * 2; \
1057 unsigned int shift, hardport, port = ap->port_no;
1060 MV_PORT_TO_SHIFT_AND_HARDPORT(port, shift, hardport);
1062 disable_bits = (DONE_IRQ | ERR_IRQ) << shift;
1063 enable_bits = port_bits << shift;
2892 unsigned int p, shift, hardport, port_cause;
2894 MV_PORT_TO_SHIFT_AND_HARDPORT(port, shift, hardport);
2900 u32 hc_cause = (main_irq_cause >> shift) & HC0_IRQ_PEND;
2938 port_cause = (main_irq_cause >> shift) & (DONE_IRQ | ERR_IRQ);