Lines Matching refs:pkey
199 __u32 (*hash)(const void *pkey,
202 bool (*key_eq)(const struct neighbour *, const void *pkey);
207 int (*is_multicast)(const void *pkey);
266 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
268 return *(const u32 *)n->primary_key == *(const u32 *)pkey;
271 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey)
274 const u32 *p32 = pkey;
282 bool (*key_eq)(const struct neighbour *n, const void *pkey),
283 __u32 (*hash)(const void *pkey,
286 const void *pkey,
293 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift);
297 if (n->dev == dev && key_eq(n, pkey))
305 const void *pkey,
308 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev);
313 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
315 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
318 const void *pkey,
321 return __neigh_create(tbl, pkey, dev, true);
516 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat)
518 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
523 n = neigh_create(tbl, pkey, dev);
528 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey,
531 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
536 return neigh_create(tbl, pkey, dev);