Lines Matching refs:sdev_gendev
390 put_device(&sdev->sdev_gendev); in scsi_device_cls_release()
404 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext()
1044 device_enable_async_suspend(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1046 pm_runtime_set_active(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1047 pm_runtime_forbid(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1048 pm_runtime_enable(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1053 error = device_add(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1073 device_del(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1076 transport_add_device(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1079 error = bsg_register_queue(rq, &sdev->sdev_gendev, NULL, NULL); in scsi_sysfs_add_sdev()
1090 error = device_create_file(&sdev->sdev_gendev, in scsi_sysfs_add_sdev()
1103 struct device *dev = &sdev->sdev_gendev; in __scsi_remove_device()
1268 device_initialize(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1269 sdev->sdev_gendev.bus = &scsi_bus_type; in scsi_sysfs_device_initialize()
1270 sdev->sdev_gendev.type = &scsi_dev_type; in scsi_sysfs_device_initialize()
1271 dev_set_name(&sdev->sdev_gendev, "%d:%d:%d:%llu", in scsi_sysfs_device_initialize()
1275 sdev->sdev_dev.parent = get_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1292 transport_setup_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()