Lines Matching refs:index
51 * the page's index. Lastly, units are lazily backed and grow in unison.
254 page->index = (unsigned long)pcpu;
260 return (struct pcpu_chunk *)page->index;
284 static unsigned long *pcpu_index_alloc_map(struct pcpu_chunk *chunk, int index)
287 (index * PCPU_BITMAP_BLOCK_BITS / BITS_PER_LONG);
300 static unsigned long pcpu_block_off_to_off(int index, int off)
302 return index * PCPU_BITMAP_BLOCK_BITS + off;
725 * @index: index of the metadata block
730 static void pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)
732 struct pcpu_block_md *block = chunk->md_blocks + index;
733 unsigned long *alloc_map = pcpu_index_alloc_map(chunk, index);
1040 * pcpu_find_block_fit - finds the block index to start searching
1120 unsigned long index, end, i, area_off, area_bits;
1122 index = find_next_zero_bit(map, size, start);
1125 index = __ALIGN_MASK(index, align_mask);
1126 area_off = index;
1128 end = index + nr;
1131 i = find_next_bit(map, end, index);
1145 return index;
1239 /* find end index */