Home
last modified time | relevance | path

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

123

/linux-6.15/drivers/scsi/aic94xx/
H 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 …]
H 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 …]
/linux-6.15/include/scsi/
H A Dscsi_transport_sas.h60 struct sas_phy { struct
89 container_of((d), struct sas_phy, dev) argument
175 int (*get_linkerrors)(struct sas_phy *);
178 int (*phy_reset)(struct sas_phy *, int);
179 int (*phy_enable)(struct sas_phy *, int);
180 int (*phy_setup)(struct sas_phy *);
181 void (*phy_release)(struct sas_phy *);
192 extern void sas_phy_free(struct sas_phy *);
193 extern int sas_phy_add(struct sas_phy *);
194 extern void sas_phy_delete(struct sas_phy *);
[all …]
H A Dlibsas.h106 struct sas_phy *phy;
169 struct sas_phy *phy;
304 struct sas_phy *phy;
369 struct asd_sas_phy **sas_phy; /* array of valid pointers, must be set */ member
423 static inline void sas_put_local_phy(struct sas_phy *phy) in sas_put_local_phy()
682 int sas_phy_reset(struct sas_phy *phy, int hard_reset);
683 int sas_phy_enable(struct sas_phy *phy, int enable);
712 struct sas_phy *sas_get_local_phy(struct domain_device *dev);
/linux-6.15/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c645 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_bytes_dmaed() local
653 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_bytes_dmaed()
937 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phyup_work_common() local
975 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_linkreset_work() local
1057 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_init() local
1243 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_set_linkrate() local
1437 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_rescan_topology() local
2098 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_disconnected() local
2099 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_phy_disconnected()
2118 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_down() local
[all …]
H 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()
2587 struct asd_sas_phy *sas_phy; in hisi_sas_internal_abort_quirk_timeout() local
2598 int phy_no = sas_phy->id; in hisi_sas_internal_abort_quirk_timeout()
2652 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v2_hw() local
3203 struct asd_sas_phy *sas_phy = &phy->sas_phy; in sata_int_v2_hw() local
[all …]
H 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()
/linux-6.15/drivers/scsi/libsas/
H 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 …]
H 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 …]
H 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()
H 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()
H A DMakefile11 sas_phy.o \
/linux-6.15/drivers/scsi/mvsas/
H 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 …]
H 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 …]
H 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);
/linux-6.15/drivers/scsi/isci/
H 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 …]
H 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()
H 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 …]
/linux-6.15/drivers/scsi/smartpqi/
H 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()
/linux-6.15/drivers/scsi/pm8001/
H 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 …]
H 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 …]
H 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 …]
H A Dpm80xx_hwi.c3122 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_port_recover()
3194 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up()
3243 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up()
3299 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3323 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3420 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3451 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3472 sas_phy_disconnected(&phy->sas_phy); in mpi_hw_event()
3543 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3555 sas_phy_disconnected(sas_phy); in mpi_hw_event()
[all …]
/linux-6.15/drivers/scsi/
H A Dscsi_transport_sas.c652 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_setup()
686 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_release()
711 struct sas_phy *phy; in sas_phy_alloc()
743 int sas_phy_add(struct sas_phy *phy) in sas_phy_add()
772 void sas_phy_free(struct sas_phy *phy) in sas_phy_free()
787 sas_phy_delete(struct sas_phy *phy) in sas_phy_delete()
867 struct sas_phy *phy) in sas_port_create_link()
885 struct sas_phy *phy) in sas_port_delete_link()
1021 struct sas_phy *phy, *tmp_phy; in sas_port_delete()
1069 struct sas_phy *phy; in sas_port_get_phy()
[all …]
/linux-6.15/Documentation/scsi/
H A Dlibsas.rst46 ``struct sas_phy``
54 struct sas_phy sas_phy;
62 initialize the sas_phy struct, along with your own
177 sas_phy
183 - the number of phys present in the sas_phy array,
198 void (*lldd_port_formed)(struct sas_phy *);
199 void (*lldd_port_deformed)(struct sas_phy *);
228 int (*lldd_control_phy)(struct sas_phy *, enum phy_func);
241 static struct sas_phy *sas_phys[MAX_PHYS];
247 sas_phys[i] = &my_ha->phys[i].sas_phy;
[all …]

123