Lines Matching refs:sdev

253 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
257 static int hpsa_slave_alloc(struct scsi_device *sdev);
258 static int hpsa_slave_configure(struct scsi_device *sdev);
259 static void hpsa_slave_destroy(struct scsi_device *sdev);
297 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev) in sdev_to_hba() argument
299 unsigned long *priv = shost_priv(sdev->host); in sdev_to_hba()
650 struct scsi_device *sdev; in raid_level_show() local
654 sdev = to_scsi_device(dev); in raid_level_show()
655 h = sdev_to_hba(sdev); in raid_level_show()
657 hdev = sdev->hostdata; in raid_level_show()
682 struct scsi_device *sdev; in lunid_show() local
687 sdev = to_scsi_device(dev); in lunid_show()
688 h = sdev_to_hba(sdev); in lunid_show()
690 hdev = sdev->hostdata; in lunid_show()
706 struct scsi_device *sdev; in unique_id_show() local
711 sdev = to_scsi_device(dev); in unique_id_show()
712 h = sdev_to_hba(sdev); in unique_id_show()
714 hdev = sdev->hostdata; in unique_id_show()
734 struct scsi_device *sdev; in host_show_hp_ssd_smart_path_enabled() local
739 sdev = to_scsi_device(dev); in host_show_hp_ssd_smart_path_enabled()
740 h = sdev_to_hba(sdev); in host_show_hp_ssd_smart_path_enabled()
742 hdev = sdev->hostdata; in host_show_hp_ssd_smart_path_enabled()
758 struct scsi_device *sdev; in path_info_show() local
769 sdev = to_scsi_device(dev); in path_info_show()
770 h = sdev_to_hba(sdev); in path_info_show()
772 hdev = sdev->hostdata; in path_info_show()
1723 struct scsi_device *sdev = NULL; in hpsa_remove_device() local
1729 sdev = scsi_device_lookup(h->scsi_host, device->bus, in hpsa_remove_device()
1731 if (sdev) { in hpsa_remove_device()
1732 scsi_remove_device(sdev); in hpsa_remove_device()
1733 scsi_device_put(sdev); in hpsa_remove_device()
1929 static int hpsa_slave_alloc(struct scsi_device *sdev) in hpsa_slave_alloc() argument
1935 h = sdev_to_hba(sdev); in hpsa_slave_alloc()
1937 if (sdev_channel(sdev) == HPSA_PHYSICAL_DEVICE_BUS) { in hpsa_slave_alloc()
1941 starget = scsi_target(sdev); in hpsa_slave_alloc()
1945 sd->target = sdev_id(sdev); in hpsa_slave_alloc()
1946 sd->lun = sdev->lun; in hpsa_slave_alloc()
1949 sd = lookup_hpsa_scsi_dev(h, sdev_channel(sdev), in hpsa_slave_alloc()
1950 sdev_id(sdev), sdev->lun); in hpsa_slave_alloc()
1954 sdev->hostdata = sd; in hpsa_slave_alloc()
1956 sdev->hostdata = NULL; in hpsa_slave_alloc()
1962 static int hpsa_slave_configure(struct scsi_device *sdev) in hpsa_slave_configure() argument
1967 sd = sdev->hostdata; in hpsa_slave_configure()
1968 sdev->no_uld_attach = !sd || !sd->expose_device; in hpsa_slave_configure()
1972 sd->queue_depth : sdev->host->can_queue; in hpsa_slave_configure()
1974 queue_depth = sdev->host->can_queue; in hpsa_slave_configure()
1976 scsi_change_queue_depth(sdev, queue_depth); in hpsa_slave_configure()
1981 static void hpsa_slave_destroy(struct scsi_device *sdev) in hpsa_slave_destroy() argument
5232 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth) in hpsa_change_queue_depth() argument
5234 struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata; in hpsa_change_queue_depth()
5244 return scsi_change_queue_depth(sdev, qdepth); in hpsa_change_queue_depth()