Lines Matching refs:index
66 /* Ida index - used to track minor number allocations. */
67 int index;
178 int qid = vq->index;
338 ida_simple_remove(&vd_index_ida, vblk->index);
406 static int index_to_minor(int index)
408 return index << PART_BITS;
552 static int virtblk_name_format(char *prefix, int index, char *buf, int buflen)
566 *--p = 'a' + (index % unit);
567 index = (index / unit) - 1;
568 } while (index >= 0);
704 int err, index;
720 index = err;
791 virtblk_name_format("vd", index, vblk->disk->disk_name, DISK_NAME_LEN);
794 vblk->disk->first_minor = index_to_minor(index);
798 vblk->index = index;
916 ida_simple_remove(&vd_index_ida, index);