Lines Matching defs:pkey
205 void *pkey = ndel->primary_key;
212 hash_val = tbl->hash(pkey, ndel->dev, nht->hash_rnd);
562 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
570 n = __neigh_lookup_noref(tbl, pkey, dev);
583 ___neigh_create(struct neigh_table *tbl, const void *pkey,
593 trace_neigh_create(tbl, dev, pkey, n, exempt_from_gc);
599 memcpy(n->primary_key, pkey, key_len);
677 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
680 return ___neigh_create(tbl, pkey, dev, 0, false, want_ref);
684 static u32 pneigh_hash(const void *pkey, unsigned int key_len)
686 u32 hash_val = *(u32 *)(pkey + key_len - 4);
696 const void *pkey,
701 if (!memcmp(n->key, pkey, key_len) &&
711 struct net *net, const void *pkey, struct net_device *dev)
714 u32 hash_val = pneigh_hash(pkey, key_len);
717 net, pkey, key_len, dev);
722 struct net *net, const void *pkey,
727 u32 hash_val = pneigh_hash(pkey, key_len);
731 net, pkey, key_len, dev);
744 memcpy(n->key, pkey, key_len);
767 int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *pkey,
772 u32 hash_val = pneigh_hash(pkey, key_len);
777 if (!memcmp(n->key, pkey, key_len) && n->dev == dev &&