Lines Matching defs:handle
43 static u32 fw_hash(u32 handle)
45 handle ^= (handle >> 16);
46 handle ^= (handle >> 8);
47 return handle % HTSIZE;
79 !(TC_H_MAJ(id ^ q->handle)))) {
89 static void *fw_get(struct tcf_proto *tp, u32 handle)
97 f = rtnl_dereference(head->ht[fw_hash(handle)]);
99 if (f->id == handle)
239 u32 handle, struct nlattr **tca, void **arg,
250 return handle ? -EINVAL : 0; /* Succeed if it is old method. */
261 if (f->id != handle && handle)
302 if (!handle)
325 f->id = handle;
332 RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]);
333 rcu_assign_pointer(head->ht[fw_hash(handle)], f);