Lines Matching refs:bit
51 unsigned int start, bit; in vm_alloc() local
70 bit = find_next_bit(vm_bitmap(t), vm_top[t], start + 1); in vm_alloc()
71 if ( bit > vm_top[t] ) in vm_alloc()
72 bit = vm_top[t]; in vm_alloc()
78 if ( bit < vm_top[t] ) in vm_alloc()
80 if ( start + nr < bit ) in vm_alloc()
82 start = find_next_zero_bit(vm_bitmap(t), vm_top[t], bit + 1); in vm_alloc()
86 if ( start + nr <= bit ) in vm_alloc()
88 start = bit; in vm_alloc()
129 for ( bit = start; bit < start + nr; ++bit ) in vm_alloc()
130 __set_bit(bit, vm_bitmap(t)); in vm_alloc()
131 if ( bit < vm_top[t] ) in vm_alloc()
132 ASSERT(!test_bit(bit, vm_bitmap(t))); in vm_alloc()
134 ASSERT(bit == vm_top[t]); in vm_alloc()
136 vm_low[t] = bit; in vm_alloc()
175 unsigned int bit = vm_index(va, type); in vm_free() local
177 if ( !bit ) in vm_free()
180 bit = vm_index(va, type); in vm_free()
183 if ( !bit ) in vm_free()
190 if ( bit < vm_low[type] ) in vm_free()
192 vm_low[type] = bit - 1; in vm_free()
196 while ( __test_and_clear_bit(bit, vm_bitmap(type)) ) in vm_free()
197 if ( ++bit == vm_top[type] ) in vm_free()