Lines Matching defs:mask
259 * Return the index of the first bit in the mask (or -1 if mask is empty.
262 find_first_bit(uint32_t mask)
264 return (ffs(mask) - 1);
268 * Return the index of the next bit in the mask, or -1 if there are no more.
271 find_next_bit(uint32_t mask, int bit)
274 while (bit < 32 && !(mask & (1 << bit)))
304 uint32_t mask = config->ic_irqmask[i];
308 if (mask == 0) {
313 for (irq = find_first_bit(mask);
315 irq = find_next_bit(mask, irq)) {
369 uint32_t mask = config->ic_drqmask[i];
373 if (mask == 0) {
378 for (drq = find_first_bit(mask);
380 drq = find_next_bit(mask, drq)) {