Lines Matching defs:pkey
205 __u32 (*hash)(const void *pkey,
208 bool (*key_eq)(const struct neighbour *, const void *pkey);
213 int (*is_multicast)(const void *pkey);
279 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
281 return *(const u32 *)n->primary_key == *(const u32 *)pkey;
284 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey)
287 const u32 *p32 = pkey;
295 bool (*key_eq)(const struct neighbour *n, const void *pkey),
296 __u32 (*hash)(const void *pkey,
299 const void *pkey,
306 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift);
310 if (n->dev == dev && key_eq(n, pkey))
318 const void *pkey,
321 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev);
337 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
339 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
342 const void *pkey,
345 return __neigh_create(tbl, pkey, dev, true);
546 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat)
548 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
553 n = neigh_create(tbl, pkey, dev);
558 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey,
561 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
566 return neigh_create(tbl, pkey, dev);