Lines Matching refs:pe
729 struct smc_pnetids_ndev_entry *pe;
733 list_for_each_entry(pe, &sn->pnetids_ndev.list, list) {
734 if (smc_pnet_match(pnetid, pe->pnetid)) {
748 struct smc_pnetids_ndev_entry *pe, *pi;
750 pe = kzalloc(sizeof(*pe), GFP_KERNEL);
751 if (!pe)
756 if (smc_pnet_match(pnetid, pe->pnetid)) {
758 kfree(pe);
762 refcount_set(&pe->refcnt, 1);
763 memcpy(pe->pnetid, pnetid, SMC_MAX_PNETID_LEN);
764 list_add_tail(&pe->list, &sn->pnetids_ndev.list);
774 struct smc_pnetids_ndev_entry *pe, *pe2;
777 list_for_each_entry_safe(pe, pe2, &sn->pnetids_ndev.list, list) {
778 if (smc_pnet_match(pnetid, pe->pnetid)) {
779 if (refcount_dec_and_test(&pe->refcnt)) {
780 list_del(&pe->list);
781 kfree(pe);
829 struct smc_pnetids_ndev_entry *pe, *temp_pe;
832 list_for_each_entry_safe(pe, temp_pe, &sn->pnetids_ndev.list, list) {
833 list_del(&pe->list);
834 kfree(pe);