Lines Matching refs:rphy

113 		struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy);
370 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy)
372 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
482 return phy_info->port_details->rphy;
488 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy)
491 phy_info->port_details->rphy = rphy;
492 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "sas_rphy_add: rphy=%p\n",
493 ioc->name, rphy));
496 if (rphy) {
498 &rphy->dev, MYIOC_s_FMT "add:", ioc->name));
499 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "rphy=%p release=%p\n",
500 ioc->name, rphy, rphy->dev.release));
560 struct sas_rphy *rphy;
599 rphy = dev_to_rphy(starget->dev.parent);
600 if (rphy->identify.sas_address == sas_address) {
759 struct sas_rphy *rphy;
763 rphy = dev_to_rphy(starget->dev.parent);
766 rphy->identify.sas_address);
916 port_details->rphy =
950 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n",
951 ioc->name, port_details->port, port_details->rphy));
1418 struct sas_rphy *rphy;
1465 rphy = sas_end_device_alloc(port);
1466 if (!rphy) {
1470 return 5; /* non-fatal: an rphy can be added later */
1473 rphy->identify = identify;
1474 if (sas_rphy_add(rphy)) {
1478 sas_rphy_free(rphy);
1481 mptsas_set_rphy(ioc, phy_info, rphy);
1494 struct sas_rphy *rphy;
1515 rphy = mptsas_get_rphy(phy_info);
1516 if (!rphy) {
1539 dev_printk(KERN_DEBUG, &rphy->dev, MYIOC_s_FMT
1721 struct sas_rphy *rphy;
1755 rphy = dev_to_rphy(starget->dev.parent);
1760 rphy->identify.sas_address)
1797 struct sas_rphy *rphy;
1815 rphy = dev_to_rphy(starget->dev.parent);
1819 rphy->identify.sas_address)
1846 struct sas_rphy *rphy;
1865 rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
1870 rphy->identify.sas_address)
2156 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
2158 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
2168 rphy->identify.sas_address) {
2190 mptsas_get_bay_identifier(struct sas_rphy *rphy)
2192 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
2200 rphy->identify.sas_address) {
2213 struct sas_rphy *rphy)
2251 if (rphy)
2252 sas_address = rphy->identify.sas_address;
3188 if (!mptsas_get_rphy(phy_info) && port && !port->rphy) {
3190 struct sas_rphy *rphy;
3230 rphy = sas_end_device_alloc(port);
3234 rphy = sas_expander_alloc(port, identify.device_type);
3237 rphy = NULL;
3240 if (!rphy) {
3247 rphy->identify = identify;
3248 error = sas_rphy_add(rphy);
3253 sas_rphy_free(rphy);
3256 mptsas_set_rphy(ioc, phy_info, rphy);
3261 rphy_to_expander_device(rphy));
3358 struct sas_rphy *rphy;
3399 rphy = mptsas_get_rphy(&parent->phy_info[i]);
3400 parent_dev = &rphy->dev;
3462 struct sas_rphy *rphy;
3467 rphy = mptsas_get_rphy(phy_info);
3468 if (!rphy)
3470 if (rphy->identify.device_type == SAS_END_DEVICE)
3476 rphy = mptsas_get_rphy(phy_info);
3477 if (!rphy)
3479 if (rphy->identify.device_type ==
3481 rphy->identify.device_type ==
3484 rphy->identify.sas_address);
3487 if (port_info == parent) /* backlink rphy */