Lines Matching refs:mpt2sas_phy

508 	struct _sas_port *mpt2sas_port, struct _sas_phy *mpt2sas_phy)  in _transport_delete_phy()  argument
512 dev_printk(KERN_INFO, &mpt2sas_phy->phy->dev, in _transport_delete_phy()
514 (unsigned long long) sas_address, mpt2sas_phy->phy_id); in _transport_delete_phy()
516 list_del(&mpt2sas_phy->port_siblings); in _transport_delete_phy()
518 sas_port_delete_phy(mpt2sas_port->port, mpt2sas_phy->phy); in _transport_delete_phy()
519 mpt2sas_phy->phy_belongs_to_port = 0; in _transport_delete_phy()
532 struct _sas_phy *mpt2sas_phy) in _transport_add_phy() argument
536 dev_printk(KERN_INFO, &mpt2sas_phy->phy->dev, in _transport_add_phy()
538 sas_address, mpt2sas_phy->phy_id); in _transport_add_phy()
540 list_add_tail(&mpt2sas_phy->port_siblings, &mpt2sas_port->phy_list); in _transport_add_phy()
542 sas_port_add_phy(mpt2sas_port->port, mpt2sas_phy->phy); in _transport_add_phy()
543 mpt2sas_phy->phy_belongs_to_port = 1; in _transport_add_phy()
557 struct _sas_node *sas_node, struct _sas_phy *mpt2sas_phy, u64 sas_address) in _transport_add_phy_to_an_existing_port() argument
562 if (mpt2sas_phy->phy_belongs_to_port == 1) in _transport_add_phy_to_an_existing_port()
572 if (phy_srch == mpt2sas_phy) in _transport_add_phy_to_an_existing_port()
575 _transport_add_phy(ioc, mpt2sas_port, mpt2sas_phy); in _transport_add_phy_to_an_existing_port()
591 struct _sas_node *sas_node, struct _sas_phy *mpt2sas_phy) in _transport_del_phy_from_an_existing_port() argument
596 if (mpt2sas_phy->phy_belongs_to_port == 0) in _transport_del_phy_from_an_existing_port()
603 if (phy_srch != mpt2sas_phy) in _transport_del_phy_from_an_existing_port()
609 mpt2sas_phy); in _transport_del_phy_from_an_existing_port()
653 struct _sas_phy *mpt2sas_phy, *next; in mpt2sas_transport_port_add() local
720 list_for_each_entry(mpt2sas_phy, &mpt2sas_port->phy_list, in mpt2sas_transport_port_add()
727 mpt2sas_phy->phy_id); in mpt2sas_transport_port_add()
728 sas_port_add_phy(port, mpt2sas_phy->phy); in mpt2sas_transport_port_add()
729 mpt2sas_phy->phy_belongs_to_port = 1; in mpt2sas_transport_port_add()
766 list_for_each_entry_safe(mpt2sas_phy, next, &mpt2sas_port->phy_list, in mpt2sas_transport_port_add()
768 list_del(&mpt2sas_phy->port_siblings); in mpt2sas_transport_port_add()
794 struct _sas_phy *mpt2sas_phy, *next_phy; in mpt2sas_transport_port_remove() local
824 list_for_each_entry_safe(mpt2sas_phy, next_phy, in mpt2sas_transport_port_remove()
831 mpt2sas_phy->phy_id); in mpt2sas_transport_port_remove()
832 mpt2sas_phy->phy_belongs_to_port = 0; in mpt2sas_transport_port_remove()
833 sas_port_delete_phy(mpt2sas_port->port, mpt2sas_phy->phy); in mpt2sas_transport_port_remove()
834 list_del(&mpt2sas_phy->port_siblings); in mpt2sas_transport_port_remove()
851 *mpt2sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt2sas_transport_add_host_phy()
854 int phy_index = mpt2sas_phy->phy_id; in mpt2sas_transport_add_host_phy()
857 INIT_LIST_HEAD(&mpt2sas_phy->port_siblings); in mpt2sas_transport_add_host_phy()
864 if ((_transport_set_identify(ioc, mpt2sas_phy->handle, in mpt2sas_transport_add_host_phy()
865 &mpt2sas_phy->identify))) { in mpt2sas_transport_add_host_phy()
870 phy->identify = mpt2sas_phy->identify; in mpt2sas_transport_add_host_phy()
871 mpt2sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt2sas_transport_add_host_phy()
872 if (mpt2sas_phy->attached_handle) in mpt2sas_transport_add_host_phy()
873 _transport_set_identify(ioc, mpt2sas_phy->attached_handle, in mpt2sas_transport_add_host_phy()
874 &mpt2sas_phy->remote_identify); in mpt2sas_transport_add_host_phy()
875 phy->identify.phy_identifier = mpt2sas_phy->phy_id; in mpt2sas_transport_add_host_phy()
897 mpt2sas_phy->handle, (unsigned long long) in mpt2sas_transport_add_host_phy()
898 mpt2sas_phy->identify.sas_address, in mpt2sas_transport_add_host_phy()
899 mpt2sas_phy->attached_handle, in mpt2sas_transport_add_host_phy()
901 mpt2sas_phy->remote_identify.sas_address); in mpt2sas_transport_add_host_phy()
902 mpt2sas_phy->phy = phy; in mpt2sas_transport_add_host_phy()
918 *mpt2sas_phy, Mpi2ExpanderPage1_t expander_pg1, struct device *parent_dev) in mpt2sas_transport_add_expander_phy()
921 int phy_index = mpt2sas_phy->phy_id; in mpt2sas_transport_add_expander_phy()
923 INIT_LIST_HEAD(&mpt2sas_phy->port_siblings); in mpt2sas_transport_add_expander_phy()
930 if ((_transport_set_identify(ioc, mpt2sas_phy->handle, in mpt2sas_transport_add_expander_phy()
931 &mpt2sas_phy->identify))) { in mpt2sas_transport_add_expander_phy()
936 phy->identify = mpt2sas_phy->identify; in mpt2sas_transport_add_expander_phy()
937 mpt2sas_phy->attached_handle = in mpt2sas_transport_add_expander_phy()
939 if (mpt2sas_phy->attached_handle) in mpt2sas_transport_add_expander_phy()
940 _transport_set_identify(ioc, mpt2sas_phy->attached_handle, in mpt2sas_transport_add_expander_phy()
941 &mpt2sas_phy->remote_identify); in mpt2sas_transport_add_expander_phy()
942 phy->identify.phy_identifier = mpt2sas_phy->phy_id; in mpt2sas_transport_add_expander_phy()
965 mpt2sas_phy->handle, (unsigned long long) in mpt2sas_transport_add_expander_phy()
966 mpt2sas_phy->identify.sas_address, in mpt2sas_transport_add_expander_phy()
967 mpt2sas_phy->attached_handle, in mpt2sas_transport_add_expander_phy()
969 mpt2sas_phy->remote_identify.sas_address); in mpt2sas_transport_add_expander_phy()
970 mpt2sas_phy->phy = phy; in mpt2sas_transport_add_expander_phy()
990 struct _sas_phy *mpt2sas_phy; in mpt2sas_transport_update_links() local
1002 mpt2sas_phy = &sas_node->phy[phy_number]; in mpt2sas_transport_update_links()
1003 mpt2sas_phy->attached_handle = handle; in mpt2sas_transport_update_links()
1007 &mpt2sas_phy->remote_identify); in mpt2sas_transport_update_links()
1009 mpt2sas_phy, mpt2sas_phy->remote_identify.sas_address); in mpt2sas_transport_update_links()
1011 memset(&mpt2sas_phy->remote_identify, 0 , sizeof(struct in mpt2sas_transport_update_links()
1014 if (mpt2sas_phy->phy) in mpt2sas_transport_update_links()
1015 mpt2sas_phy->phy->negotiated_linkrate = in mpt2sas_transport_update_links()
1019 dev_printk(KERN_INFO, &mpt2sas_phy->phy->dev, in mpt2sas_transport_update_links()
1025 mpt2sas_phy->remote_identify.sas_address); in mpt2sas_transport_update_links()