Lines Matching refs:rphy
165 struct sas_rphy *rphy; /* transport layer rphy object */
308 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy)
310 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
387 return phy_info->port_details->rphy;
393 mptsas_set_rphy(struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy)
396 phy_info->port_details->rphy = rphy;
397 dsaswideprintk((KERN_DEBUG "sas_rphy_add: rphy=%p\n", rphy));
401 if (rphy) {
402 dev_printk(KERN_DEBUG, &rphy->dev, "add:");
403 printk("rphy=%p release=%p\n",
404 rphy, rphy->dev.release);
537 port_details->rphy =
572 dsaswideprintk((KERN_DEBUG"\t\tport = %p rphy=%p\n",
573 port_details->port, port_details->rphy));
935 struct sas_rphy *rphy;
959 rphy = dev_to_rphy(starget->dev.parent);
964 rphy->identify.sas_address)
1001 struct sas_rphy *rphy;
1011 rphy = dev_to_rphy(starget->dev.parent);
1015 rphy->identify.sas_address)
1033 struct sas_rphy *rphy;
1051 rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
1056 rphy->identify.sas_address)
1272 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
1274 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
1284 rphy->identify.sas_address) {
1306 mptsas_get_bay_identifier(struct sas_rphy *rphy)
1308 MPT_ADAPTER *ioc = rphy_to_ioc(rphy);
1316 rphy->identify.sas_address) {
1900 if (!mptsas_get_rphy(phy_info) && port && !port->rphy) {
1902 struct sas_rphy *rphy;
1944 rphy = sas_end_device_alloc(port);
1948 rphy = sas_expander_alloc(port, identify.device_type);
1951 rphy = NULL;
1954 if (!rphy) {
1961 rphy->identify = identify;
1962 error = sas_rphy_add(rphy);
1967 sas_rphy_free(rphy);
1970 mptsas_set_rphy(phy_info, rphy);
2049 struct sas_rphy *rphy;
2116 rphy = mptsas_get_rphy(&p->phy_info[j]);
2117 parent = &rphy->dev;
2471 struct sas_rphy *rphy;
2523 rphy = mptsas_get_rphy(phy_info);
2524 if (!rphy) {
2680 rphy = sas_end_device_alloc(port);
2681 if (!rphy) {
2685 break; /* non-fatal: an rphy can be added later */
2688 rphy->identify = identify;
2689 if (sas_rphy_add(rphy)) {
2693 sas_rphy_free(rphy);
2696 mptsas_set_rphy(phy_info, rphy);