Lines Matching defs:bits
116 static inline unsigned long iv_size(unsigned long bits)
118 return BITS_TO_LONGS(bits) * sizeof(unsigned long);
123 * @bits: number of bits in the interrupt vector
128 struct airq_iv *airq_iv_create(unsigned long bits, unsigned long flags)
136 iv->bits = bits;
138 size = iv_size(bits);
141 if ((cache_line_size() * BITS_PER_BYTE) < bits
161 iv->end = bits;
168 size = bits * sizeof(unsigned long);
174 size = bits * sizeof(unsigned int);
208 cio_dma_free(iv->vector, iv_size(iv->bits));
215 * airq_iv_alloc - allocate irq bits from an interrupt vector
217 * @num: number of consecutive irq bits to allocate
230 bit = find_first_bit_inv(iv->avail, iv->bits);
231 while (bit + num <= iv->bits) {
243 bit = find_next_bit_inv(iv->avail, iv->bits, bit + i + 1);
245 if (bit + num > iv->bits)
253 * airq_iv_free - free irq bits of an interrupt vector
256 * @num: number of consecutive irq bits to free
281 * airq_iv_scan - scan interrupt vector for non-zero bits
287 * -1UL if the scan completed without finding any more any non-zero bits.