Lines Matching defs:sdev

74 lpfc_rport_data_from_scsi_device(struct scsi_device *sdev)
76 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;
79 return ((struct lpfc_device_data *)sdev->hostdata)->rport_data;
81 return (struct lpfc_rport_data *)sdev->hostdata;
168 struct scsi_device *sdev;
188 shost_for_each_device(sdev, shost) {
190 sdev->queue_depth * num_rsrc_err /
193 new_queue_depth = sdev->queue_depth - 1;
195 new_queue_depth = sdev->queue_depth -
197 scsi_change_queue_depth(sdev, new_queue_depth);
218 struct scsi_device *sdev;
226 shost_for_each_device(sdev, shost) {
227 rport = starget_to_rport(scsi_target(sdev));
497 /* The sdev is not guaranteed to be valid post
4305 /* The sdev is not guaranteed to be valid post scsi_done upcall. */
4573 /* The sdev is not guaranteed to be valid post scsi_done upcall. */
6217 * @sdev: Pointer to scsi_device.
6229 lpfc_slave_alloc(struct scsi_device *sdev)
6231 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
6233 struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
6258 sdev->lun);
6264 sdev->lun,
6275 sdev->hostdata = device_data;
6277 sdev->hostdata = rport->dd_data;
6333 * @sdev: Pointer to scsi_device.
6336 * - Tag command queuing support for @sdev if supported.
6343 lpfc_slave_configure(struct scsi_device *sdev)
6345 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
6348 scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth);
6362 * @sdev: Pointer to scsi_device.
6364 * This routine sets @sdev hostatdata filed to null.
6367 lpfc_slave_destroy(struct scsi_device *sdev)
6369 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
6372 struct lpfc_device_data *device_data = sdev->hostdata;
6382 sdev->hostdata = NULL;
6727 lpfc_no_slave(struct scsi_device *sdev)