Home
last modified time | relevance | path

Searched refs:bsg_dev (Results 1 – 4 of 4) sorted by relevance

/drivers/ufs/core/
Dufs_bsg.c213 struct device *bsg_dev = &hba->bsg_dev; in ufs_bsg_remove() local
220 device_del(bsg_dev); in ufs_bsg_remove()
221 put_device(bsg_dev); in ufs_bsg_remove()
237 struct device *bsg_dev = &hba->bsg_dev; in ufs_bsg_probe() local
243 device_initialize(bsg_dev); in ufs_bsg_probe()
245 bsg_dev->parent = get_device(parent); in ufs_bsg_probe()
246 bsg_dev->release = ufs_bsg_node_release; in ufs_bsg_probe()
248 dev_set_name(bsg_dev, "ufs-bsg%u", shost->host_no); in ufs_bsg_probe()
250 ret = device_add(bsg_dev); in ufs_bsg_probe()
254 q = bsg_setup_queue(bsg_dev, dev_name(bsg_dev), ufs_bsg_request, NULL, 0); in ufs_bsg_probe()
[all …]
/drivers/scsi/mpi3mr/
Dmpi3mr_app.c1498 struct device *bsg_dev = &mrioc->bsg_dev; in mpi3mr_bsg_exit() local
1505 device_del(bsg_dev); in mpi3mr_bsg_exit()
1506 put_device(bsg_dev); in mpi3mr_bsg_exit()
1532 struct device *bsg_dev = &mrioc->bsg_dev; in mpi3mr_bsg_init() local
1535 device_initialize(bsg_dev); in mpi3mr_bsg_init()
1537 bsg_dev->parent = get_device(parent); in mpi3mr_bsg_init()
1538 bsg_dev->release = mpi3mr_bsg_node_release; in mpi3mr_bsg_init()
1540 dev_set_name(bsg_dev, "mpi3mrctl%u", mrioc->id); in mpi3mr_bsg_init()
1542 if (device_add(bsg_dev)) { in mpi3mr_bsg_init()
1544 dev_name(bsg_dev)); in mpi3mr_bsg_init()
[all …]
Dmpi3mr.h1183 struct device bsg_dev; member
/drivers/scsi/
Dscsi_sysfs.c1424 sdev->bsg_dev = scsi_bsg_register_queue(sdev); in scsi_sysfs_add_sdev()
1425 if (IS_ERR(sdev->bsg_dev)) { in scsi_sysfs_add_sdev()
1426 error = PTR_ERR(sdev->bsg_dev); in scsi_sysfs_add_sdev()
1430 sdev->bsg_dev = NULL; in scsi_sysfs_add_sdev()
1473 if (IS_ENABLED(CONFIG_BLK_DEV_BSG) && sdev->bsg_dev) in __scsi_remove_device()
1474 bsg_unregister_queue(sdev->bsg_dev); in __scsi_remove_device()