Searched refs:stb_context (Results 1 – 3 of 3) sorted by relevance
472 struct stb_context { struct564 struct stb_context stb_context; member
3050 if (!smu->ppt_funcs->stb_collect_info || !smu->stb_context.enabled) in smu_stb_collect_info()3054 if (size != smu->stb_context.stb_buf_size) in smu_stb_collect_info()3074 buf = kvmalloc_array(smu->stb_context.stb_buf_size, sizeof(*buf), GFP_KERNEL); in smu_stb_debugfs_open()3078 r = smu_stb_collect_info(smu, buf, smu->stb_context.stb_buf_size); in smu_stb_debugfs_open()3104 smu->stb_context.stb_buf_size); in smu_stb_debugfs_read()3138 if (!smu || (!smu->stb_context.stb_buf_size)) in amdgpu_smu_stb_debug_fs_init()3146 smu->stb_context.stb_buf_size); in amdgpu_smu_stb_debug_fs_init()
4182 smu->stb_context.enabled = REG_GET_FIELD(reg, MP1_PMI_3_START, ENABLE); in sienna_cichlid_stb_init()4185 if (!smu->stb_context.enabled) in sienna_cichlid_stb_init()4188 spin_lock_init(&smu->stb_context.lock); in sienna_cichlid_stb_init()4192 smu->stb_context.stb_buf_size = 1 << REG_GET_FIELD(reg, MP1_PMI_3_FIFO, DEPTH); in sienna_cichlid_stb_init()4193 smu->stb_context.stb_buf_size *= SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES; in sienna_cichlid_stb_init()4196 smu->stb_context.stb_buf_size / SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES); in sienna_cichlid_stb_init()4260 spin_lock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()4270 spin_unlock(&smu->stb_context.lock); in sienna_cichlid_stb_get_data_direct()