Searched refs:tl_data (Results 1 – 7 of 7) sorted by relevance
135 void adf_gen4_init_tl_data(struct adf_tl_hw_data *tl_data) in adf_gen4_init_tl_data() argument137 tl_data->layout_sz = ADF_GEN4_TL_LAYOUT_SZ; in adf_gen4_init_tl_data()138 tl_data->slice_reg_sz = ADF_GEN4_TL_SLICE_REG_SZ; in adf_gen4_init_tl_data()139 tl_data->rp_reg_sz = ADF_GEN4_TL_RP_REG_SZ; in adf_gen4_init_tl_data()140 tl_data->num_hbuff = ADF_GEN4_TL_NUM_HIST_BUFFS; in adf_gen4_init_tl_data()141 tl_data->max_rp = ADF_GEN4_TL_MAX_RP_NUM; in adf_gen4_init_tl_data()142 tl_data->msg_cnt_off = ADF_GEN4_TL_MSG_CNT_OFF; in adf_gen4_init_tl_data()143 tl_data->cpp_ns_per_cycle = ADF_GEN4_CPP_NS_PER_CYCLE; in adf_gen4_init_tl_data()144 tl_data->bw_units_to_bytes = ADF_GEN4_TL_BW_HW_UNITS_TO_BYTES; in adf_gen4_init_tl_data()146 tl_data->dev_counters = dev_counters; in adf_gen4_init_tl_data()[all …]
31 static int validate_tl_data(struct adf_tl_hw_data *tl_data) in validate_tl_data() argument33 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() local62 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()[all …]
112 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(telemetry->accel_dev); in tl_calc_count() local117 hist_vals = kmalloc_array(tl_data->num_hbuff, sizeof(*hist_vals), in tl_calc_count()142 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(telemetry->accel_dev); in tl_cycles_to_ns() local143 u8 cpp_ns_per_cycle = tl_data->cpp_ns_per_cycle; in tl_cycles_to_ns()166 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(telemetry->accel_dev); in tl_lat_acc_avg() local167 u8 cpp_ns_per_cycle = tl_data->cpp_ns_per_cycle; in tl_lat_acc_avg()168 u8 num_hbuff = tl_data->num_hbuff; in tl_lat_acc_avg()217 struct adf_tl_hw_data *tl_data = &GET_TL_DATA(telemetry->accel_dev); in tl_bw_hw_units_to_mbps() local218 u16 bw_hw_2_bits = tl_data->bw_units_to_bytes * BITS_PER_BYTE; in tl_bw_hw_units_to_mbps()223 hist_vals = kmalloc_array(tl_data->num_hbuff, sizeof(*hist_vals), in tl_bw_hw_units_to_mbps()[all …]
152 void adf_gen4_init_tl_data(struct adf_tl_hw_data *tl_data);154 static inline void adf_gen4_init_tl_data(struct adf_tl_hw_data *tl_data) in adf_gen4_init_tl_data() argument
342 struct adf_tl_hw_data tl_data; member401 #define GET_TL_DATA(accel_dev) GET_HW_DATA(accel_dev)->tl_data
491 adf_gen4_init_tl_data(&hw_data->tl_data); in adf_init_hw_data_420xx()
475 adf_gen4_init_tl_data(&hw_data->tl_data); in adf_init_hw_data_4xxx()