Lines Matching refs:pn
1720 struct pneigh_entry *pn; in neigh_add() local
1723 pn = pneigh_lookup(tbl, net, dst, dev, 1); in neigh_add()
1724 if (pn) { in neigh_add()
1725 pn->flags = ndm->ndm_flags; in neigh_add()
2182 static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, in pneigh_fill_info() argument
2197 ndm->ndm_flags = pn->flags | NTF_PROXY; in pneigh_fill_info()
2199 ndm->ndm_ifindex = pn->dev->ifindex; in pneigh_fill_info()
2202 if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) in pneigh_fill_info()
2504 struct pneigh_entry *pn = NULL; in pneigh_get_first() local
2509 pn = tbl->phash_buckets[bucket]; in pneigh_get_first()
2510 while (pn && !net_eq(pneigh_net(pn), net)) in pneigh_get_first()
2511 pn = pn->next; in pneigh_get_first()
2512 if (pn) in pneigh_get_first()
2517 return pn; in pneigh_get_first()
2521 struct pneigh_entry *pn, in pneigh_get_next()
2529 pn = pn->next; in pneigh_get_next()
2530 } while (pn && !net_eq(pneigh_net(pn), net)); in pneigh_get_next()
2532 while (!pn) { in pneigh_get_next()
2535 pn = tbl->phash_buckets[state->bucket]; in pneigh_get_next()
2536 while (pn && !net_eq(pneigh_net(pn), net)) in pneigh_get_next()
2537 pn = pn->next; in pneigh_get_next()
2538 if (pn) in pneigh_get_next()
2542 if (pn && pos) in pneigh_get_next()
2545 return pn; in pneigh_get_next()
2550 struct pneigh_entry *pn = pneigh_get_first(seq); in pneigh_get_idx() local
2552 if (pn) { in pneigh_get_idx()
2555 pn = pneigh_get_next(seq, pn, pos); in pneigh_get_idx()
2556 if (!pn) in pneigh_get_idx()
2560 return *pos ? NULL : pn; in pneigh_get_idx()