Lines Matching defs:sdev

73 lpfc_rport_data_from_scsi_device(struct scsi_device *sdev)
75 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;
78 return ((struct lpfc_device_data *)sdev->hostdata)->rport_data;
80 return (struct lpfc_rport_data *)sdev->hostdata;
247 struct scsi_device *sdev;
267 shost_for_each_device(sdev, shost) {
269 sdev->queue_depth * num_rsrc_err /
272 new_queue_depth = sdev->queue_depth - 1;
274 new_queue_depth = sdev->queue_depth -
276 scsi_change_queue_depth(sdev, new_queue_depth);
297 struct scsi_device *sdev;
305 shost_for_each_device(sdev, shost) {
306 rport = starget_to_rport(scsi_target(sdev));
4039 /* The sdev is not guaranteed to be valid post scsi_done upcall. */
5497 * @sdev: Pointer to scsi_device.
5509 lpfc_slave_alloc(struct scsi_device *sdev)
5511 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
5513 struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
5538 sdev->lun);
5544 sdev->lun,
5555 sdev->hostdata = device_data;
5557 sdev->hostdata = rport->dd_data;
5613 * @sdev: Pointer to scsi_device.
5616 * - Tag command queuing support for @sdev if supported.
5623 lpfc_slave_configure(struct scsi_device *sdev)
5625 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
5628 scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth);
5642 * @sdev: Pointer to scsi_device.
5644 * This routine sets @sdev hostatdata filed to null.
5647 lpfc_slave_destroy(struct scsi_device *sdev)
5649 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
5652 struct lpfc_device_data *device_data = sdev->hostdata;
5662 sdev->hostdata = NULL;
6009 lpfc_no_slave(struct scsi_device *sdev)