Lines Matching refs:start
428 int start = pcpu_next_hint(block, alloc_bits); in pcpu_next_fit_region() local
431 start; in pcpu_next_fit_region()
432 *bit_off = pcpu_block_off_to_off(i, start); in pcpu_next_fit_region()
586 static void pcpu_block_update(struct pcpu_block_md *block, int start, int end) in pcpu_block_update() argument
588 int contig = end - start; in pcpu_block_update()
590 block->first_free = min(block->first_free, start); in pcpu_block_update()
591 if (start == 0) in pcpu_block_update()
599 if (start > block->contig_hint_start) { in pcpu_block_update()
604 } else if (start < block->scan_hint_start) { in pcpu_block_update()
615 block->contig_hint_start = start; in pcpu_block_update()
619 (!start || in pcpu_block_update()
620 __ffs(start) > __ffs(block->contig_hint_start))) { in pcpu_block_update()
622 block->contig_hint_start = start; in pcpu_block_update()
623 if (start < block->scan_hint_start && in pcpu_block_update()
626 } else if (start > block->scan_hint_start || in pcpu_block_update()
633 block->scan_hint_start = start; in pcpu_block_update()
642 if ((start < block->contig_hint_start && in pcpu_block_update()
645 start > block->scan_hint_start)))) { in pcpu_block_update()
646 block->scan_hint_start = start; in pcpu_block_update()
734 unsigned int rs, re, start; /* region start, region end */ in pcpu_block_refresh_hint() local
738 start = block->scan_hint_start + block->scan_hint; in pcpu_block_refresh_hint()
743 start = block->first_free; in pcpu_block_refresh_hint()
750 bitmap_for_each_clear_region(alloc_map, rs, re, start, in pcpu_block_refresh_hint()
919 int start, end; /* start and end of the whole free area */ in pcpu_block_update_hint_free() local
945 start = s_off; in pcpu_block_update_hint_free()
947 start = s_block->contig_hint_start; in pcpu_block_update_hint_free()
956 start); in pcpu_block_update_hint_free()
957 start = (start == l_bit) ? 0 : l_bit + 1; in pcpu_block_update_hint_free()
969 if (!start && e_off == PCPU_BITMAP_BLOCK_BITS) in pcpu_block_update_hint_free()
971 pcpu_block_update(s_block, start, e_off); in pcpu_block_update_hint_free()
1001 if (((end - start) >= PCPU_BITMAP_BLOCK_BITS) || s_index != e_index) in pcpu_block_update_hint_free()
1005 pcpu_block_off_to_off(s_index, start), in pcpu_block_update_hint_free()
1114 unsigned long start, in pcpu_find_zero_area() argument
1122 index = find_next_zero_bit(map, size, start); in pcpu_find_zero_area()
1142 start = i + 1; in pcpu_find_zero_area()
1168 size_t align, int start) in pcpu_alloc_area() argument
1182 end = min_t(int, start + alloc_bits + PCPU_BITMAP_BLOCK_BITS, in pcpu_alloc_area()
1184 bit_off = pcpu_find_zero_area(chunk->alloc_map, end, start, alloc_bits, in pcpu_alloc_area()
2135 void *start = per_cpu_ptr(base, cpu); in __is_kernel_percpu_address() local
2138 if (va >= start && va < start + static_size) { in __is_kernel_percpu_address()
2140 *can_addr = (unsigned long) (va - start); in __is_kernel_percpu_address()
2215 void *start = per_cpu_ptr(base, cpu); in per_cpu_ptr_to_phys() local
2217 if (addr >= start && addr < start + pcpu_unit_size) { in per_cpu_ptr_to_phys()