Lines Matching full:identify
121 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in _transport_get_port_id_by_rphy()
122 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) { in _transport_get_port_id_by_rphy()
132 } else if (rphy->identify.device_type == SAS_END_DEVICE) { in _transport_get_port_id_by_rphy()
192 * _transport_set_identify - set identify for phys and end devices
195 * @identify: sas identify info
197 * Populates sas identify info.
203 struct sas_identify *identify) in _transport_set_identify() argument
230 memset(identify, 0, sizeof(struct sas_identify)); in _transport_set_identify()
234 identify->sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _transport_set_identify()
237 identify->phy_identifier = sas_device_pg0.PhyNum; in _transport_set_identify()
242 identify->device_type = SAS_PHY_UNUSED; in _transport_set_identify()
245 identify->device_type = SAS_END_DEVICE; in _transport_set_identify()
248 identify->device_type = SAS_EDGE_EXPANDER_DEVICE; in _transport_set_identify()
251 identify->device_type = SAS_FANOUT_EXPANDER_DEVICE; in _transport_set_identify()
257 identify->initiator_port_protocols |= SAS_PROTOCOL_SSP; in _transport_set_identify()
259 identify->initiator_port_protocols |= SAS_PROTOCOL_STP; in _transport_set_identify()
261 identify->initiator_port_protocols |= SAS_PROTOCOL_SMP; in _transport_set_identify()
263 identify->initiator_port_protocols |= SAS_PROTOCOL_SATA; in _transport_set_identify()
267 identify->target_port_protocols |= SAS_PROTOCOL_SSP; in _transport_set_identify()
269 identify->target_port_protocols |= SAS_PROTOCOL_STP; in _transport_set_identify()
271 identify->target_port_protocols |= SAS_PROTOCOL_SMP; in _transport_set_identify()
273 identify->target_port_protocols |= SAS_PROTOCOL_SATA; in _transport_set_identify()
829 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add()
1033 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
1039 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
1044 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
1068 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
1102 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
1108 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
1114 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
1139 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
1335 mpi_request->SASAddress = cpu_to_le64(phy->identify.sas_address); in _transport_get_expander_phy_error_log()
1347 (u64)phy->identify.sas_address, in _transport_get_expander_phy_error_log()
1427 phy->identify.sas_address, in _transport_get_linkerrors()
1434 if (phy->identify.sas_address != ioc->sas_hba.sas_address) in _transport_get_linkerrors()
1631 mpi_request->SASAddress = cpu_to_le64(phy->identify.sas_address); in _transport_expander_phy_control()
1643 (u64)phy->identify.sas_address, in _transport_expander_phy_control()
1716 phy->identify.sas_address, in _transport_phy_reset()
1724 if (phy->identify.sas_address != ioc->sas_hba.sas_address) in _transport_phy_reset()
1775 phy->identify.sas_address, in _transport_phy_enable()
1783 if (phy->identify.sas_address != ioc->sas_hba.sas_address) in _transport_phy_enable()
1913 phy->identify.sas_address, in _transport_phy_speed()
1931 if (phy->identify.sas_address != ioc->sas_hba.sas_address) { in _transport_phy_speed()
2117 cpu_to_le64(rphy->identify.sas_address) : in _transport_smp_handler()