Lines Matching refs:sdev1
8798 struct scsi_device *sdev1; in megasas_add_remove_devices() local
8820 sdev1 = scsi_device_lookup(host, channel, id, 0); in megasas_add_remove_devices()
8821 if (!sdev1) { in megasas_add_remove_devices()
8824 scsi_device_put(sdev1); in megasas_add_remove_devices()
8833 sdev1 = scsi_device_lookup(host, i, j, 0); in megasas_add_remove_devices()
8836 if (!sdev1) in megasas_add_remove_devices()
8839 scsi_device_put(sdev1); in megasas_add_remove_devices()
8841 if (sdev1) in megasas_add_remove_devices()
8842 megasas_remove_scsi_device(sdev1); in megasas_add_remove_devices()
8852 sdev1 = scsi_device_lookup(host, in megasas_add_remove_devices()
8855 if (!sdev1) in megasas_add_remove_devices()
8858 scsi_device_put(sdev1); in megasas_add_remove_devices()
8860 if (sdev1) in megasas_add_remove_devices()
8861 megasas_remove_scsi_device(sdev1); in megasas_add_remove_devices()
8881 struct scsi_device *sdev1; in megasas_aen_polling() local
8906 sdev1 = scsi_device_lookup(instance->host, in megasas_aen_polling()
8911 if (sdev1) in megasas_aen_polling()
8912 megasas_remove_scsi_device(sdev1); in megasas_aen_polling()