Lines Matching refs:mask
209 u32 mask = 1 << (queue & (HALF_QUEUES - 1)); in qmgr_enable_irq() local
212 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) | mask, in qmgr_enable_irq()
221 u32 mask = 1 << (queue & (HALF_QUEUES - 1)); in qmgr_disable_irq() local
224 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) & ~mask, in qmgr_disable_irq()
226 __raw_writel(mask, &qmgr_regs->irqstat[half]); /* clear */ in qmgr_disable_irq()
230 static inline void shift_mask(u32 *mask) in shift_mask() argument
232 mask[3] = mask[3] << 1 | mask[2] >> 31; in shift_mask()
233 mask[2] = mask[2] << 1 | mask[1] >> 31; in shift_mask()
234 mask[1] = mask[1] << 1 | mask[0] >> 31; in shift_mask()
235 mask[0] <<= 1; in shift_mask()
249 u32 cfg, addr = 0, mask[4]; /* in 16-dwords */ in qmgr_request_queue() local
260 mask[0] = 0x1; in qmgr_request_queue()
264 mask[0] = 0x3; in qmgr_request_queue()
268 mask[0] = 0xF; in qmgr_request_queue()
272 mask[0] = 0xFF; in qmgr_request_queue()
281 mask[1] = mask[2] = mask[3] = 0; in qmgr_request_queue()
293 if (!(used_sram_bitmap[0] & mask[0]) && in qmgr_request_queue()
294 !(used_sram_bitmap[1] & mask[1]) && in qmgr_request_queue()
295 !(used_sram_bitmap[2] & mask[2]) && in qmgr_request_queue()
296 !(used_sram_bitmap[3] & mask[3])) in qmgr_request_queue()
300 shift_mask(mask); in qmgr_request_queue()
309 used_sram_bitmap[0] |= mask[0]; in qmgr_request_queue()
310 used_sram_bitmap[1] |= mask[1]; in qmgr_request_queue()
311 used_sram_bitmap[2] |= mask[2]; in qmgr_request_queue()
312 used_sram_bitmap[3] |= mask[3]; in qmgr_request_queue()
331 u32 cfg, addr, mask[4]; in qmgr_release_queue() local
342 case 0: mask[0] = 0x1; break; in qmgr_release_queue()
343 case 1: mask[0] = 0x3; break; in qmgr_release_queue()
344 case 2: mask[0] = 0xF; break; in qmgr_release_queue()
345 case 3: mask[0] = 0xFF; break; in qmgr_release_queue()
348 mask[1] = mask[2] = mask[3] = 0; in qmgr_release_queue()
351 shift_mask(mask); in qmgr_release_queue()
365 used_sram_bitmap[0] &= ~mask[0]; in qmgr_release_queue()
366 used_sram_bitmap[1] &= ~mask[1]; in qmgr_release_queue()
367 used_sram_bitmap[2] &= ~mask[2]; in qmgr_release_queue()
368 used_sram_bitmap[3] &= ~mask[3]; in qmgr_release_queue()