Lines Matching refs:rphy

441 	struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy)  in __mpi3mr_get_tgtdev_by_addr_and_rphy()  argument
450 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy)) in __mpi3mr_get_tgtdev_by_addr_and_rphy()
1316 struct sas_rphy *rphy; in mpi3mr_sas_port_add() local
1421 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add()
1422 tgtdev->dev_spec.sas_sata_inf.rphy = rphy; in mpi3mr_sas_port_add()
1424 rphy = sas_expander_alloc(port, in mpi3mr_sas_port_add()
1427 rphy->identify = mr_sas_port->remote_identify; in mpi3mr_sas_port_add()
1432 if ((sas_rphy_add(rphy))) { in mpi3mr_sas_port_add()
1442 dev_info(&rphy->dev, in mpi3mr_sas_port_add()
1447 mr_sas_port->rphy = rphy; in mpi3mr_sas_port_add()
1465 rphy_to_expander_device(rphy), hba_port->port_id); in mpi3mr_sas_port_add()
2097 sas_expander->parent_dev = &mr_sas_port->rphy->dev; in mpi3mr_expander_add()
2098 sas_expander->rphy = mr_sas_port->rphy; in mpi3mr_expander_add()
2430 static u8 mpi3mr_get_port_id_by_rphy(struct mpi3mr_ioc *mrioc, struct sas_rphy *rphy) in mpi3mr_get_port_id_by_rphy() argument
2437 if (!rphy) in mpi3mr_get_port_id_by_rphy()
2440 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in mpi3mr_get_port_id_by_rphy()
2441 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) { in mpi3mr_get_port_id_by_rphy()
2445 if (sas_expander->rphy == rphy) { in mpi3mr_get_port_id_by_rphy()
2451 } else if (rphy->identify.device_type == SAS_END_DEVICE) { in mpi3mr_get_port_id_by_rphy()
2455 rphy->identify.sas_address, rphy); in mpi3mr_get_port_id_by_rphy()
2473 static inline struct mpi3mr_ioc *rphy_to_mrioc(struct sas_rphy *rphy) in rphy_to_mrioc() argument
2475 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_mrioc()
2676 mpi3mr_transport_get_enclosure_identifier(struct sas_rphy *rphy, in mpi3mr_transport_get_enclosure_identifier() argument
2679 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy); in mpi3mr_transport_get_enclosure_identifier()
2686 rphy->identify.sas_address, rphy); in mpi3mr_transport_get_enclosure_identifier()
2711 mpi3mr_transport_get_bay_identifier(struct sas_rphy *rphy) in mpi3mr_transport_get_bay_identifier() argument
2713 struct mpi3mr_ioc *mrioc = rphy_to_mrioc(rphy); in mpi3mr_transport_get_bay_identifier()
2720 rphy->identify.sas_address, rphy); in mpi3mr_transport_get_bay_identifier()
3195 struct sas_rphy *rphy) in mpi3mr_transport_smp_handler() argument
3239 mpi_request.io_unit_port = (u8) mpi3mr_get_port_id_by_rphy(mrioc, rphy); in mpi3mr_transport_smp_handler()
3240 mpi_request.sas_address = ((rphy) ? in mpi3mr_transport_smp_handler()
3241 cpu_to_le64(rphy->identify.sas_address) : in mpi3mr_transport_smp_handler()