Home
last modified time | relevance | path

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

123

/Linux-v5.4/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()
549 device->first_minor = -1; in tape_alloc_device()
601 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.c185 DBF_LH(5, "tape%d: terminate write %dxEOF\n", device->first_minor, in tape_std_terminate_write()
/Linux-v5.4/drivers/mtd/ubi/
Dblock.c407 gd->first_minor = idr_alloc(&ubiblock_minor_idr, dev, 0, 0, GFP_KERNEL); in ubiblock_create()
408 if (gd->first_minor < 0) { in ubiblock_create()
468 idr_remove(&ubiblock_minor_idr, gd->first_minor); in ubiblock_create()
489 idr_remove(&ubiblock_minor_idr, dev->gd->first_minor); in ubiblock_cleanup()
/Linux-v5.4/drivers/s390/block/
Ddasd_genhd.c47 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()
667 dev_info->gd->first_minor); in dcssblk_add_store()
Dxpram.c375 disk->first_minor = i; in xpram_setup_blkdev()
Dscm_blk.c489 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; in scm_blk_dev_setup()
/Linux-v5.4/arch/m68k/emu/
Dnfblock.c134 dev->disk->first_minor = dev_id * 16; in nfhd_init_one()
/Linux-v5.4/include/linux/
Dgenhd.h187 int first_minor; member
250 return MKDEV(disk->major, disk->first_minor); in disk_devt()
/Linux-v5.4/drivers/block/
Dz2ram.c372 z2ram_gendisk->first_minor = 0; in z2_init()
Dbrd.c398 disk->first_minor = i * max_part; in brd_alloc()
Dps3disk.c476 gendisk->first_minor = devidx * PS3DISK_MINORS; in ps3disk_probe()
/Linux-v5.4/drivers/block/rsxx/
Ddev.c291 card->gendisk->first_minor = 0; in rsxx_setup_dev()
/Linux-v5.4/drivers/nvdimm/
Dblk.c268 disk->first_minor = 0; in nsblk_attach_disk()
/Linux-v5.4/arch/xtensa/platforms/iss/
Dsimdisk.c285 dev->gd->first_minor = which; in simdisk_setup()
/Linux-v5.4/drivers/ide/
Dide-probe.c950 blk_register_region(MKDEV(disk->major, disk->first_minor), in ide_register_region()
958 blk_unregister_region(MKDEV(disk->major, disk->first_minor), in ide_unregister_region()
970 disk->first_minor = unit << PARTN_BITS; in ide_init_disk()
/Linux-v5.4/block/
Dgenhd.c495 *devt = MKDEV(disk->major, disk->first_minor + part->partno); in blk_alloc_devt()
711 WARN_ON(disk->minors && !(disk->major || disk->first_minor)); in __device_add_disk()
723 disk->first_minor = MINOR(devt); in __device_add_disk()
/Linux-v5.4/drivers/block/aoe/
Daoeblk.c418 gd->first_minor = d->sysminor; in aoeblk_gdalloc()
/Linux-v5.4/drivers/mtd/
Dmtd_blkdevs.c407 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
/Linux-v5.4/include/trace/events/
Dbcache.h27 __entry->orig_minor = d->disk->first_minor;
/Linux-v5.4/drivers/md/bcache/
Dsuper.c752 static inline int first_minor_to_idx(int first_minor) in first_minor_to_idx() argument
754 return (first_minor/BCACHE_MINORS); in first_minor_to_idx()
776 first_minor_to_idx(d->disk->first_minor)); in bcache_device_free()
834 d->disk->first_minor = idx_to_first_minor(idx); in bcache_device_init()
/Linux-v5.4/drivers/cdrom/
Dgdrom.c716 gd.disk->first_minor = 1; in probe_gdrom_setupdisk()
/Linux-v5.4/drivers/scsi/
Dsr.c715 disk->first_minor = minor; in sr_probe()

123