stb_context
if (!smu->ppt_funcs->stb_collect_info || !smu->stb_context.enabled)
if (size != smu->stb_context.stb_buf_size)
buf = kvmalloc_array(smu->stb_context.stb_buf_size, sizeof(*buf), GFP_KERNEL);
r = smu_stb_collect_info(smu, buf, smu->stb_context.stb_buf_size);
smu->stb_context.stb_buf_size);
if (!smu || (!smu->stb_context.stb_buf_size))
smu->stb_context.stb_buf_size);
struct stb_context stb_context;
smu->stb_context.enabled = REG_GET_FIELD(reg, MP1_PMI_3_START, ENABLE);
if (!smu->stb_context.enabled)
mtx_init(&smu->stb_context.lock, IPL_NONE);
smu->stb_context.stb_buf_size = 1 << REG_GET_FIELD(reg, MP1_PMI_3_FIFO, DEPTH);
smu->stb_context.stb_buf_size *= SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES;
smu->stb_context.stb_buf_size / SIENNA_CICHLID_STB_DEPTH_UNIT_BYTES);
spin_lock(&smu->stb_context.lock);
spin_unlock(&smu->stb_context.lock);