Lines Matching refs:rphy

113 		struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy);
370 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument
372 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc()
482 return phy_info->port_details->rphy; in mptsas_get_rphy()
488 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy) in mptsas_set_rphy() argument
491 phy_info->port_details->rphy = rphy; in mptsas_set_rphy()
493 ioc->name, rphy)); in mptsas_set_rphy()
496 if (rphy) { in mptsas_set_rphy()
498 &rphy->dev, MYIOC_s_FMT "add:", ioc->name)); in mptsas_set_rphy()
500 ioc->name, rphy, rphy->dev.release)); in mptsas_set_rphy()
560 struct sas_rphy *rphy; in mptsas_add_device_component() local
599 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component()
600 if (rphy->identify.sas_address == sas_address) { in mptsas_add_device_component()
759 struct sas_rphy *rphy; in mptsas_add_device_component_starget() local
763 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component_starget()
766 rphy->identify.sas_address); in mptsas_add_device_component_starget()
916 port_details->rphy = in mptsas_setup_wide_ports()
951 ioc->name, port_details->port, port_details->rphy)); in mptsas_setup_wide_ports()
1419 struct sas_rphy *rphy; in mptsas_add_end_device() local
1466 rphy = sas_end_device_alloc(port); in mptsas_add_end_device()
1467 if (!rphy) { in mptsas_add_end_device()
1474 rphy->identify = identify; in mptsas_add_end_device()
1475 if (sas_rphy_add(rphy)) { in mptsas_add_end_device()
1479 sas_rphy_free(rphy); in mptsas_add_end_device()
1482 mptsas_set_rphy(ioc, phy_info, rphy); in mptsas_add_end_device()
1495 struct sas_rphy *rphy; in mptsas_del_end_device() local
1516 rphy = mptsas_get_rphy(phy_info); in mptsas_del_end_device()
1517 if (!rphy) { in mptsas_del_end_device()
1540 dev_printk(KERN_DEBUG, &rphy->dev, MYIOC_s_FMT in mptsas_del_end_device()
1722 struct sas_rphy *rphy; in mptsas_target_alloc() local
1756 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_alloc()
1761 rphy->identify.sas_address) in mptsas_target_alloc()
1798 struct sas_rphy *rphy; in mptsas_target_destroy() local
1816 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_destroy()
1820 rphy->identify.sas_address) in mptsas_target_destroy()
1847 struct sas_rphy *rphy; in mptsas_slave_alloc() local
1866 rphy = dev_to_rphy(sdev->sdev_target->dev.parent); in mptsas_slave_alloc()
1871 rphy->identify.sas_address) in mptsas_slave_alloc()
2156 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) in mptsas_get_enclosure_identifier() argument
2158 MPT_ADAPTER *ioc = rphy_to_ioc(rphy); in mptsas_get_enclosure_identifier()
2168 rphy->identify.sas_address) { in mptsas_get_enclosure_identifier()
2190 mptsas_get_bay_identifier(struct sas_rphy *rphy) in mptsas_get_bay_identifier() argument
2192 MPT_ADAPTER *ioc = rphy_to_ioc(rphy); in mptsas_get_bay_identifier()
2200 rphy->identify.sas_address) { in mptsas_get_bay_identifier()
2212 static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, in mptsas_smp_handler() argument
2257 if (rphy) in mptsas_smp_handler()
2258 sas_address = rphy->identify.sas_address; in mptsas_smp_handler()
3193 if (!mptsas_get_rphy(phy_info) && port && !port->rphy) { in mptsas_probe_one_phy()
3195 struct sas_rphy *rphy; in mptsas_probe_one_phy() local
3235 rphy = sas_end_device_alloc(port); in mptsas_probe_one_phy()
3239 rphy = sas_expander_alloc(port, identify.device_type); in mptsas_probe_one_phy()
3242 rphy = NULL; in mptsas_probe_one_phy()
3245 if (!rphy) { in mptsas_probe_one_phy()
3252 rphy->identify = identify; in mptsas_probe_one_phy()
3253 error = sas_rphy_add(rphy); in mptsas_probe_one_phy()
3258 sas_rphy_free(rphy); in mptsas_probe_one_phy()
3261 mptsas_set_rphy(ioc, phy_info, rphy); in mptsas_probe_one_phy()
3266 rphy_to_expander_device(rphy)); in mptsas_probe_one_phy()
3363 struct sas_rphy *rphy; in mptsas_expander_refresh() local
3404 rphy = mptsas_get_rphy(&parent->phy_info[i]); in mptsas_expander_refresh()
3405 parent_dev = &rphy->dev; in mptsas_expander_refresh()
3467 struct sas_rphy *rphy; in mptsas_delete_expander_siblings() local
3472 rphy = mptsas_get_rphy(phy_info); in mptsas_delete_expander_siblings()
3473 if (!rphy) in mptsas_delete_expander_siblings()
3475 if (rphy->identify.device_type == SAS_END_DEVICE) in mptsas_delete_expander_siblings()
3481 rphy = mptsas_get_rphy(phy_info); in mptsas_delete_expander_siblings()
3482 if (!rphy) in mptsas_delete_expander_siblings()
3484 if (rphy->identify.device_type == in mptsas_delete_expander_siblings()
3486 rphy->identify.device_type == in mptsas_delete_expander_siblings()
3489 rphy->identify.sas_address); in mptsas_delete_expander_siblings()