Lines Matching defs:pkey
232 void *pkey = ndel->primary_key;
239 hash_val = tbl->hash(pkey, ndel->dev, nht->hash_rnd);
618 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
626 n = __neigh_lookup_noref(tbl, pkey, dev);
639 ___neigh_create(struct neigh_table *tbl, const void *pkey,
649 trace_neigh_create(tbl, dev, pkey, n, exempt_from_gc);
655 memcpy(n->primary_key, pkey, key_len);
734 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
739 return ___neigh_create(tbl, pkey, dev, 0, exempt_from_gc, want_ref);
743 static u32 pneigh_hash(const void *pkey, unsigned int key_len)
745 u32 hash_val = *(u32 *)(pkey + key_len - 4);
755 const void *pkey,
760 if (!memcmp(n->key, pkey, key_len) &&
770 struct net *net, const void *pkey, struct net_device *dev)
773 u32 hash_val = pneigh_hash(pkey, key_len);
776 net, pkey, key_len, dev);
781 struct net *net, const void *pkey,
786 u32 hash_val = pneigh_hash(pkey, key_len);
790 net, pkey, key_len, dev);
803 memcpy(n->key, pkey, key_len);
824 int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *pkey,
829 u32 hash_val = pneigh_hash(pkey, key_len);
834 if (!memcmp(n->key, pkey, key_len) && n->dev == dev &&