Home
last modified time | relevance | path

Searched refs:sas_ha (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/scsi/libsas/
A Dsas_init.c103 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr); in sas_register_ha()
106 spin_lock_init(&sas_ha->lock); in sas_register_ha()
129 if (!sas_ha->event_q) in sas_register_ha()
134 if (!sas_ha->disco_q) in sas_register_ha()
145 sas_unregister_ports(sas_ha); in sas_register_ha()
158 spin_lock_irq(&sas_ha->lock); in sas_disable_events()
160 spin_unlock_irq(&sas_ha->lock); in sas_disable_events()
161 __sas_drain_work(sas_ha); in sas_disable_events()
167 sas_disable_events(sas_ha); in sas_unregister_ha()
168 sas_unregister_ports(sas_ha); in sas_unregister_ha()
[all …]
A Dsas_host_smp.c25 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
31 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover()
42 if (!sas_ha->sas_phy[phy_id]->port || in sas_host_smp_discover()
43 !sas_ha->sas_phy[phy_id]->port->port_dev) in sas_host_smp_discover()
46 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover()
144 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
151 if (!sas_ha->sas_phy[phy_id]->port) in sas_report_phy_sata()
185 to_sas_internal(sas_ha->core.shost->transportt); in sas_phy_control()
189 if (phy_id >= sas_ha->num_phys) { in sas_phy_control()
194 asd_phy = sas_ha->sas_phy[phy_id]; in sas_phy_control()
[all …]
A Dsas_port.c17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() local
95 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
108 port = sas_ha->sas_port[i]; in sas_form_port()
120 if (i == sas_ha->num_phys) { in sas_form_port()
122 port = sas_ha->sas_port[i]; in sas_form_port()
134 if (i >= sas_ha->num_phys) { in sas_form_port()
188 flush_workqueue(sas_ha->disco_q); in sas_form_port()
257 flush_workqueue(sas_ha->disco_q); in sas_deform_port()
327 port->ha = sas_ha; in sas_init_port()
340 sas_init_port(port, sas_ha, i); in sas_register_ports()
[all …]
A Dsas_phy.c38 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error() local
41 to_sas_internal(sas_ha->core.shost->transportt); in sas_phye_oob_error()
67 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_spinup_hold() local
69 to_sas_internal(sas_ha->core.shost->transportt); in sas_phye_spinup_hold()
96 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_shutdown() local
98 to_sas_internal(sas_ha->core.shost->transportt); in sas_phye_shutdown()
116 int sas_register_phys(struct sas_ha_struct *sas_ha) in sas_register_phys() argument
121 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_phys()
122 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; in sas_register_phys()
129 phy->ha = sas_ha; in sas_register_phys()
[all …]
A Dsas_ata.c81 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_ata_task_done() local
88 if (test_bit(SAS_HA_FROZEN, &sas_ha->state)) in sas_ata_task_done()
166 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_ata_qc_issue() local
167 struct Scsi_Host *host = sas_ha->core.shost; in sas_ata_qc_issue()
745 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in sas_ata_strategy_handler() local
757 sas_disable_revalidation(sas_ha); in sas_ata_strategy_handler()
759 spin_lock_irq(&sas_ha->phy_port_lock); in sas_ata_strategy_handler()
760 for (i = 0; i < sas_ha->num_phys; i++) { in sas_ata_strategy_handler()
761 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_ata_strategy_handler()
779 spin_unlock_irq(&sas_ha->phy_port_lock); in sas_ata_strategy_handler()
[all …]
A Dsas_internal.h48 int sas_register_phys(struct sas_ha_struct *sas_ha);
49 void sas_unregister_phys(struct sas_ha_struct *sas_ha);
54 int sas_register_ports(struct sas_ha_struct *sas_ha);
55 void sas_unregister_ports(struct sas_ha_struct *sas_ha);
A Dsas_discover.c173 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_notify_lldd_dev_found() local
174 struct Scsi_Host *shost = sas_ha->core.shost; in sas_notify_lldd_dev_found()
183 dev_name(sas_ha->dev), in sas_notify_lldd_dev_found()
195 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_notify_lldd_dev_gone() local
196 struct Scsi_Host *shost = sas_ha->core.shost; in sas_notify_lldd_dev_gone()
A Dsas_scsi_host.c208 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(cmd->device->host); in sas_eh_finish_cmd() local
222 list_move_tail(&cmd->eh_entry, &sas_ha->eh_ata_q); in sas_eh_finish_cmd()
230 scsi_eh_finish_cmd(cmd, &sas_ha->eh_done_q); in sas_eh_finish_cmd()
/linux/drivers/scsi/isci/
A Dinit.c138 struct isci_host *ihost = container_of(sas_ha, typeof(*ihost), sas_ha); in isci_show_id()
237 struct sas_ha_struct *sas_ha = &(isci_host->sas_ha); in isci_register_sas_ha() local
253 sas_ha->sas_ha_name = DRV_NAME; in isci_register_sas_ha()
262 sas_ha->sas_phy = sas_phys; in isci_register_sas_ha()
263 sas_ha->sas_port = sas_ports; in isci_register_sas_ha()
264 sas_ha->num_phys = SCI_MAX_PHYS; in isci_register_sas_ha()
266 sas_ha->strict_wide_ports = 1; in isci_register_sas_ha()
268 sas_register_ha(sas_ha); in isci_register_sas_ha()
516 ihost->sas_ha.lldd_ha = ihost; in isci_host_alloc()
717 sas_suspend_ha(&ihost->sas_ha); in isci_suspend()
[all …]
A Dhost.h198 struct sas_ha_struct sas_ha; member
309 return ihost->sas_ha.core.shost; in to_shost()
A Dhost.c2789 int isci_gpio_write(struct sas_ha_struct *sas_ha, u8 reg_type, u8 reg_index, in isci_gpio_write() argument
2792 struct isci_host *ihost = sas_ha->lldd_ha; in isci_gpio_write()
A Dphy.c1404 iphy->sas_phy.ha = &ihost->sas_ha; in isci_phy_init()
/linux/Documentation/scsi/
A Dlibsas.rst154 struct sas_ha_struct sas_ha;
245 my_ha->sas_ha.sas_addr = &my_ha->sas_addr[0];
252 my_ha->sas_ha.sas_phy = sas_phys;
253 my_ha->sas_ha.sas_port = sas_ports;
254 my_ha->sas_ha.num_phys = MAX_PHYS;
256 my_ha->sas_ha.lldd_port_formed = my_port_formed;
258 my_ha->sas_ha.lldd_dev_found = my_dev_found;
259 my_ha->sas_ha.lldd_dev_gone = my_dev_gone;
267 my_ha->sas_ha.lldd_I_T_nexus_reset= NULL; (2)
268 my_ha->sas_ha.lldd_lu_reset = my_lu_reset;
[all …]
/linux/drivers/scsi/aic94xx/
A Daic94xx_init.c670 asd_ha->sas_ha.lldd_module = THIS_MODULE; in asd_register_sas_ha()
678 asd_ha->sas_ha.sas_phy = sas_phys; in asd_register_sas_ha()
679 asd_ha->sas_ha.sas_port= sas_ports; in asd_register_sas_ha()
680 asd_ha->sas_ha.num_phys= ASD_MAX_PHYS; in asd_register_sas_ha()
682 return sas_register_ha(&asd_ha->sas_ha); in asd_register_sas_ha()
689 err = sas_unregister_ha(&asd_ha->sas_ha); in asd_unregister_sas_ha()
692 scsi_host_put(asd_ha->sas_ha.core.shost); in asd_unregister_sas_ha()
694 kfree(asd_ha->sas_ha.sas_phy); in asd_unregister_sas_ha()
695 kfree(asd_ha->sas_ha.sas_port); in asd_unregister_sas_ha()
735 asd_ha->sas_ha.lldd_ha = asd_ha; in asd_pci_probe()
[all …]
A Daic94xx_scb.c245 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; in asd_link_reset_err_tasklet() local
246 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet()
298 struct sas_ha_struct *sas_ha = &ascb->ha->sas_ha; in asd_primitive_rcvd_tasklet() local
299 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet()
403 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; in escb_tasklet_complete() local
407 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
A Daic94xx.h71 int asd_clear_nexus_ha(struct sas_ha_struct *sas_ha);
A Daic94xx_tmf.c115 int asd_clear_nexus_ha(struct sas_ha_struct *sas_ha) in asd_clear_nexus_ha() argument
117 struct asd_ha_struct *asd_ha = sas_ha->lldd_ha; in asd_clear_nexus_ha()
A Daic94xx_hwi.h184 struct sas_ha_struct sas_ha; member
A Daic94xx_hwi.c31 return sas_request_addr(asd_ha->sas_ha.core.shost, in asd_get_user_sas_addr()
127 phy->sas_phy.ha = &asd_ha->sas_ha; in asd_init_phys()
/linux/include/scsi/
A Dlibsas.h661 extern void sas_prep_resume_ha(struct sas_ha_struct *sas_ha);
662 extern void sas_resume_ha(struct sas_ha_struct *sas_ha);
663 extern void sas_suspend_ha(struct sas_ha_struct *sas_ha);
/linux/drivers/scsi/hisi_sas/
A Dhisi_sas_main.c998 struct sas_ha_struct *sas_ha = sas_phy->ha; in hisi_sas_port_notify_formed() local
999 struct hisi_hba *hisi_hba = sas_ha->lldd_ha; in hisi_sas_port_notify_formed()
1151 struct sas_ha_struct *sas_ha = sas_phy->ha; in hisi_sas_control_phy() local
1152 struct hisi_hba *hisi_hba = sas_ha->lldd_ha; in hisi_sas_control_phy()
1807 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_debug_I_T_nexus_reset() local
1817 sas_ha->sas_phy[local_phy->number]; in hisi_sas_debug_I_T_nexus_reset()
1835 sas_ha->sas_phy[local_phy->number]; in hisi_sas_debug_I_T_nexus_reset()
1958 static int hisi_sas_clear_nexus_ha(struct sas_ha_struct *sas_ha) in hisi_sas_clear_nexus_ha() argument
1960 struct hisi_hba *hisi_hba = sas_ha->lldd_ha; in hisi_sas_clear_nexus_ha()
/linux/drivers/scsi/mvsas/
A Dmv_sas.c1075 struct sas_ha_struct *sas_ha = sas_phy->ha; in mvs_port_notify_formed() local
1084 while (sas_ha->sas_phy[i]) { in mvs_port_notify_formed()
1085 if (sas_ha->sas_phy[i] == sas_phy) in mvs_port_notify_formed()
1089 hi = i/((struct mvs_prv_info *)sas_ha->lldd_ha)->n_phy; in mvs_port_notify_formed()
1090 mvi = ((struct mvs_prv_info *)sas_ha->lldd_ha)->mvi[hi]; in mvs_port_notify_formed()
/linux/drivers/scsi/pm8001/
A Dpm8001_sas.c1361 struct sas_ha_struct *sas_ha = sas_phy->ha; in pm8001_port_formed() local
1362 struct pm8001_hba_info *pm8001_ha = sas_ha->lldd_ha; in pm8001_port_formed()
A Dpm8001_hwi.c3762 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in mpi_hw_event() local
3764 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event()
A Dpm80xx_hwi.c3593 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in mpi_hw_event() local
3596 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event()

Completed in 91 milliseconds