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 if (!rphy) { in mpt3sas_transport_port_add()
833 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add()
835 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add()
838 sas_rphy_free(rphy); in mpt3sas_transport_port_add()
839 rphy = NULL; in mpt3sas_transport_port_add()
848 dev_info(&rphy->dev, in mpt3sas_transport_port_add()
852 mpt3sas_port->rphy = rphy; in mpt3sas_transport_port_add()
864 rphy_to_expander_device(rphy), hba_port->port_id); in mpt3sas_transport_port_add()
1228 rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument
1230 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc()
1474 _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) in _transport_get_enclosure_identifier() argument
1476 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy); in _transport_get_enclosure_identifier()
1482 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_enclosure_identifier()
1503 _transport_get_bay_identifier(struct sas_rphy *rphy) in _transport_get_bay_identifier() argument
1505 struct MPT3SAS_ADAPTER *ioc = rphy_to_ioc(rphy); in _transport_get_bay_identifier()
1511 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_bay_identifier()
2056 struct sas_rphy *rphy) in _transport_smp_handler() argument
2122 mpi_request->PhysicalPort = _transport_get_port_id_by_rphy(ioc, rphy); in _transport_smp_handler()
2123 mpi_request->SASAddress = (rphy) ? in _transport_smp_handler()
2124 cpu_to_le64(rphy->identify.sas_address) : in _transport_smp_handler()