Lines Matching refs:scsi_dev
1634 struct scsi_device *scsi_dev; in esas2r_add_device() local
1636 scsi_dev = scsi_device_lookup(a->host, 0, target_id, 0); in esas2r_add_device()
1638 if (scsi_dev) { in esas2r_add_device()
1641 &(scsi_dev-> in esas2r_add_device()
1645 scsi_device_put(scsi_dev); in esas2r_add_device()
1668 struct scsi_device *scsi_dev; in esas2r_remove_device() local
1670 scsi_dev = scsi_device_lookup(a->host, 0, target_id, 0); in esas2r_remove_device()
1672 if (scsi_dev) { in esas2r_remove_device()
1673 scsi_device_set_state(scsi_dev, SDEV_OFFLINE); in esas2r_remove_device()
1677 &(scsi_dev-> in esas2r_remove_device()
1682 scsi_remove_device(scsi_dev); in esas2r_remove_device()
1686 &(scsi_dev-> in esas2r_remove_device()
1690 scsi_device_put(scsi_dev); in esas2r_remove_device()