Searched refs:stb_context (Results 1 – 3 of 3) sorted by relevance
462 struct stb_context { struct553 struct stb_context stb_context; member
3192 if (!smu->ppt_funcs->stb_collect_info || !smu->stb_context.enabled) in smu_stb_collect_info()3196 if (size != smu->stb_context.stb_buf_size) in smu_stb_collect_info()3216 buf = kvmalloc_array(smu->stb_context.stb_buf_size, sizeof(*buf), GFP_KERNEL); in smu_stb_debugfs_open()3220 r = smu_stb_collect_info(smu, buf, smu->stb_context.stb_buf_size); in smu_stb_debugfs_open()3246 smu->stb_context.stb_buf_size); in smu_stb_debugfs_read()3280 if (!smu || (!smu->stb_context.stb_buf_size)) in amdgpu_smu_stb_debug_fs_init()3288 smu->stb_context.stb_buf_size); in amdgpu_smu_stb_debug_fs_init()
4228 smu->stb_context.enabled = REG_GET_FIELD(reg, MP1_PMI_3_START, ENABLE); in sienna_cichlid_stb_init()4231 if (!smu->stb_context.enabled) in sienna_cichlid_stb_init()4234 spin_lock_init(&smu->stb_context.lock); in sienna_cichlid_stb_init()4238 smu->stb_context.stb_buf_size = 1 << REG_GET_FIELD(reg, MP1_PMI_3_FIFO, DEPTH); in sienna_cichlid_stb_init()4239 smu->stb_context.stb_buf_size *= SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES; in sienna_cichlid_stb_init()4242 smu->stb_context.stb_buf_size / SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES); in sienna_cichlid_stb_init()4306 spin_lock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()4316 spin_unlock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()