Lines Matching refs:sdev_gendev
390 put_device(&sdev->sdev_gendev); in scsi_device_cls_release()
402 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext()
1018 device_enable_async_suspend(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1020 pm_runtime_set_active(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1021 pm_runtime_forbid(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1022 pm_runtime_enable(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1027 error = device_add(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1038 device_del(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1041 transport_add_device(&sdev->sdev_gendev); in scsi_sysfs_add_sdev()
1044 error = bsg_register_queue(rq, &sdev->sdev_gendev, NULL, NULL); in scsi_sysfs_add_sdev()
1055 error = device_create_file(&sdev->sdev_gendev, in scsi_sysfs_add_sdev()
1068 struct device *dev = &sdev->sdev_gendev; in __scsi_remove_device()
1230 device_initialize(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1231 sdev->sdev_gendev.bus = &scsi_bus_type; in scsi_sysfs_device_initialize()
1232 sdev->sdev_gendev.type = &scsi_dev_type; in scsi_sysfs_device_initialize()
1233 dev_set_name(&sdev->sdev_gendev, "%d:%d:%d:%llu", in scsi_sysfs_device_initialize()
1237 sdev->sdev_dev.parent = get_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()
1254 transport_setup_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize()