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
714 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
721 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
722 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
723 mpt3sas_phy->phy_belongs_to_port = 1; in mpt3sas_transport_port_add()
759 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list, in mpt3sas_transport_port_add()
761 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_add()
787 struct _sas_phy *mpt3sas_phy, *next_phy; in mpt3sas_transport_port_remove() local
818 list_for_each_entry_safe(mpt3sas_phy, next_phy, in mpt3sas_transport_port_remove()
825 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
826 mpt3sas_phy->phy_belongs_to_port = 0; in mpt3sas_transport_port_remove()
827 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in mpt3sas_transport_port_remove()
828 list_del(&mpt3sas_phy->port_siblings); in mpt3sas_transport_port_remove()
845 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) in mpt3sas_transport_add_host_phy()
848 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
851 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_host_phy()
858 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_host_phy()
859 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_host_phy()
865 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_host_phy()
866 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle); in mpt3sas_transport_add_host_phy()
867 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_host_phy()
868 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
869 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_host_phy()
870 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
892 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_host_phy()
893 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_host_phy()
894 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_host_phy()
896 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_host_phy()
897 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_host_phy()
913 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, in mpt3sas_transport_add_expander_phy()
917 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
919 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings); in mpt3sas_transport_add_expander_phy()
926 if ((_transport_set_identify(ioc, mpt3sas_phy->handle, in mpt3sas_transport_add_expander_phy()
927 &mpt3sas_phy->identify))) { in mpt3sas_transport_add_expander_phy()
933 phy->identify = mpt3sas_phy->identify; in mpt3sas_transport_add_expander_phy()
934 mpt3sas_phy->attached_handle = in mpt3sas_transport_add_expander_phy()
936 if (mpt3sas_phy->attached_handle) in mpt3sas_transport_add_expander_phy()
937 _transport_set_identify(ioc, mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
938 &mpt3sas_phy->remote_identify); in mpt3sas_transport_add_expander_phy()
939 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
962 mpt3sas_phy->handle, (unsigned long long) in mpt3sas_transport_add_expander_phy()
963 mpt3sas_phy->identify.sas_address, in mpt3sas_transport_add_expander_phy()
964 mpt3sas_phy->attached_handle, in mpt3sas_transport_add_expander_phy()
966 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_add_expander_phy()
967 mpt3sas_phy->phy = phy; in mpt3sas_transport_add_expander_phy()
987 struct _sas_phy *mpt3sas_phy; in mpt3sas_transport_update_links() local
999 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
1000 mpt3sas_phy->attached_handle = handle; in mpt3sas_transport_update_links()
1004 &mpt3sas_phy->remote_identify); in mpt3sas_transport_update_links()
1006 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()
1008 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct in mpt3sas_transport_update_links()
1011 if (mpt3sas_phy->phy) in mpt3sas_transport_update_links()
1012 mpt3sas_phy->phy->negotiated_linkrate = in mpt3sas_transport_update_links()
1016 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in mpt3sas_transport_update_links()
1022 mpt3sas_phy->remote_identify.sas_address); in mpt3sas_transport_update_links()