Lines Matching refs:sdev_gendev
441 put_device(&sdev->sdev_gendev); in scsi_device_cls_release()
461 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext()
1391 device_enable_async_suspend(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1393 pm_runtime_set_active(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1395 pm_runtime_forbid(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1396 pm_runtime_enable(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1403 error = device_add(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1415 device_del(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1418 transport_add_device(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1438 struct device *dev = &sdev->sdev_gendev; in __scsi_remove_device()
1540 !get_device(&sdev->sdev_gendev)) in __scsi_remove_target()
1544 put_device(&sdev->sdev_gendev); in __scsi_remove_target()
1628 device_initialize(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1629 sdev->sdev_gendev.bus = &scsi_bus_type; in scsi_sysfs_device_initialize()
1630 sdev->sdev_gendev.type = &scsi_dev_type; in scsi_sysfs_device_initialize()
1631 scsi_enable_async_suspend(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1632 dev_set_name(&sdev->sdev_gendev, "%d:%d:%d:%llu", in scsi_sysfs_device_initialize()
1634 sdev->sdev_gendev.groups = hostt->sdev_groups; in scsi_sysfs_device_initialize()
1637 sdev->sdev_dev.parent = get_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1654 transport_setup_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()