Lines Matching refs:offset
43 unsigned long offset) in find_next_zero_bit() argument
45 unsigned long *p = ((unsigned long *) addr) + (offset >> 6); in find_next_zero_bit()
46 unsigned long result = offset & ~63UL; in find_next_zero_bit()
49 if (offset >= size) in find_next_zero_bit()
52 offset &= 63UL; in find_next_zero_bit()
54 if (offset) { in find_next_zero_bit()
56 tmp |= ~0UL >> (64-offset); in find_next_zero_bit()
82 unsigned long find_next_bit(unsigned long *addr, unsigned long size, unsigned long offset) in find_next_bit() argument
84 unsigned long *p = addr + (offset >> 6); in find_next_bit()
85 unsigned long result = offset & ~63UL; in find_next_bit()
88 if (offset >= size) in find_next_bit()
91 offset &= 63UL; in find_next_bit()
92 if (offset) { in find_next_bit()
94 tmp &= (~0UL << offset); in find_next_bit()
138 offset) in find_next_zero_le_bit()
140 unsigned int *p = ((unsigned int *) addr) + (offset >> 5); in find_next_zero_le_bit()
141 unsigned int result = offset & ~31; in find_next_zero_le_bit()
144 if (offset >= size) in find_next_zero_le_bit()
147 offset &= 31; in find_next_zero_le_bit()
148 if (offset) { in find_next_zero_le_bit()
150 tmp |= ~0U >> (32-offset); /* bug or feature ? */ in find_next_zero_le_bit()