Lines Matching refs:pnetids_ndev
728 read_lock(&sn->pnetids_ndev.lock); in smc_pnet_is_ndev_pnetid()
729 list_for_each_entry(pe, &sn->pnetids_ndev.list, list) { in smc_pnet_is_ndev_pnetid()
737 read_unlock(&sn->pnetids_ndev.lock); in smc_pnet_is_ndev_pnetid()
750 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_add_pnetid()
751 list_for_each_entry(pi, &sn->pnetids_ndev.list, list) { in smc_pnet_add_pnetid()
760 list_add_tail(&pe->list, &sn->pnetids_ndev.list); in smc_pnet_add_pnetid()
763 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_add_pnetid()
772 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_remove_pnetid()
773 list_for_each_entry_safe(pe, pe2, &sn->pnetids_ndev.list, list) { in smc_pnet_remove_pnetid()
782 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_remove_pnetid()
817 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_destroy_pnetids_list()
818 list_for_each_entry_safe(pe, temp_pe, &sn->pnetids_ndev.list, list) { in smc_pnet_destroy_pnetids_list()
822 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_destroy_pnetids_list()
867 struct smc_pnetids_ndev *pnetids_ndev = &sn->pnetids_ndev; in smc_pnet_net_init() local
871 INIT_LIST_HEAD(&pnetids_ndev->list); in smc_pnet_net_init()
872 rwlock_init(&pnetids_ndev->lock); in smc_pnet_net_init()