Lines Matching refs:rphy

113 		struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy);
395 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument
397 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc()
509 return phy_info->port_details->rphy; in mptsas_get_rphy()
515 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy) in mptsas_set_rphy() argument
518 phy_info->port_details->rphy = rphy; in mptsas_set_rphy()
520 ioc->name, rphy)); in mptsas_set_rphy()
523 if (rphy) { in mptsas_set_rphy()
525 &rphy->dev, MYIOC_s_FMT "add:", ioc->name)); in mptsas_set_rphy()
527 ioc->name, rphy, rphy->dev.release)); in mptsas_set_rphy()
589 struct sas_rphy *rphy; in mptsas_add_device_component() local
628 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component()
629 if (rphy->identify.sas_address == sas_address) { in mptsas_add_device_component()
786 struct sas_rphy *rphy; in mptsas_add_device_component_starget() local
790 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component_starget()
792 rphy->identify.sas_address); in mptsas_add_device_component_starget()
942 port_details->rphy = in mptsas_setup_wide_ports()
977 ioc->name, port_details->port, port_details->rphy)); in mptsas_setup_wide_ports()
1446 struct sas_rphy *rphy; in mptsas_add_end_device() local
1493 rphy = sas_end_device_alloc(port); in mptsas_add_end_device()
1494 if (!rphy) { in mptsas_add_end_device()
1501 rphy->identify = identify; in mptsas_add_end_device()
1502 if (sas_rphy_add(rphy)) { in mptsas_add_end_device()
1506 sas_rphy_free(rphy); in mptsas_add_end_device()
1509 mptsas_set_rphy(ioc, phy_info, rphy); in mptsas_add_end_device()
1522 struct sas_rphy *rphy; in mptsas_del_end_device() local
1543 rphy = mptsas_get_rphy(phy_info); in mptsas_del_end_device()
1544 if (!rphy) { in mptsas_del_end_device()
1567 dev_printk(KERN_DEBUG, &rphy->dev, MYIOC_s_FMT in mptsas_del_end_device()
1749 struct sas_rphy *rphy; in mptsas_target_alloc() local
1783 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_alloc()
1788 rphy->identify.sas_address) in mptsas_target_alloc()
1825 struct sas_rphy *rphy; in mptsas_target_destroy() local
1843 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_destroy()
1847 rphy->identify.sas_address) in mptsas_target_destroy()
1874 struct sas_rphy *rphy; in mptsas_slave_alloc() local
1893 rphy = dev_to_rphy(sdev->sdev_target->dev.parent); in mptsas_slave_alloc()
1898 rphy->identify.sas_address) in mptsas_slave_alloc()
2184 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) in mptsas_get_enclosure_identifier() argument
2186 MPT_ADAPTER *ioc = rphy_to_ioc(rphy); in mptsas_get_enclosure_identifier()
2196 rphy->identify.sas_address) { in mptsas_get_enclosure_identifier()
2218 mptsas_get_bay_identifier(struct sas_rphy *rphy) in mptsas_get_bay_identifier() argument
2220 MPT_ADAPTER *ioc = rphy_to_ioc(rphy); in mptsas_get_bay_identifier()
2228 rphy->identify.sas_address) { in mptsas_get_bay_identifier()
2241 struct sas_rphy *rphy) in mptsas_smp_handler() argument
2279 if (rphy) in mptsas_smp_handler()
2280 sas_address = rphy->identify.sas_address; in mptsas_smp_handler()
3219 if (!mptsas_get_rphy(phy_info) && port && !port->rphy) { in mptsas_probe_one_phy()
3221 struct sas_rphy *rphy; in mptsas_probe_one_phy() local
3261 rphy = sas_end_device_alloc(port); in mptsas_probe_one_phy()
3265 rphy = sas_expander_alloc(port, identify.device_type); in mptsas_probe_one_phy()
3268 rphy = NULL; in mptsas_probe_one_phy()
3271 if (!rphy) { in mptsas_probe_one_phy()
3278 rphy->identify = identify; in mptsas_probe_one_phy()
3279 error = sas_rphy_add(rphy); in mptsas_probe_one_phy()
3284 sas_rphy_free(rphy); in mptsas_probe_one_phy()
3287 mptsas_set_rphy(ioc, phy_info, rphy); in mptsas_probe_one_phy()
3292 rphy_to_expander_device(rphy)); in mptsas_probe_one_phy()
3389 struct sas_rphy *rphy; in mptsas_expander_refresh() local
3430 rphy = mptsas_get_rphy(&parent->phy_info[i]); in mptsas_expander_refresh()
3431 parent_dev = &rphy->dev; in mptsas_expander_refresh()
3491 struct sas_rphy *rphy; in mptsas_delete_expander_siblings() local
3496 rphy = mptsas_get_rphy(phy_info); in mptsas_delete_expander_siblings()
3497 if (!rphy) in mptsas_delete_expander_siblings()
3499 if (rphy->identify.device_type == SAS_END_DEVICE) in mptsas_delete_expander_siblings()
3505 rphy = mptsas_get_rphy(phy_info); in mptsas_delete_expander_siblings()
3506 if (!rphy) in mptsas_delete_expander_siblings()
3508 if (rphy->identify.device_type == in mptsas_delete_expander_siblings()
3510 rphy->identify.device_type == in mptsas_delete_expander_siblings()
3513 rphy->identify.sas_address); in mptsas_delete_expander_siblings()