Lines Matching defs:end

608  * @b: end of first region, exclusive
610 * @y: end of second region, exclusive
624 * @end: end offset in block
626 * Updates a block given a known free area. The region [start, end) is
630 static void pcpu_block_update(struct pcpu_block_md *block, int start, int end)
632 int contig = end - start;
638 if (end == block->nr_bits)
778 unsigned int start, end; /* region start, region end */
794 for_each_clear_bitrange_from(start, end, alloc_map, PCPU_BITMAP_BLOCK_BITS)
795 pcpu_block_update(block, start, end);
820 * are [start, end). e_index always points to the last block in the
881 * When the allocation is across blocks, the end is along
970 int start, end; /* start and end of the whole free area */
975 * are [start, end). e_index always points to the last block in the
988 * If it does, then the scan to find the beginning/end of the
991 * start and end refer to beginning and end of the free area
994 * or end of the block.
1011 end = e_off;
1013 end = e_block->contig_hint_start + e_block->contig_hint;
1015 end = find_next_bit(pcpu_index_alloc_map(chunk, e_index),
1016 PCPU_BITMAP_BLOCK_BITS, end);
1019 e_off = (s_index == e_index) ? end : PCPU_BITMAP_BLOCK_BITS;
1027 if (end == PCPU_BITMAP_BLOCK_BITS)
1029 pcpu_block_update(e_block, 0, end);
1052 if (((end - start) >= PCPU_BITMAP_BLOCK_BITS) || s_index != e_index)
1057 end);
1076 unsigned int start, end;
1079 end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE);
1081 start = find_next_zero_bit(chunk->populated, end, start);
1082 if (start >= end)
1085 end = find_next_bit(chunk->populated, end, start + 1);
1087 *next_off = end * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE;
1169 unsigned long index, end, i, area_off, area_bits;
1177 end = index + nr;
1178 if (end > size)
1179 return end;
1180 i = find_next_bit(map, end, index);
1181 if (i < end) {
1222 int bit_off, end, oslot;
1231 end = min_t(int, start + alloc_bits + PCPU_BITMAP_BLOCK_BITS,
1233 bit_off = pcpu_find_zero_area(chunk->alloc_map, end, start, alloc_bits,
1235 if (bit_off >= end)
1279 int bit_off, bits, end, oslot, freed;
1288 /* find end index */
1289 end = find_next_bit(chunk->bound_map, pcpu_chunk_map_bits(chunk),
1291 bits = end - bit_off;
1338 * base_addr is page aligned down of @tmp_addr while the region end is page
1422 /* hide the end of the bitmap */
1514 * @page_end: the end page
1538 * @page_end: the end page
2133 int i, end;
2156 for (i = chunk->nr_pages - 1, end = -1; i >= 0; i--) {
2169 * extend the (i, end) range. If i == 0, decrease
2176 if (end == -1)
2177 end = i;
2184 if (end == -1)
2188 pcpu_depopulate_chunk(chunk, i + 1, end + 1);
2192 pcpu_chunk_depopulated(chunk, i + 1, end + 1);
2194 freed_page_end = max(freed_page_end, end + 1);
2197 end = -1;
2726 * The end of the static region needs to be aligned with the
3115 * allocations are complete; otherwise, we may end up with