Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/fs/crypto/
Dfname.c399 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
400 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
422 fname->disk_name.name = fname->crypto_buf.name; in fscrypt_setup_filename()
423 fname->disk_name.len = fname->crypto_buf.len; in fscrypt_setup_filename()
456 fname->disk_name.name = nokey_name->bytes; in fscrypt_setup_filename()
457 fname->disk_name.len = in fscrypt_setup_filename()
489 if (likely(fname->disk_name.name)) { in fscrypt_match_name()
490 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
492 return !memcmp(de_name, fname->disk_name.name, de_name_len); in fscrypt_match_name()
/kernel/linux/linux-5.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.c443 disk->disk_name, zone->len); in blk_revalidate_zone_cb()
452 disk->disk_name); in blk_revalidate_zone_cb()
458 disk->disk_name); in blk_revalidate_zone_cb()
466 disk->disk_name, args->sector, zone->start); in blk_revalidate_zone_cb()
492 disk->disk_name, (int)zone->type, zone->start); in blk_revalidate_zone_cb()
556 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()
713 dev_set_name(ddev, "%s", disk->disk_name); in register_disk()
1108 , disk_name(disk, part->partno, name_buf), in printk_all_partitions()
1201 disk_name(sgp, part->partno, buf)); in show_partition()
1640 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()
/kernel/liteos_a/drivers/block/disk/src/
Ddisk.c136 if (disk->disk_name != NULL) { in los_alloc_diskid_byname()
137 LOS_MemFree(m_aucSysMem0, disk->disk_name); in los_alloc_diskid_byname()
138 disk->disk_name = NULL; in los_alloc_diskid_byname()
141 disk->disk_name = LOS_MemAlloc(m_aucSysMem0, (nameLen + 1)); in los_alloc_diskid_byname()
142 if (disk->disk_name == NULL) { in los_alloc_diskid_byname()
147 if (strncpy_s(disk->disk_name, (nameLen + 1), diskName, nameLen) != EOK) { in los_alloc_diskid_byname()
149 LOS_MemFree(m_aucSysMem0, disk->disk_name); in los_alloc_diskid_byname()
150 disk->disk_name = NULL; in los_alloc_diskid_byname()
154 disk->disk_name[nameLen] = '\0'; in los_alloc_diskid_byname()
178 if ((disk != NULL) && (disk->disk_name != NULL) && (disk->disk_status == STAT_INUSED)) { in los_get_diskid_byname()
[all …]
/kernel/linux/linux-5.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)
448 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
449 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
481 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
483 return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len); in fscrypt_match_name()
801 fname->disk_name.name = (unsigned char *)dentry->d_name.name; in fscrypt_prepare_lookup()
802 fname->disk_name.len = dentry->d_name.len; in fscrypt_prepare_lookup()
/kernel/linux/linux-5.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 …]
Dxen-blkfront.c1047 info->gd->disk_name, flush_info(info), in xlvbd_flush()
1176 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk()
1177 ptr = encode_disk_name(gd->disk_name + sizeof(DEV_NAME) - 1, offset); in xlvbd_alloc_gendisk()
1178 BUG_ON(ptr >= gd->disk_name + DISK_NAME_LEN); in xlvbd_alloc_gendisk()
1182 snprintf(ptr, gd->disk_name + DISK_NAME_LEN - ptr, in xlvbd_alloc_gendisk()
1507 info->gd->disk_name, s->associated_id); in blkif_completion()
1606 info->gd->disk_name, rp - rinfo->ring.rsp_cons); in blkif_interrupt()
1626 info->gd->disk_name, id); in blkif_interrupt()
1631 info->gd->disk_name); in blkif_interrupt()
1643 info->gd->disk_name, bret.operation, op); in blkif_interrupt()
[all …]
Dnull_blk_trace.h27 memcpy(name, disk->disk_name, DISK_NAME_LEN); in __assign_disk_name()
/kernel/linux/linux-5.10/block/partitions/
Dcore.c132 disk_name(hd, 0, state->name); in check_partition()
389 disk->disk_name); in add_partition()
393 disk->disk_name); in add_partition()
679 disk->disk_name, p, (unsigned long long) from); in blk_add_partition()
688 disk->disk_name, p, (unsigned long long) size); in blk_add_partition()
705 disk->disk_name, p, -PTR_ERR(part)); in blk_add_partition()
734 disk->disk_name); in blk_add_partitions()
746 disk->disk_name); in blk_add_partitions()
759 disk->disk_name); in blk_add_partitions()
/kernel/linux/linux-5.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.c495 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
496 fname.disk_name.len = le16_to_cpu(de->name_len); in f2fs_add_inline_entries()
623 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_inline_entry()
654 f2fs_update_dentry(ino, mode, &d, &fname->disk_name, fname->hash, in f2fs_add_inline_entry()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c409 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
412 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
417 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
291 snprintf(dev->gd->disk_name, 32, "simdisk%d", which); in simdisk_setup()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dnvme.h727 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,
774 static inline void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name() argument
777 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name()
871 int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
876 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()
396 sprintf(head->disk->disk_name, "nvme%dn%d", in nvme_mpath_alloc_disk()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/drivers/block/rsxx/
Ddev.c273 snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), in rsxx_setup_dev()
/kernel/linux/linux-5.10/fs/affs/
Damigaffs.h65 u8 disk_name[32]; member

12345