Lines Matching refs:tl_data
31 static int validate_tl_data(struct adf_tl_hw_data *tl_data) in validate_tl_data() argument
33 if (!tl_data->dev_counters || in validate_tl_data()
34 TL_IS_ZERO(tl_data->num_dev_counters) || in validate_tl_data()
35 !tl_data->sl_util_counters || in validate_tl_data()
36 !tl_data->sl_exec_counters || in validate_tl_data()
37 !tl_data->rp_counters || in validate_tl_data()
38 TL_IS_ZERO(tl_data->num_rp_counters)) in validate_tl_data()
60 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(accel_dev); in adf_tl_alloc_mem() local
62 size_t regs_sz = tl_data->layout_sz; in adf_tl_alloc_mem()
72 telemetry->rp_num_indexes = kmalloc_array(tl_data->max_rp, in adf_tl_alloc_mem()
78 telemetry->regs_hist_buff = kmalloc_array(tl_data->num_hbuff, in adf_tl_alloc_mem()
90 for (i = 0; i < tl_data->num_hbuff; i++) { in adf_tl_alloc_mem()
121 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(accel_dev); in adf_tl_free_mem() local
124 size_t regs_sz = tl_data->layout_sz; in adf_tl_free_mem()
127 for (i = 0; i < tl_data->num_hbuff; i++) in adf_tl_free_mem()
156 struct adf_tl_hw_data *tl_data; in tl_work_handler() local
164 tl_data = &GET_TL_DATA(telemetry->accel_dev); in tl_work_handler()
167 id = tl_data->msg_cnt_off / sizeof(*regs_data); in tl_work_handler()
168 layout_sz = tl_data->layout_sz; in tl_work_handler()
217 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(accel_dev); in adf_tl_run() local
220 size_t layout_sz = tl_data->layout_sz; in adf_tl_run()
231 ret = validate_tl_slice_counters(&telemetry->slice_cnt, tl_data->max_sl_cnt); in adf_tl_run()
248 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(accel_dev); in adf_tl_init() local
255 ret = validate_tl_data(tl_data); in adf_tl_init()