Lines Matching refs:mr_sas_node
651 struct mpi3mr_sas_node *mr_sas_node, struct mpi3mr_sas_phy *mr_sas_phy, in mpi3mr_add_phy_to_an_existing_port() argument
663 list_for_each_entry(mr_sas_port, &mr_sas_node->sas_port_list, in mpi3mr_add_phy_to_an_existing_port()
717 struct mpi3mr_sas_node *mr_sas_node, struct mpi3mr_sas_phy *mr_sas_phy) in mpi3mr_del_phy_from_an_existing_port() argument
725 list_for_each_entry_safe(mr_sas_port, next, &mr_sas_node->sas_port_list, in mpi3mr_del_phy_from_an_existing_port()
756 struct mpi3mr_sas_node *mr_sas_node, u64 sas_address, in mpi3mr_sas_port_sanity_check() argument
761 for (i = 0; i < mr_sas_node->num_phys; i++) { in mpi3mr_sas_port_sanity_check()
762 if ((mr_sas_node->phy[i].remote_identify.sas_address != in mpi3mr_sas_port_sanity_check()
763 sas_address) || (mr_sas_node->phy[i].hba_port != hba_port)) in mpi3mr_sas_port_sanity_check()
765 if (mr_sas_node->phy[i].phy_belongs_to_port == 1) in mpi3mr_sas_port_sanity_check()
767 mr_sas_node, &mr_sas_node->phy[i]); in mpi3mr_sas_port_sanity_check()
1057 struct mpi3mr_sas_node *mr_sas_node; in mpi3mr_update_links() local
1064 mr_sas_node = __mpi3mr_sas_node_find_by_sas_address(mrioc, in mpi3mr_update_links()
1066 if (!mr_sas_node) { in mpi3mr_update_links()
1071 mr_sas_phy = &mr_sas_node->phy[phy_number]; in mpi3mr_update_links()
1077 mpi3mr_add_phy_to_an_existing_port(mrioc, mr_sas_node, in mpi3mr_update_links()
1312 struct mpi3mr_sas_node *mr_sas_node; in mpi3mr_sas_port_add() local
1331 mr_sas_node = __mpi3mr_sas_node_find_by_sas_address(mrioc, in mpi3mr_sas_port_add()
1335 if (!mr_sas_node) { in mpi3mr_sas_port_add()
1355 mpi3mr_sas_port_sanity_check(mrioc, mr_sas_node, in mpi3mr_sas_port_add()
1358 for (i = 0; i < mr_sas_node->num_phys; i++) { in mpi3mr_sas_port_add()
1359 if ((mr_sas_node->phy[i].remote_identify.sas_address != in mpi3mr_sas_port_add()
1361 (mr_sas_node->phy[i].hba_port != hba_port)) in mpi3mr_sas_port_add()
1363 list_add_tail(&mr_sas_node->phy[i].port_siblings, in mpi3mr_sas_port_add()
1390 if (!mr_sas_node->parent_dev) { in mpi3mr_sas_port_add()
1396 port = sas_port_alloc_num(mr_sas_node->parent_dev); in mpi3mr_sas_port_add()
1446 list_add_tail(&mr_sas_port->port_list, &mr_sas_node->sas_port_list); in mpi3mr_sas_port_add()
1492 struct mpi3mr_sas_node *mr_sas_node; in mpi3mr_sas_port_remove() local
1501 mr_sas_node = __mpi3mr_sas_node_find_by_sas_address(mrioc, in mpi3mr_sas_port_remove()
1503 if (!mr_sas_node) { in mpi3mr_sas_port_remove()
1507 list_for_each_entry_safe(mr_sas_port, next, &mr_sas_node->sas_port_list, in mpi3mr_sas_port_remove()
1524 if (mr_sas_node->host_node) { in mpi3mr_sas_port_remove()
1538 for (i = 0; i < mr_sas_node->num_phys; i++) { in mpi3mr_sas_port_remove()
1539 if (mr_sas_node->phy[i].remote_identify.sas_address == in mpi3mr_sas_port_remove()
1541 memset(&mr_sas_node->phy[i].remote_identify, 0, in mpi3mr_sas_port_remove()