Lines Matching refs:mpt3sas_phy

500 	struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy)  in _transport_delete_phy()  argument
504 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
506 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
508 list_del(&mpt3sas_phy->port_siblings); in _transport_delete_phy()
510 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
511 mpt3sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
524 struct _sas_phy *mpt3sas_phy) in _transport_add_phy() argument
528 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
530 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
532 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list); in _transport_add_phy()
534 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
535 mpt3sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
549 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy, in _transport_add_phy_to_an_existing_port() argument
555 if (mpt3sas_phy->phy_belongs_to_port == 1) in _transport_add_phy_to_an_existing_port()
565 if (phy_srch == mpt3sas_phy) in _transport_add_phy_to_an_existing_port()
568 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy); in _transport_add_phy_to_an_existing_port()
584 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in _transport_del_phy_from_an_existing_port() argument
589 if (mpt3sas_phy->phy_belongs_to_port == 0) in _transport_del_phy_from_an_existing_port()
596 if (phy_srch != mpt3sas_phy) in _transport_del_phy_from_an_existing_port()
603 mpt3sas_phy); in _transport_del_phy_from_an_existing_port()
647 struct _sas_phy *mpt3sas_phy, *next; in mpt3sas_transport_port_add() local
715 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
722 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
723 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
724 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
779 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
781 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
807 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
838 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
845 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
846 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
847 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
848 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
865 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
868 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
871 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
878 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
879 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
885 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
886 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
887 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
888 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
889 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
890 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
912 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
913 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
914 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
916 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
917 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
933 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
937 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
939 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
946 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
947 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
953 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
954 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
956 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
957 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
958 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
959 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
982 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
983 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
984 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
986 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
987 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
1007 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
1019 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
1020 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
1024 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
1026 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()
1028 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
1031 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
1032 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
1036 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1042 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()