Lines Matching refs:rphy

89 	struct sas_rphy *rphy)  in pqi_sas_port_add_rphy()  argument
93 identify = &rphy->identify; in pqi_sas_port_add_rphy()
116 return sas_rphy_add(rphy); in pqi_sas_port_add_rphy()
210 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) in pqi_find_device_by_sas_rphy() argument
218 if (device->sas_port->rphy == rphy) in pqi_find_device_by_sas_rphy()
280 struct sas_rphy *rphy; in pqi_add_sas_device() local
287 rphy = pqi_sas_rphy_alloc(pqi_sas_port); in pqi_add_sas_device()
288 if (!rphy) { in pqi_add_sas_device()
293 pqi_sas_port->rphy = rphy; in pqi_add_sas_device()
296 rc = pqi_sas_port_add_rphy(pqi_sas_port, rphy); in pqi_add_sas_device()
322 static int pqi_sas_get_enclosure_identifier(struct sas_rphy *rphy, in pqi_sas_get_enclosure_identifier() argument
332 if (!rphy) in pqi_sas_get_enclosure_identifier()
335 shost = rphy_to_shost(rphy); in pqi_sas_get_enclosure_identifier()
338 found_device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sas_get_enclosure_identifier()
396 static int pqi_sas_get_bay_identifier(struct sas_rphy *rphy) in pqi_sas_get_bay_identifier() argument
404 if (!rphy) in pqi_sas_get_bay_identifier()
407 shost = rphy_to_shost(rphy); in pqi_sas_get_bay_identifier()
410 device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sas_get_bay_identifier()
457 pqi_build_csmi_smp_passthru_buffer(struct sas_rphy *rphy, in pqi_build_csmi_smp_passthru_buffer() argument
482 parameters->phy_identifier = rphy->identify.phy_identifier; in pqi_build_csmi_smp_passthru_buffer()
485 put_unaligned_be64(rphy->identify.sas_address, in pqi_build_csmi_smp_passthru_buffer()
518 struct sas_rphy *rphy) in pqi_sas_smp_handler() argument
533 if (!rphy) { in pqi_sas_smp_handler()
538 if (rphy->identify.device_type != SAS_FANOUT_EXPANDER_DEVICE) { in pqi_sas_smp_handler()
548 smp_buf = pqi_build_csmi_smp_passthru_buffer(rphy, job); in pqi_sas_smp_handler()