Lines Matching refs:handle

46 	u32			handle;  member
72 u32 handle; member
256 static struct tc_u_hnode *u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument
263 if (ht->handle == handle) in u32_lookup_ht()
269 static struct tc_u_knode *u32_lookup_key(struct tc_u_hnode *ht, u32 handle) in u32_lookup_key() argument
274 sel = TC_U32_HASH(handle); in u32_lookup_key()
281 if (n->handle == handle) in u32_lookup_key()
288 static void *u32_get(struct tcf_proto *tp, u32 handle) in u32_get() argument
293 if (TC_U32_HTID(handle) == TC_U32_ROOT) in u32_get()
296 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get()
301 if (TC_U32_KEY(handle) == 0) in u32_get()
304 return u32_lookup_key(ht, handle); in u32_get()
363 root_ht->handle = tp_c ? gen_new_htid(tp_c, root_ht) : 0x80000000; in u32_init()
458 kp = &ht->ht[TC_U32_HASH(key->handle)]; in u32_delete_key()
466 idr_remove(&ht->handle_idr, key->handle); in u32_delete_key()
486 cls_u32.hnode.handle = h->handle; in u32_clear_hw_hnode()
504 cls_u32.hnode.handle = h->handle; in u32_replace_hw_hnode()
529 cls_u32.knode.handle = n->handle; in u32_remove_hw_knode()
546 cls_u32.knode.handle = n->handle; in u32_replace_hw_knode()
559 cls_u32.knode.link_handle = ht->handle; in u32_replace_hw_knode()
588 idr_remove(&ht->handle_idr, n->handle); in u32_clear_hnode()
615 idr_remove(&tp_c->handle_idr, ht->handle); in u32_destroy_hnode()
666 if (TC_U32_KEY(ht->handle)) { in u32_delete()
750 u32 handle = nla_get_u32(tb[TCA_U32_LINK]); in u32_set_parms() local
753 if (TC_U32_KEY(handle)) { in u32_set_parms()
758 if (handle) { in u32_set_parms()
759 ht_down = u32_lookup_ht(tp->data, handle); in u32_set_parms()
792 if (TC_U32_HTID(n->handle) == TC_U32_ROOT) in u32_replace_knode()
795 ht = u32_lookup_ht(tp_c, TC_U32_HTID(n->handle)); in u32_replace_knode()
797 ins = &ht->ht[TC_U32_HASH(n->handle)]; in u32_replace_knode()
804 if (pins->handle == n->handle) in u32_replace_knode()
807 idr_replace(&ht->handle_idr, n, n->handle); in u32_replace_knode()
824 new->handle = n->handle; in u32_init_knode()
861 struct tcf_proto *tp, unsigned long base, u32 handle, in u32_change() argument
876 if (handle) { in u32_change()
901 if (TC_U32_KEY(n->handle) == 0) { in u32_change()
962 if (TC_U32_KEY(handle)) { in u32_change()
969 if (handle == 0) { in u32_change()
970 handle = gen_new_htid(tp->data, ht); in u32_change()
971 if (handle == 0) { in u32_change()
976 err = idr_alloc_u32(&tp_c->handle_idr, ht, &handle, in u32_change()
977 handle, GFP_KERNEL); in u32_change()
985 ht->handle = handle; in u32_change()
992 idr_remove(&tp_c->handle_idr, handle); in u32_change()
1008 htid = ht->handle; in u32_change()
1018 htid = ht->handle; in u32_change()
1047 if (handle) { in u32_change()
1049 if (TC_U32_HTID(handle) && TC_U32_HTID(handle ^ htid)) { in u32_change()
1067 if (!TC_U32_NODE(handle)) { in u32_change()
1068 handle = gen_new_kid(ht, htid); in u32_change()
1070 handle = htid | TC_U32_NODE(handle); in u32_change()
1071 err = idr_alloc_u32(&ht->handle_idr, NULL, &handle, in u32_change()
1072 handle, GFP_KERNEL); in u32_change()
1080 handle = gen_new_kid(ht, htid); in u32_change()
1117 n->handle = handle; in u32_change()
1157 ins = &ht->ht[TC_U32_HASH(handle)]; in u32_change()
1160 if (TC_U32_NODE(handle) < TC_U32_NODE(pins->handle)) in u32_change()
1185 idr_remove(&ht->handle_idr, handle); in u32_change()
1230 cls_u32.hnode.handle = ht->handle; in u32_reoffload_hnode()
1251 cls_u32.knode.handle = n->handle; in u32_reoffload_knode()
1266 cls_u32.knode.link_handle = ht->handle; in u32_reoffload_knode()
1339 t->tcm_handle = n->handle; in u32_dump()
1345 if (TC_U32_KEY(n->handle) == 0) { in u32_dump()
1363 u32 htid = n->handle & 0xFFFFF000; in u32_dump()
1373 nla_put_u32(skb, TCA_U32_LINK, ht_down->handle)) in u32_dump()
1432 if (TC_U32_KEY(n->handle)) in u32_dump()