Lines Matching defs:phy
255 int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy)
257 if (phy->attached_tproto & SAS_PROTOCOL_STP)
258 dev->tproto = phy->attached_tproto;
259 if (phy->attached_sata_dev)
262 if (phy->attached_dev_type == SAS_SATA_PENDING)
268 res = sas_get_report_phy_sata(dev->parent, phy->phy_id,
271 pr_debug("report phy sata to %016llx:%02d returned 0x%x\n",
273 phy->phy_id, res);
283 static int sas_ata_clear_pending(struct domain_device *dev, struct ex_phy *phy)
294 res = sas_get_ata_info(dev, phy);
304 struct sas_phy *phy = sas_get_local_phy(dev);
310 res = sas_get_phy_attached_dev(ex_dev, phy->number, sas_addr, &type);
311 sas_put_local_phy(phy);
332 struct sas_phy *phy = sas_get_local_phy(dev);
333 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy->number];
335 res = sas_ex_phy_discover(ex_dev, phy->number);
336 sas_put_local_phy(phy);
403 struct sas_phy *phy;
406 phy = sas_get_local_phy(dev);
407 if (scsi_is_sas_phy_local(phy))
411 sas_put_local_phy(phy);
674 int sas_ata_add_dev(struct domain_device *parent, struct ex_phy *phy,
681 struct sas_phy *cphy = child->phy;
691 pr_notice("ex %016llx phy%02d SATA device linkrate > min pathway connection rate, attempting to lower device linkrate\n",
696 pr_err("ex %016llx phy%02d SATA device could not set linkrate (%d)\n",
700 pr_notice("ex %016llx phy%02d SATA device set linkrate successfully\n",
704 ret = sas_get_ata_info(child, phy);
713 rphy = sas_end_device_alloc(phy->port);