Home
last modified time | relevance | path

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

12345

/Linux-v5.10/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()
/Linux-v5.10/fs/crypto/
Dfname.c403 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
404 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
426 fname->disk_name.name = fname->crypto_buf.name; in fscrypt_setup_filename()
427 fname->disk_name.len = fname->crypto_buf.len; in fscrypt_setup_filename()
460 fname->disk_name.name = nokey_name->bytes; in fscrypt_setup_filename()
461 fname->disk_name.len = in fscrypt_setup_filename()
493 if (likely(fname->disk_name.name)) { in fscrypt_match_name()
494 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
496 return !memcmp(de_name, fname->disk_name.name, de_name_len); in fscrypt_match_name()
/Linux-v5.10/block/
Dblk-integrity.c134 __func__, gd1->disk_name, gd2->disk_name, in blk_integrity_compare()
141 gd1->disk_name, gd2->disk_name, in blk_integrity_compare()
148 gd1->disk_name, gd2->disk_name, in blk_integrity_compare()
155 gd1->disk_name, gd2->disk_name, in blk_integrity_compare()
Dblk-zoned.c415 disk->disk_name, zone->len); in blk_revalidate_zone_cb()
424 disk->disk_name); in blk_revalidate_zone_cb()
430 disk->disk_name); in blk_revalidate_zone_cb()
438 disk->disk_name, args->sector, zone->start); in blk_revalidate_zone_cb()
464 disk->disk_name, (int)zone->type, zone->start); in blk_revalidate_zone_cb()
528 pr_warn("%s: failed to revalidate zones\n", disk->disk_name); in blk_revalidate_disk_zones()
Dgenhd.c77 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() function
80 snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name); in disk_name()
81 else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) in disk_name()
82 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in disk_name()
84 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in disk_name()
91 return disk_name(bdev->bd_disk, bdev->bd_partno, buf); in bdevname()
702 dev_set_name(ddev, "%s", disk->disk_name); in register_disk()
1099 , disk_name(disk, part->partno, name_buf), in printk_all_partitions()
1192 disk_name(sgp, part->partno, buf)); in show_partition()
1631 disk_name(gp, hd->partno, buf), in diskstats_show()
[all …]
Dt10-pi.c73 "(rcvd %u)\n", iter->disk_name, in t10_pi_verify()
88 "(rcvd %04x, want %04x)\n", iter->disk_name, in t10_pi_verify()
/Linux-v5.10/include/linux/
Dfscrypt.h34 struct fscrypt_str disk_name; member
43 #define fname_name(p) ((p)->disk_name.name)
44 #define fname_len(p) ((p)->disk_name.len)
413 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
414 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
446 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
448 return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len); in fscrypt_match_name()
760 fname->disk_name.name = (unsigned char *)dentry->d_name.name; in fscrypt_prepare_lookup()
761 fname->disk_name.len = dentry->d_name.len; in fscrypt_prepare_lookup()
/Linux-v5.10/drivers/block/
Dsunvdc.c89 char disk_name[32]; member
865 strcpy(g->disk_name, port->disk_name); in probe_disk()
876 pr_info(PFX "Virtual CDROM %s\n", port->disk_name); in probe_disk()
883 pr_info(PFX "Virtual DVD %s\n", port->disk_name); in probe_disk()
890 pr_info(PFX "Virtual Hard disk %s\n", port->disk_name); in probe_disk()
898 g->disk_name, in probe_disk()
1011 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1016 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1031 &vdc_vio_ops, port->disk_name); in vdc_port_probe()
1156 port->disk_name, port->ldc_timeout); in vdc_ldc_reset_timer_work()
[all …]
Dnull_blk_trace.h27 memcpy(name, disk->disk_name, DISK_NAME_LEN); in __assign_disk_name()
Dxen-blkfront.c1027 info->gd->disk_name, flush_info(info), in xlvbd_flush()
1155 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk()
1156 ptr = encode_disk_name(gd->disk_name + sizeof(DEV_NAME) - 1, offset); in xlvbd_alloc_gendisk()
1157 BUG_ON(ptr >= gd->disk_name + DISK_NAME_LEN); in xlvbd_alloc_gendisk()
1161 snprintf(ptr, gd->disk_name + DISK_NAME_LEN - ptr, in xlvbd_alloc_gendisk()
1479 info->gd->disk_name, s->associated_id); in blkif_completion()
1585 info->gd->disk_name, op_name(bret->operation), id); in blkif_interrupt()
1603 info->gd->disk_name, op_name(bret->operation), id); in blkif_interrupt()
1617 info->gd->disk_name, op_name(bret->operation)); in blkif_interrupt()
1629 info->gd->disk_name, op_name(bret->operation)); in blkif_interrupt()
[all …]
Dnull_blk.h93 char disk_name[DISK_NAME_LEN]; member
/Linux-v5.10/block/partitions/
Dcore.c132 disk_name(hd, 0, state->name); in check_partition()
382 disk->disk_name); in add_partition()
386 disk->disk_name); in add_partition()
663 disk->disk_name, p, (unsigned long long) from); in blk_add_partition()
672 disk->disk_name, p, (unsigned long long) size); in blk_add_partition()
689 disk->disk_name, p, -PTR_ERR(part)); in blk_add_partition()
718 disk->disk_name); in blk_add_partitions()
730 disk->disk_name); in blk_add_partitions()
743 disk->disk_name); in blk_add_partitions()
/Linux-v5.10/fs/f2fs/
Dhash.c98 const u8 *name = fname->disk_name.name; in f2fs_hash_filename()
99 size_t len = fname->disk_name.len; in f2fs_hash_filename()
Ddir.c111 fname->disk_name = crypt_name->disk_name; in __f2fs_setup_filename()
246 f.disk_name = fname->disk_name; in f2fs_match_name()
300 int s = GET_DENTRY_SLOTS(fname->disk_name.len); in find_in_level()
460 ri->i_namelen = cpu_to_le32(fname->disk_name.len); in init_dent_inode()
461 memcpy(ri->i_name, fname->disk_name.name, fname->disk_name.len); in init_dent_inode()
617 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_has_enough_room()
663 slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_regular_entry()
720 f2fs_update_dentry(ino, mode, &d, &fname->disk_name, fname->hash, in f2fs_add_regular_entry()
Drecovery.c118 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename()
119 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename()
121 if (WARN_ON(fname->disk_name.len > F2FS_NAME_LEN)) in init_recovered_filename()
125 usr_fname->name = fname->disk_name.name; in init_recovered_filename()
126 usr_fname->len = fname->disk_name.len; in init_recovered_filename()
Dinline.c471 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
472 fname.disk_name.len = le16_to_cpu(de->name_len); in f2fs_add_inline_entries()
599 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_inline_entry()
630 f2fs_update_dentry(ino, mode, &d, &fname->disk_name, fname->hash, in f2fs_add_inline_entry()
/Linux-v5.10/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()
/Linux-v5.10/arch/xtensa/platforms/iss/
Dsimdisk.c176 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach()
200 dev->gd->disk_name, dev->filename); in simdisk_detach()
285 snprintf(dev->gd->disk_name, 32, "simdisk%d", which); in simdisk_setup()
/Linux-v5.10/drivers/nvme/host/
Dnvme.h648 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,
693 static inline void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name() argument
696 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name()
784 int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
789 static inline int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, in nvme_nvm_register() argument
Dmultipath.c53 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name() argument
57 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name()
59 sprintf(disk_name, "nvme%dc%dn%d", ctrl->subsys->instance, in nvme_set_disk_name()
63 sprintf(disk_name, "nvme%dn%d", ctrl->subsys->instance, in nvme_set_disk_name()
397 sprintf(head->disk->disk_name, "nvme%dn%d", in nvme_mpath_alloc_disk()
/Linux-v5.10/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()
421 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()
/Linux-v5.10/fs/nfs/blocklayout/
Ddev.c259 d->bdev->bd_disk->disk_name); in bl_parse_simple()
375 d->bdev->bd_disk->disk_name, d->pr_key); in bl_parse_scsi()
380 d->bdev->bd_disk->disk_name); in bl_parse_scsi()
388 d->bdev->bd_disk->disk_name); in bl_parse_scsi()
/Linux-v5.10/drivers/block/rsxx/
Ddev.c273 snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), in rsxx_setup_dev()
/Linux-v5.10/fs/affs/
Damigaffs.h65 u8 disk_name[32]; member

12345