/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_scb.c | 56 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode() local 61 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 62 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 65 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 66 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 69 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() 70 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() 73 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode() 74 sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 75 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() [all …]
|
D | aic94xx_hwi.c | 78 if (phy->sas_phy.role & PHY_ROLE_INITIATOR) in asd_init_phy_identify() 79 phy->identify_frame->initiator_bits = phy->sas_phy.iproto; in asd_init_phy_identify() 80 if (phy->sas_phy.role & PHY_ROLE_TARGET) in asd_init_phy_identify() 81 phy->identify_frame->target_bits = phy->sas_phy.tproto; in asd_init_phy_identify() 84 phy->identify_frame->phy_id = phy->sas_phy.id; in asd_init_phy_identify() 89 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha; in asd_init_phy() 90 struct asd_sas_phy *sas_phy = &phy->sas_phy; in asd_init_phy() local 92 sas_phy->enabled = 1; in asd_init_phy() 93 sas_phy->class = SAS; in asd_init_phy() 94 sas_phy->iproto = SAS_PROTOCOL_ALL; in asd_init_phy() [all …]
|
D | aic94xx_init.c | 691 sas_phys[i] = &asd_ha->phys[i].sas_phy; in asd_register_sas_ha() 695 asd_ha->sas_ha.sas_phy = sas_phys; in asd_register_sas_ha() 712 kfree(asd_ha->sas_ha.sas_phy); in asd_unregister_sas_ha()
|
D | aic94xx_dump.c | 918 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in asd_dump_frame_rcvd() 919 for (i = 0; i < phy->sas_phy.frame_rcvd_size; i+=4) in asd_dump_frame_rcvd() 926 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in asd_dump_frame_rcvd()
|
D | aic94xx_sas.h | 732 struct asd_sas_phy sas_phy; member
|
D | aic94xx_tmf.c | 184 struct sas_phy *phy = sas_get_local_phy(dev); in asd_I_T_nexus_reset()
|
/linux-4.4.14/include/scsi/ |
D | scsi_transport_sas.h | 48 struct sas_phy { struct 77 container_of((d), struct sas_phy, dev) argument 162 int (*get_linkerrors)(struct sas_phy *); 165 int (*phy_reset)(struct sas_phy *, int); 166 int (*phy_enable)(struct sas_phy *, int); 167 int (*phy_setup)(struct sas_phy *); 168 void (*phy_release)(struct sas_phy *); 169 int (*set_phy_speed)(struct sas_phy *, struct sas_phy_linkrates *); 177 extern struct sas_phy *sas_phy_alloc(struct device *, int); 178 extern void sas_phy_free(struct sas_phy *); [all …]
|
D | libsas.h | 140 struct sas_phy *phy; 203 struct sas_phy *phy; 326 struct sas_phy *phy; 410 struct asd_sas_phy **sas_phy; /* array of valid pointers, must be set */ member 469 static inline void sas_put_local_phy(struct sas_phy *phy) in sas_put_local_phy() 684 int sas_set_phy_speed(struct sas_phy *phy, 686 int sas_phy_reset(struct sas_phy *phy, int hard_reset); 730 struct sas_phy *sas_get_local_phy(struct domain_device *dev);
|
/linux-4.4.14/drivers/scsi/libsas/ |
D | sas_host_smp.c | 25 struct sas_phy *phy; in sas_host_smp_discover() 34 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover() 38 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_host_smp_discover() 45 if (!sas_ha->sas_phy[phy_id]->port || in sas_host_smp_discover() 46 !sas_ha->sas_phy[phy_id]->port->port_dev) in sas_host_smp_discover() 49 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover() 154 if (!sas_ha->sas_phy[phy_id]->port) in sas_report_phy_sata() 157 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_report_phy_sata() 159 sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd; in sas_report_phy_sata() 165 memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_report_phy_sata() [all …]
|
D | sas_init.c | 191 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors() 196 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors() 233 static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset) in transport_sas_phy_reset() 245 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset() 266 static int sas_phy_enable(struct sas_phy *phy, int enable) in sas_phy_enable() 279 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_phy_enable() 299 int sas_phy_reset(struct sas_phy *phy, int hard_reset) in sas_phy_reset() 315 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_phy_reset() 328 int sas_set_phy_speed(struct sas_phy *phy, in sas_set_phy_speed() 350 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_set_phy_speed() [all …]
|
D | sas_internal.h | 44 struct sas_phy *phy; 88 int sas_smp_get_phy_events(struct sas_phy *phy); 152 struct sas_phy *phy = p->phy; in sas_phy_set_target()
|
D | Makefile | 26 sas_phy.o \
|
D | sas_port.c | 352 if (sas_ha->sas_phy[i]->port) in sas_unregister_ports() 353 sas_deform_port(sas_ha->sas_phy[i], 0); in sas_unregister_ports()
|
D | sas_phy.c | 142 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; in sas_register_phys()
|
D | sas_ata.c | 329 struct sas_phy *phy = sas_get_local_phy(dev); in smp_ata_check_ready() 397 struct sas_phy *phy; in sas_ata_hard_reset()
|
D | sas_scsi_host.c | 395 struct sas_phy *sas_get_local_phy(struct domain_device *dev) in sas_get_local_phy() 398 struct sas_phy *phy; in sas_get_local_phy()
|
D | sas_discover.c | 411 struct sas_phy *new_phy; in sas_device_set_phy()
|
D | sas_expander.c | 654 int sas_smp_get_phy_events(struct sas_phy *phy) in sas_smp_get_phy_events()
|
/linux-4.4.14/drivers/scsi/mvsas/ |
D | mv_sas.c | 89 while (sha->sas_phy[j]) { in mvs_find_dev_mvi() 90 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi() 118 while (sha->sas_phy[j]) { in mvs_find_dev_phyno() 119 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno() 179 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, in mvs_phy_control() argument 182 int rc = 0, phy_id = sas_phy->id; in mvs_phy_control() 184 struct sas_ha_struct *sha = sas_phy->ha; in mvs_phy_control() 187 while (sha->sas_phy[i]) { in mvs_phy_control() 188 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control() 238 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_bytes_dmaed() local [all …]
|
D | mv_init.c | 92 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_phy_init() local 97 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init() 98 sas_phy->class = SAS; in mvs_phy_init() 99 sas_phy->iproto = SAS_PROTOCOL_ALL; in mvs_phy_init() 100 sas_phy->tproto = 0; in mvs_phy_init() 101 sas_phy->type = PHY_TYPE_PHYSICAL; in mvs_phy_init() 102 sas_phy->role = PHY_ROLE_INITIATOR; in mvs_phy_init() 103 sas_phy->oob_mode = OOB_NOT_CONNECTED; in mvs_phy_init() 104 sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN; in mvs_phy_init() 106 sas_phy->id = phy_id; in mvs_phy_init() [all …]
|
D | mv_sas.h | 79 #define MVS_PHY_ID (1U << sas_phy->id) 221 struct asd_sas_phy sas_phy; member 452 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, 463 void mvs_port_formed(struct asd_sas_phy *sas_phy); 464 void mvs_port_deformed(struct asd_sas_phy *sas_phy);
|
D | mv_94xx.c | 836 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_94xx_fix_phy_info() local 838 sas_phy->linkrate = in mvs_94xx_fix_phy_info() 841 sas_phy->linkrate += 0x8; in mvs_94xx_fix_phy_info() 842 mv_dprintk("get link rate is %d\n", sas_phy->linkrate); in mvs_94xx_fix_phy_info()
|
D | mv_64xx.c | 594 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_64xx_fix_phy_info() local 596 sas_phy->linkrate = in mvs_64xx_fix_phy_info()
|
/linux-4.4.14/drivers/scsi/isci/ |
D | phy.c | 993 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 995 spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1036 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1040 spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags); in sci_phy_frame_handler() 1403 iphy->sas_phy.enabled = 0; in isci_phy_init() 1404 iphy->sas_phy.id = index; in isci_phy_init() 1405 iphy->sas_phy.sas_addr = &iphy->sas_addr[0]; in isci_phy_init() 1406 iphy->sas_phy.frame_rcvd = (u8 *)&iphy->frame_rcvd; in isci_phy_init() 1407 iphy->sas_phy.ha = &ihost->sas_ha; in isci_phy_init() 1408 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 ihost->sas_ha.notify_port_event(&iphy->sas_phy, PORTE_BROADCAST_RCVD); in isci_port_bc_change_received() 183 spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags); in isci_port_link_up() 190 iphy->sas_phy.oob_mode = SATA_OOB_MODE; in isci_port_link_up() 191 iphy->sas_phy.frame_rcvd_size = sizeof(struct dev_to_host_fis); in isci_port_link_up() 205 memcpy(&iphy->sas_phy.attached_sas_addr, in isci_port_link_up() 208 iphy->sas_phy.oob_mode = SAS_OOB_MODE; in isci_port_link_up() 209 iphy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame); in isci_port_link_up() 212 memcpy(iphy->sas_phy.attached_sas_addr, in isci_port_link_up() 219 iphy->sas_phy.phy->negotiated_linkrate = sci_phy_linkrate(iphy); in isci_port_link_up() [all …]
|
D | init.c | 252 sas_phys[i] = &isci_host->phys[i].sas_phy; in isci_register_sas_ha() 256 sas_ha->sas_phy = sas_phys; in isci_register_sas_ha()
|
D | task.c | 746 struct sas_phy *phy = sas_get_local_phy(dev); in isci_reset_device()
|
/linux-4.4.14/drivers/scsi/pm8001/ |
D | pm8001_hwi.c | 3231 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_bytes_dmaed() local 3237 if (sas_phy->phy) { in pm8001_bytes_dmaed() 3238 struct sas_phy *sphy = sas_phy->phy; in pm8001_bytes_dmaed() 3239 sphy->negotiated_linkrate = sas_phy->linkrate; in pm8001_bytes_dmaed() 3257 sas_phy->frame_rcvd_size = phy->frame_rcvd_size; in pm8001_bytes_dmaed() 3258 pm8001_ha->sas->notify_port_event(sas_phy, PORTE_BYTES_DMAED); in pm8001_bytes_dmaed() 3264 struct sas_phy *sas_phy = phy->sas_phy.phy; in pm8001_get_lrate_mode() local 3268 phy->sas_phy.linkrate = SAS_LINK_RATE_12_0_GBPS; in pm8001_get_lrate_mode() 3269 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_12_0_GBPS; in pm8001_get_lrate_mode() 3272 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in pm8001_get_lrate_mode() [all …]
|
D | pm8001_init.c | 123 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_phy_init() local 126 sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; in pm8001_phy_init() 127 sas_phy->class = SAS; in pm8001_phy_init() 128 sas_phy->iproto = SAS_PROTOCOL_ALL; in pm8001_phy_init() 129 sas_phy->tproto = 0; in pm8001_phy_init() 130 sas_phy->type = PHY_TYPE_PHYSICAL; in pm8001_phy_init() 131 sas_phy->role = PHY_ROLE_INITIATOR; in pm8001_phy_init() 132 sas_phy->oob_mode = OOB_NOT_CONNECTED; in pm8001_phy_init() 133 sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN; in pm8001_phy_init() 134 sas_phy->id = phy_id; in pm8001_phy_init() [all …]
|
D | pm80xx_hwi.c | 2879 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_port_recover() 2954 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up() 2955 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sas_phy_up() 2956 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up() 2960 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sas_phy_up() 2961 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up() 3002 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up() 3003 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); in hw_event_sata_phy_up() 3004 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sata_phy_up() 3010 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sata_phy_up() [all …]
|
D | pm8001_sas.c | 154 int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, in pm8001_phy_control() argument 157 int rc = 0, phy_id = sas_phy->id; in pm8001_phy_control() 162 pm8001_ha = sas_phy->ha->lldd_ha; in pm8001_phy_control() 215 struct sas_phy *phy = sas_phy->phy; in pm8001_phy_control() 969 struct sas_phy *phy; in pm8001_I_T_nexus_reset() 1020 struct sas_phy *phy; in pm8001_I_T_nexus_event_handler() 1086 struct sas_phy *phy = sas_get_local_phy(dev); in pm8001_lu_reset()
|
D | pm8001_sas.h | 254 struct asd_sas_phy sas_phy; member 632 int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
|
/linux-4.4.14/drivers/scsi/ |
D | scsi_transport_sas.c | 458 struct sas_phy *phy = transport_class_to_phy(dev); \ 472 struct sas_phy *phy = transport_class_to_phy(dev); \ 488 struct sas_phy *phy = transport_class_to_phy(dev); \ 500 struct sas_phy *phy = transport_class_to_phy(dev); \ 532 struct sas_phy *phy = transport_class_to_phy(dev); \ 552 struct sas_phy *phy = transport_class_to_phy(dev); in show_sas_device_type() 563 struct sas_phy *phy = transport_class_to_phy(dev); in do_sas_phy_enable() 600 struct sas_phy *phy = transport_class_to_phy(dev); in show_sas_phy_enable() 611 struct sas_phy *phy = transport_class_to_phy(dev); in do_sas_phy_reset() 660 struct sas_phy *phy = dev_to_phy(dev); in sas_phy_setup() [all …]
|
D | hpsa.h | 54 struct sas_phy *phy;
|
D | hpsa.c | 9232 struct sas_phy *phy; in hpsa_alloc_sas_phy() 9254 struct sas_phy *phy = hpsa_sas_phy->phy; in hpsa_free_sas_phy() 9267 struct sas_phy *phy; in hpsa_sas_port_add_phy() 9500 hpsa_sas_get_linkerrors(struct sas_phy *phy) in hpsa_sas_get_linkerrors() 9518 hpsa_sas_phy_reset(struct sas_phy *phy, int hard_reset) in hpsa_sas_phy_reset() 9524 hpsa_sas_phy_enable(struct sas_phy *phy, int enable) in hpsa_sas_phy_enable() 9530 hpsa_sas_phy_setup(struct sas_phy *phy) in hpsa_sas_phy_setup() 9536 hpsa_sas_phy_release(struct sas_phy *phy) in hpsa_sas_phy_release() 9541 hpsa_sas_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) in hpsa_sas_phy_speed()
|
/linux-4.4.14/Documentation/scsi/ |
D | libsas.txt | 42 struct sas_phy -------------------- 47 struct sas_phy sas_phy; 54 initialize the sas_phy struct, along with your own 105 of your callbacks and passes you a phy. If the sas_phy is 144 sas_phy -- an array of pointers to structures. (see 147 num_phys -- the number of phys present in the sas_phy array, 157 void (*notify_port_event)(struct sas_phy *, enum port_event); 158 void (*notify_phy_event)(struct sas_phy *, enum phy_event); 167 void (*lldd_port_formed)(struct sas_phy *); 168 void (*lldd_port_deformed)(struct sas_phy *); [all …]
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptsas.h | 168 struct sas_phy *phy; /* transport layer phy object */
|
D | mptsas.c | 364 static inline MPT_ADAPTER *phy_to_ioc(struct sas_phy *phy) in phy_to_ioc() 1999 static int mptsas_get_linkerrors(struct sas_phy *phy) in mptsas_get_linkerrors() 2079 static int mptsas_phy_reset(struct sas_phy *phy, int hard_reset) in mptsas_phy_reset() 3040 struct sas_phy *phy; in mptsas_probe_one_phy()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 867 struct sas_phy *phy; in mpt3sas_transport_add_host_phy() 936 struct sas_phy *phy; in mpt3sas_transport_add_expander_phy() 1046 phy_to_ioc(struct sas_phy *phy) in phy_to_ioc() 1096 struct sas_phy *phy) in _transport_get_expander_phy_error_log() 1270 _transport_get_linkerrors(struct sas_phy *phy) in _transport_get_linkerrors() 1410 struct sas_phy *phy, u8 phy_operation) in _transport_expander_phy_control() 1596 _transport_phy_reset(struct sas_phy *phy, int hard_reset) in _transport_phy_reset() 1648 _transport_phy_enable(struct sas_phy *phy, int enable) in _transport_phy_enable() 1786 _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) in _transport_phy_speed()
|
D | mpt3sas_base.h | 582 struct sas_phy *phy;
|