Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_qos.c29 u64 nr_of_cycles_p2; in sparx5_new_base_time() local
40 nr_of_cycles_p2 = 1; /* Use 2^0 as start value */ in sparx5_new_base_time()
50 while (nr_of_cycles_p2 < nr_of_cycles) in sparx5_new_base_time()
51 nr_of_cycles_p2 <<= 1; /* Next (higher) power of 2 */ in sparx5_new_base_time()
56 while (nr_of_cycles_p2) { in sparx5_new_base_time()
58 new_time += cycle_time * nr_of_cycles_p2; in sparx5_new_base_time()
60 new_time += cycle_time * nr_of_cycles_p2; in sparx5_new_base_time()
61 new_time -= cycle_time * nr_of_cycles_p2; in sparx5_new_base_time()
63 nr_of_cycles_p2 >>= 1; /* Next (lower) power of 2 */ in sparx5_new_base_time()