avg_wire_size 1351 drivers/net/ethernet/intel/fm10k/fm10k_main.c unsigned int avg_wire_size, packets, itr_round; avg_wire_size 1361 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size = ring_container->total_bytes / packets; avg_wire_size 1378 drivers/net/ethernet/intel/fm10k/fm10k_main.c if (avg_wire_size <= 360) { avg_wire_size 1380 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size *= 8; avg_wire_size 1381 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size += 376; avg_wire_size 1382 drivers/net/ethernet/intel/fm10k/fm10k_main.c } else if (avg_wire_size <= 1152) { avg_wire_size 1384 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size *= 3; avg_wire_size 1385 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size += 2176; avg_wire_size 1386 drivers/net/ethernet/intel/fm10k/fm10k_main.c } else if (avg_wire_size <= 1920) { avg_wire_size 1388 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size += 4480; avg_wire_size 1391 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size = 6656; avg_wire_size 1399 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size += BIT(itr_round) - 1; avg_wire_size 1400 drivers/net/ethernet/intel/fm10k/fm10k_main.c avg_wire_size >>= itr_round; avg_wire_size 1403 drivers/net/ethernet/intel/fm10k/fm10k_main.c ring_container->itr = avg_wire_size | FM10K_ITR_ADAPTIVE; avg_wire_size 1008 drivers/net/ethernet/intel/i40e/i40e_txrx.c unsigned int avg_wire_size, packets, bytes, itr; avg_wire_size 1129 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size = bytes / packets; avg_wire_size 1146 drivers/net/ethernet/intel/i40e/i40e_txrx.c if (avg_wire_size <= 60) { avg_wire_size 1148 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size = 4096; avg_wire_size 1149 drivers/net/ethernet/intel/i40e/i40e_txrx.c } else if (avg_wire_size <= 380) { avg_wire_size 1151 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size *= 40; avg_wire_size 1152 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size += 1696; avg_wire_size 1153 drivers/net/ethernet/intel/i40e/i40e_txrx.c } else if (avg_wire_size <= 1084) { avg_wire_size 1155 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size *= 15; avg_wire_size 1156 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size += 11452; avg_wire_size 1157 drivers/net/ethernet/intel/i40e/i40e_txrx.c } else if (avg_wire_size <= 1980) { avg_wire_size 1159 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size *= 5; avg_wire_size 1160 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size += 22420; avg_wire_size 1163 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size = 32256; avg_wire_size 1170 drivers/net/ethernet/intel/i40e/i40e_txrx.c avg_wire_size /= 2; avg_wire_size 1179 drivers/net/ethernet/intel/i40e/i40e_txrx.c itr += DIV_ROUND_UP(avg_wire_size, i40e_itr_divisor(q_vector)) * avg_wire_size 418 drivers/net/ethernet/intel/iavf/iavf_txrx.c unsigned int avg_wire_size, packets, bytes, itr; avg_wire_size 539 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size = bytes / packets; avg_wire_size 556 drivers/net/ethernet/intel/iavf/iavf_txrx.c if (avg_wire_size <= 60) { avg_wire_size 558 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size = 4096; avg_wire_size 559 drivers/net/ethernet/intel/iavf/iavf_txrx.c } else if (avg_wire_size <= 380) { avg_wire_size 561 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size *= 40; avg_wire_size 562 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size += 1696; avg_wire_size 563 drivers/net/ethernet/intel/iavf/iavf_txrx.c } else if (avg_wire_size <= 1084) { avg_wire_size 565 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size *= 15; avg_wire_size 566 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size += 11452; avg_wire_size 567 drivers/net/ethernet/intel/iavf/iavf_txrx.c } else if (avg_wire_size <= 1980) { avg_wire_size 569 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size *= 5; avg_wire_size 570 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size += 22420; avg_wire_size 573 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size = 32256; avg_wire_size 580 drivers/net/ethernet/intel/iavf/iavf_txrx.c avg_wire_size /= 2; avg_wire_size 589 drivers/net/ethernet/intel/iavf/iavf_txrx.c itr += DIV_ROUND_UP(avg_wire_size, iavf_itr_divisor(q_vector)) * avg_wire_size 5466 drivers/net/ethernet/intel/igb/igb_main.c int avg_wire_size = 0; avg_wire_size 5480 drivers/net/ethernet/intel/igb/igb_main.c avg_wire_size = q_vector->rx.total_bytes / packets; avg_wire_size 5484 drivers/net/ethernet/intel/igb/igb_main.c avg_wire_size = max_t(u32, avg_wire_size, avg_wire_size 5488 drivers/net/ethernet/intel/igb/igb_main.c if (!avg_wire_size) avg_wire_size 5492 drivers/net/ethernet/intel/igb/igb_main.c avg_wire_size += 24; avg_wire_size 5495 drivers/net/ethernet/intel/igb/igb_main.c avg_wire_size = min(avg_wire_size, 3000); avg_wire_size 5498 drivers/net/ethernet/intel/igb/igb_main.c if ((avg_wire_size > 300) && (avg_wire_size < 1200)) avg_wire_size 5499 drivers/net/ethernet/intel/igb/igb_main.c new_val = avg_wire_size / 3; avg_wire_size 5501 drivers/net/ethernet/intel/igb/igb_main.c new_val = avg_wire_size / 2; avg_wire_size 3093 drivers/net/ethernet/intel/igc/igc_main.c int avg_wire_size = 0; avg_wire_size 3110 drivers/net/ethernet/intel/igc/igc_main.c avg_wire_size = q_vector->rx.total_bytes / packets; avg_wire_size 3114 drivers/net/ethernet/intel/igc/igc_main.c avg_wire_size = max_t(u32, avg_wire_size, avg_wire_size 3118 drivers/net/ethernet/intel/igc/igc_main.c if (!avg_wire_size) avg_wire_size 3122 drivers/net/ethernet/intel/igc/igc_main.c avg_wire_size += 24; avg_wire_size 3125 drivers/net/ethernet/intel/igc/igc_main.c avg_wire_size = min(avg_wire_size, 3000); avg_wire_size 3128 drivers/net/ethernet/intel/igc/igc_main.c if (avg_wire_size > 300 && avg_wire_size < 1200) avg_wire_size 3129 drivers/net/ethernet/intel/igc/igc_main.c new_val = avg_wire_size / 3; avg_wire_size 3131 drivers/net/ethernet/intel/igc/igc_main.c new_val = avg_wire_size / 2; avg_wire_size 2509 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c unsigned int avg_wire_size, packets, bytes; avg_wire_size 2599 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size = bytes / packets; avg_wire_size 2616 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (avg_wire_size <= 60) { avg_wire_size 2618 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size = 5120; avg_wire_size 2619 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c } else if (avg_wire_size <= 316) { avg_wire_size 2621 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size *= 40; avg_wire_size 2622 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size += 2720; avg_wire_size 2623 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c } else if (avg_wire_size <= 1084) { avg_wire_size 2625 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size *= 15; avg_wire_size 2626 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size += 11452; avg_wire_size 2627 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c } else if (avg_wire_size < 1968) { avg_wire_size 2629 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size *= 5; avg_wire_size 2630 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size += 22420; avg_wire_size 2633 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size = 32256; avg_wire_size 2640 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size >>= 1; avg_wire_size 2653 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c itr += DIV_ROUND_UP(avg_wire_size, avg_wire_size 2660 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (avg_wire_size > 8064) avg_wire_size 2661 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c avg_wire_size = 8064; avg_wire_size 2662 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c itr += DIV_ROUND_UP(avg_wire_size,