Home
last modified time | relevance | path

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

12

/drivers/scsi/libsas/
Dsas_init.c96 int sas_register_ha(struct sas_ha_struct *sas_ha) in sas_register_ha() argument
101 mutex_init(&sas_ha->disco_mutex); in sas_register_ha()
102 spin_lock_init(&sas_ha->phy_port_lock); in sas_register_ha()
103 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr); in sas_register_ha()
105 set_bit(SAS_HA_REGISTERED, &sas_ha->state); in sas_register_ha()
106 spin_lock_init(&sas_ha->lock); in sas_register_ha()
107 mutex_init(&sas_ha->drain_mutex); in sas_register_ha()
108 init_waitqueue_head(&sas_ha->eh_wait_q); in sas_register_ha()
109 INIT_LIST_HEAD(&sas_ha->defer_q); in sas_register_ha()
110 INIT_LIST_HEAD(&sas_ha->eh_dev_q); in sas_register_ha()
[all …]
Dsas_host_smp.c19 static void sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data, in sas_host_smp_discover() argument
25 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()
34 memcpy(resp_data + 16, sas_ha->sas_addr, SAS_ADDR_SIZE); in sas_host_smp_discover()
35 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr, 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()
113 static int sas_host_smp_write_gpio(struct sas_ha_struct *sas_ha, u8 *resp_data, in sas_host_smp_write_gpio() argument
117 struct sas_internal *i = to_sas_internal(sas_ha->core.shost->transportt); in sas_host_smp_write_gpio()
[all …]
Dsas_port.c17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() local
20 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && in phy_is_wideport_member()
30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() local
31 struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); in sas_resume_port()
80 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port() local
84 to_sas_internal(sas_ha->core.shost->transportt); in sas_form_port()
95 wake_up(&sas_ha->eh_wait_q); in sas_form_port()
106 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); in sas_form_port()
107 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
108 port = sas_ha->sas_port[i]; in sas_form_port()
[all …]
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 …]
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);
57 int sas_init_events(struct sas_ha_struct *sas_ha);
Dsas_ata.c87 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_ata_task_done() local
94 if (test_bit(SAS_HA_FROZEN, &sas_ha->state)) in sas_ata_task_done()
170 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_ata_qc_issue() local
171 struct Scsi_Host *host = sas_ha->core.shost; in sas_ata_qc_issue()
740 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in sas_ata_strategy_handler() local
752 sas_disable_revalidation(sas_ha); in sas_ata_strategy_handler()
754 spin_lock_irq(&sas_ha->phy_port_lock); in sas_ata_strategy_handler()
755 for (i = 0; i < sas_ha->num_phys; i++) { in sas_ata_strategy_handler()
756 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_ata_strategy_handler()
774 spin_unlock_irq(&sas_ha->phy_port_lock); in sas_ata_strategy_handler()
[all …]
Dsas_event.c176 int sas_init_events(struct sas_ha_struct *sas_ha) in sas_init_events() argument
178 sas_ha->notify_port_event = sas_notify_port_event; in sas_init_events()
179 sas_ha->notify_phy_event = sas_notify_phy_event; in sas_init_events()
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()
194 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_notify_lldd_dev_gone() local
195 struct Scsi_Host *shost = sas_ha->core.shost; in sas_notify_lldd_dev_gone()
Dsas_scsi_host.c207 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(cmd->device->host); in sas_eh_finish_cmd() local
221 list_move_tail(&cmd->eh_entry, &sas_ha->eh_ata_q); in sas_eh_finish_cmd()
229 scsi_eh_finish_cmd(cmd, &sas_ha->eh_done_q); in sas_eh_finish_cmd()
/drivers/scsi/isci/
Dinit.c137 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in isci_show_id() local
138 struct isci_host *ihost = container_of(sas_ha, typeof(*ihost), sas_ha); in isci_show_id()
230 struct sas_ha_struct *sas_ha = &(isci_host->sas_ha); in isci_register_sas_ha() local
246 sas_ha->sas_ha_name = DRV_NAME; in isci_register_sas_ha()
247 sas_ha->lldd_module = THIS_MODULE; in isci_register_sas_ha()
248 sas_ha->sas_addr = &isci_host->phys[0].sas_addr[0]; in isci_register_sas_ha()
255 sas_ha->sas_phy = sas_phys; in isci_register_sas_ha()
256 sas_ha->sas_port = sas_ports; in isci_register_sas_ha()
257 sas_ha->num_phys = SCI_MAX_PHYS; in isci_register_sas_ha()
259 sas_ha->strict_wide_ports = 1; in isci_register_sas_ha()
[all …]
Dhost.h198 struct sas_ha_struct sas_ha; member
309 return ihost->sas_ha.core.shost; in to_shost()
Dport.c167 ihost->sas_ha.notify_port_event(&iphy->sas_phy, PORTE_BROADCAST_RCVD); in isci_port_bc_change_received()
226 isci_host->sas_ha.notify_port_event(&iphy->sas_phy, in isci_port_link_up()
273 isci_host->sas_ha.notify_phy_event(&isci_phy->sas_phy, in isci_port_link_down()
Dhost.c2792 int isci_gpio_write(struct sas_ha_struct *sas_ha, u8 reg_type, u8 reg_index, in isci_gpio_write() argument
2795 struct isci_host *ihost = sas_ha->lldd_ha; in isci_gpio_write()
Dphy.c1408 iphy->sas_phy.ha = &ihost->sas_ha; in isci_phy_init()
/drivers/scsi/aic94xx/
Daic94xx_scb.c71 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; in asd_phy_event_tasklet() local
84 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL); in asd_phy_event_tasklet()
92 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in asd_phy_event_tasklet()
97 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); in asd_phy_event_tasklet()
105 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR); in asd_phy_event_tasklet()
225 struct sas_ha_struct *sas_ha = phy->sas_phy.ha; in asd_bytes_dmaed_tasklet() local
237 sas_ha->notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED); in asd_bytes_dmaed_tasklet()
245 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()
273 sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR); in asd_link_reset_err_tasklet()
[all …]
Daic94xx_init.c664 asd_ha->sas_ha.sas_ha_name = (char *) asd_ha->name; in asd_register_sas_ha()
665 asd_ha->sas_ha.lldd_module = THIS_MODULE; in asd_register_sas_ha()
666 asd_ha->sas_ha.sas_addr = &asd_ha->hw_prof.sas_addr[0]; in asd_register_sas_ha()
673 asd_ha->sas_ha.sas_phy = sas_phys; in asd_register_sas_ha()
674 asd_ha->sas_ha.sas_port= sas_ports; in asd_register_sas_ha()
675 asd_ha->sas_ha.num_phys= ASD_MAX_PHYS; in asd_register_sas_ha()
677 return sas_register_ha(&asd_ha->sas_ha); in asd_register_sas_ha()
684 err = sas_unregister_ha(&asd_ha->sas_ha); in asd_unregister_sas_ha()
686 sas_remove_host(asd_ha->sas_ha.core.shost); in asd_unregister_sas_ha()
687 scsi_host_put(asd_ha->sas_ha.core.shost); in asd_unregister_sas_ha()
[all …]
Daic94xx.h79 int asd_clear_nexus_ha(struct sas_ha_struct *sas_ha);
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()
Daic94xx_hwi.h184 struct sas_ha_struct sas_ha; member
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()
/drivers/scsi/mvsas/
Dmv_sas.c223 struct sas_ha_struct *sas_ha; in mvs_bytes_dmaed() local
232 sas_ha = mvi->sas; in mvs_bytes_dmaed()
233 sas_ha->notify_phy_event(sas_phy, PHYE_OOB_DONE); in mvs_bytes_dmaed()
1077 struct sas_ha_struct *sas_ha = sas_phy->ha; in mvs_port_notify_formed() local
1086 while (sas_ha->sas_phy[i]) { in mvs_port_notify_formed()
1087 if (sas_ha->sas_phy[i] == sas_phy) in mvs_port_notify_formed()
1091 hi = i/((struct mvs_prv_info *)sas_ha->lldd_ha)->n_phy; in mvs_port_notify_formed()
1092 mvi = ((struct mvs_prv_info *)sas_ha->lldd_ha)->mvi[hi]; in mvs_port_notify_formed()
1883 struct sas_ha_struct *sas_ha = mvi->sas; in mvs_work_queue() local
1898 sas_ha->notify_phy_event(sas_phy, in mvs_work_queue()
[all …]
/drivers/scsi/pm8001/
Dpm8001_hwi.c3384 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in hw_event_sas_phy_up() local
3431 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sas_phy_up()
3463 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in hw_event_sata_phy_up() local
3476 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sata_phy_up()
3805 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in mpi_hw_event() local
3807 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event()
3842 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); in mpi_hw_event()
3847 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL); in mpi_hw_event()
3857 sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR); in mpi_hw_event()
3869 sas_ha->notify_port_event(sas_phy, PORTE_BROADCAST_RCVD); in mpi_hw_event()
[all …]
Dpm80xx_hwi.c2932 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in hw_event_sas_phy_up() local
2981 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sas_phy_up()
3015 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in hw_event_sata_phy_up() local
3029 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sata_phy_up()
3113 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in hw_event_phy_down() local
3115 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL); in hw_event_phy_down()
3192 struct sas_ha_struct *sas_ha = pm8001_ha->sas; in mpi_hw_event() local
3195 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event()
3215 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); in mpi_hw_event()
3234 sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR); in mpi_hw_event()
[all …]
Dpm8001_sas.c160 struct sas_ha_struct *sas_ha; in pm8001_phy_control() local
209 sas_ha = pm8001_ha->sas; in pm8001_phy_control()
211 sas_ha->notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
218 sas_ha = pm8001_ha->sas; in pm8001_phy_control()
220 sas_ha->notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c621 struct sas_ha_struct *sas_ha; in hisi_sas_bytes_dmaed() local
626 sas_ha = &hisi_hba->sha; in hisi_sas_bytes_dmaed()
627 sas_ha->notify_phy_event(sas_phy, PHYE_OOB_DONE); in hisi_sas_bytes_dmaed()
655 sas_ha->notify_port_event(sas_phy, PORTE_BYTES_DMAED); in hisi_sas_bytes_dmaed()
973 struct sas_ha_struct *sas_ha = sas_phy->ha; in hisi_sas_port_notify_formed() local
974 struct hisi_hba *hisi_hba = sas_ha->lldd_ha; in hisi_sas_port_notify_formed()
1119 struct sas_ha_struct *sas_ha = sas_phy->ha; in hisi_sas_control_phy() local
1120 struct hisi_hba *hisi_hba = sas_ha->lldd_ha; in hisi_sas_control_phy()
1403 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_rescan_topology() local
1424 sas_ha->notify_port_event(sas_phy, in hisi_sas_rescan_topology()
[all …]

12