Lines Matching defs:index
1189 * descriptor index to use. Return 0 (no limit) otherwise.
3754 * @index: index of the disk to format name for
3765 * index shifted -1 after each digit is computed.
3773 static int sd_format_disk_name(char *prefix, int index, char *buf, int buflen)
3787 *--p = 'a' + (index % unit);
3788 index = (index / unit) - 1;
3789 } while (index >= 0);
3820 int index;
3850 index = ida_alloc(&sd_index_ida, GFP_KERNEL);
3851 if (index < 0) {
3856 error = sd_format_disk_name("sd", index, gd->disk_name, DISK_NAME_LEN);
3864 sdkp->index = index;
3890 gd->major = sd_major((index & 0xf0) >> 4);
3891 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00);
3943 ida_free(&sd_index_ida, index);
3983 ida_free(&sd_index_ida, sdkp->index);