Lines Matching refs:pkey

194 	__u32			(*hash)(const void *pkey,
197 bool (*key_eq)(const struct neighbour *, const void *pkey);
250 static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) in neigh_key_eq16() argument
252 return *(const u16 *)n->primary_key == *(const u16 *)pkey; in neigh_key_eq16()
255 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32() argument
257 return *(const u32 *)n->primary_key == *(const u32 *)pkey; in neigh_key_eq32()
260 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128() argument
263 const u32 *p32 = pkey; in neigh_key_eq128()
271 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref() argument
272 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref() argument
275 const void *pkey, in ___neigh_lookup_noref()
282 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_lookup_noref()
286 if (n->dev == dev && key_eq(n, pkey)) in ___neigh_lookup_noref()
294 const void *pkey, in __neigh_lookup_noref() argument
297 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev); in __neigh_lookup_noref()
302 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
305 const void *pkey);
306 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
309 const void *pkey, in neigh_create() argument
312 return __neigh_create(tbl, pkey, dev, true); in neigh_create()
471 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup() argument
473 struct neighbour *n = neigh_lookup(tbl, pkey, dev); in __neigh_lookup()
478 n = neigh_create(tbl, pkey, dev); in __neigh_lookup()
483 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno() argument
486 struct neighbour *n = neigh_lookup(tbl, pkey, dev); in __neigh_lookup_errno()
491 return neigh_create(tbl, pkey, dev); in __neigh_lookup_errno()