Lines Matching refs:vals
110 struct adf_tl_dbg_aggr_values *vals) in tl_calc_count() argument
122 memset(vals, 0, sizeof(*vals)); in tl_calc_count()
127 vals->curr = hist_vals[sample_cnt - 1]; in tl_calc_count()
128 vals->min = min_array(hist_vals, sample_cnt); in tl_calc_count()
129 vals->max = max_array(hist_vals, sample_cnt); in tl_calc_count()
130 vals->avg = avg_array(hist_vals, sample_cnt); in tl_calc_count()
140 struct adf_tl_dbg_aggr_values *vals) in tl_cycles_to_ns() argument
146 ret = tl_calc_count(telemetry, ctr, vals); in tl_cycles_to_ns()
150 vals->curr *= cpp_ns_per_cycle; in tl_cycles_to_ns()
151 vals->min *= cpp_ns_per_cycle; in tl_cycles_to_ns()
152 vals->max *= cpp_ns_per_cycle; in tl_cycles_to_ns()
153 vals->avg *= cpp_ns_per_cycle; in tl_cycles_to_ns()
164 struct adf_tl_dbg_aggr_values *vals) in tl_lat_acc_avg() argument
184 memset(vals, 0, sizeof(*vals)); in tl_lat_acc_avg()
200 vals->curr = hist_vals[sample_cnt - 1]; in tl_lat_acc_avg()
201 vals->min = min_array(hist_vals, sample_cnt); in tl_lat_acc_avg()
202 vals->max = max_array(hist_vals, sample_cnt); in tl_lat_acc_avg()
203 vals->avg = avg_array(hist_vals, sample_cnt); in tl_lat_acc_avg()
215 struct adf_tl_dbg_aggr_values *vals) in tl_bw_hw_units_to_mbps() argument
228 memset(vals, 0, sizeof(*vals)); in tl_bw_hw_units_to_mbps()
233 vals->curr = div_u64(hist_vals[sample_cnt - 1] * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps()
234 vals->min = div_u64(min_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps()
235 vals->max = div_u64(max_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps()
236 vals->avg = div_u64(avg_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps()
245 struct adf_tl_dbg_aggr_values *vals) in tl_seq_printf_counter() argument
248 seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->curr); in tl_seq_printf_counter()
250 seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->min); in tl_seq_printf_counter()
251 seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->max); in tl_seq_printf_counter()
252 seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->avg); in tl_seq_printf_counter()
264 struct adf_tl_dbg_aggr_values vals; in tl_calc_and_print_counter() local
269 ret = tl_calc_count(telemetry, ctr, &vals); in tl_calc_and_print_counter()
272 ret = tl_cycles_to_ns(telemetry, ctr, &vals); in tl_calc_and_print_counter()
275 ret = tl_lat_acc_avg(telemetry, ctr, &vals); in tl_calc_and_print_counter()
278 ret = tl_bw_hw_units_to_mbps(telemetry, ctr, &vals); in tl_calc_and_print_counter()
287 tl_seq_printf_counter(telemetry, s, counter_name, &vals); in tl_calc_and_print_counter()