Lines Matching refs:mpt3sas_phy

531 	struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy)  in _transport_delete_phy()  argument
535 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
537 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
539 list_del(&mpt3sas_phy->port_siblings); in _transport_delete_phy()
541 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
542 mpt3sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
553 struct _sas_phy *mpt3sas_phy) in _transport_add_phy() argument
557 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
559 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
561 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list); in _transport_add_phy()
563 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
564 mpt3sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
577 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy, in mpt3sas_transport_add_phy_to_an_existing_port() argument
583 if (mpt3sas_phy->phy_belongs_to_port == 1) in mpt3sas_transport_add_phy_to_an_existing_port()
598 if (phy_srch == mpt3sas_phy) in mpt3sas_transport_add_phy_to_an_existing_port()
601 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy); in mpt3sas_transport_add_phy_to_an_existing_port()
615 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in mpt3sas_transport_del_phy_from_an_existing_port() argument
620 if (mpt3sas_phy->phy_belongs_to_port == 0) in mpt3sas_transport_del_phy_from_an_existing_port()
627 if (phy_srch != mpt3sas_phy) in mpt3sas_transport_del_phy_from_an_existing_port()
638 mpt3sas_phy); in mpt3sas_transport_del_phy_from_an_existing_port()
686 struct _sas_phy *mpt3sas_phy, *next; in mpt3sas_transport_port_add() local
794 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
801 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
802 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
803 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
804 mpt3sas_phy->port = hba_port; in mpt3sas_transport_port_add()
859 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
861 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
886 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
979 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
986 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
987 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
990 mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
991 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
1011 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
1014 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
1017 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
1024 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
1025 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
1031 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
1032 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
1033 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
1034 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
1035 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
1036 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
1047 phy->hostdata = mpt3sas_phy->port; in mpt3sas_transport_add_host_phy()
1059 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
1060 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
1061 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
1063 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
1064 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
1080 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
1084 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
1086 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
1093 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
1094 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
1100 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
1101 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
1103 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
1104 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
1105 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
1106 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
1118 phy->hostdata = mpt3sas_phy->port; in mpt3sas_transport_add_expander_phy()
1130 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
1131 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
1132 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
1134 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
1135 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
1157 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
1171 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
1172 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
1176 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
1184 (1 << mpt3sas_phy->phy_id); in mpt3sas_transport_update_links()
1188 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address, in mpt3sas_transport_update_links()
1191 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
1194 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
1195 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
1199 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1205 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()