Lines Matching refs:mw_state
68 struct malidp_mw_connector_state *mw_state = in malidp_mw_connector_reset() local
69 kzalloc(sizeof(*mw_state), GFP_KERNEL); in malidp_mw_connector_reset()
77 if (mw_state) in malidp_mw_connector_reset()
78 __drm_atomic_helper_connector_reset(connector, &mw_state->base); in malidp_mw_connector_reset()
95 struct malidp_mw_connector_state *mw_state, *mw_current_state; in malidp_mw_connector_duplicate_state() local
100 mw_state = kzalloc(sizeof(*mw_state), GFP_KERNEL); in malidp_mw_connector_duplicate_state()
101 if (!mw_state) in malidp_mw_connector_duplicate_state()
105 mw_state->rgb2yuv_coeffs = mw_current_state->rgb2yuv_coeffs; in malidp_mw_connector_duplicate_state()
106 mw_state->rgb2yuv_initialized = mw_current_state->rgb2yuv_initialized; in malidp_mw_connector_duplicate_state()
108 __drm_atomic_helper_connector_duplicate_state(connector, &mw_state->base); in malidp_mw_connector_duplicate_state()
110 return &mw_state->base; in malidp_mw_connector_duplicate_state()
134 struct malidp_mw_connector_state *mw_state = to_mw_state(conn_state); in malidp_mw_encoder_atomic_check() local
155 mw_state->format = in malidp_mw_encoder_atomic_check()
158 if (mw_state->format == MALIDP_INVALID_FORMAT_ID) { in malidp_mw_encoder_atomic_check()
175 mw_state->pitches[i] = fb->pitches[i]; in malidp_mw_encoder_atomic_check()
176 mw_state->addrs[i] = obj->dma_addr + fb->offsets[i]; in malidp_mw_encoder_atomic_check()
178 mw_state->n_planes = n_planes; in malidp_mw_encoder_atomic_check()
181 mw_state->rgb2yuv_coeffs = rgb2yuv_coeffs_bt709_limited; in malidp_mw_encoder_atomic_check()
246 struct malidp_mw_connector_state *mw_state; in malidp_mw_atomic_commit() local
251 mw_state = to_mw_state(conn_state); in malidp_mw_atomic_commit()
259 mw_state->pitches[0], in malidp_mw_atomic_commit()
260 &mw_state->addrs[0], in malidp_mw_atomic_commit()
261 mw_state->format); in malidp_mw_atomic_commit()
264 hwdev->hw->enable_memwrite(hwdev, mw_state->addrs, in malidp_mw_atomic_commit()
265 mw_state->pitches, mw_state->n_planes, in malidp_mw_atomic_commit()
266 fb->width, fb->height, mw_state->format, in malidp_mw_atomic_commit()
267 !mw_state->rgb2yuv_initialized ? in malidp_mw_atomic_commit()
268 mw_state->rgb2yuv_coeffs : NULL); in malidp_mw_atomic_commit()
269 mw_state->rgb2yuv_initialized = !!mw_state->rgb2yuv_coeffs; in malidp_mw_atomic_commit()