Home
last modified time | relevance | path

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

123

/linux/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.c72 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->class = SAS; in asd_init_phy()
76 sas_phy->iproto = SAS_PROTOCOL_ALL; in asd_init_phy()
77 sas_phy->tproto = 0; in asd_init_phy()
78 sas_phy->type = PHY_TYPE_PHYSICAL; in asd_init_phy()
79 sas_phy->role = PHY_ROLE_INITIATOR; in asd_init_phy()
123 phy->sas_phy.enabled = 0; in asd_init_phys()
124 phy->sas_phy.id = i; in asd_init_phys()
127 phy->sas_phy.ha = &asd_ha->sas_ha; in asd_init_phys()
[all …]
/linux/include/scsi/
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 …]
A Dlibsas.h116 struct sas_phy *phy;
179 struct sas_phy *phy;
315 struct sas_phy *phy;
387 struct asd_sas_phy **sas_phy; /* array of valid pointers, must be set */ member
443 static inline void sas_put_local_phy(struct sas_phy *phy) in sas_put_local_phy()
665 int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates);
666 int sas_phy_reset(struct sas_phy *phy, int hard_reset);
667 int sas_phy_enable(struct sas_phy *phy, int enable);
708 struct sas_phy *sas_get_local_phy(struct domain_device *dev);
/linux/drivers/scsi/hisi_sas/
A Dhisi_sas_main.c617 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_bytes_dmaed() local
631 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_bytes_dmaed()
868 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phyup_work() local
881 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_linkreset_work() local
943 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_init() local
1117 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_set_linkrate() local
1462 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_rescan_topology() local
2274 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_phy_disconnected() local
2275 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_phy_disconnected()
2294 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()
2587 int phy_no = sas_phy->id; in hisi_sas_internal_abort_quirk_timeout()
2640 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v2_hw() local
2815 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_bcast_v2_hw() local
3194 struct asd_sas_phy *sas_phy = &phy->sas_phy; in sata_int_v2_hw() local
[all …]
A Dhisi_sas_v1_hw.c1324 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_phyup_v1_hw() local
1325 int i, phy_no = sas_phy->id; in int_phyup_v1_hw()
1327 u32 *frame_rcvd = (u32 *)sas_phy->frame_rcvd; in int_phyup_v1_hw()
1363 sas_phy->linkrate = link_rate; in int_phyup_v1_hw()
1364 sas_phy->oob_mode = SAS_OOB_MODE; in int_phyup_v1_hw()
1365 memcpy(sas_phy->attached_sas_addr, in int_phyup_v1_hw()
1403 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_bcast_v1_hw() local
1405 int phy_no = sas_phy->id; in int_bcast_v1_hw()
1419 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, in int_bcast_v1_hw()
1434 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_abnormal_v1_hw() local
[all …]
A Dhisi_sas_v3_hw.c620 struct asd_sas_phy *sas_phy = &phy->sas_phy; in init_reg_v3_hw() local
625 if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate < in init_reg_v3_hw()
1031 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phys_init_v3_hw() local
1484 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v3_hw() local
1610 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_bcast_v3_hw() local
1742 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_get_events_v3_hw() local
1743 struct sas_phy *sphy = sas_phy->phy; in phy_get_events_v3_hw()
1806 struct asd_sas_phy *sas_phy = &phy->sas_phy; in handle_chl_int2_v3_hw() local
1807 struct sas_phy *sphy = sas_phy->phy; in handle_chl_int2_v3_hw()
4724 sha->sas_phy = arr_phy; in hisi_sas_v3_probe()
[all …]
/linux/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.c182 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors()
187 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors()
236 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset()
257 int sas_phy_enable(struct sas_phy *phy, int enable) in sas_phy_enable()
291 int sas_phy_reset(struct sas_phy *phy, int hard_reset) in sas_phy_reset()
321 int sas_set_phy_speed(struct sas_phy *phy, in sas_set_phy_speed()
368 struct asd_sas_phy *phy = ha->sas_phy[i]; in sas_prep_resume_ha()
381 struct asd_sas_phy *phy = ha->sas_phy[i]; in phys_suspended()
407 struct asd_sas_phy *phy = ha->sas_phy[i]; in sas_resume_ha()
443 static void sas_phy_release(struct sas_phy *phy) in sas_phy_release()
[all …]
A Dsas_event.c102 struct asd_sas_phy *sas_phy; in sas_enable_revalidation() local
110 sas_phy = container_of(port->phy_list.next, struct asd_sas_phy, in sas_enable_revalidation()
112 sas_notify_port_event(sas_phy, in sas_enable_revalidation()
A Dsas_internal.h31 struct sas_phy *phy;
77 int sas_smp_get_phy_events(struct sas_phy *phy);
144 struct sas_phy *phy = p->phy; in sas_phy_set_target()
/linux/drivers/scsi/mvsas/
A Dmv_sas.c73 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno()
171 while (sha->sas_phy[i]) { in mvs_phy_control()
172 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control()
222 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_bytes_dmaed() local
234 if (sas_phy->phy) { in mvs_bytes_dmaed()
235 struct sas_phy *sphy = sas_phy->phy; in mvs_bytes_dmaed()
307 struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number]; in mvs_task_prep_smp() local
1013 struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy; in mvs_update_phyinfo() local
1085 if (sas_ha->sas_phy[i] == sas_phy) in mvs_port_notify_formed()
[all …]
A Dmv_init.c82 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_phy_init() local
88 sas_phy->class = SAS; in mvs_phy_init()
89 sas_phy->iproto = SAS_PROTOCOL_ALL; in mvs_phy_init()
90 sas_phy->tproto = 0; in mvs_phy_init()
91 sas_phy->type = PHY_TYPE_PHYSICAL; in mvs_phy_init()
92 sas_phy->role = PHY_ROLE_INITIATOR; in mvs_phy_init()
96 sas_phy->id = phy_id; in mvs_phy_init()
100 sas_phy->lldd_phy = phy; in mvs_phy_init()
421 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
457 &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
435 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
446 void mvs_port_formed(struct asd_sas_phy *sas_phy);
447 void mvs_port_deformed(struct asd_sas_phy *sas_phy);
/linux/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.class = SAS; in isci_phy_init()
1408 iphy->sas_phy.iproto = SAS_PROTOCOL_ALL; in isci_phy_init()
1409 iphy->sas_phy.tproto = 0; in isci_phy_init()
1410 iphy->sas_phy.type = PHY_TYPE_PHYSICAL; in isci_phy_init()
1466 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 …]
/linux/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()
/linux/drivers/scsi/pm8001/
A Dpm8001_hwi.c3219 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_bytes_dmaed() local
3223 if (sas_phy->phy) { in pm8001_bytes_dmaed()
3224 struct sas_phy *sphy = sas_phy->phy; in pm8001_bytes_dmaed()
3250 struct sas_phy *sas_phy = phy->sas_phy.phy; in pm8001_get_lrate_mode() local
3270 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in pm8001_get_lrate_mode()
3297 addr += phy->sas_phy.id; in pm8001_get_attached_sas_addr()
3764 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3810 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3846 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3857 sas_phy_disconnected(sas_phy); in mpi_hw_event()
[all …]
A Dpm8001_init.c142 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_phy_init() local
146 sas_phy->class = SAS; in pm8001_phy_init()
147 sas_phy->iproto = SAS_PROTOCOL_ALL; in pm8001_phy_init()
148 sas_phy->tproto = 0; in pm8001_phy_init()
149 sas_phy->type = PHY_TYPE_PHYSICAL; in pm8001_phy_init()
153 sas_phy->id = phy_id; in pm8001_phy_init()
157 sas_phy->lldd_phy = phy; in pm8001_phy_init()
599 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
636 sha->sas_phy[i] = &pm8001_ha->phy[i].sas_phy; in pm8001_post_sas_ha_init()
638 sha->sas_phy[i]->sas_addr = in pm8001_post_sas_ha_init()
[all …]
A Dpm8001_sas.c158 int rc = 0, phy_id = sas_phy->id; in pm8001_phy_control()
164 pm8001_ha = sas_phy->ha->lldd_ha; in pm8001_phy_control()
209 sas_phy_disconnected(&phy->sas_phy); in pm8001_phy_control()
210 sas_notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
217 sas_phy_disconnected(&phy->sas_phy); in pm8001_phy_control()
218 sas_notify_phy_event(&phy->sas_phy, in pm8001_phy_control()
235 struct sas_phy *phy = sas_phy->phy; in pm8001_phy_control()
998 struct sas_phy *phy; in pm8001_I_T_nexus_reset()
1048 struct sas_phy *phy; in pm8001_I_T_nexus_event_handler()
1361 struct sas_ha_struct *sas_ha = sas_phy->ha; in pm8001_port_formed()
[all …]
A Dpm80xx_hwi.c3309 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_port_recover()
3381 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up()
3430 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up()
3482 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3503 sas_phy_disconnected(&phy->sas_phy); in hw_event_phy_down()
3596 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3628 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3647 sas_phy_disconnected(&phy->sas_phy); in mpi_hw_event()
3709 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3720 sas_phy_disconnected(sas_phy); in mpi_hw_event()
[all …]
/linux/drivers/scsi/
A Dscsi_transport_sas.c624 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_setup()
658 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_release()
683 struct sas_phy *phy; in sas_phy_alloc()
715 int sas_phy_add(struct sas_phy *phy) in sas_phy_add()
739 void sas_phy_free(struct sas_phy *phy) in sas_phy_free()
754 sas_phy_delete(struct sas_phy *phy) in sas_phy_delete()
834 struct sas_phy *phy) in sas_port_create_link()
852 struct sas_phy *phy) in sas_port_delete_link()
986 struct sas_phy *phy, *tmp_phy; in sas_port_delete()
1034 struct sas_phy *phy; in sas_port_get_phy()
[all …]
/linux/Documentation/scsi/
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 *);
229 int (*lldd_control_phy)(struct sas_phy *, enum phy_func);
242 static struct sas_phy *sas_phys[MAX_PHYS];
248 sas_phys[i] = &my_ha->phys[i].sas_phy;
[all …]

Completed in 106 milliseconds

123