Lines Matching refs:index
1161 * descriptor index to use. Return 0 (no limit) otherwise.
3586 * @index: index of the disk to format name for
3597 * index shifted -1 after each digit is computed.
3605 static int sd_format_disk_name(char *prefix, int index, char *buf, int buflen)
3619 *--p = 'a' + (index % unit);
3620 index = (index / unit) - 1;
3621 } while (index >= 0);
3652 int index;
3682 index = ida_alloc(&sd_index_ida, GFP_KERNEL);
3683 if (index < 0) {
3688 error = sd_format_disk_name("sd", index, gd->disk_name, DISK_NAME_LEN);
3696 sdkp->index = index;
3722 gd->major = sd_major((index & 0xf0) >> 4);
3723 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00);
3775 ida_free(&sd_index_ida, index);
3815 ida_free(&sd_index_ida, sdkp->index);