Lines Matching refs:st
11 komeda_component_state_reset(struct komeda_component_state *st) in komeda_component_state_reset() argument
13 st->binding_user = NULL; in komeda_component_state_reset()
14 st->affected_inputs = st->active_inputs; in komeda_component_state_reset()
15 st->active_inputs = 0; in komeda_component_state_reset()
16 st->changed_active_inputs = 0; in komeda_component_state_reset()
22 struct komeda_layer_state *st; in komeda_layer_atomic_duplicate_state() local
24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state()
25 if (!st) in komeda_layer_atomic_duplicate_state()
28 komeda_component_state_reset(&st->base); in komeda_layer_atomic_duplicate_state()
29 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_layer_atomic_duplicate_state()
31 return &st->base.obj; in komeda_layer_atomic_duplicate_state()
38 struct komeda_layer_state *st = to_layer_st(priv_to_comp_st(state)); in komeda_layer_atomic_destroy_state() local
40 kfree(st); in komeda_layer_atomic_destroy_state()
51 struct komeda_layer_state *st; in komeda_layer_obj_add() local
53 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_layer_obj_add()
54 if (!st) in komeda_layer_obj_add()
57 st->base.component = &layer->base; in komeda_layer_obj_add()
58 drm_atomic_private_obj_init(&kms->base, &layer->base.obj, &st->base.obj, in komeda_layer_obj_add()
66 struct komeda_scaler_state *st; in komeda_scaler_atomic_duplicate_state() local
68 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_scaler_atomic_duplicate_state()
69 if (!st) in komeda_scaler_atomic_duplicate_state()
72 komeda_component_state_reset(&st->base); in komeda_scaler_atomic_duplicate_state()
73 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_scaler_atomic_duplicate_state()
75 return &st->base.obj; in komeda_scaler_atomic_duplicate_state()
93 struct komeda_scaler_state *st; in komeda_scaler_obj_add() local
95 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_scaler_obj_add()
96 if (!st) in komeda_scaler_obj_add()
99 st->base.component = &scaler->base; in komeda_scaler_obj_add()
101 &scaler->base.obj, &st->base.obj, in komeda_scaler_obj_add()
109 struct komeda_compiz_state *st; in komeda_compiz_atomic_duplicate_state() local
111 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_compiz_atomic_duplicate_state()
112 if (!st) in komeda_compiz_atomic_duplicate_state()
115 komeda_component_state_reset(&st->base); in komeda_compiz_atomic_duplicate_state()
116 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_compiz_atomic_duplicate_state()
118 return &st->base.obj; in komeda_compiz_atomic_duplicate_state()
136 struct komeda_compiz_state *st; in komeda_compiz_obj_add() local
138 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_compiz_obj_add()
139 if (!st) in komeda_compiz_obj_add()
142 st->base.component = &compiz->base; in komeda_compiz_obj_add()
143 drm_atomic_private_obj_init(&kms->base, &compiz->base.obj, &st->base.obj, in komeda_compiz_obj_add()
152 struct komeda_splitter_state *st; in komeda_splitter_atomic_duplicate_state() local
154 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_splitter_atomic_duplicate_state()
155 if (!st) in komeda_splitter_atomic_duplicate_state()
158 komeda_component_state_reset(&st->base); in komeda_splitter_atomic_duplicate_state()
159 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_splitter_atomic_duplicate_state()
161 return &st->base.obj; in komeda_splitter_atomic_duplicate_state()
179 struct komeda_splitter_state *st; in komeda_splitter_obj_add() local
181 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_splitter_obj_add()
182 if (!st) in komeda_splitter_obj_add()
185 st->base.component = &splitter->base; in komeda_splitter_obj_add()
187 &splitter->base.obj, &st->base.obj, in komeda_splitter_obj_add()
196 struct komeda_merger_state *st; in komeda_merger_atomic_duplicate_state() local
198 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_merger_atomic_duplicate_state()
199 if (!st) in komeda_merger_atomic_duplicate_state()
202 komeda_component_state_reset(&st->base); in komeda_merger_atomic_duplicate_state()
203 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_merger_atomic_duplicate_state()
205 return &st->base.obj; in komeda_merger_atomic_duplicate_state()
222 struct komeda_merger_state *st; in komeda_merger_obj_add() local
224 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_merger_obj_add()
225 if (!st) in komeda_merger_obj_add()
228 st->base.component = &merger->base; in komeda_merger_obj_add()
230 &merger->base.obj, &st->base.obj, in komeda_merger_obj_add()
239 struct komeda_improc_state *st; in komeda_improc_atomic_duplicate_state() local
241 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_improc_atomic_duplicate_state()
242 if (!st) in komeda_improc_atomic_duplicate_state()
245 komeda_component_state_reset(&st->base); in komeda_improc_atomic_duplicate_state()
246 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_improc_atomic_duplicate_state()
248 return &st->base.obj; in komeda_improc_atomic_duplicate_state()
266 struct komeda_improc_state *st; in komeda_improc_obj_add() local
268 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_improc_obj_add()
269 if (!st) in komeda_improc_obj_add()
272 st->base.component = &improc->base; in komeda_improc_obj_add()
273 drm_atomic_private_obj_init(&kms->base, &improc->base.obj, &st->base.obj, in komeda_improc_obj_add()
282 struct komeda_timing_ctrlr_state *st; in komeda_timing_ctrlr_atomic_duplicate_state() local
284 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_timing_ctrlr_atomic_duplicate_state()
285 if (!st) in komeda_timing_ctrlr_atomic_duplicate_state()
288 komeda_component_state_reset(&st->base); in komeda_timing_ctrlr_atomic_duplicate_state()
289 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_timing_ctrlr_atomic_duplicate_state()
291 return &st->base.obj; in komeda_timing_ctrlr_atomic_duplicate_state()
309 struct komeda_compiz_state *st; in komeda_timing_ctrlr_obj_add() local
311 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_timing_ctrlr_obj_add()
312 if (!st) in komeda_timing_ctrlr_obj_add()
315 st->base.component = &ctrlr->base; in komeda_timing_ctrlr_obj_add()
316 drm_atomic_private_obj_init(&kms->base, &ctrlr->base.obj, &st->base.obj, in komeda_timing_ctrlr_obj_add()
325 struct komeda_pipeline_state *st; in komeda_pipeline_atomic_duplicate_state() local
327 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_pipeline_atomic_duplicate_state()
328 if (!st) in komeda_pipeline_atomic_duplicate_state()
331 st->active_comps = 0; in komeda_pipeline_atomic_duplicate_state()
333 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->obj); in komeda_pipeline_atomic_duplicate_state()
335 return &st->obj; in komeda_pipeline_atomic_duplicate_state()
353 struct komeda_pipeline_state *st; in komeda_pipeline_obj_add() local
355 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_pipeline_obj_add()
356 if (!st) in komeda_pipeline_obj_add()
359 st->pipe = pipe; in komeda_pipeline_obj_add()
360 drm_atomic_private_obj_init(&kms->base, &pipe->obj, &st->obj, in komeda_pipeline_obj_add()