Lines Matching refs:entry
43 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_from_smc()
45 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_from_smc()
49 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr)); in vega10_copy_table_from_smc()
52 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)); in vega10_copy_table_from_smc()
55 priv->smu_tables.entry[table_id].table_id); in vega10_copy_table_from_smc()
57 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc()
58 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc()
70 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc()
72 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc()
75 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc()
76 priv->smu_tables.entry[table_id].size); in vega10_copy_table_to_smc()
80 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr)); in vega10_copy_table_to_smc()
83 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)); in vega10_copy_table_to_smc()
86 priv->smu_tables.entry[table_id].table_id); in vega10_copy_table_to_smc()
119 if (priv->smu_tables.entry[TOOLSTABLE].mc_addr) { in vega10_set_tools_address()
122 upper_32_bits(priv->smu_tables.entry[TOOLSTABLE].mc_addr)); in vega10_set_tools_address()
125 lower_32_bits(priv->smu_tables.entry[TOOLSTABLE].mc_addr)); in vega10_set_tools_address()
185 &priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_init()
186 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_init()
187 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init()
191 priv->smu_tables.entry[PPTABLE].version = 0x01; in vega10_smu_init()
192 priv->smu_tables.entry[PPTABLE].size = sizeof(PPTable_t); in vega10_smu_init()
193 priv->smu_tables.entry[PPTABLE].table_id = TABLE_PPTABLE; in vega10_smu_init()
200 &priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_init()
201 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_init()
202 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init()
207 priv->smu_tables.entry[WMTABLE].version = 0x01; in vega10_smu_init()
208 priv->smu_tables.entry[WMTABLE].size = sizeof(Watermarks_t); in vega10_smu_init()
209 priv->smu_tables.entry[WMTABLE].table_id = TABLE_WATERMARKS; in vega10_smu_init()
216 &priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_init()
217 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_init()
218 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_init()
223 priv->smu_tables.entry[AVFSTABLE].version = 0x01; in vega10_smu_init()
224 priv->smu_tables.entry[AVFSTABLE].size = sizeof(AvfsTable_t); in vega10_smu_init()
225 priv->smu_tables.entry[AVFSTABLE].table_id = TABLE_AVFS; in vega10_smu_init()
233 &priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_init()
234 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_init()
235 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_init()
238 priv->smu_tables.entry[TOOLSTABLE].version = 0x01; in vega10_smu_init()
239 priv->smu_tables.entry[TOOLSTABLE].size = tools_size; in vega10_smu_init()
240 priv->smu_tables.entry[TOOLSTABLE].table_id = TABLE_PMSTATUSLOG; in vega10_smu_init()
248 &priv->smu_tables.entry[AVFSFUSETABLE].handle, in vega10_smu_init()
249 &priv->smu_tables.entry[AVFSFUSETABLE].mc_addr, in vega10_smu_init()
250 &priv->smu_tables.entry[AVFSFUSETABLE].table); in vega10_smu_init()
254 priv->smu_tables.entry[AVFSFUSETABLE].version = 0x01; in vega10_smu_init()
255 priv->smu_tables.entry[AVFSFUSETABLE].size = sizeof(AvfsFuseOverride_t); in vega10_smu_init()
256 priv->smu_tables.entry[AVFSFUSETABLE].table_id = TABLE_AVFS_FUSE_OVERRIDE; in vega10_smu_init()
262 if (priv->smu_tables.entry[TOOLSTABLE].table) in vega10_smu_init()
263 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_init()
264 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_init()
265 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_init()
267 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_init()
268 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_init()
269 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_init()
271 amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_init()
272 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_init()
273 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init()
275 amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_init()
276 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_init()
277 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init()
289 amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_fini()
290 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_fini()
291 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_fini()
292 amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_fini()
293 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_fini()
294 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_fini()
295 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_fini()
296 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_fini()
297 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_fini()
298 if (priv->smu_tables.entry[TOOLSTABLE].table) in vega10_smu_fini()
299 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_fini()
300 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_fini()
301 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_fini()
302 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSFUSETABLE].handle, in vega10_smu_fini()
303 &priv->smu_tables.entry[AVFSFUSETABLE].mc_addr, in vega10_smu_fini()
304 &priv->smu_tables.entry[AVFSFUSETABLE].table); in vega10_smu_fini()