Lines Matching refs:rphy

113 		struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy);
395 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy)
397 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
509 return phy_info->port_details->rphy;
515 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy)
518 phy_info->port_details->rphy = rphy;
519 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "sas_rphy_add: rphy=%p\n",
520 ioc->name, rphy));
523 if (rphy) {
525 &rphy->dev, MYIOC_s_FMT "add:", ioc->name));
526 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "rphy=%p release=%p\n",
527 ioc->name, rphy, rphy->dev.release));
589 struct sas_rphy *rphy;
628 rphy = dev_to_rphy(starget->dev.parent);
629 if (rphy->identify.sas_address == sas_address) {
786 struct sas_rphy *rphy;
790 rphy = dev_to_rphy(starget->dev.parent);
792 rphy->identify.sas_address);
942 port_details->rphy =
976 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n",
977 ioc->name, port_details->port, port_details->rphy));
1446 struct sas_rphy *rphy;
1493 rphy = sas_end_device_alloc(port);
1494 if (!rphy) {
1498 return 5; /* non-fatal: an rphy can be added later */
1501 rphy->identify = identify;
1502 if (sas_rphy_add(rphy)) {
1506 sas_rphy_free(rphy);
1509 mptsas_set_rphy(ioc, phy_info, rphy);
1522 struct sas_rphy *rphy;
1543 rphy = mptsas_get_rphy(phy_info);
1544 if (!rphy) {
1567 dev_printk(KERN_DEBUG, &rphy->dev, MYIOC_s_FMT
1749 struct sas_rphy *rphy;
1783 rphy = dev_to_rphy(starget->dev.parent);
1788 rphy->identify.sas_address)
1825 struct sas_rphy *rphy;
1843 rphy = dev_to_rphy(starget->dev.parent);
1847 rphy->identify.sas_address)
1874 struct sas_rphy *rphy;
1893 rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
1898 rphy->identify.sas_address)
2184 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
2186 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
2196 rphy->identify.sas_address) {
2218 mptsas_get_bay_identifier(struct sas_rphy *rphy)
2220 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
2228 rphy->identify.sas_address) {
2241 struct sas_rphy *rphy)
2279 if (rphy)
2280 sas_address = rphy->identify.sas_address;
3219 if (!mptsas_get_rphy(phy_info) && port && !port->rphy) {
3221 struct sas_rphy *rphy;
3261 rphy = sas_end_device_alloc(port);
3265 rphy = sas_expander_alloc(port, identify.device_type);
3268 rphy = NULL;
3271 if (!rphy) {
3278 rphy->identify = identify;
3279 error = sas_rphy_add(rphy);
3284 sas_rphy_free(rphy);
3287 mptsas_set_rphy(ioc, phy_info, rphy);
3292 rphy_to_expander_device(rphy));
3389 struct sas_rphy *rphy;
3430 rphy = mptsas_get_rphy(&parent->phy_info[i]);
3431 parent_dev = &rphy->dev;
3491 struct sas_rphy *rphy;
3496 rphy = mptsas_get_rphy(phy_info);
3497 if (!rphy)
3499 if (rphy->identify.device_type == SAS_END_DEVICE)
3505 rphy = mptsas_get_rphy(phy_info);
3506 if (!rphy)
3508 if (rphy->identify.device_type ==
3510 rphy->identify.device_type ==
3513 rphy->identify.sas_address);
3516 if (port_info == parent) /* backlink rphy */