• Home
  • Raw
  • Download

Lines Matching refs:i

253 	int i;  in hhf_classify()  local
260 for (i = 0; i < HHF_ARRAYS_CNT; i++) in hhf_classify()
261 bitmap_zero(q->hhf_valid_bits[i], HHF_ARRAYS_LEN); in hhf_classify()
279 for (i = 0; i < HHF_ARRAYS_CNT - 1; i++) { in hhf_classify()
281 filter_pos[i] = tmp_hash & HHF_BIT_MASK; in hhf_classify()
282 xorsum ^= filter_pos[i]; in hhf_classify()
290 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_classify()
293 if (!test_bit(filter_pos[i], q->hhf_valid_bits[i])) { in hhf_classify()
294 q->hhf_arrays[i][filter_pos[i]] = 0; in hhf_classify()
295 __set_bit(filter_pos[i], q->hhf_valid_bits[i]); in hhf_classify()
298 val = q->hhf_arrays[i][filter_pos[i]] + pkt_len; in hhf_classify()
320 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_classify()
321 if (q->hhf_arrays[i][filter_pos[i]] < min_hhf_val) in hhf_classify()
322 q->hhf_arrays[i][filter_pos[i]] = min_hhf_val; in hhf_classify()
472 int i; in hhf_destroy() local
475 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_destroy()
476 kvfree(q->hhf_arrays[i]); in hhf_destroy()
477 kvfree(q->hhf_valid_bits[i]); in hhf_destroy()
483 for (i = 0; i < HH_FLOWS_CNT; i++) { in hhf_destroy()
485 struct list_head *head = &q->hh_flows[i]; in hhf_destroy()
577 int i; in hhf_init() local
604 for (i = 0; i < HH_FLOWS_CNT; i++) in hhf_init()
605 INIT_LIST_HEAD(&q->hh_flows[i]); in hhf_init()
614 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_init()
615 q->hhf_arrays[i] = kvzalloc(HHF_ARRAYS_LEN * in hhf_init()
617 if (!q->hhf_arrays[i]) { in hhf_init()
627 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_init()
628 q->hhf_valid_bits[i] = kvzalloc(HHF_ARRAYS_LEN / in hhf_init()
630 if (!q->hhf_valid_bits[i]) { in hhf_init()
639 for (i = 0; i < WDRR_BUCKET_CNT; i++) { in hhf_init()
640 struct wdrr_bucket *bucket = q->buckets + i; in hhf_init()