Lines Matching refs:rphy

103  * _transport_get_port_id_by_rphy - Get Port number from rphy object
105 * @rphy: sas_rphy object
111 struct sas_rphy *rphy)
118 if (!rphy)
121 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE ||
122 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) {
126 if (sas_expander->rphy == rphy) {
132 } else if (rphy->identify.device_type == SAS_END_DEVICE) {
134 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy);
690 struct sas_rphy *rphy;
809 rphy = sas_end_device_alloc(port);
810 sas_device->rphy = rphy;
820 rphy = sas_expander_alloc(port,
827 if (!rphy) {
833 rphy->identify = mpt3sas_port->remote_identify;
835 if ((sas_rphy_add(rphy))) {
838 sas_rphy_free(rphy);
839 rphy = NULL;
848 dev_info(&rphy->dev,
852 mpt3sas_port->rphy = rphy;
864 rphy_to_expander_device(rphy), hba_port->port_id);
1228 rphy_to_ioc(struct sas_rphy *rphy)
1230 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
1467 * @rphy: The sas phy object
1474 _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
1476 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy);
1482 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy);
1498 * @rphy: The sas phy object
1503 _transport_get_bay_identifier(struct sas_rphy *rphy)
1505 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy);
1511 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy);
2048 * @rphy: sas transport rphy object
2056 struct sas_rphy *rphy)
2122 mpi_request->PhysicalPort = _transport_get_port_id_by_rphy(ioc, rphy);
2123 mpi_request->SASAddress = (rphy) ?
2124 cpu_to_le64(rphy->identify.sas_address) :