Lines Matching refs:sas_node

577 	struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy,  in mpt3sas_transport_add_phy_to_an_existing_port()  argument
589 list_for_each_entry(mpt3sas_port, &sas_node->sas_port_list, in mpt3sas_transport_add_phy_to_an_existing_port()
615 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy) in mpt3sas_transport_del_phy_from_an_existing_port() argument
623 list_for_each_entry_safe(mpt3sas_port, next, &sas_node->sas_port_list, in mpt3sas_transport_del_phy_from_an_existing_port()
654 _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node, in _transport_sanity_check() argument
659 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check()
660 if (sas_node->phy[i].remote_identify.sas_address != sas_address) in _transport_sanity_check()
662 if (sas_node->phy[i].port != port) in _transport_sanity_check()
664 if (sas_node->phy[i].phy_belongs_to_port == 1) in _transport_sanity_check()
666 sas_node, &sas_node->phy[i]); in _transport_sanity_check()
689 struct _sas_node *sas_node; in mpt3sas_transport_port_add() local
713 sas_node = _transport_sas_node_find_by_sas_address(ioc, in mpt3sas_transport_port_add()
717 if (!sas_node) { in mpt3sas_transport_port_add()
737 _transport_sanity_check(ioc, sas_node, in mpt3sas_transport_port_add()
740 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_add()
741 if (sas_node->phy[i].remote_identify.sas_address != in mpt3sas_transport_port_add()
744 if (sas_node->phy[i].port != hba_port) in mpt3sas_transport_port_add()
746 list_add_tail(&sas_node->phy[i].port_siblings, in mpt3sas_transport_port_add()
749 if (sas_node->handle <= ioc->sas_hba.num_phys) { in mpt3sas_transport_port_add()
750 if (!sas_node->phy[i].hba_vphy) { in mpt3sas_transport_port_add()
782 if (!sas_node->parent_dev) { in mpt3sas_transport_port_add()
787 port = sas_port_alloc_num(sas_node->parent_dev); in mpt3sas_transport_port_add()
811 if (sas_node->handle <= ioc->sas_hba.num_phys) { in mpt3sas_transport_port_add()
822 if (sas_node->handle <= ioc->sas_hba.num_phys) in mpt3sas_transport_port_add()
845 list_add_tail(&mpt3sas_port->port_list, &sas_node->sas_port_list); in mpt3sas_transport_port_add()
884 struct _sas_node *sas_node; in mpt3sas_transport_port_remove() local
894 sas_node = _transport_sas_node_find_by_sas_address(ioc, in mpt3sas_transport_port_remove()
896 if (!sas_node) { in mpt3sas_transport_port_remove()
900 list_for_each_entry_safe(mpt3sas_port, next, &sas_node->sas_port_list, in mpt3sas_transport_port_remove()
916 if (sas_node->handle <= ioc->sas_hba.num_phys && in mpt3sas_transport_port_remove()
971 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_remove()
972 if (sas_node->phy[i].remote_identify.sas_address == sas_address) in mpt3sas_transport_port_remove()
973 memset(&sas_node->phy[i].remote_identify, 0 , in mpt3sas_transport_port_remove()
1156 struct _sas_node *sas_node; in mpt3sas_transport_update_links() local
1164 sas_node = _transport_sas_node_find_by_sas_address(ioc, in mpt3sas_transport_update_links()
1166 if (!sas_node) { in mpt3sas_transport_update_links()
1171 mpt3sas_phy = &sas_node->phy[phy_number]; in mpt3sas_transport_update_links()
1177 if ((sas_node->handle <= ioc->sas_hba.num_phys) && in mpt3sas_transport_update_links()
1187 mpt3sas_transport_add_phy_to_an_existing_port(ioc, sas_node, in mpt3sas_transport_update_links()