Lines Matching refs:mpt3sas_phy
499 struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy) in _transport_delete_phy() argument
503 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
505 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
507 list_del(&mpt3sas_phy->port_siblings); in _transport_delete_phy()
509 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
510 mpt3sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
523 struct _sas_phy *mpt3sas_phy) in _transport_add_phy() argument
527 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
529 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
531 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list); in _transport_add_phy()
533 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
534 mpt3sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
548 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy, in _transport_add_phy_to_an_existing_port() argument
554 if (mpt3sas_phy->phy_belongs_to_port == 1) in _transport_add_phy_to_an_existing_port()
564 if (phy_srch == mpt3sas_phy) in _transport_add_phy_to_an_existing_port()
567 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy); in _transport_add_phy_to_an_existing_port()
583 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in _transport_del_phy_from_an_existing_port() argument
588 if (mpt3sas_phy->phy_belongs_to_port == 0) in _transport_del_phy_from_an_existing_port()
595 if (phy_srch != mpt3sas_phy) in _transport_del_phy_from_an_existing_port()
602 mpt3sas_phy); in _transport_del_phy_from_an_existing_port()
646 struct _sas_phy *mpt3sas_phy, *next; in mpt3sas_transport_port_add() local
713 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
720 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
721 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
722 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
758 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
760 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
786 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
817 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
824 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
825 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
826 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
827 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
844 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
847 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
850 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
857 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
858 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
864 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
865 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
866 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
867 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
868 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
869 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
891 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
892 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
893 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
895 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
896 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
912 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
916 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
918 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
925 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
926 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
932 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
933 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
935 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
936 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
937 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
938 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
961 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
962 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
963 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
965 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
966 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
986 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
998 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
999 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
1003 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
1005 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()
1007 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
1010 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
1011 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
1015 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1021 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()