Home
last modified time | relevance | path

Searched refs:ring_container (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c1344 static void fm10k_update_itr(struct fm10k_ring_container *ring_container) in fm10k_update_itr() argument
1349 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()
/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c1425 struct ixgbevf_ring_container *ring_container) in ixgbevf_update_itr() argument
1427 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()
/drivers/net/ethernet/intel/igc/
Digc_main.c3088 struct igc_ring_container *ring_container) in igc_update_itr() argument
3090 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()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c2528 struct ixgbe_ring_container *ring_container) in ixgbe_update_itr() argument
2538 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()
/drivers/net/ethernet/intel/igb/
Digb_main.c5747 struct igb_ring_container *ring_container) in igb_update_itr() argument
5749 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()