Lines Matching refs:start
22 void __init vm_init_type(enum vmap_region type, void *start, void *end) in vm_init_type() argument
29 vm_base[type] = start; in vm_init_type()
30 vm_end[type] = PFN_DOWN(end - start); in vm_init_type()
51 unsigned int start, bit; in vm_alloc() local
68 for ( start = vm_low[t]; start < vm_top[t]; ) in vm_alloc()
70 bit = find_next_bit(vm_bitmap(t), vm_top[t], start + 1); in vm_alloc()
77 start = (start + align) & ~(align - 1); 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()
92 if ( start < vm_top[t] ) in vm_alloc()
106 if ( start >= vm_top[t] ) in vm_alloc()
122 if ( start >= vm_top[t] ) in vm_alloc()
129 for ( bit = start; bit < start + nr; ++bit ) in vm_alloc()
135 if ( start <= vm_low[t] + 2 ) in vm_alloc()
139 return vm_base[t] + start * PAGE_SIZE; in vm_alloc()
146 unsigned long start = (unsigned long)vm_base[type]; in vm_index() local
148 if ( !start ) in vm_index()
151 if ( addr < start + (vm_end[type] / 8) || in vm_index()
152 addr >= start + vm_top[type] * PAGE_SIZE ) in vm_index()
162 unsigned int start = vm_index(va, type), end; in vm_size() local
164 if ( !start ) in vm_size()
167 end = find_next_zero_bit(vm_bitmap(type), vm_top[type], start + 1); in vm_size()
169 return min(end, vm_top[type]) - start; in vm_size()