Lines Matching refs:entry

48 	PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0,  in vega12_copy_table_from_smc()
50 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_from_smc()
54 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr)) == 0, in vega12_copy_table_from_smc()
58 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)) == 0, in vega12_copy_table_from_smc()
67 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc()
68 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc()
86 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc()
88 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc()
91 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc()
92 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc()
96 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr)) == 0, in vega12_copy_table_to_smc()
101 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)) == 0, in vega12_copy_table_to_smc()
187 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr) { in vega12_set_tools_address()
190 upper_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr))) in vega12_set_tools_address()
193 lower_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr)); in vega12_set_tools_address()
221 &priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_init()
222 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_init()
223 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init()
227 priv->smu_tables.entry[TABLE_PPTABLE].version = 0x01; in vega12_smu_init()
228 priv->smu_tables.entry[TABLE_PPTABLE].size = sizeof(PPTable_t); in vega12_smu_init()
235 &priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_init()
236 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_init()
237 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_init()
242 priv->smu_tables.entry[TABLE_WATERMARKS].version = 0x01; in vega12_smu_init()
243 priv->smu_tables.entry[TABLE_WATERMARKS].size = sizeof(Watermarks_t); in vega12_smu_init()
251 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_init()
252 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_init()
253 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_init()
257 priv->smu_tables.entry[TABLE_PMSTATUSLOG].version = 0x01; in vega12_smu_init()
258 priv->smu_tables.entry[TABLE_PMSTATUSLOG].size = tools_size; in vega12_smu_init()
266 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_init()
267 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_init()
268 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_init()
273 priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].version = 0x01; in vega12_smu_init()
274 priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].size = sizeof(AvfsFuseOverride_t); in vega12_smu_init()
281 &priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega12_smu_init()
282 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega12_smu_init()
283 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega12_smu_init()
287 priv->smu_tables.entry[TABLE_OVERDRIVE].version = 0x01; in vega12_smu_init()
288 priv->smu_tables.entry[TABLE_OVERDRIVE].size = sizeof(OverDriveTable_t); in vega12_smu_init()
293 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_init()
294 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_init()
295 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_init()
297 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].table) in vega12_smu_init()
298 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_init()
299 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_init()
300 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_init()
302 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_init()
303 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_init()
304 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_init()
306 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_init()
307 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_init()
308 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init()
321 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_fini()
322 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_fini()
323 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_fini()
324 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_fini()
325 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_fini()
326 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_fini()
327 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].table) in vega12_smu_fini()
328 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_fini()
329 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_fini()
330 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_fini()
331 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_fini()
332 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_fini()
333 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_fini()
334 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega12_smu_fini()
335 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega12_smu_fini()
336 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega12_smu_fini()