Home
last modified time | relevance | path

Searched refs:disk_to_dev (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.1.9/drivers/block/
Dnbd.c176 return disk_to_dev(nbd->disk); in nbd_to_dev()
377 dev_warn(disk_to_dev(nbd->disk), "shutting down sockets\n"); in sock_shutdown()
504 dev_err_ratelimited(disk_to_dev(nbd->disk), in sock_xmit()
574 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
632 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
673 dev_err(disk_to_dev(nbd->disk), in nbd_send_cmd()
708 dev_err(disk_to_dev(nbd->disk), in nbd_read_reply()
714 dev_err(disk_to_dev(nbd->disk), "Wrong magic (0x%lx)\n", in nbd_read_reply()
741 dev_err(disk_to_dev(nbd->disk), "Unexpected reply (%d) %p\n", in nbd_handle_reply()
750 dev_err(disk_to_dev(nbd->disk), "Suspicious reply %d (status %u flags %lu)", in nbd_handle_reply()
[all …]
Dloop.c238 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in loop_set_size()
578 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_change_fd()
638 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_change_fd()
746 lo->sysfs_inited = !sysfs_create_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_init()
753 sysfs_remove_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_exit()
1014 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_configure()
1121 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_configure()
1167 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in __loop_clr_fd()
/linux-6.1.9/drivers/mtd/ubi/
Dblock.c245 dev_err(disk_to_dev(dev->gd), "failed to open ubi volume %d_%d", in ubiblock_open()
411 dev_err(disk_to_dev(dev->gd), "blk_mq_alloc_tag_set failed"); in ubiblock_create()
428 dev_err(disk_to_dev(gd), in ubiblock_create()
459 dev_info(disk_to_dev(dev->gd), "created from ubi%d:%d(%s)", in ubiblock_create()
488 dev_info(disk_to_dev(dev->gd), "released"); in ubiblock_cleanup()
551 dev_warn(disk_to_dev(dev->gd), in ubiblock_resize()
562 dev_info(disk_to_dev(dev->gd), "resized to %lld bytes", in ubiblock_resize()
/linux-6.1.9/block/
Dgenhd.c99 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_and_notify()
394 struct device *ddev = disk_to_dev(disk); in device_add_disk()
623 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk()
641 sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))); in del_gendisk()
642 pm_runtime_set_memalloc_noio(disk_to_dev(disk), false); in del_gendisk()
643 device_del(disk_to_dev(disk)); in del_gendisk()
1389 disk_to_dev(disk)->class = &block_class; in __alloc_disk_node()
1390 disk_to_dev(disk)->type = &disk_type; in __alloc_disk_node()
1391 device_initialize(disk_to_dev(disk)); in __alloc_disk_node()
1450 put_device(disk_to_dev(disk)); in put_disk()
[all …]
Dholder.c39 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in __link_disk_holder()
122 del_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in __unlink_disk_holder()
Dblk-mq-sysfs.c254 ret = kobject_add(q->mq_kobj, &disk_to_dev(disk)->kobj, "mq"); in blk_mq_sysfs_register()
Ddisk-events.c181 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in disk_event_uevent()
Dblk-integrity.c446 &disk_to_dev(disk)->kobj, "%s", "integrity"); in blk_integrity_add()
Dblk-sysfs.c816 ret = kobject_add(&q->kobj, &disk_to_dev(disk)->kobj, "queue"); in blk_register_queue()
/linux-6.1.9/block/partitions/
Dcore.c310 struct device *ddev = disk_to_dev(disk); in add_partition()
343 get_device(disk_to_dev(disk)); in add_partition()
643 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in blk_add_partitions()
696 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in bdev_disk_changed()
/linux-6.1.9/drivers/md/
Ddm-sysfs.c135 &disk_to_dev(dm_disk(md))->kobj, in dm_sysfs_init()
Ddm.c2161 dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj); in event_callback()
2994 r = kobject_uevent(&disk_to_dev(md->disk)->kobj, action); in dm_kobject_uevent()
2998 r = kobject_uevent_env(&disk_to_dev(md->disk)->kobj, in dm_kobject_uevent()
/linux-6.1.9/drivers/block/rnbd/
Drnbd-srv-sysfs.c60 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
Drnbd-clt-sysfs.c484 struct kobject *gd_kobj = &disk_to_dev(dev->gd)->kobj; in rnbd_clt_add_dev_kobj()
526 struct kobject *gd_kobj = &disk_to_dev(dev->gd)->kobj; in rnbd_clt_add_dev_symlink()
Drnbd-clt.c102 gd_kobj = &disk_to_dev(dev->gd)->kobj; in process_msg_open_rsp()
642 gd_kobj = &disk_to_dev(dev->gd)->kobj; in set_dev_states_to_disconnected()
/linux-6.1.9/drivers/mtd/
Dmtd_blkdevs.c394 ret = sysfs_create_group(&disk_to_dev(gd)->kobj, in add_mtd_blktrans_dev()
418 sysfs_remove_group(&disk_to_dev(old->disk)->kobj, in del_mtd_blktrans_dev()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_int.h79 dev_printk(level, disk_to_dev((device)->vdisk), fmt, ## args)
81 dev_printk(level, disk_to_dev((peer_device)->device->vdisk), fmt, ## args)
123 dynamic_dev_dbg(disk_to_dev(device->vdisk), fmt, ## args)
/linux-6.1.9/drivers/md/bcache/
Dsuper.c1086 kobject_uevent_env(&disk_to_dev(d->disk)->kobj, KOBJ_CHANGE, env); in bch_cached_dev_run()
1088 if (sysfs_create_link(&d->kobj, &disk_to_dev(d->disk)->kobj, "dev") || in bch_cached_dev_run()
1089 sysfs_create_link(&disk_to_dev(d->disk)->kobj, in bch_cached_dev_run()
1549 err = kobject_add(&d->kobj, &disk_to_dev(d->disk)->kobj, "bcache"); in flash_dev_run()
Dsysfs.c425 kobject_uevent_env(&disk_to_dev(dc->disk.disk)->kobj, in STORE()
/linux-6.1.9/fs/btrfs/
Dsysfs.c1872 ret = kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, action); in btrfs_kobject_uevent()
1875 action, kobject_name(&disk_to_dev(bdev->bd_disk)->kobj), in btrfs_kobject_uevent()
1876 &disk_to_dev(bdev->bd_disk)->kobj); in btrfs_kobject_uevent()
/linux-6.1.9/drivers/nvme/target/
Dnvmet.h95 return ns->bdev ? disk_to_dev(ns->bdev->bd_disk) : NULL; in nvmet_ns_dev()
/linux-6.1.9/drivers/nvdimm/
Dpmem.c604 pmem->bb_state = sysfs_get_dirent(disk_to_dev(disk)->kobj.sd, in pmem_attach_disk()
Dbus.c612 struct device *dev = disk_to_dev(disk)->parent; in nvdimm_check_and_set_ro()
/linux-6.1.9/fs/gfs2/
Dsys.c741 &disk_to_dev(sb->s_bdev->bd_disk)->kobj, in gfs2_sys_fs_add()
/linux-6.1.9/drivers/nvme/host/
Dmultipath.c344 struct device *dev = disk_to_dev(head->disk); in nvme_ns_head_submit_bio()

12