Searched refs:ring_container (Results 1 – 5 of 5) sorted by relevance
1349 static void fm10k_update_itr(struct fm10k_ring_container *ring_container) in fm10k_update_itr() argument1354 if (!ITR_IS_ADAPTIVE(ring_container->itr)) in fm10k_update_itr()1357 packets = ring_container->total_packets; in fm10k_update_itr()1361 avg_wire_size = ring_container->total_bytes / packets; in fm10k_update_itr()1398 itr_round = READ_ONCE(ring_container->itr_scale) + 8; in fm10k_update_itr()1403 ring_container->itr = avg_wire_size | FM10K_ITR_ADAPTIVE; in fm10k_update_itr()1406 ring_container->total_bytes = 0; in fm10k_update_itr()1407 ring_container->total_packets = 0; in fm10k_update_itr()
3167 struct igc_ring_container *ring_container) in igc_update_itr() argument3169 unsigned int packets = ring_container->total_packets; in igc_update_itr()3170 unsigned int bytes = ring_container->total_bytes; in igc_update_itr()3171 u8 itrval = ring_container->itr; in igc_update_itr()3211 ring_container->total_bytes = 0; in igc_update_itr()3212 ring_container->total_packets = 0; in igc_update_itr()3215 ring_container->itr = itrval; in igc_update_itr()
1409 struct ixgbevf_ring_container *ring_container) in ixgbevf_update_itr() argument1411 int bytes = ring_container->total_bytes; in ixgbevf_update_itr()1412 int packets = ring_container->total_packets; in ixgbevf_update_itr()1415 u8 itr_setting = ring_container->itr; in ixgbevf_update_itr()1450 ring_container->total_bytes = 0; in ixgbevf_update_itr()1451 ring_container->total_packets = 0; in ixgbevf_update_itr()1454 ring_container->itr = itr_setting; in ixgbevf_update_itr()
2505 struct ixgbe_ring_container *ring_container) in ixgbe_update_itr() argument2515 if (!ring_container->ring) in ixgbe_update_itr()2523 if (time_after(next_update, ring_container->next_update)) in ixgbe_update_itr()2526 packets = ring_container->total_packets; in ixgbe_update_itr()2540 itr += ring_container->itr & IXGBE_ITR_ADAPTIVE_LATENCY; in ixgbe_update_itr()2544 bytes = ring_container->total_bytes; in ixgbe_update_itr()2670 ring_container->itr = itr; in ixgbe_update_itr()2673 ring_container->next_update = next_update + 1; in ixgbe_update_itr()2675 ring_container->total_bytes = 0; in ixgbe_update_itr()2676 ring_container->total_packets = 0; in ixgbe_update_itr()
5538 struct igb_ring_container *ring_container) in igb_update_itr() argument5540 unsigned int packets = ring_container->total_packets; in igb_update_itr()5541 unsigned int bytes = ring_container->total_bytes; in igb_update_itr()5542 u8 itrval = ring_container->itr; in igb_update_itr()5582 ring_container->total_bytes = 0; in igb_update_itr()5583 ring_container->total_packets = 0; in igb_update_itr()5586 ring_container->itr = itrval; in igb_update_itr()