Lines Matching refs:sdev

220 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
224 static int hpsa_slave_alloc(struct scsi_device *sdev);
225 static void hpsa_slave_destroy(struct scsi_device *sdev);
256 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev) in sdev_to_hba() argument
258 unsigned long *priv = shost_priv(sdev->host); in sdev_to_hba()
529 struct scsi_device *sdev; in raid_level_show() local
533 sdev = to_scsi_device(dev); in raid_level_show()
534 h = sdev_to_hba(sdev); in raid_level_show()
536 hdev = sdev->hostdata; in raid_level_show()
561 struct scsi_device *sdev; in lunid_show() local
566 sdev = to_scsi_device(dev); in lunid_show()
567 h = sdev_to_hba(sdev); in lunid_show()
569 hdev = sdev->hostdata; in lunid_show()
585 struct scsi_device *sdev; in unique_id_show() local
590 sdev = to_scsi_device(dev); in unique_id_show()
591 h = sdev_to_hba(sdev); in unique_id_show()
593 hdev = sdev->hostdata; in unique_id_show()
613 struct scsi_device *sdev; in host_show_hp_ssd_smart_path_enabled() local
618 sdev = to_scsi_device(dev); in host_show_hp_ssd_smart_path_enabled()
619 h = sdev_to_hba(sdev); in host_show_hp_ssd_smart_path_enabled()
621 hdev = sdev->hostdata; in host_show_hp_ssd_smart_path_enabled()
1459 struct scsi_device *sdev = in adjust_hpsa_scsi_table() local
1462 if (sdev != NULL) { in adjust_hpsa_scsi_table()
1463 scsi_remove_device(sdev); in adjust_hpsa_scsi_table()
1464 scsi_device_put(sdev); in adjust_hpsa_scsi_table()
1516 static int hpsa_slave_alloc(struct scsi_device *sdev) in hpsa_slave_alloc() argument
1522 h = sdev_to_hba(sdev); in hpsa_slave_alloc()
1524 sd = lookup_hpsa_scsi_dev(h, sdev_channel(sdev), in hpsa_slave_alloc()
1525 sdev_id(sdev), sdev->lun); in hpsa_slave_alloc()
1527 sdev->hostdata = sd; in hpsa_slave_alloc()
1529 scsi_change_queue_depth(sdev, sd->queue_depth); in hpsa_slave_alloc()
1536 static void hpsa_slave_destroy(struct scsi_device *sdev) in hpsa_slave_destroy() argument
4203 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth) in hpsa_change_queue_depth() argument
4205 struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata; in hpsa_change_queue_depth()
4215 return scsi_change_queue_depth(sdev, qdepth); in hpsa_change_queue_depth()