Searched refs:curr_stats (Results 1 – 3 of 3) sorted by relevance
/lib/dim/ |
D | dim.c | 58 struct dim_stats *curr_stats) in dim_calc_stats() argument 71 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in dim_calc_stats() 72 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats() 73 curr_stats->epms = DIV_ROUND_UP(DIM_NEVENTS * USEC_PER_MSEC, in dim_calc_stats() 75 curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); in dim_calc_stats() 76 if (curr_stats->epms != 0) in dim_calc_stats() 77 curr_stats->cpe_ratio = DIV_ROUND_DOWN_ULL( in dim_calc_stats() 78 curr_stats->cpms * 100, curr_stats->epms); in dim_calc_stats() 80 curr_stats->cpe_ratio = 0; in dim_calc_stats()
|
D | rdma_dim.c | 44 static bool rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in rdma_dim_decision() argument 52 stats_res = rdma_dim_stats_compare(curr_stats, in rdma_dim_decision() 57 if (curr_stats->cpe_ratio <= 50 * prev_ix) in rdma_dim_decision() 71 dim->prev_stats = *curr_stats; in rdma_dim_decision() 79 struct dim_stats curr_stats; in rdma_dim() local 91 if (!dim_calc_stats(&dim->start_sample, curr_sample, &curr_stats)) in rdma_dim() 93 if (rdma_dim_decision(&curr_stats, dim)) { in rdma_dim()
|
D | net_dim.c | 165 static bool net_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in net_dim_decision() argument 174 stats_res = net_dim_stats_compare(curr_stats, in net_dim_decision() 188 stats_res = net_dim_stats_compare(curr_stats, in net_dim_decision() 213 dim->prev_stats = *curr_stats; in net_dim_decision() 220 struct dim_stats curr_stats; in net_dim() local 230 if (!dim_calc_stats(&dim->start_sample, &end_sample, &curr_stats)) in net_dim() 232 if (net_dim_decision(&curr_stats, dim)) { in net_dim()
|