Lines Matching refs:mpt3sas_phy
466 struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy) in _transport_delete_phy() argument
470 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
472 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
474 list_del(&mpt3sas_phy->port_siblings); in _transport_delete_phy()
476 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
477 mpt3sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
488 struct _sas_phy *mpt3sas_phy) in _transport_add_phy() argument
492 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
494 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
496 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list); in _transport_add_phy()
498 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
499 mpt3sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
511 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy, in _transport_add_phy_to_an_existing_port() argument
517 if (mpt3sas_phy->phy_belongs_to_port == 1) in _transport_add_phy_to_an_existing_port()
527 if (phy_srch == mpt3sas_phy) in _transport_add_phy_to_an_existing_port()
530 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy); in _transport_add_phy_to_an_existing_port()
544 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in _transport_del_phy_from_an_existing_port() argument
549 if (mpt3sas_phy->phy_belongs_to_port == 0) in _transport_del_phy_from_an_existing_port()
556 if (phy_srch != mpt3sas_phy) in _transport_del_phy_from_an_existing_port()
563 mpt3sas_phy); in _transport_del_phy_from_an_existing_port()
607 struct _sas_phy *mpt3sas_phy, *next; in mpt3sas_transport_port_add() local
679 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
686 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
687 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
688 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
743 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
745 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
769 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
800 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
807 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
808 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
811 mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
812 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
830 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
833 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
836 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
843 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
844 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
850 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
851 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
852 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
853 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
854 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
855 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
877 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
878 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
879 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
881 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
882 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
898 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
902 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
904 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
911 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
912 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
918 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
919 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
921 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
922 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
923 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
924 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
947 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
948 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
949 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
951 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
952 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
970 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
982 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
983 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
987 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
989 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()
991 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
994 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
995 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
999 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1005 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()