Home
last modified time | relevance | path

Searched refs:disk_name (Results 1 – 25 of 71) sorted by relevance

123

/drivers/s390/block/
Ddasd_genhd.c57 len = sprintf(gdp->disk_name, "dasd"); in dasd_gendisk_alloc()
61 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
64 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
67 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
70 len += sprintf(gdp->disk_name + len, "%c", 'a'+(base->devindex%26)); in dasd_gendisk_alloc()
Dscm_blk.c491 len = snprintf(bdev->gendisk->disk_name, DISK_NAME_LEN, "scm"); in scm_blk_dev_setup()
493 len += snprintf(bdev->gendisk->disk_name + len, in scm_blk_dev_setup()
498 snprintf(bdev->gendisk->disk_name + len, DISK_NAME_LEN - len, "%c", in scm_blk_dev_setup()
Ddasd_proc.c67 seq_printf(m, " is %-8s", block->gdp->disk_name); in dasd_devices_show()
/drivers/block/
Dsunvdc.c89 char disk_name[32]; member
864 strcpy(g->disk_name, port->disk_name); in probe_disk()
875 pr_info(PFX "Virtual CDROM %s\n", port->disk_name); in probe_disk()
882 pr_info(PFX "Virtual DVD %s\n", port->disk_name); in probe_disk()
889 pr_info(PFX "Virtual Hard disk %s\n", port->disk_name); in probe_disk()
897 g->disk_name, in probe_disk()
1010 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1015 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1030 &vdc_vio_ops, port->disk_name); in vdc_port_probe()
1155 port->disk_name, port->ldc_timeout); in vdc_ldc_reset_timer_work()
[all …]
Dxen-blkfront.c1017 info->gd->disk_name, flush_info(info), in xlvbd_flush()
1145 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk()
1146 ptr = encode_disk_name(gd->disk_name + sizeof(DEV_NAME) - 1, offset); in xlvbd_alloc_gendisk()
1147 BUG_ON(ptr >= gd->disk_name + DISK_NAME_LEN); in xlvbd_alloc_gendisk()
1151 snprintf(ptr, gd->disk_name + DISK_NAME_LEN - ptr, in xlvbd_alloc_gendisk()
1470 info->gd->disk_name, s->associated_id); in blkif_completion()
1576 info->gd->disk_name, op_name(bret->operation), id); in blkif_interrupt()
1594 info->gd->disk_name, op_name(bret->operation), id); in blkif_interrupt()
1608 info->gd->disk_name, op_name(bret->operation)); in blkif_interrupt()
1620 info->gd->disk_name, op_name(bret->operation)); in blkif_interrupt()
[all …]
Dps3disk.c480 snprintf(gendisk->disk_name, sizeof(gendisk->disk_name), PS3DISK_NAME, in ps3disk_probe()
488 gendisk->disk_name, priv->model, priv->raw_capacity >> 11, in ps3disk_probe()
Dnull_blk.h88 char disk_name[DISK_NAME_LEN]; member
Dps3vram.c767 strlcpy(gendisk->disk_name, DEVICE_NAME, sizeof(gendisk->disk_name)); in ps3vram_probe()
771 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
Dz2ram.c374 sprintf(z2ram_gendisk->disk_name, "z2ram"); in z2_init()
/drivers/mtd/
Dmtd_blkdevs.c412 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
415 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
420 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
/drivers/nvme/host/
Dnvme.h522 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,
567 static inline void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name() argument
570 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name()
631 int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
636 static inline int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, in nvme_nvm_register() argument
Dmultipath.c52 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name() argument
56 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name()
58 sprintf(disk_name, "nvme%dc%dn%d", ctrl->subsys->instance, in nvme_set_disk_name()
62 sprintf(disk_name, "nvme%dn%d", ctrl->subsys->instance, in nvme_set_disk_name()
402 sprintf(head->disk->disk_name, "nvme%dn%d", in nvme_mpath_alloc_disk()
Dtrace.h41 memcpy(name, disk->disk_name, DISK_NAME_LEN); in __assign_disk_name()
/drivers/block/aoe/
Daoeblk.c203 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs()
205 p = d->gd->disk_name; in aoedisk_add_debugfs()
422 snprintf(gd->disk_name, sizeof gd->disk_name, "etherd/e%ld.%d", in aoeblk_gdalloc()
Daoedev.c250 p = kbasename(d->gd->disk_name); in user_req()
251 lim = sizeof(d->gd->disk_name); in user_req()
252 lim -= p - d->gd->disk_name; in user_req()
/drivers/block/rsxx/
Ddev.c288 snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), in rsxx_setup_dev()
/drivers/lightnvm/
Dpblk.h712 pr_err("pblk %s: " fmt, pblk->disk->disk_name, ##__VA_ARGS__)
714 pr_info("pblk %s: " fmt, pblk->disk->disk_name, ##__VA_ARGS__)
716 pr_warn("pblk %s: " fmt, pblk->disk->disk_name, ##__VA_ARGS__)
718 pr_debug("pblk %s: " fmt, pblk->disk->disk_name, ##__VA_ARGS__)
1327 return disk->disk_name; in pblk_disk_name()
Dcore.c43 if (!strcmp(name, tgt->disk->disk_name)) in nvm_find_target()
59 if (!strcmp(name, tgt->disk->disk_name)) { in nvm_target_exists()
390 strlcpy(tdisk->disk_name, create->tgtname, sizeof(tdisk->disk_name)); in nvm_create_tgt()
/drivers/mmc/core/
Dblock.c258 md->disk->disk_name); in power_ro_lock_store()
263 pr_info("%s: Locking boot partition ro until next power on\n", part_md->disk->disk_name); in power_ro_lock_store()
1062 md->disk->disk_name, ret); in mmc_blk_issue_drv_op()
1078 md->disk->disk_name); in mmc_blk_issue_drv_op()
1809 pr_err("%s: recovery failed!\n", req->rq_disk->disk_name); in mmc_blk_mq_rw_recovery()
2337 snprintf(md->disk->disk_name, sizeof(md->disk->disk_name), in mmc_blk_alloc_req()
2413 part_md->disk->disk_name, mmc_card_id(card), in mmc_blk_alloc_part()
2893 md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), in mmc_blk_probe()
/drivers/scsi/
Dsd.h130 (sdsk)->disk->disk_name, fmt, ##a) : \
/drivers/mtd/ubi/
Dblock.c415 sprintf(gd->disk_name, "ubiblock%d_%d", dev->ubi_num, dev->vol_id); in ubiblock_create()
448 dev->wq = alloc_workqueue("%s", 0, 0, gd->disk_name); in ubiblock_create()
/drivers/md/bcache/
Dsuper.c784 pr_info("%s stopped", disk->disk_name); in bcache_device_free()
854 snprintf(d->disk->disk_name, DISK_NAME_LEN, "bcache%i", idx); in bcache_device_init()
1207 dc->disk.disk->disk_name); in bch_cached_dev_attach()
1242 dc->disk.disk->disk_name, in bch_cached_dev_attach()
1518 dc->disk.disk->disk_name, dc->backing_dev_name); in bch_cached_dev_error()
1673 d->disk->disk_name, c->sb.set_uuid); in conditional_stop_bcache_device()
1681 d->disk->disk_name); in conditional_stop_bcache_device()
1703 d->disk->disk_name); in conditional_stop_bcache_device()
/drivers/dax/
Dsuper.c64 return fs_dax_get_by_host(bdev->bd_disk->disk_name); in fs_dax_get_by_bdev()
175 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in __bdev_dax_supported()
/drivers/nvdimm/
Dpmem.c457 nvdimm_namespace_disk_name(ndns, disk->disk_name); in pmem_attach_disk()
467 dax_dev = alloc_dax(pmem, disk->disk_name, &pmem_dax_ops, flags); in pmem_attach_disk()
/drivers/block/zram/
Dzram_drv.c930 zram->debugfs_dir = debugfs_create_dir(zram->disk->disk_name, in zram_debugfs_register()
1150 zram->mem_pool = zs_create_pool(zram->disk->disk_name); in zram_meta_alloc()
1920 snprintf(zram->disk->disk_name, 16, "zram%d", device_id); in zram_add()
1959 pr_info("Added device: %s\n", zram->disk->disk_name); in zram_add()
1996 pr_info("Removed device: %s\n", zram->disk->disk_name); in zram_remove()

123