Home
last modified time | relevance | path

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

1234

/linux-5.19.10/drivers/s390/block/
Ddasd_genhd.c62 len = sprintf(gdp->disk_name, "dasd"); in dasd_gendisk_alloc()
66 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
69 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
72 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc()
75 len += sprintf(gdp->disk_name + len, "%c", 'a'+(base->devindex%26)); in dasd_gendisk_alloc()
/linux-5.19.10/fs/crypto/
Dfname.c429 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
430 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
451 fname->disk_name.name = fname->crypto_buf.name; in fscrypt_setup_filename()
452 fname->disk_name.len = fname->crypto_buf.len; in fscrypt_setup_filename()
486 fname->disk_name.name = nokey_name->bytes; in fscrypt_setup_filename()
487 fname->disk_name.len = in fscrypt_setup_filename()
519 if (likely(fname->disk_name.name)) { in fscrypt_match_name()
520 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
522 return !memcmp(de_name, fname->disk_name.name, de_name_len); in fscrypt_match_name()
/linux-5.19.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.c488 disk->disk_name, zone->len); in blk_revalidate_zone_cb()
497 disk->disk_name); in blk_revalidate_zone_cb()
503 disk->disk_name); in blk_revalidate_zone_cb()
511 disk->disk_name, args->sector, zone->start); in blk_revalidate_zone_cb()
537 disk->disk_name, (int)zone->type, zone->start); in blk_revalidate_zone_cb()
585 pr_warn("%s: No zones reported\n", disk->disk_name); in blk_revalidate_disk_zones()
596 disk->disk_name, args.sector); in blk_revalidate_disk_zones()
615 pr_warn("%s: failed to revalidate zones\n", disk->disk_name); in blk_revalidate_disk_zones()
Dt10-pi.c75 "(rcvd %u)\n", iter->disk_name, in t10_pi_verify()
90 "(rcvd %04x, want %04x)\n", iter->disk_name, in t10_pi_verify()
337 iter->disk_name, seed, ref); in ext_pi_crc64_verify()
350 iter->disk_name, (unsigned long long)iter->seed, in ext_pi_crc64_verify()
Ddisk-events.c286 bdev->bd_disk->disk_name); in bdev_check_media_change()
312 disk->disk_name); in disk_force_media_change()
456 pr_warn("%s: failed to initialize events\n", disk->disk_name); in disk_alloc_events()
Dgenhd.c91 disk->disk_name, capacity, size); in set_capacity_and_notify()
117 snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name); in bdevname()
118 else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) in bdevname()
119 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in bdevname()
121 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in bdevname()
463 dev_set_name(ddev, "%s", disk->disk_name); in device_add_disk()
/linux-5.19.10/include/linux/
Dfscrypt.h45 struct fscrypt_str disk_name; member
54 #define fname_name(p) ((p)->disk_name.name)
55 #define fname_len(p) ((p)->disk_name.len)
592 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
593 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
625 if (de_name_len != fname->disk_name.len) in fscrypt_match_name()
627 return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len); in fscrypt_match_name()
951 fname->disk_name.name = (unsigned char *)dentry->d_name.name; in fscrypt_prepare_lookup()
952 fname->disk_name.len = dentry->d_name.len; in fscrypt_prepare_lookup()
/linux-5.19.10/drivers/block/
Dsunvdc.c88 char disk_name[32]; member
847 strcpy(g->disk_name, port->disk_name); in probe_disk()
858 pr_info(PFX "Virtual CDROM %s\n", port->disk_name); in probe_disk()
864 pr_info(PFX "Virtual DVD %s\n", port->disk_name); in probe_disk()
870 pr_info(PFX "Virtual Hard disk %s\n", port->disk_name); in probe_disk()
878 g->disk_name, in probe_disk()
998 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1003 snprintf(port->disk_name, sizeof(port->disk_name), in vdc_port_probe()
1018 &vdc_vio_ops, port->disk_name); in vdc_port_probe()
1141 port->disk_name, port->ldc_timeout); in vdc_ldc_reset_timer_work()
[all …]
Dxen-blkfront.c993 info->gd->disk_name, flush_info(info), in xlvbd_flush()
1144 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk()
1145 ptr = encode_disk_name(gd->disk_name + sizeof(DEV_NAME) - 1, offset); in xlvbd_alloc_gendisk()
1146 BUG_ON(ptr >= gd->disk_name + DISK_NAME_LEN); in xlvbd_alloc_gendisk()
1150 snprintf(ptr, gd->disk_name + DISK_NAME_LEN - ptr, in xlvbd_alloc_gendisk()
1434 info->gd->disk_name, s->associated_id); in blkif_completion()
1533 info->gd->disk_name, rp - rinfo->ring.rsp_cons); in blkif_interrupt()
1553 info->gd->disk_name, id); in blkif_interrupt()
1558 info->gd->disk_name); in blkif_interrupt()
1570 info->gd->disk_name, bret.operation, op); in blkif_interrupt()
[all …]
Dz2ram.c333 sprintf(disk->disk_name, "z2ram%d", minor); in z2ram_register_disk()
335 sprintf(disk->disk_name, "z2ram"); in z2ram_register_disk()
Dps3disk.c459 snprintf(gendisk->disk_name, sizeof(gendisk->disk_name), PS3DISK_NAME, in ps3disk_probe()
467 gendisk->disk_name, priv->model, priv->raw_capacity >> 11, in ps3disk_probe()
/linux-5.19.10/block/partitions/
Dcore.c139 snprintf(state->name, BDEVNAME_SIZE, "%s", hd->disk_name); in check_partition()
329 disk->disk_name); in add_partition()
333 disk->disk_name); in add_partition()
555 disk->disk_name, p, (unsigned long long) from); in blk_add_partition()
564 disk->disk_name, p, (unsigned long long) size); in blk_add_partition()
581 disk->disk_name, p, -PTR_ERR(part)); in blk_add_partition()
613 disk->disk_name); in blk_add_partitions()
625 disk->disk_name); in blk_add_partitions()
638 disk->disk_name); in blk_add_partitions()
Damiga.c44 state->disk->disk_name, blk); in amiga_partition()
66 state->disk->disk_name, blk); in amiga_partition()
86 state->disk->disk_name, blk); in amiga_partition()
Dsgi.c65 state->disk->disk_name); in sgi_partition()
/linux-5.19.10/fs/f2fs/
Ddir.c116 fname->disk_name = crypt_name->disk_name; in __f2fs_setup_filename()
278 f.disk_name = fname->disk_name; in f2fs_match_name()
338 int s = GET_DENTRY_SLOTS(fname->disk_name.len); in find_in_level()
505 ri->i_namelen = cpu_to_le32(fname->disk_name.len); in init_dent_inode()
506 memcpy(ri->i_name, fname->disk_name.name, fname->disk_name.len); in init_dent_inode()
517 if (fname->disk_name.len + sizeof(f2fs_hash_t) <= in init_dent_inode()
520 &ri->i_name[fname->disk_name.len]); in init_dent_inode()
676 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_has_enough_room()
722 slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_regular_entry()
779 f2fs_update_dentry(ino, mode, &d, &fname->disk_name, fname->hash, in f2fs_add_regular_entry()
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()
Drecovery.c129 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename()
130 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename()
132 if (WARN_ON(fname->disk_name.len > F2FS_NAME_LEN)) in init_recovered_filename()
136 usr_fname->name = fname->disk_name.name; in init_recovered_filename()
137 usr_fname->len = fname->disk_name.len; in init_recovered_filename()
147 if (fname->disk_name.len + sizeof(f2fs_hash_t) > F2FS_NAME_LEN) in init_recovered_filename()
150 &raw_inode->i_name[fname->disk_name.len]); in init_recovered_filename()
/linux-5.19.10/drivers/mtd/
Dmtd_blkdevs.c352 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
355 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
360 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
/linux-5.19.10/fs/ext4/
Dcrypto.c16 dst->disk_name = src->disk_name; in ext4_fname_from_fscrypt_name()
67 fname->disk_name.name = NULL; in ext4_fname_free_filename()
/linux-5.19.10/arch/xtensa/platforms/iss/
Dsimdisk.c174 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach()
198 dev->gd->disk_name, dev->filename); in simdisk_detach()
282 snprintf(dev->gd->disk_name, 32, "simdisk%d", which); in simdisk_setup()
/linux-5.19.10/drivers/block/aoe/
Daoeblk.c201 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs()
203 p = d->gd->disk_name; in aoedisk_add_debugfs()
410 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-5.19.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-5.19.10/drivers/block/null_blk/
Dtrace.h27 memcpy(name, disk->disk_name, DISK_NAME_LEN); in __assign_disk_name()

1234