Searched refs:ring_container (Results 1 – 5 of 5) sorted by relevance
1339 static void fm10k_update_itr(struct fm10k_ring_container *ring_container) in fm10k_update_itr() argument1344 if (!ITR_IS_ADAPTIVE(ring_container->itr)) in fm10k_update_itr()1347 packets = ring_container->total_packets; in fm10k_update_itr()1351 avg_wire_size = ring_container->total_bytes / packets; in fm10k_update_itr()1388 itr_round = READ_ONCE(ring_container->itr_scale) + 8; in fm10k_update_itr()1393 ring_container->itr = avg_wire_size | FM10K_ITR_ADAPTIVE; in fm10k_update_itr()1396 ring_container->total_bytes = 0; in fm10k_update_itr()1397 ring_container->total_packets = 0; in fm10k_update_itr()
1417 struct ixgbevf_ring_container *ring_container) in ixgbevf_update_itr() argument1419 int bytes = ring_container->total_bytes; in ixgbevf_update_itr()1420 int packets = ring_container->total_packets; in ixgbevf_update_itr()1423 u8 itr_setting = ring_container->itr; in ixgbevf_update_itr()1458 ring_container->total_bytes = 0; in ixgbevf_update_itr()1459 ring_container->total_packets = 0; in ixgbevf_update_itr()1462 ring_container->itr = itr_setting; in ixgbevf_update_itr()
4110 struct igc_ring_container *ring_container) in igc_update_itr() argument4112 unsigned int packets = ring_container->total_packets; in igc_update_itr()4113 unsigned int bytes = ring_container->total_bytes; in igc_update_itr()4114 u8 itrval = ring_container->itr; in igc_update_itr()4154 ring_container->total_bytes = 0; in igc_update_itr()4155 ring_container->total_packets = 0; in igc_update_itr()4158 ring_container->itr = itrval; in igc_update_itr()
2526 struct ixgbe_ring_container *ring_container) in ixgbe_update_itr() argument2536 if (!ring_container->ring) in ixgbe_update_itr()2544 if (time_after(next_update, ring_container->next_update)) in ixgbe_update_itr()2547 packets = ring_container->total_packets; in ixgbe_update_itr()2561 itr += ring_container->itr & IXGBE_ITR_ADAPTIVE_LATENCY; in ixgbe_update_itr()2565 bytes = ring_container->total_bytes; in ixgbe_update_itr()2691 ring_container->itr = itr; in ixgbe_update_itr()2694 ring_container->next_update = next_update + 1; in ixgbe_update_itr()2696 ring_container->total_bytes = 0; in ixgbe_update_itr()2697 ring_container->total_packets = 0; in ixgbe_update_itr()
5750 struct igb_ring_container *ring_container) in igb_update_itr() argument5752 unsigned int packets = ring_container->total_packets; in igb_update_itr()5753 unsigned int bytes = ring_container->total_bytes; in igb_update_itr()5754 u8 itrval = ring_container->itr; in igb_update_itr()5794 ring_container->total_bytes = 0; in igb_update_itr()5795 ring_container->total_packets = 0; in igb_update_itr()5798 ring_container->itr = itrval; in igb_update_itr()