Lines Matching defs:phy
258 int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy)
260 if (phy->attached_tproto & SAS_PROTOCOL_STP)
261 dev->tproto = phy->attached_tproto;
262 if (phy->attached_sata_dev)
265 if (phy->attached_dev_type == SAS_SATA_PENDING)
271 res = sas_get_report_phy_sata(dev->parent, phy->phy_id,
274 pr_debug("report phy sata to %016llx:%02d returned 0x%x\n",
276 phy->phy_id, res);
286 static int sas_ata_clear_pending(struct domain_device *dev, struct ex_phy *phy)
297 res = sas_get_ata_info(dev, phy);
310 struct sas_phy *phy = sas_get_local_phy(dev);
311 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy->number];
313 res = sas_ex_phy_discover(ex_dev, phy->number);
314 sas_put_local_phy(phy);
379 struct sas_phy *phy;
392 phy = sas_get_local_phy(dev);
393 if (scsi_is_sas_phy_local(phy))
397 sas_put_local_phy(phy);