Lines Matching refs:rphy

430  * @rphy: SAS transport layer rphy object
432 * This searches for target device from sas address and rphy
438 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy)
447 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy))
1313 struct sas_rphy *rphy;
1418 rphy = sas_end_device_alloc(port);
1419 tgtdev->dev_spec.sas_sata_inf.rphy = rphy;
1421 rphy = sas_expander_alloc(port,
1424 rphy->identify = mr_sas_port->remote_identify;
1429 if ((sas_rphy_add(rphy))) {
1439 dev_info(&rphy->dev,
1444 mr_sas_port->rphy = rphy;
1462 rphy_to_expander_device(rphy), hba_port->port_id);
2094 sas_expander->parent_dev = &mr_sas_port->rphy->dev;
2095 sas_expander->rphy = mr_sas_port->rphy;
2417 * mpi3mr_get_port_id_by_rphy - Get Port number from SAS rphy
2420 * @rphy: SAS transport layer remote phy object
2423 * rphy object is attached with.
2427 static u8 mpi3mr_get_port_id_by_rphy(struct mpi3mr_ioc *mrioc, struct sas_rphy *rphy)
2434 if (!rphy)
2437 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE ||
2438 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) {
2442 if (sas_expander->rphy == rphy) {
2448 } else if (rphy->identify.device_type == SAS_END_DEVICE) {
2452 rphy->identify.sas_address, rphy);
2470 static inline struct mpi3mr_ioc *rphy_to_mrioc(struct sas_rphy *rphy)
2472 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
2664 * @rphy: The SAS transport layer remote phy object
2673 mpi3mr_transport_get_enclosure_identifier(struct sas_rphy *rphy,
2676 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy);
2683 rphy->identify.sas_address, rphy);
2700 * @rphy: The SAS transport layer remote phy object
2708 mpi3mr_transport_get_bay_identifier(struct sas_rphy *rphy)
2710 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy);
2717 rphy->identify.sas_address, rphy);
3185 * @rphy: SAS transport rphy object pointing the expander
3192 struct sas_rphy *rphy)
3236 mpi_request.io_unit_port = (u8) mpi3mr_get_port_id_by_rphy(mrioc, rphy);
3237 mpi_request.sas_address = ((rphy) ?
3238 cpu_to_le64(rphy->identify.sas_address) :