Lines Matching refs:index
77 /* Ida index - used to track minor number allocations. */
78 int index;
355 int qid = vq->index;
930 ida_free(&vd_index_ida, vblk->index);
942 static int index_to_minor(int index)
944 return index << PART_BITS;
1107 static int virtblk_name_format(char *prefix, int index, char *buf, int buflen)
1121 *--p = 'a' + (index % unit);
1122 index = (index / unit) - 1;
1123 } while (index >= 0);
1308 int err, index;
1328 index = err;
1393 virtblk_name_format("vd", index, vblk->disk->disk_name, DISK_NAME_LEN);
1396 vblk->disk->first_minor = index_to_minor(index);
1400 vblk->index = index;
1596 ida_free(&vd_index_ida, index);