Lines Matching refs:pe
720 struct smc_pnetids_ndev_entry *pe; in smc_pnet_is_ndev_pnetid() local
724 list_for_each_entry(pe, &sn->pnetids_ndev.list, list) { in smc_pnet_is_ndev_pnetid()
725 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_is_ndev_pnetid()
739 struct smc_pnetids_ndev_entry *pe, *pi; in smc_pnet_add_pnetid() local
741 pe = kzalloc(sizeof(*pe), GFP_KERNEL); in smc_pnet_add_pnetid()
742 if (!pe) in smc_pnet_add_pnetid()
747 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_add_pnetid()
749 kfree(pe); in smc_pnet_add_pnetid()
753 refcount_set(&pe->refcnt, 1); in smc_pnet_add_pnetid()
754 memcpy(pe->pnetid, pnetid, SMC_MAX_PNETID_LEN); in smc_pnet_add_pnetid()
755 list_add_tail(&pe->list, &sn->pnetids_ndev.list); in smc_pnet_add_pnetid()
765 struct smc_pnetids_ndev_entry *pe, *pe2; in smc_pnet_remove_pnetid() local
768 list_for_each_entry_safe(pe, pe2, &sn->pnetids_ndev.list, list) { in smc_pnet_remove_pnetid()
769 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_remove_pnetid()
770 if (refcount_dec_and_test(&pe->refcnt)) { in smc_pnet_remove_pnetid()
771 list_del(&pe->list); in smc_pnet_remove_pnetid()
772 kfree(pe); in smc_pnet_remove_pnetid()
810 struct smc_pnetids_ndev_entry *pe, *temp_pe; in smc_pnet_destroy_pnetids_list() local
813 list_for_each_entry_safe(pe, temp_pe, &sn->pnetids_ndev.list, list) { in smc_pnet_destroy_pnetids_list()
814 list_del(&pe->list); in smc_pnet_destroy_pnetids_list()
815 kfree(pe); in smc_pnet_destroy_pnetids_list()