Searched refs:stb_context (Results 1 – 3 of 3) sorted by relevance
492 struct stb_context { struct598 struct stb_context stb_context; member
3708 if (!smu->ppt_funcs->stb_collect_info || !smu->stb_context.enabled) in smu_stb_collect_info()3712 if (size != smu->stb_context.stb_buf_size) in smu_stb_collect_info()3732 buf = kvmalloc_array(smu->stb_context.stb_buf_size, sizeof(*buf), GFP_KERNEL); in smu_stb_debugfs_open()3736 r = smu_stb_collect_info(smu, buf, smu->stb_context.stb_buf_size); in smu_stb_debugfs_open()3762 smu->stb_context.stb_buf_size); in smu_stb_debugfs_read()3796 if (!smu || (!smu->stb_context.stb_buf_size)) in amdgpu_smu_stb_debug_fs_init()3804 smu->stb_context.stb_buf_size); in amdgpu_smu_stb_debug_fs_init()
4233 smu->stb_context.enabled = REG_GET_FIELD(reg, MP1_PMI_3_START, ENABLE); in sienna_cichlid_stb_init()4236 if (!smu->stb_context.enabled) in sienna_cichlid_stb_init()4239 spin_lock_init(&smu->stb_context.lock); in sienna_cichlid_stb_init()4243 smu->stb_context.stb_buf_size = 1 << REG_GET_FIELD(reg, MP1_PMI_3_FIFO, DEPTH); in sienna_cichlid_stb_init()4244 smu->stb_context.stb_buf_size *= SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES; in sienna_cichlid_stb_init()4247 smu->stb_context.stb_buf_size / SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES); in sienna_cichlid_stb_init()4311 spin_lock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()4321 spin_unlock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()