Lines Matching refs:size

20 unsigned long find_next_bit(const unsigned long *addr, unsigned long size,  in find_next_bit()  argument
27 if (offset >= size) { in find_next_bit()
28 return size; in find_next_bit()
30 size -= result; in find_next_bit()
35 if (size < BITS_PER_LONG) { in find_next_bit()
41 size -= BITS_PER_LONG; in find_next_bit()
44 while (size >= 4*BITS_PER_LONG) { in find_next_bit()
58 size -= 4*BITS_PER_LONG; in find_next_bit()
60 while (size >= BITS_PER_LONG) { in find_next_bit()
65 size -= BITS_PER_LONG; in find_next_bit()
67 if (!size) { in find_next_bit()
73 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
75 return result + size; /* Nope. */ in find_next_bit()
85 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() argument
92 if (offset >= size) { in find_next_zero_bit()
93 return size; in find_next_zero_bit()
95 size -= result; in find_next_zero_bit()
100 if (size < BITS_PER_LONG) { in find_next_zero_bit()
106 size -= BITS_PER_LONG; in find_next_zero_bit()
109 while (size & ~(BITS_PER_LONG-1)) { in find_next_zero_bit()
114 size -= BITS_PER_LONG; in find_next_zero_bit()
116 if (!size) { in find_next_zero_bit()
122 tmp |= ~0UL << size; in find_next_zero_bit()
124 return result + size; /* Nope. */ in find_next_zero_bit()
130 unsigned long find_last_bit(const unsigned long *addr, unsigned long size) in find_last_bit() argument
136 words = size / BITS_PER_LONG; in find_last_bit()
139 if (size & (BITS_PER_LONG-1)) { in find_last_bit()
141 - (size & (BITS_PER_LONG-1))))); in find_last_bit()
156 return size; in find_last_bit()