Lines Matching refs:ctrl_info
208 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) in pqi_find_device_by_sas_rphy() argument
212 list_for_each_entry(device, &ctrl_info->scsi_device_list, in pqi_find_device_by_sas_rphy()
223 int pqi_add_sas_host(struct Scsi_Host *shost, struct pqi_ctrl_info *ctrl_info) in pqi_add_sas_host() argument
238 ctrl_info->sas_address, NULL); in pqi_add_sas_host()
254 ctrl_info->sas_host = pqi_sas_node; in pqi_add_sas_host()
268 void pqi_delete_sas_host(struct pqi_ctrl_info *ctrl_info) in pqi_delete_sas_host() argument
270 pqi_free_sas_node(ctrl_info->sas_host); in pqi_delete_sas_host()
328 struct pqi_ctrl_info *ctrl_info; in pqi_sas_get_enclosure_identifier() local
336 ctrl_info = shost_to_hba(shost); in pqi_sas_get_enclosure_identifier()
337 spin_lock_irqsave(&ctrl_info->scsi_device_list_lock, flags); in pqi_sas_get_enclosure_identifier()
338 found_device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sas_get_enclosure_identifier()
358 list_for_each_entry(device, &ctrl_info->scsi_device_list, in pqi_sas_get_enclosure_identifier()
378 list_for_each_entry(device, &ctrl_info->scsi_device_list, in pqi_sas_get_enclosure_identifier()
391 spin_unlock_irqrestore(&ctrl_info->scsi_device_list_lock, flags); in pqi_sas_get_enclosure_identifier()
400 struct pqi_ctrl_info *ctrl_info; in pqi_sas_get_bay_identifier() local
408 ctrl_info = shost_to_hba(shost); in pqi_sas_get_bay_identifier()
409 spin_lock_irqsave(&ctrl_info->scsi_device_list_lock, flags); in pqi_sas_get_bay_identifier()
410 device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sas_get_bay_identifier()
423 spin_unlock_irqrestore(&ctrl_info->scsi_device_list_lock, flags); in pqi_sas_get_bay_identifier()
521 struct pqi_ctrl_info *ctrl_info; in pqi_sas_smp_handler() local
526 ctrl_info = shost_to_hba(shost); in pqi_sas_smp_handler()
554 rc = pqi_csmi_smp_passthru(ctrl_info, smp_buf, sizeof(*smp_buf), in pqi_sas_smp_handler()