Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/block/
Dnbd.c177 return disk_to_dev(nbd->disk); in nbd_to_dev()
380 dev_warn(disk_to_dev(nbd->disk), "shutting down sockets\n"); in sock_shutdown()
517 dev_err_ratelimited(disk_to_dev(nbd->disk), in __sock_xmit()
597 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
655 dev_err_ratelimited(disk_to_dev(nbd->disk), in nbd_send_cmd()
696 dev_err(disk_to_dev(nbd->disk), in nbd_send_cmd()
731 dev_err(disk_to_dev(nbd->disk), in nbd_read_reply()
737 dev_err(disk_to_dev(nbd->disk), "Wrong magic (0x%lx)\n", in nbd_read_reply()
764 dev_err(disk_to_dev(nbd->disk), "Unexpected reply (%d) %p\n", in nbd_handle_reply()
773 dev_err(disk_to_dev(nbd->disk), "Suspicious reply %d (status %u flags %lu)", in nbd_handle_reply()
[all …]
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 …]
Dloop.c236 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in loop_set_size()
576 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_change_fd()
636 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_change_fd()
744 lo->sysfs_inited = !sysfs_create_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_init()
751 sysfs_remove_group(&disk_to_dev(lo->lo_disk)->kobj, in loop_sysfs_exit()
1066 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 1); in loop_configure()
1111 dev_set_uevent_suppress(disk_to_dev(lo->lo_disk), 0); in loop_configure()
1165 kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); in __loop_clr_fd()
/linux-6.6.21/drivers/mtd/ubi/
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()
/linux-6.6.21/block/
Dgenhd.c95 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_and_notify()
400 struct device *ddev = disk_to_dev(disk); in device_add_disk()
672 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk()
689 sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))); in del_gendisk()
690 pm_runtime_set_memalloc_noio(disk_to_dev(disk), false); in del_gendisk()
691 device_del(disk_to_dev(disk)); in del_gendisk()
1361 disk_to_dev(disk)->class = &block_class; in __alloc_disk_node()
1362 disk_to_dev(disk)->type = &disk_type; in __alloc_disk_node()
1363 device_initialize(disk_to_dev(disk)); in __alloc_disk_node()
1422 put_device(disk_to_dev(disk)); in put_disk()
[all …]
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()
Dblk-mq-sysfs.c228 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-sysfs.c794 ret = kobject_add(&disk->queue_kobj, &disk_to_dev(disk)->kobj, "queue"); in blk_register_queue()
/linux-6.6.21/block/partitions/
Dcore.c304 struct device *ddev = disk_to_dev(disk); in add_partition()
337 get_device(disk_to_dev(disk)); in add_partition()
642 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in blk_add_partitions()
698 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in bdev_disk_changed()
/linux-6.6.21/drivers/md/
Ddm-sysfs.c136 &disk_to_dev(dm_disk(md))->kobj, in dm_sysfs_init()
Ddm.c2175 dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj); in event_callback()
3011 r = kobject_uevent_env(&disk_to_dev(md->disk)->kobj, action, envp); in dm_kobject_uevent()
/linux-6.6.21/drivers/block/rnbd/
Drnbd-srv-sysfs.c61 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
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()
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.6.21/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.6.21/drivers/md/bcache/
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()
Dsysfs.c425 kobject_uevent_env(&disk_to_dev(dc->disk.disk)->kobj, in STORE()
/linux-6.6.21/fs/btrfs/
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()
/linux-6.6.21/drivers/nvme/target/
Dnvmet.h96 return ns->bdev ? disk_to_dev(ns->bdev->bd_disk) : NULL; in nvmet_ns_dev()
/linux-6.6.21/drivers/nvdimm/
Dpmem.c583 pmem->bb_state = sysfs_get_dirent(disk_to_dev(disk)->kobj.sd, in pmem_attach_disk()
Dbus.c625 struct device *dev = disk_to_dev(disk)->parent; in nvdimm_check_and_set_ro()
/linux-6.6.21/fs/gfs2/
Dsys.c751 &disk_to_dev(sb->s_bdev->bd_disk)->kobj, in gfs2_sys_fs_add()
/linux-6.6.21/drivers/nvme/host/
Dmultipath.c377 struct device *dev = disk_to_dev(head->disk); in nvme_ns_head_submit_bio()
/linux-6.6.21/include/linux/
Dblkdev.h238 #define disk_to_dev(disk) \ macro

12