Searched refs:ring_container (Results 1 – 5 of 5) sorted by relevance
1344 static void fm10k_update_itr(struct fm10k_ring_container *ring_container) in fm10k_update_itr() argument1349 if (!ITR_IS_ADAPTIVE(ring_container->itr)) in fm10k_update_itr()1352 packets = ring_container->total_packets; in fm10k_update_itr()1356 avg_wire_size = ring_container->total_bytes / packets; in fm10k_update_itr()1393 itr_round = READ_ONCE(ring_container->itr_scale) + 8; in fm10k_update_itr()1398 ring_container->itr = avg_wire_size | FM10K_ITR_ADAPTIVE; in fm10k_update_itr()1401 ring_container->total_bytes = 0; in fm10k_update_itr()1402 ring_container->total_packets = 0; in fm10k_update_itr()
1425 struct ixgbevf_ring_container *ring_container) in ixgbevf_update_itr() argument1427 int bytes = ring_container->total_bytes; in ixgbevf_update_itr()1428 int packets = ring_container->total_packets; in ixgbevf_update_itr()1431 u8 itr_setting = ring_container->itr; in ixgbevf_update_itr()1466 ring_container->total_bytes = 0; in ixgbevf_update_itr()1467 ring_container->total_packets = 0; in ixgbevf_update_itr()1470 ring_container->itr = itr_setting; in ixgbevf_update_itr()
3088 struct igc_ring_container *ring_container) in igc_update_itr() argument3090 unsigned int packets = ring_container->total_packets; in igc_update_itr()3091 unsigned int bytes = ring_container->total_bytes; in igc_update_itr()3092 u8 itrval = ring_container->itr; in igc_update_itr()3132 ring_container->total_bytes = 0; in igc_update_itr()3133 ring_container->total_packets = 0; in igc_update_itr()3136 ring_container->itr = itrval; in igc_update_itr()
2528 struct ixgbe_ring_container *ring_container) in ixgbe_update_itr() argument2538 if (!ring_container->ring) in ixgbe_update_itr()2546 if (time_after(next_update, ring_container->next_update)) in ixgbe_update_itr()2549 packets = ring_container->total_packets; in ixgbe_update_itr()2563 itr += ring_container->itr & IXGBE_ITR_ADAPTIVE_LATENCY; in ixgbe_update_itr()2567 bytes = ring_container->total_bytes; in ixgbe_update_itr()2693 ring_container->itr = itr; in ixgbe_update_itr()2696 ring_container->next_update = next_update + 1; in ixgbe_update_itr()2698 ring_container->total_bytes = 0; in ixgbe_update_itr()2699 ring_container->total_packets = 0; in ixgbe_update_itr()
5747 struct igb_ring_container *ring_container) in igb_update_itr() argument5749 unsigned int packets = ring_container->total_packets; in igb_update_itr()5750 unsigned int bytes = ring_container->total_bytes; in igb_update_itr()5751 u8 itrval = ring_container->itr; in igb_update_itr()5791 ring_container->total_bytes = 0; in igb_update_itr()5792 ring_container->total_packets = 0; in igb_update_itr()5795 ring_container->itr = itrval; in igb_update_itr()