Home
last modified time | relevance | path

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

12

/drivers/scsi/aic94xx/
A Daic94xx_scb.c38 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode() local
55 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode()
91 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
159 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_form_port() local
206 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_deform_port() local
246 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet() local
271 sas_phy_disconnected(sas_phy); in asd_link_reset_err_tasklet()
299 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet() local
407 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete() local
570 sas_phy_disconnected(sas_phy); in escb_tasklet_complete()
[all …]
A Daic94xx_hwi.c62 if (phy->sas_phy.role & PHY_ROLE_TARGET) in asd_init_phy_identify()
72 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_init_phy() local
74 sas_phy->enabled = 1; in asd_init_phy()
75 sas_phy->iproto = SAS_PROTOCOL_ALL; in asd_init_phy()
76 sas_phy->tproto = 0; in asd_init_phy()
77 sas_phy->role = PHY_ROLE_INITIATOR; in asd_init_phy()
78 sas_phy->oob_mode = OOB_NOT_CONNECTED; in asd_init_phy()
121 phy->sas_phy.enabled = 0; in asd_init_phys()
122 phy->sas_phy.id = i; in asd_init_phys()
125 phy->sas_phy.ha = &asd_ha->sas_ha; in asd_init_phys()
[all …]
/drivers/scsi/hisi_sas/
A Dhisi_sas_main.c653 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_bytes_dmaed() local
661 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_bytes_dmaed()
945 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phyup_work_common() local
983 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_linkreset_work() local
1065 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_init() local
1251 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_set_linkrate() local
1445 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_rescan_topology() local
2086 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_disconnected() local
2087 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_phy_disconnected()
2106 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_down() local
[all …]
A Dhisi_sas_v2_hw.c1231 struct asd_sas_phy *sas_phy = &phy->sas_phy; in init_reg_v2_hw() local
1234 if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate < in init_reg_v2_hw()
1562 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_get_events_v2_hw() local
1563 struct sas_phy *sphy = sas_phy->phy; in phy_get_events_v2_hw()
1584 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phys_init_v2_hw() local
1586 if (!sas_phy->phy->enabled) in phys_init_v2_hw()
2588 struct asd_sas_phy *sas_phy; in hisi_sas_internal_abort_quirk_timeout() local
2599 int phy_no = sas_phy->id; in hisi_sas_internal_abort_quirk_timeout()
2653 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v2_hw() local
3204 struct asd_sas_phy *sas_phy = &phy->sas_phy; in sata_int_v2_hw() local
[all …]
A Dhisi_sas_v1_hw.c1320 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_phyup_v1_hw() local
1321 int i, phy_no = sas_phy->id; in int_phyup_v1_hw()
1323 u32 *frame_rcvd = (u32 *)sas_phy->frame_rcvd; in int_phyup_v1_hw()
1359 sas_phy->linkrate = link_rate; in int_phyup_v1_hw()
1360 sas_phy->oob_mode = SAS_OOB_MODE; in int_phyup_v1_hw()
1361 memcpy(sas_phy->attached_sas_addr, in int_phyup_v1_hw()
1399 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_bcast_v1_hw() local
1401 int phy_no = sas_phy->id; in int_bcast_v1_hw()
1428 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_abnormal_v1_hw() local
1430 int phy_no = sas_phy->id; in int_abnormal_v1_hw()
A Dhisi_sas_v3_hw.c715 struct asd_sas_phy *sas_phy = &phy->sas_phy; in init_reg_v3_hw() local
720 if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate < in init_reg_v3_hw()
1127 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phys_init_v3_hw() local
1129 if (!sas_phy->phy->enabled) in phys_init_v3_hw()
1590 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v3_hw() local
1859 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_get_events_v3_hw() local
1860 struct sas_phy *sphy = sas_phy->phy; in phy_get_events_v3_hw()
1923 struct asd_sas_phy *sas_phy = &phy->sas_phy; in handle_chl_int2_v3_hw() local
1924 struct sas_phy *sphy = sas_phy->phy; in handle_chl_int2_v3_hw()
4990 sha->sas_phy = arr_phy; in hisi_sas_v3_probe()
[all …]
/drivers/scsi/libsas/
A Dsas_host_smp.c22 struct sas_phy *phy; in sas_host_smp_discover()
31 phy = sas_ha->sas_phy[phy_id]->phy; 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()
151 if (!sas_ha->sas_phy[phy_id]->port) in sas_report_phy_sata()
154 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_report_phy_sata()
156 sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd; in sas_report_phy_sata()
172 &sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i]; in sas_report_phy_sata()
[all …]
A Dsas_init.c179 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors()
184 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors()
233 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset()
254 int sas_phy_enable(struct sas_phy *phy, int enable) in sas_phy_enable()
288 int sas_phy_reset(struct sas_phy *phy, int hard_reset) in sas_phy_reset()
318 static int sas_set_phy_speed(struct sas_phy *phy, in sas_set_phy_speed()
366 struct asd_sas_phy *phy = ha->sas_phy[i]; in sas_prep_resume_ha()
379 struct asd_sas_phy *phy = ha->sas_phy[i]; in phys_suspended()
429 struct asd_sas_phy *phy = ha->sas_phy[i]; in _sas_resume_ha()
485 static void sas_phy_release(struct sas_phy *phy) in sas_phy_release()
[all …]
A Dsas_internal.h32 struct sas_phy *phy;
89 int sas_smp_get_phy_events(struct sas_phy *phy);
155 struct sas_phy *phy = dev->phy; in sas_fail_probe()
192 struct sas_phy *phy = p->phy; in sas_phy_set_target()
A Dsas_event.c103 struct asd_sas_phy *sas_phy; in sas_enable_revalidation() local
114 sas_phy = container_of(port->phy_list.next, struct asd_sas_phy, in sas_enable_revalidation()
117 sas_notify_port_event(sas_phy, in sas_enable_revalidation()
A DMakefile11 sas_phy.o \
A Dsas_ata.c304 struct sas_phy *phy = sas_get_local_phy(dev); in smp_ata_check_ready_type()
332 struct sas_phy *phy = sas_get_local_phy(dev); in smp_ata_check_ready()
403 struct sas_phy *phy; in sas_ata_wait_after_reset()
551 struct sas_phy *local_phy = sas_get_local_phy(dev); in sas_ata_prereset()
678 struct sas_phy *cphy = child->phy; in sas_ata_add_dev()
/drivers/scsi/mvsas/
A Dmv_sas.c71 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno()
162 while (sha->sas_phy[i]) { in mvs_phy_control()
163 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control()
213 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_bytes_dmaed() local
225 if (sas_phy->phy) { in mvs_bytes_dmaed()
226 struct sas_phy *sphy = sas_phy->phy; in mvs_bytes_dmaed()
298 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number]; in mvs_task_prep_smp() local
997 struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy; in mvs_update_phyinfo() local
1069 if (sas_ha->sas_phy[i] == sas_phy) in mvs_port_notify_formed()
[all …]
A Dmv_init.c66 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_phy_init() local
72 sas_phy->iproto = SAS_PROTOCOL_ALL; in mvs_phy_init()
73 sas_phy->tproto = 0; in mvs_phy_init()
74 sas_phy->role = PHY_ROLE_INITIATOR; in mvs_phy_init()
75 sas_phy->oob_mode = OOB_NOT_CONNECTED; in mvs_phy_init()
78 sas_phy->id = phy_id; in mvs_phy_init()
79 sas_phy->sas_addr = &mvi->sas_addr[0]; in mvs_phy_init()
82 sas_phy->lldd_phy = phy; in mvs_phy_init()
400 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
436 &mvi->phy[i].sas_phy; in mvs_post_sas_ha_init()
[all …]
A Dmv_sas.h60 #define MVS_PHY_ID (1U << sas_phy->id)
205 struct asd_sas_phy sas_phy; member
428 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
436 void mvs_port_formed(struct asd_sas_phy *sas_phy);
437 void mvs_port_deformed(struct asd_sas_phy *sas_phy);
/drivers/scsi/isci/
A Dphy.c1400 iphy->sas_phy.enabled = 0; in isci_phy_init()
1401 iphy->sas_phy.id = index; in isci_phy_init()
1404 iphy->sas_phy.ha = &ihost->sas_ha; in isci_phy_init()
1405 iphy->sas_phy.lldd_phy = iphy; in isci_phy_init()
1406 iphy->sas_phy.enabled = 1; in isci_phy_init()
1407 iphy->sas_phy.iproto = SAS_PROTOCOL_ALL; in isci_phy_init()
1408 iphy->sas_phy.tproto = 0; in isci_phy_init()
1409 iphy->sas_phy.role = PHY_ROLE_INITIATOR; in isci_phy_init()
1430 struct isci_phy *iphy = sas_phy->lldd_phy; in isci_phy_control()
1464 struct sas_phy *phy = sas_phy->phy; in isci_phy_control()
[all …]
A Dphy.h98 struct asd_sas_phy sas_phy; member
106 static inline struct isci_phy *to_iphy(struct asd_sas_phy *sas_phy) in to_iphy() argument
108 struct isci_phy *iphy = container_of(sas_phy, typeof(*iphy), sas_phy); in to_iphy()
A Dport.c165 __func__, iphy, &iphy->sas_phy); in isci_port_bc_change_received()
167 sas_notify_port_event(&iphy->sas_phy, in isci_port_bc_change_received()
191 iphy->sas_phy.oob_mode = SATA_OOB_MODE; in isci_port_link_up()
206 memcpy(&iphy->sas_phy.attached_sas_addr, in isci_port_link_up()
209 iphy->sas_phy.oob_mode = SAS_OOB_MODE; in isci_port_link_up()
213 memcpy(iphy->sas_phy.attached_sas_addr, in isci_port_link_up()
227 sas_notify_port_event(&iphy->sas_phy, in isci_port_link_up()
252 if (isci_phy->sas_phy.port && in isci_port_link_down()
253 isci_phy->sas_phy.port->num_phys == 1) { in isci_port_link_down()
273 sas_phy_disconnected(&isci_phy->sas_phy); in isci_port_link_down()
[all …]
/drivers/scsi/smartpqi/
A Dsmartpqi_sas_transport.c23 struct sas_phy *phy; in pqi_alloc_sas_phy()
45 struct sas_phy *phy = pqi_sas_phy->phy; in pqi_free_sas_phy()
58 struct sas_phy *phy; in pqi_sas_port_add_phy()
317 static int pqi_sas_get_linkerrors(struct sas_phy *phy) in pqi_sas_get_linkerrors()
428 static int pqi_sas_phy_reset(struct sas_phy *phy, int hard_reset) in pqi_sas_phy_reset()
433 static int pqi_sas_phy_enable(struct sas_phy *phy, int enable) in pqi_sas_phy_enable()
438 static int pqi_sas_phy_setup(struct sas_phy *phy) in pqi_sas_phy_setup()
443 static void pqi_sas_phy_release(struct sas_phy *phy) in pqi_sas_phy_release()
447 static int pqi_sas_phy_speed(struct sas_phy *phy, in pqi_sas_phy_speed()
/drivers/scsi/pm8001/
A Dpm8001_hwi.c2997 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_bytes_dmaed() local
3019 struct sas_phy *sas_phy = phy->sas_phy.phy; in pm8001_get_lrate_mode() local
3035 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in pm8001_get_lrate_mode()
3062 addr += phy->sas_phy.id; in pm8001_get_attached_sas_addr()
3518 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3564 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3600 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3611 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3622 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3633 sas_phy_disconnected(sas_phy); in mpi_hw_event()
[all …]
A Dpm8001_sas.c218 int rc = 0, phy_id = sas_phy->id; in pm8001_phy_control()
224 pm8001_ha = sas_phy->ha->lldd_ha; in pm8001_phy_control()
282 sas_phy_disconnected(&phy->sas_phy); in pm8001_phy_control()
283 sas_notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
290 sas_phy_disconnected(&phy->sas_phy); in pm8001_phy_control()
291 sas_notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
308 struct sas_phy *phy = sas_phy->phy; in pm8001_phy_control()
864 struct sas_phy *phy; in pm8001_I_T_nexus_reset()
913 struct sas_phy *phy; in pm8001_I_T_nexus_event_handler()
1212 struct sas_ha_struct *sas_ha = sas_phy->ha; in pm8001_port_formed()
[all …]
A Dpm8001_init.c161 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_phy_init() local
167 sas_phy->iproto = SAS_PROTOCOL_ALL; in pm8001_phy_init()
168 sas_phy->tproto = 0; in pm8001_phy_init()
169 sas_phy->role = PHY_ROLE_INITIATOR; in pm8001_phy_init()
170 sas_phy->oob_mode = OOB_NOT_CONNECTED; in pm8001_phy_init()
172 sas_phy->id = phy_id; in pm8001_phy_init()
176 sas_phy->lldd_phy = phy; in pm8001_phy_init()
622 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
655 sha->sas_phy[i] = &pm8001_ha->phy[i].sas_phy; in pm8001_post_sas_ha_init()
657 sha->sas_phy[i]->sas_addr = in pm8001_post_sas_ha_init()
[all …]
A Dpm80xx_hwi.c3169 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_port_recover()
3241 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up()
3290 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up()
3346 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3370 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3467 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3498 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3519 sas_phy_disconnected(&phy->sas_phy); in mpi_hw_event()
3590 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3602 sas_phy_disconnected(sas_phy); in mpi_hw_event()
[all …]
/drivers/scsi/
A Dscsi_transport_sas.c654 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_setup()
688 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_release()
713 struct sas_phy *phy; in sas_phy_alloc()
745 int sas_phy_add(struct sas_phy *phy) in sas_phy_add()
774 void sas_phy_free(struct sas_phy *phy) in sas_phy_free()
789 sas_phy_delete(struct sas_phy *phy) in sas_phy_delete()
869 struct sas_phy *phy) in sas_port_create_link()
887 struct sas_phy *phy) in sas_port_delete_link()
1023 struct sas_phy *phy, *tmp_phy; in sas_port_delete()
1071 struct sas_phy *phy; in sas_port_get_phy()
[all …]
/drivers/scsi/mpt3sas/
A Dmpt3sas_transport.c70 _transport_get_port_id_by_sas_phy(struct sas_phy *phy) in _transport_get_port_id_by_sas_phy()
1021 struct sas_phy *phy; in mpt3sas_transport_add_host_phy()
1091 struct sas_phy *phy; in mpt3sas_transport_add_expander_phy()
1217 phy_to_ioc(struct sas_phy *phy) in phy_to_ioc()
1267 struct sas_phy *phy) in _transport_get_expander_phy_error_log()
1416 _transport_get_linkerrors(struct sas_phy *phy) in _transport_get_linkerrors()
1558 struct sas_phy *phy, u8 phy_operation) in _transport_expander_phy_control()
1705 _transport_phy_reset(struct sas_phy *phy, int hard_reset) in _transport_phy_reset()
1759 _transport_phy_enable(struct sas_phy *phy, int enable) in _transport_phy_enable()
1897 _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) in _transport_phy_speed()

Completed in 757 milliseconds

12