• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sched/

Lines Matching defs:hinfo

35 void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo)
37 unsigned int h = tcf_hash(p->tcfc_index, hinfo->hmask);
40 for (p1p = &hinfo->htab[h]; *p1p; p1p = &(*p1p)->tcfc_next) {
42 write_lock_bh(hinfo->lock);
44 write_unlock_bh(hinfo->lock);
58 struct tcf_hashinfo *hinfo)
68 tcf_hash_destroy(p, hinfo);
77 struct tc_action *a, struct tcf_hashinfo *hinfo)
83 read_lock(hinfo->lock);
87 for (i = 0; i < (hinfo->hmask + 1); i++) {
88 p = hinfo->htab[tcf_hash(i, hinfo->hmask)];
111 read_unlock(hinfo->lock);
122 struct tcf_hashinfo *hinfo)
131 for (i = 0; i < (hinfo->hmask + 1); i++) {
132 p = hinfo->htab[tcf_hash(i, hinfo->hmask)];
136 if (ACT_P_DELETED == tcf_hash_release(p, 0, hinfo))
154 struct tcf_hashinfo *hinfo = a->ops->hinfo;
157 return tcf_del_walker(skb, a, hinfo);
159 return tcf_dump_walker(skb, cb, a, hinfo);
167 struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo)
171 read_lock(hinfo->lock);
172 for (p = hinfo->htab[tcf_hash(index, hinfo->hmask)]; p;
177 read_unlock(hinfo->lock);
183 u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo)
190 } while (tcf_hash_lookup(val, hinfo));
198 struct tcf_hashinfo *hinfo = a->ops->hinfo;
199 struct tcf_common *p = tcf_hash_lookup(index, hinfo);
210 struct tcf_hashinfo *hinfo)
213 if (index && (p = tcf_hash_lookup(index, hinfo)) != NULL) {
224 struct tcf_common *tcf_hash_create(u32 index, struct rtattr *est, struct tc_action *a, int size, int bind, u32 *idx_gen, struct tcf_hashinfo *hinfo)
236 p->tcfc_index = index ? index : tcf_hash_new_index(idx_gen, hinfo);
249 void tcf_hash_insert(struct tcf_common *p, struct tcf_hashinfo *hinfo)
251 unsigned int h = tcf_hash(p->tcfc_index, hinfo->hmask);
253 write_lock_bh(hinfo->lock);
254 p->tcfc_next = hinfo->htab[h];
255 hinfo->htab[h] = p;
256 write_unlock_bh(hinfo->lock);