Lines Matching refs:phy_id
20 u8 phy_id) in sas_host_smp_discover() argument
25 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
31 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover()
32 resp_data[9] = phy_id; 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()
138 u8 phy_id) in sas_report_phy_sata() argument
144 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
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()
161 resp_data[9] = phy_id; in sas_report_phy_sata()
162 memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_report_phy_sata()
172 &sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i]; in sas_report_phy_sata()
180 static void sas_phy_control(struct sas_ha_struct *sas_ha, u8 phy_id, in sas_phy_control() argument
189 if (phy_id >= sas_ha->num_phys) { in sas_phy_control()
194 asd_phy = sas_ha->sas_phy[phy_id]; in sas_phy_control()