• Home
  • Raw
  • Download

Lines Matching refs:addr

31 static unsigned long _find_next_bit(const unsigned long *addr,  in _find_next_bit()  argument
39 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
50 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
61 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
64 return _find_next_bit(addr, size, offset, 0UL); in find_next_bit()
70 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() argument
73 return _find_next_bit(addr, size, offset, ~0UL); in find_next_zero_bit()
82 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument
87 if (addr[idx]) in find_first_bit()
88 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
100 unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size) in find_first_zero_bit() argument
105 if (addr[idx] != ~0UL) in find_first_zero_bit()
106 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
115 unsigned long find_last_bit(const unsigned long *addr, unsigned long size) in find_last_bit() argument
122 val &= addr[idx]; in find_last_bit()
149 static unsigned long _find_next_bit_le(const unsigned long *addr, in _find_next_bit_le() argument
157 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit_le()
168 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit_le()
176 unsigned long find_next_zero_bit_le(const void *addr, unsigned in find_next_zero_bit_le() argument
179 return _find_next_bit_le(addr, size, offset, ~0UL); in find_next_zero_bit_le()
185 unsigned long find_next_bit_le(const void *addr, unsigned in find_next_bit_le() argument
188 return _find_next_bit_le(addr, size, offset, 0UL); in find_next_bit_le()