Lines Matching refs:phy_id
23 u8 phy_id) in sas_host_smp_discover() argument
28 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
34 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover()
35 resp_data[9] = phy_id; 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()
141 u8 phy_id) in sas_report_phy_sata() argument
147 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
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()
164 resp_data[9] = phy_id; in sas_report_phy_sata()
165 memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_report_phy_sata()
175 &sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i]; in sas_report_phy_sata()
183 static void sas_phy_control(struct sas_ha_struct *sas_ha, u8 phy_id, in sas_phy_control() argument
192 if (phy_id >= sas_ha->num_phys) { in sas_phy_control()
197 asd_phy = sas_ha->sas_phy[phy_id]; in sas_phy_control()