Lines Matching refs:pkey
205 __u32 (*hash)(const void *pkey,
208 bool (*key_eq)(const struct neighbour *, const void *pkey);
213 int (*is_multicast)(const void *pkey);
271 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32() argument
273 return *(const u32 *)n->primary_key == *(const u32 *)pkey; in neigh_key_eq32()
276 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128() argument
279 const u32 *p32 = pkey; in neigh_key_eq128()
287 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref() argument
288 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref() argument
291 const void *pkey, in ___neigh_lookup_noref()
298 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_lookup_noref()
302 if (n->dev == dev && key_eq(n, pkey)) in ___neigh_lookup_noref()
310 const void *pkey, in __neigh_lookup_noref() argument
313 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev); in __neigh_lookup_noref()
318 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
320 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
323 const void *pkey, in neigh_create() argument
326 return __neigh_create(tbl, pkey, dev, true); in neigh_create()
521 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup() argument
523 struct neighbour *n = neigh_lookup(tbl, pkey, dev); in __neigh_lookup()
528 n = neigh_create(tbl, pkey, dev); in __neigh_lookup()
533 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno() argument
536 struct neighbour *n = neigh_lookup(tbl, pkey, dev); in __neigh_lookup_errno()
541 return neigh_create(tbl, pkey, dev); in __neigh_lookup_errno()