Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c1349 static void fm10k_update_itr(struct fm10k_ring_container *ring_container) in fm10k_update_itr() argument
1354 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()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c1397 struct ixgbevf_ring_container *ring_container) in ixgbevf_update_itr() argument
1399 int bytes = ring_container->total_bytes; in ixgbevf_update_itr()
1400 int packets = ring_container->total_packets; in ixgbevf_update_itr()
1403 u8 itr_setting = ring_container->itr; in ixgbevf_update_itr()
1435 ring_container->total_bytes = 0; in ixgbevf_update_itr()
1436 ring_container->total_packets = 0; in ixgbevf_update_itr()
1439 ring_container->itr = itr_setting; in ixgbevf_update_itr()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c2506 struct ixgbe_ring_container *ring_container) in ixgbe_update_itr() argument
2516 if (!ring_container->ring) in ixgbe_update_itr()
2524 if (time_after(next_update, ring_container->next_update)) in ixgbe_update_itr()
2527 packets = ring_container->total_packets; in ixgbe_update_itr()
2541 itr += ring_container->itr & IXGBE_ITR_ADAPTIVE_LATENCY; in ixgbe_update_itr()
2545 bytes = ring_container->total_bytes; in ixgbe_update_itr()
2669 ring_container->itr = itr; in ixgbe_update_itr()
2672 ring_container->next_update = next_update + 1; in ixgbe_update_itr()
2674 ring_container->total_bytes = 0; in ixgbe_update_itr()
2675 ring_container->total_packets = 0; in ixgbe_update_itr()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_main.c5562 struct igb_ring_container *ring_container) in igb_update_itr() argument
5564 unsigned int packets = ring_container->total_packets; in igb_update_itr()
5565 unsigned int bytes = ring_container->total_bytes; in igb_update_itr()
5566 u8 itrval = ring_container->itr; in igb_update_itr()
5606 ring_container->total_bytes = 0; in igb_update_itr()
5607 ring_container->total_packets = 0; in igb_update_itr()
5610 ring_container->itr = itrval; in igb_update_itr()