Lines Matching refs:size
24 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
31 if (offset >= size) in find_next_bit()
32 return size; in find_next_bit()
33 size -= result; in find_next_bit()
38 if (size < BITS_PER_LONG) in find_next_bit()
42 size -= BITS_PER_LONG; in find_next_bit()
45 while (size & ~(BITS_PER_LONG-1)) { in find_next_bit()
49 size -= BITS_PER_LONG; in find_next_bit()
51 if (!size) in find_next_bit()
56 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
58 return result + size; /* Nope. */ in find_next_bit()
68 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument
74 while (size & ~(BITS_PER_LONG-1)) { in find_first_bit()
78 size -= BITS_PER_LONG; in find_first_bit()
80 if (!size) in find_first_bit()
83 tmp = (*p) & (~0UL >> (BITS_PER_LONG - size)); in find_first_bit()
85 return result + size; /* Nope. */ in find_first_bit()