Lines Matching refs:h
108 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold() local
110 return h; in u32_hash_fold()
349 unsigned int h; in tc_u_common_find() local
351 h = tc_u_hash(tp); in tc_u_common_find()
352 hlist_for_each_entry(tc, &tc_u_common_hash[h], hnode) { in tc_u_common_find()
363 unsigned int h; in u32_init() local
384 h = tc_u_hash(tp); in u32_init()
385 hlist_add_head(&tp_c->hnode, &tc_u_common_hash[h]); in u32_init()
507 static int u32_replace_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, in u32_replace_hw_hnode() argument
519 cls_u32.hnode.divisor = h->divisor; in u32_replace_hw_hnode()
520 cls_u32.hnode.handle = h->handle; in u32_replace_hw_hnode()
521 cls_u32.hnode.prio = h->prio; in u32_replace_hw_hnode()
530 static void u32_clear_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h) in u32_clear_hw_hnode() argument
540 cls_u32.hnode.divisor = h->divisor; in u32_clear_hw_hnode()
541 cls_u32.hnode.handle = h->handle; in u32_clear_hw_hnode()
542 cls_u32.hnode.prio = h->prio; in u32_clear_hw_hnode()
587 unsigned int h; in u32_clear_hnode() local
589 for (h = 0; h <= ht->divisor; h++) { in u32_clear_hnode()
590 while ((n = rtnl_dereference(ht->ht[h])) != NULL) { in u32_clear_hnode()
591 RCU_INIT_POINTER(ht->ht[h], in u32_clear_hnode()
630 unsigned int h; in ht_empty() local
632 for (h = 0; h <= ht->divisor; h++) in ht_empty()
633 if (rcu_access_pointer(ht->ht[h])) in ht_empty()
1115 unsigned int h; in u32_walk() local
1132 for (h = 0; h <= ht->divisor; h++) { in u32_walk()
1133 for (n = rtnl_dereference(ht->ht[h]); in u32_walk()