Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/block/
H A Dnbd.c177 return disk_to_dev(nbd->disk); in nbd_to_dev()
391 dev_warn(disk_to_dev(nbd->disk), "shutting down sockets\n"); in sock_shutdown()
528 dev_err_ratelimited(disk_to_dev(nbd->disk), in __sock_xmit()
614 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
672 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
713 dev_err(disk_to_dev(nbd->disk), in nbd_send_cmd()
748 dev_err(disk_to_dev(nbd->disk), in nbd_read_reply()
754 dev_err(disk_to_dev(nbd->disk), "Wrong magic (0x%lx)\n", in nbd_read_reply()
781 dev_err(disk_to_dev(nbd->disk), "Unexpected reply (%d) %p\n", in nbd_handle_reply()
790 dev_err(disk_to_dev(nbd->disk), "Suspicious reply %d (status %u flags %lu)", in nbd_handle_reply()
[all …]
H A Dpktcdvd.c533 struct device *ddev = disk_to_dev(pd->disk); in pkt_bio_finished()
768 struct device *ddev = disk_to_dev(pd->disk); in pkt_dump_sense()
859 struct device *ddev = disk_to_dev(pd->disk); in pkt_iosched_process_queue()
943 struct device *ddev = disk_to_dev(pd->disk); in pkt_set_segment_merging()
972 dev_dbg(disk_to_dev(pd->disk), "bio=%p sec0=%llx sec=%llx err=%d\n", in pkt_end_io_read()
991 dev_dbg(disk_to_dev(pd->disk), "id=%d, err=%d\n", pkt->id, bio->bi_status); in pkt_end_io_packet_write()
1007 struct device *ddev = disk_to_dev(pd->disk); in pkt_gather_data()
1122 struct device *ddev = disk_to_dev(pd->disk); in pkt_handle_queue()
1262 struct device *ddev = disk_to_dev(pd->disk); in pkt_start_write()
1318 struct device *ddev = disk_to_dev(pd->disk); in pkt_run_state_machine()
[all …]
H A Dloop.c233 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in loop_set_size()
573 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_change_fd()
633 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_change_fd()
741 lo->sysfs_inited = !sysfs_create_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_init()
748 sysfs_remove_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_exit()
1063 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_configure()
1108 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_configure()
1162 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in __loop_clr_fd()
/openbmc/linux/drivers/mtd/ubi/
H A Dblock.c255 dev_err(disk_to_dev(dev->gd), "failed to open ubi volume %d_%d", in ubiblock_open()
390 dev_err(disk_to_dev(dev->gd), "blk_mq_alloc_tag_set failed"); in ubiblock_create()
407 dev_err(disk_to_dev(gd), in ubiblock_create()
428 dev_info(disk_to_dev(dev->gd), "created from ubi%d:%d(%s)", in ubiblock_create()
453 dev_info(disk_to_dev(dev->gd), "released"); in ubiblock_cleanup()
516 dev_warn(disk_to_dev(dev->gd), in ubiblock_resize()
527 dev_info(disk_to_dev(dev->gd), "resized to %lld bytes", in ubiblock_resize()
/openbmc/linux/block/
H A Dgenhd.c95 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_and_notify()
398 struct device *ddev = disk_to_dev(disk); in device_add_disk()
669 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk()
686 sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))); in del_gendisk()
687 pm_runtime_set_memalloc_noio(disk_to_dev(disk), false); in del_gendisk()
688 device_del(disk_to_dev(disk)); in del_gendisk()
1238 if (&disk_to_dev(gp)->kobj.entry == block_class.devices.next) in diskstats_show()
1363 disk_to_dev(disk)->class = &block_class; in __alloc_disk_node()
1364 disk_to_dev(disk)->type = &disk_type; in __alloc_disk_node()
1365 device_initialize(disk_to_dev(dis in __alloc_disk_node()
[all...]
H A Dholder.c106 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in bd_link_disk_holder()
147 del_symlink(holder->holder_dir, &disk_to_dev(disk)->kobj); in bd_unlink_disk_holder()
H A Dblk-mq-sysfs.c228 ret = kobject_add(q->mq_kobj, &disk_to_dev(disk)->kobj, "mq"); in blk_mq_sysfs_register()
H A Ddisk-events.c181 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in disk_event_uevent()
H A Dblk-sysfs.c794 ret = kobject_add(&disk->queue_kobj, &disk_to_dev(disk)->kobj, "queue"); in blk_register_queue()
/openbmc/linux/block/partitions/
H A Dcore.c304 struct device *ddev = disk_to_dev(disk); in add_partition()
337 get_device(disk_to_dev(disk)); in add_partition()
641 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in blk_add_partitions()
697 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in bdev_disk_changed()
/openbmc/linux/drivers/md/
H A Ddm-sysfs.c136 &disk_to_dev(dm_disk(md))->kobj, in dm_sysfs_init()
H A Ddm.c2180 dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj); in event_callback()
3030 r = kobject_uevent_env(&disk_to_dev(md->disk)->kobj, action, envp); in dm_kobject_uevent()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-clt-sysfs.c486 struct kobject *gd_kobj = &disk_to_dev(dev->gd)->kobj; in rnbd_clt_add_dev_kobj()
528 struct kobject *gd_kobj = &disk_to_dev(dev->gd)->kobj; in rnbd_clt_add_dev_symlink()
H A Drnbd-srv-sysfs.c61 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
H A 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()
/openbmc/linux/drivers/mtd/
H A 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()
/openbmc/linux/drivers/md/bcache/
H A Dsuper.c1087 kobject_uevent_env(&disk_to_dev(d->disk)->kobj, KOBJ_CHANGE, env); in bch_cached_dev_run()
1089 if (sysfs_create_link(&d->kobj, &disk_to_dev(d->disk)->kobj, "dev") || in bch_cached_dev_run()
1090 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()
H A Dsysfs.c425 kobject_uevent_env(&disk_to_dev(dc->disk.disk)->kobj, in STORE()
/openbmc/linux/fs/btrfs/
H A Dsysfs.c1932 ret = kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, action); in btrfs_kobject_uevent()
1935 action, kobject_name(&disk_to_dev(bdev->bd_disk)->kobj), in btrfs_kobject_uevent()
1936 &disk_to_dev(bdev->bd_disk)->kobj); in btrfs_kobject_uevent()
/openbmc/linux/drivers/nvme/target/
H A Dnvmet.h96 return ns->bdev ? disk_to_dev(ns->bdev->bd_disk) : NULL; in nvmet_ns_dev()
/openbmc/linux/fs/gfs2/
H A Dsys.c751 &disk_to_dev(sb->s_bdev->bd_disk)->kobj, in gfs2_sys_fs_add()
/openbmc/linux/drivers/nvdimm/
H A Dpmem.c583 pmem->bb_state = sysfs_get_dirent(disk_to_dev(disk)->kobj.sd, in pmem_attach_disk()
H A Dbus.c625 struct device *dev = disk_to_dev(disk)->parent; in nvdimm_check_and_set_ro()
/openbmc/linux/drivers/nvme/host/
H A Dmultipath.c451 struct device *dev = disk_to_dev(head->disk); in nvme_ns_head_submit_bio()
/openbmc/linux/include/linux/
H A Dblkdev.h251 #define disk_to_dev(disk) \ macro

12