Home | History | Annotate | Download | only in fio

Lines Matching refs:idx

76 		       unsigned int idx, size_t nr_blocks,
90 if (this_blocks + idx > SMALLOC_BPI) {
91 this_blocks = SMALLOC_BPI - idx;
92 idx = SMALLOC_BPI - this_blocks;
98 mask = ((1U << this_blocks) - 1) << idx;
104 idx = 0;
131 unsigned int idx, size_t nr_blocks)
133 return blocks_iter(pool, pool_idx, idx, nr_blocks, mask_cmp);
137 unsigned int idx, size_t nr_blocks)
139 blocks_iter(pool, pool_idx, idx, nr_blocks, mask_set);
143 unsigned int idx, size_t nr_blocks)
145 blocks_iter(pool, pool_idx, idx, nr_blocks, mask_clear);
295 unsigned int i, idx;
310 idx = (offset % SMALLOC_BPL) / SMALLOC_BPB;
313 clear_blocks(pool, i, idx, size_to_blocks(hdr->size));
361 unsigned int idx;
370 idx = find_next_zero(pool->bitmap[i], last_idx);
371 if (!blocks_free(pool, i, idx, nr_blocks)) {
372 idx += nr_blocks;
373 if (idx < SMALLOC_BPI)
374 last_idx = idx;
377 while (idx >= SMALLOC_BPI) {
379 idx -= SMALLOC_BPI;
384 set_blocks(pool, i, idx, nr_blocks);
385 offset = i * SMALLOC_BPL + idx * SMALLOC_BPB;