Lines Matching refs:sas_node

511 	struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy,  in _transport_add_phy_to_an_existing_port()  argument
520 list_for_each_entry(mpt3sas_port, &sas_node->sas_port_list, 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
552 list_for_each_entry_safe(mpt3sas_port, next, &sas_node->sas_port_list, in _transport_del_phy_from_an_existing_port()
578 _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node, in _transport_sanity_check() argument
583 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check()
584 if (sas_node->phy[i].remote_identify.sas_address != sas_address) in _transport_sanity_check()
586 if (sas_node->phy[i].phy_belongs_to_port == 1) in _transport_sanity_check()
587 _transport_del_phy_from_an_existing_port(ioc, sas_node, in _transport_sanity_check()
588 &sas_node->phy[i]); in _transport_sanity_check()
610 struct _sas_node *sas_node; in mpt3sas_transport_port_add() local
627 sas_node = _transport_sas_node_find_by_sas_address(ioc, sas_address); in mpt3sas_transport_port_add()
630 if (!sas_node) { in mpt3sas_transport_port_add()
649 _transport_sanity_check(ioc, sas_node, in mpt3sas_transport_port_add()
652 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_add()
653 if (sas_node->phy[i].remote_identify.sas_address != in mpt3sas_transport_port_add()
656 list_add_tail(&sas_node->phy[i].port_siblings, in mpt3sas_transport_port_add()
667 if (!sas_node->parent_dev) { in mpt3sas_transport_port_add()
672 port = sas_port_alloc_num(sas_node->parent_dev); in mpt3sas_transport_port_add()
729 list_add_tail(&mpt3sas_port->port_list, &sas_node->sas_port_list); in mpt3sas_transport_port_add()
767 struct _sas_node *sas_node; in mpt3sas_transport_port_remove() local
772 sas_node = _transport_sas_node_find_by_sas_address(ioc, in mpt3sas_transport_port_remove()
774 if (!sas_node) { in mpt3sas_transport_port_remove()
778 list_for_each_entry_safe(mpt3sas_port, next, &sas_node->sas_port_list, in mpt3sas_transport_port_remove()
792 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_remove()
793 if (sas_node->phy[i].remote_identify.sas_address == sas_address) in mpt3sas_transport_port_remove()
794 memset(&sas_node->phy[i].remote_identify, 0 , in mpt3sas_transport_port_remove()
969 struct _sas_node *sas_node; in mpt3sas_transport_update_links() local
976 sas_node = _transport_sas_node_find_by_sas_address(ioc, sas_address); in mpt3sas_transport_update_links()
977 if (!sas_node) { in mpt3sas_transport_update_links()
982 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
988 _transport_add_phy_to_an_existing_port(ioc, sas_node, in mpt3sas_transport_update_links()