Home
last modified time | relevance | path

Searched refs:first_minor (Results 1 – 25 of 45) sorted by relevance

12

/drivers/s390/char/
Dtape_core.c111 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); in tape_first_minor_show()
115 DEVICE_ATTR(first_minor, 0444, tape_first_minor_show, NULL);
123 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? in tape_state_show()
137 if (tdev->first_minor < 0) in tape_operation_show()
195 DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); in tape_state_set()
340 if (minor < tmp->first_minor) in tape_assign_minor()
348 device->first_minor = minor; in tape_assign_minor()
360 device->first_minor = -1; in tape_remove_minor()
500 device->first_minor = -1; in tape_alloc_device()
552 if (tmp->first_minor / TAPE_MINORS_PER_DEV == devindex) { in tape_find_device()
Dtape_char.c68 sprintf(device_name, "ntibm%i", device->first_minor / 2); in tapechar_setup_device()
71 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device()
79 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device()
Dtape.h215 int first_minor; member
Dtape_std.c184 DBF_LH(5, "tape%d: terminate write %dxEOF\n", device->first_minor, in tape_std_terminate_write()
/drivers/mtd/ubi/
Dblock.c426 gd->first_minor = idr_alloc(&ubiblock_minor_idr, dev, 0, 0, GFP_KERNEL); in ubiblock_create()
427 if (gd->first_minor < 0) { in ubiblock_create()
468 idr_remove(&ubiblock_minor_idr, gd->first_minor); in ubiblock_create()
491 idr_remove(&ubiblock_minor_idr, dev->gd->first_minor); in ubiblock_cleanup()
/drivers/md/
Ddm-audit.c42 int dev_minor = dm_disk(md)->first_minor; in dm_audit_log_ti()
Ddm-ima.c121 dev_name, dev_uuid, md->disk->major, md->disk->first_minor, in dm_ima_alloc_and_copy_device_data()
/drivers/block/paride/
Dpf.c941 disk->first_minor = pf - units; in pf_init_unit()
956 pf->drive = (*drives[disk->first_minor])[D_SLV]; in pf_init_unit()
957 pf->lun = (*drives[disk->first_minor])[D_LUN]; in pf_init_unit()
958 snprintf(pf->name, PF_NAMELEN, "%s%d", name, disk->first_minor); in pf_init_unit()
Dpd.c924 p->first_minor = (disk - pd) << PD_BITS; in pd_probe_drive()
Dpcd.c927 disk->first_minor = unit; in pcd_init_unit()
/drivers/block/
Dn64cart.c138 disk->first_minor = 0; in n64cart_probe()
Dz2ram.c328 disk->first_minor = minor; in z2ram_register_disk()
Dbrd.c402 disk->first_minor = i * max_part; in brd_alloc()
Dps3disk.c455 gendisk->first_minor = devidx * PS3DISK_MINORS; in ps3disk_probe()
Dswim.c839 swd->unit[drive].disk->first_minor = drive; in swim_floppy_init()
Dxen-blkfront.c1155 gd->first_minor = minor; in xlvbd_alloc_gendisk()
2487 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove()
Dsunvdc.c845 g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT; in probe_disk()
/drivers/s390/block/
Ddasd_genhd.c69 gdp->first_minor = base->devindex << DASD_PARTN_BITS; in dasd_gendisk_alloc()
Ddcssblk.c141 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
147 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
665 dev_info->gd->first_minor); in dcssblk_add_store()
Dscm_blk.c483 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; in scm_blk_dev_setup()
/drivers/block/aoe/
Daoeblk.c395 gd->first_minor = d->sysminor; in aoeblk_gdalloc()
/drivers/mtd/
Dmtd_blkdevs.c346 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
/drivers/md/bcache/
Dsuper.c859 static inline int first_minor_to_idx(int first_minor) in first_minor_to_idx() argument
861 return (first_minor/BCACHE_MINORS); in first_minor_to_idx()
885 first_minor_to_idx(disk->first_minor)); in bcache_device_free()
946 d->disk->first_minor = idx_to_first_minor(idx); in bcache_device_init()
/drivers/cdrom/
Dgdrom.c719 gd.disk->first_minor = 1; in probe_gdrom_setupdisk()
/drivers/scsi/
Dsr.c647 disk->first_minor = minor; in sr_probe()

12