Lines Matching defs:bits
114 static inline unsigned long iv_size(unsigned long bits)
116 return BITS_TO_LONGS(bits) * sizeof(unsigned long);
121 * @bits: number of bits in the interrupt vector
127 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
163 iv->end = bits;
170 size = bits * sizeof(unsigned long);
176 size = bits * sizeof(unsigned int);
210 cio_dma_free(iv->vector, iv_size(iv->bits));
217 * airq_iv_alloc - allocate irq bits from an interrupt vector
219 * @num: number of consecutive irq bits to allocate
232 bit = find_first_bit_inv(iv->avail, iv->bits);
233 while (bit + num <= iv->bits) {
245 bit = find_next_bit_inv(iv->avail, iv->bits, bit + i + 1);
247 if (bit + num > iv->bits)
255 * airq_iv_free - free irq bits of an interrupt vector
258 * @num: number of consecutive irq bits to free
283 * airq_iv_scan - scan interrupt vector for non-zero bits
289 * -1UL if the scan completed without finding any more any non-zero bits.