Lines Matching refs:mpt3sas_phy
493 struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy) in _transport_delete_phy() argument
497 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
499 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
501 list_del(&mpt3sas_phy->port_siblings); in _transport_delete_phy()
503 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
504 mpt3sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
515 struct _sas_phy *mpt3sas_phy) in _transport_add_phy() argument
519 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
521 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
523 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list); in _transport_add_phy()
525 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
526 mpt3sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
538 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy, in _transport_add_phy_to_an_existing_port() argument
544 if (mpt3sas_phy->phy_belongs_to_port == 1) in _transport_add_phy_to_an_existing_port()
554 if (phy_srch == mpt3sas_phy) in _transport_add_phy_to_an_existing_port()
557 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy); in _transport_add_phy_to_an_existing_port()
571 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in _transport_del_phy_from_an_existing_port() argument
576 if (mpt3sas_phy->phy_belongs_to_port == 0) in _transport_del_phy_from_an_existing_port()
583 if (phy_srch != mpt3sas_phy) in _transport_del_phy_from_an_existing_port()
590 mpt3sas_phy); in _transport_del_phy_from_an_existing_port()
634 struct _sas_phy *mpt3sas_phy, *next; in mpt3sas_transport_port_add() local
707 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
714 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
715 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
716 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
771 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
773 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
797 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
828 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
835 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
836 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
837 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
838 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
855 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
858 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
861 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
868 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
869 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
875 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
876 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
877 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
878 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
879 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
880 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
902 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
903 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
904 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
906 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
907 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
923 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
927 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
929 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
936 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
937 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
943 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
944 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
946 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
947 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
948 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
949 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
972 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
973 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
974 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
976 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
977 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
995 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
1007 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
1008 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
1012 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
1014 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()
1016 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
1019 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
1020 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
1024 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1030 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()