/kernel/linux/linux-5.10/drivers/scsi/aic94xx/ |
D | aic94xx_scb.c | 38 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode() local 43 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 44 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 47 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 48 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 51 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() 52 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() 55 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode() 56 sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 57 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() [all …]
|
D | aic94xx_hwi.c | 60 if (phy->sas_phy.role & PHY_ROLE_INITIATOR) in asd_init_phy_identify() 61 phy->identify_frame->initiator_bits = phy->sas_phy.iproto; in asd_init_phy_identify() 62 if (phy->sas_phy.role & PHY_ROLE_TARGET) in asd_init_phy_identify() 63 phy->identify_frame->target_bits = phy->sas_phy.tproto; in asd_init_phy_identify() 66 phy->identify_frame->phy_id = phy->sas_phy.id; in asd_init_phy_identify() 71 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha; in asd_init_phy() 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->class = SAS; in asd_init_phy() 76 sas_phy->iproto = SAS_PROTOCOL_ALL; in asd_init_phy() [all …]
|
/kernel/linux/linux-5.10/include/scsi/ |
D | scsi_transport_sas.h | 59 struct sas_phy { struct 88 container_of((d), struct sas_phy, dev) argument 174 int (*get_linkerrors)(struct sas_phy *); 177 int (*phy_reset)(struct sas_phy *, int); 178 int (*phy_enable)(struct sas_phy *, int); 179 int (*phy_setup)(struct sas_phy *); 180 void (*phy_release)(struct sas_phy *); 181 int (*set_phy_speed)(struct sas_phy *, struct sas_phy_linkrates *); 190 extern struct sas_phy *sas_phy_alloc(struct device *, int); 191 extern void sas_phy_free(struct sas_phy *); [all …]
|
D | libsas.h | 116 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() 659 int sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates); 660 int sas_phy_reset(struct sas_phy *phy, int hard_reset); 701 struct sas_phy *sas_get_local_phy(struct domain_device *dev);
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
D | sas_host_smp.c | 22 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() 162 memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_report_phy_sata() [all …]
|
D | sas_init.c | 180 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors() 185 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors() 222 static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset) in transport_sas_phy_reset() 234 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset() 255 static int sas_phy_enable(struct sas_phy *phy, int enable) in sas_phy_enable() 268 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_phy_enable() 288 int sas_phy_reset(struct sas_phy *phy, int hard_reset) in sas_phy_reset() 304 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_phy_reset() 317 int sas_set_phy_speed(struct sas_phy *phy, in sas_set_phy_speed() 339 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_set_phy_speed() [all …]
|
D | sas_event.c | 102 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, PORTE_BROADCAST_RCVD); in sas_enable_revalidation()
|
D | sas_internal.h | 31 struct sas_phy *phy; 79 int sas_smp_get_phy_events(struct sas_phy *phy); 147 struct sas_phy *phy = p->phy; in sas_phy_set_target()
|
/kernel/linux/linux-5.10/drivers/scsi/mvsas/ |
D | mv_sas.c | 73 while (sha->sas_phy[j]) { in mvs_find_dev_mvi() 74 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi() 102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno() 103 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno() 163 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, in mvs_phy_control() argument 166 int rc = 0, phy_id = sas_phy->id; in mvs_phy_control() 168 struct sas_ha_struct *sha = sas_phy->ha; in mvs_phy_control() 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 [all …]
|
D | mv_init.c | 82 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_phy_init() local 87 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init() 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() 93 sas_phy->oob_mode = OOB_NOT_CONNECTED; in mvs_phy_init() 94 sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN; in mvs_phy_init() 96 sas_phy->id = phy_id; in mvs_phy_init() [all …]
|
D | mv_sas.h | 60 #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);
|
/kernel/linux/linux-5.10/drivers/scsi/isci/ |
D | phy.c | 994 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 996 spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1037 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1041 spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1404 iphy->sas_phy.enabled = 0; in isci_phy_init() 1405 iphy->sas_phy.id = index; in isci_phy_init() 1406 iphy->sas_phy.sas_addr = &iphy->sas_addr[0]; in isci_phy_init() 1407 iphy->sas_phy.frame_rcvd = (u8 *)&iphy->frame_rcvd; in isci_phy_init() 1408 iphy->sas_phy.ha = &ihost->sas_ha; in isci_phy_init() 1409 iphy->sas_phy.lldd_phy = iphy; in isci_phy_init() [all …]
|
D | phy.h | 98 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()
|
D | port.c | 165 __func__, iphy, &iphy->sas_phy); in isci_port_bc_change_received() 167 sas_notify_port_event_gfp(&iphy->sas_phy, in isci_port_bc_change_received() 184 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in isci_port_link_up() 191 iphy->sas_phy.oob_mode = SATA_OOB_MODE; in isci_port_link_up() 192 iphy->sas_phy.frame_rcvd_size = sizeof(struct dev_to_host_fis); 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() 210 iphy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame); in isci_port_link_up() 213 memcpy(iphy->sas_phy.attached_sas_addr, in isci_port_link_up() 220 iphy->sas_phy.phy->negotiated_linkrate = sci_phy_linkrate(iphy); in isci_port_link_up() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 20 static int hisi_sas_control_phy(struct asd_sas_phy *sas_phy, enum phy_func func, 624 struct asd_sas_phy *sas_phy = &phy->sas_phy; in hisi_sas_bytes_dmaed() local 630 !sas_phy->suspended) { in hisi_sas_bytes_dmaed() 635 sas_notify_phy_event(sas_phy, PHYE_OOB_DONE); in hisi_sas_bytes_dmaed() 637 if (sas_phy->phy) { in hisi_sas_bytes_dmaed() 638 struct sas_phy *sphy = sas_phy->phy; in hisi_sas_bytes_dmaed() 640 sphy->negotiated_linkrate = sas_phy->linkrate; in hisi_sas_bytes_dmaed() 662 sas_phy->frame_rcvd_size = phy->frame_rcvd_size; in hisi_sas_bytes_dmaed() 663 sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED); in hisi_sas_bytes_dmaed() 708 struct sas_phy *local_phy; in hisi_sas_init_device() [all …]
|
D | hisi_sas_v2_hw.c | 1231 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() 1238 enum sas_linkrate max = 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() 2576 struct asd_sas_phy *sas_phy; in hisi_sas_internal_abort_quirk_timeout() local 2584 list_for_each_entry(sas_phy, &asd_sas_port->phy_list, port_phy_el) { in hisi_sas_internal_abort_quirk_timeout() 2585 struct hisi_sas_phy *phy = sas_phy->lldd_phy; in hisi_sas_internal_abort_quirk_timeout() [all …]
|
D | hisi_sas_v3_hw.c | 606 struct asd_sas_phy *sas_phy = &phy->sas_phy; in init_reg_v3_hw() local 611 if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate < in init_reg_v3_hw() 615 max = sas_phy->phy->maximum_linkrate; in init_reg_v3_hw() 1017 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phys_init_v3_hw() local 1019 if (!sas_phy->phy->enabled) in phys_init_v3_hw() 1470 struct asd_sas_phy *sas_phy = &phy->sas_phy; in phy_up_v3_hw() local 1487 sas_phy->linkrate = link_rate; in phy_up_v3_hw() 1511 sas_phy->oob_mode = SATA_OOB_MODE; in phy_up_v3_hw() 1515 memcpy(sas_phy->attached_sas_addr, in phy_up_v3_hw() 1518 memcpy(sas_phy->frame_rcvd, fis, in phy_up_v3_hw() [all …]
|
D | hisi_sas_v1_hw.c | 1324 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() 1364 sas_phy->linkrate = link_rate; in int_phyup_v1_hw() 1365 sas_phy->oob_mode = SAS_OOB_MODE; in int_phyup_v1_hw() 1366 memcpy(sas_phy->attached_sas_addr, in int_phyup_v1_hw() 1410 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_bcast_v1_hw() local 1412 int phy_no = sas_phy->id; in int_bcast_v1_hw() 1426 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD); in int_bcast_v1_hw() 1440 struct asd_sas_phy *sas_phy = &phy->sas_phy; in int_abnormal_v1_hw() local [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/smartpqi/ |
D | smartpqi_sas_transport.c | 23 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() 307 static int pqi_sas_get_linkerrors(struct sas_phy *phy) in pqi_sas_get_linkerrors() 418 static int pqi_sas_phy_reset(struct sas_phy *phy, int hard_reset) in pqi_sas_phy_reset() 423 static int pqi_sas_phy_enable(struct sas_phy *phy, int enable) in pqi_sas_phy_enable() 428 static int pqi_sas_phy_setup(struct sas_phy *phy) in pqi_sas_phy_setup() 433 static void pqi_sas_phy_release(struct sas_phy *phy) in pqi_sas_phy_release() 437 static int pqi_sas_phy_speed(struct sas_phy *phy, in pqi_sas_phy_speed()
|
/kernel/linux/linux-5.10/drivers/scsi/pm8001/ |
D | pm8001_hwi.c | 3165 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_bytes_dmaed() local 3169 if (sas_phy->phy) { in pm8001_bytes_dmaed() 3170 struct sas_phy *sphy = sas_phy->phy; in pm8001_bytes_dmaed() 3171 sphy->negotiated_linkrate = sas_phy->linkrate; in pm8001_bytes_dmaed() 3189 sas_phy->frame_rcvd_size = phy->frame_rcvd_size; in pm8001_bytes_dmaed() 3190 sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED); in pm8001_bytes_dmaed() 3196 struct sas_phy *sas_phy = phy->sas_phy.phy; in pm8001_get_lrate_mode() local 3200 phy->sas_phy.linkrate = SAS_LINK_RATE_12_0_GBPS; in pm8001_get_lrate_mode() 3201 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_12_0_GBPS; in pm8001_get_lrate_mode() 3204 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in pm8001_get_lrate_mode() [all …]
|
D | pm8001_init.c | 141 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_phy_init() local 144 sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; in pm8001_phy_init() 145 sas_phy->class = SAS; in pm8001_phy_init() 146 sas_phy->iproto = SAS_PROTOCOL_ALL; in pm8001_phy_init() 147 sas_phy->tproto = 0; in pm8001_phy_init() 148 sas_phy->type = PHY_TYPE_PHYSICAL; in pm8001_phy_init() 149 sas_phy->role = PHY_ROLE_INITIATOR; in pm8001_phy_init() 150 sas_phy->oob_mode = OOB_NOT_CONNECTED; in pm8001_phy_init() 151 sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN; in pm8001_phy_init() 152 sas_phy->id = phy_id; in pm8001_phy_init() [all …]
|
D | pm8001_sas.c | 155 int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, in pm8001_phy_control() argument 158 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() 1001 struct sas_phy *phy; in pm8001_I_T_nexus_reset() 1051 struct sas_phy *phy; in pm8001_I_T_nexus_event_handler() [all …]
|
D | pm80xx_hwi.c | 3234 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_port_recover() 3304 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up() 3305 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sas_phy_up() 3306 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up() 3310 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sas_phy_up() 3311 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up() 3351 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up() 3352 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sata_phy_up() 3353 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sata_phy_up() 3359 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sata_phy_up() [all …]
|
/kernel/linux/linux-5.10/Documentation/scsi/ |
D | libsas.rst | 46 ``struct sas_phy`` 54 struct sas_phy sas_phy; 62 initialize the sas_phy struct, along with your own 127 of your callbacks and passes you a phy. If the sas_phy is 177 sas_phy 183 - the number of phys present in the sas_phy array, 192 void sas_notify_port_event(struct sas_phy *, enum port_event); 193 void sas_notify_phy_event(struct sas_phy *, enum phy_event); 194 void sas_notify_port_event_gfp(struct sas_phy *, enum port_event, gfp_t); 195 void sas_notify_phy_event_gfp(struct sas_phy *, enum phy_event, gfp_t); [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_transport_sas.c | 422 struct sas_phy *phy = transport_class_to_phy(dev); \ 436 struct sas_phy *phy = transport_class_to_phy(dev); \ 452 struct sas_phy *phy = transport_class_to_phy(dev); \ 464 struct sas_phy *phy = transport_class_to_phy(dev); \ 496 struct sas_phy *phy = transport_class_to_phy(dev); \ 516 struct sas_phy *phy = transport_class_to_phy(dev); in show_sas_device_type() 527 struct sas_phy *phy = transport_class_to_phy(dev); in do_sas_phy_enable() 564 struct sas_phy *phy = transport_class_to_phy(dev); in show_sas_phy_enable() 575 struct sas_phy *phy = transport_class_to_phy(dev); in do_sas_phy_reset() 623 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_setup() [all …]
|