Lines Matching refs:rphy

111 	struct sas_rphy *rphy)  in _transport_get_port_id_by_rphy()  argument
118 if (!rphy) in _transport_get_port_id_by_rphy()
121 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in _transport_get_port_id_by_rphy()
122 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) { in _transport_get_port_id_by_rphy()
126 if (sas_expander->rphy == rphy) { in _transport_get_port_id_by_rphy()
132 } else if (rphy->identify.device_type == SAS_END_DEVICE) { in _transport_get_port_id_by_rphy()
134 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_port_id_by_rphy()
690 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local
809 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add()
810 sas_device->rphy = rphy; in mpt3sas_transport_port_add()
820 rphy = sas_expander_alloc(port, in mpt3sas_transport_port_add()
827 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add()
829 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add()
832 sas_rphy_free(rphy); in mpt3sas_transport_port_add()
833 rphy = NULL; in mpt3sas_transport_port_add()
841 dev_info(&rphy->dev, in mpt3sas_transport_port_add()
845 mpt3sas_port->rphy = rphy; in mpt3sas_transport_port_add()
857 rphy_to_expander_device(rphy), hba_port->port_id); in mpt3sas_transport_port_add()
1218 rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument
1220 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc()
1464 _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) in _transport_get_enclosure_identifier() argument
1466 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy); in _transport_get_enclosure_identifier()
1472 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_enclosure_identifier()
1493 _transport_get_bay_identifier(struct sas_rphy *rphy) in _transport_get_bay_identifier() argument
1495 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy); in _transport_get_bay_identifier()
1501 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_bay_identifier()
2046 struct sas_rphy *rphy) in _transport_smp_handler() argument
2112 mpi_request->PhysicalPort = _transport_get_port_id_by_rphy(ioc, rphy); in _transport_smp_handler()
2113 mpi_request->SASAddress = (rphy) ? in _transport_smp_handler()
2114 cpu_to_le64(rphy->identify.sas_address) : in _transport_smp_handler()