Lines Matching refs:pnetids_ndev
721 read_lock(&sn->pnetids_ndev.lock); in smc_pnet_is_ndev_pnetid()
722 list_for_each_entry(pe, &sn->pnetids_ndev.list, list) { in smc_pnet_is_ndev_pnetid()
730 read_unlock(&sn->pnetids_ndev.lock); in smc_pnet_is_ndev_pnetid()
743 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_add_pnetid()
744 list_for_each_entry(pi, &sn->pnetids_ndev.list, list) { in smc_pnet_add_pnetid()
753 list_add_tail(&pe->list, &sn->pnetids_ndev.list); in smc_pnet_add_pnetid()
756 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_add_pnetid()
765 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_remove_pnetid()
766 list_for_each_entry_safe(pe, pe2, &sn->pnetids_ndev.list, list) { in smc_pnet_remove_pnetid()
775 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_remove_pnetid()
810 write_lock(&sn->pnetids_ndev.lock); in smc_pnet_destroy_pnetids_list()
811 list_for_each_entry_safe(pe, temp_pe, &sn->pnetids_ndev.list, list) { in smc_pnet_destroy_pnetids_list()
815 write_unlock(&sn->pnetids_ndev.lock); in smc_pnet_destroy_pnetids_list()
860 struct smc_pnetids_ndev *pnetids_ndev = &sn->pnetids_ndev; in smc_pnet_net_init() local
864 INIT_LIST_HEAD(&pnetids_ndev->list); in smc_pnet_net_init()
865 rwlock_init(&pnetids_ndev->lock); in smc_pnet_net_init()