Lines Matching refs:rphy
438 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy) in __mpi3mr_get_tgtdev_by_addr_and_rphy() argument
447 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy)) in __mpi3mr_get_tgtdev_by_addr_and_rphy()
1313 struct sas_rphy *rphy; in mpi3mr_sas_port_add() local
1418 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add()
1419 tgtdev->dev_spec.sas_sata_inf.rphy = rphy; in mpi3mr_sas_port_add()
1421 rphy = sas_expander_alloc(port, in mpi3mr_sas_port_add()
1424 rphy->identify = mr_sas_port->remote_identify; in mpi3mr_sas_port_add()
1429 if ((sas_rphy_add(rphy))) { in mpi3mr_sas_port_add()
1439 dev_info(&rphy->dev, in mpi3mr_sas_port_add()
1444 mr_sas_port->rphy = rphy; in mpi3mr_sas_port_add()
1462 rphy_to_expander_device(rphy), hba_port->port_id); in mpi3mr_sas_port_add()
2094 sas_expander->parent_dev = &mr_sas_port->rphy->dev; in mpi3mr_expander_add()
2095 sas_expander->rphy = mr_sas_port->rphy; in mpi3mr_expander_add()
2427 static u8 mpi3mr_get_port_id_by_rphy(struct mpi3mr_ioc *mrioc, struct sas_rphy *rphy) in mpi3mr_get_port_id_by_rphy() argument
2434 if (!rphy) in mpi3mr_get_port_id_by_rphy()
2437 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in mpi3mr_get_port_id_by_rphy()
2438 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) { in mpi3mr_get_port_id_by_rphy()
2442 if (sas_expander->rphy == rphy) { in mpi3mr_get_port_id_by_rphy()
2448 } else if (rphy->identify.device_type == SAS_END_DEVICE) { in mpi3mr_get_port_id_by_rphy()
2452 rphy->identify.sas_address, rphy); in mpi3mr_get_port_id_by_rphy()
2470 static inline struct mpi3mr_ioc *rphy_to_mrioc(struct sas_rphy *rphy) in rphy_to_mrioc() argument
2472 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_mrioc()
2673 mpi3mr_transport_get_enclosure_identifier(struct sas_rphy *rphy, in mpi3mr_transport_get_enclosure_identifier() argument
2676 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy); in mpi3mr_transport_get_enclosure_identifier()
2683 rphy->identify.sas_address, rphy); in mpi3mr_transport_get_enclosure_identifier()
2708 mpi3mr_transport_get_bay_identifier(struct sas_rphy *rphy) in mpi3mr_transport_get_bay_identifier() argument
2710 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy); in mpi3mr_transport_get_bay_identifier()
2717 rphy->identify.sas_address, rphy); in mpi3mr_transport_get_bay_identifier()
3192 struct sas_rphy *rphy) in mpi3mr_transport_smp_handler() argument
3236 mpi_request.io_unit_port = (u8) mpi3mr_get_port_id_by_rphy(mrioc, rphy); in mpi3mr_transport_smp_handler()
3237 mpi_request.sas_address = ((rphy) ? in mpi3mr_transport_smp_handler()
3238 cpu_to_le64(rphy->identify.sas_address) : in mpi3mr_transport_smp_handler()