Lines Matching refs:ring_group
2368 static bool hns3_get_new_int_gl(struct hns3_enet_ring_group *ring_group) in hns3_get_new_int_gl() argument
2371 ring_group->ring->tqp_vector; in hns3_get_new_int_gl()
2378 if (!ring_group->coal.int_gl || !tqp_vector->last_jiffies) in hns3_get_new_int_gl()
2381 if (ring_group->total_packets == 0) { in hns3_get_new_int_gl()
2382 ring_group->coal.int_gl = HNS3_INT_GL_50K; in hns3_get_new_int_gl()
2383 ring_group->coal.flow_level = HNS3_FLOW_LOW; in hns3_get_new_int_gl()
2393 new_flow_level = ring_group->coal.flow_level; in hns3_get_new_int_gl()
2394 new_int_gl = ring_group->coal.int_gl; in hns3_get_new_int_gl()
2401 do_div(ring_group->total_packets, time_passed_ms); in hns3_get_new_int_gl()
2402 packets_per_msecs = ring_group->total_packets; in hns3_get_new_int_gl()
2404 do_div(ring_group->total_bytes, time_passed_ms); in hns3_get_new_int_gl()
2405 bytes_per_msecs = ring_group->total_bytes; in hns3_get_new_int_gl()
2432 &tqp_vector->rx_group == ring_group) in hns3_get_new_int_gl()
2452 ring_group->total_bytes = 0; in hns3_get_new_int_gl()
2453 ring_group->total_packets = 0; in hns3_get_new_int_gl()
2454 ring_group->coal.flow_level = new_flow_level; in hns3_get_new_int_gl()
2455 if (new_int_gl != ring_group->coal.int_gl) { in hns3_get_new_int_gl()
2456 ring_group->coal.int_gl = new_int_gl; in hns3_get_new_int_gl()