Lines Matching refs:format

170 	u32 format = 0;  in drm_format_to_dpu()  local
172 switch (fb->format->format) { in drm_format_to_dpu()
175 format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0; in drm_format_to_dpu()
176 format |= BIT_DPU_LAY_FORMAT_ARGB8888; in drm_format_to_dpu()
181 format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0; in drm_format_to_dpu()
185 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
188 format |= BIT_DPU_LAY_FORMAT_ARGB8888; in drm_format_to_dpu()
192 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
195 format |= BIT_DPU_LAY_FORMAT_ARGB8888; in drm_format_to_dpu()
199 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
202 format |= BIT_DPU_LAY_FORMAT_RGB565; in drm_format_to_dpu()
206 format |= BIT_DPU_LAY_FORMAT_YUV420_2PLANE; in drm_format_to_dpu()
208 format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3; in drm_format_to_dpu()
210 format |= BIT_DPU_LAY_NO_SWITCH; in drm_format_to_dpu()
214 format |= BIT_DPU_LAY_FORMAT_YUV420_2PLANE; in drm_format_to_dpu()
216 format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3; in drm_format_to_dpu()
218 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
222 format |= BIT_DPU_LAY_FORMAT_YUV422_2PLANE; in drm_format_to_dpu()
224 format |= BIT_DPU_LAY_DATA_ENDIAN_B3B2B1B0; in drm_format_to_dpu()
226 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
230 format |= BIT_DPU_LAY_FORMAT_YUV422_2PLANE; in drm_format_to_dpu()
232 format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3; in drm_format_to_dpu()
234 format |= BIT_DPU_LAY_NO_SWITCH; in drm_format_to_dpu()
237 format |= BIT_DPU_LAY_FORMAT_YUV420_3PLANE; in drm_format_to_dpu()
239 format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3; in drm_format_to_dpu()
241 format |= BIT_DPU_LAY_NO_SWITCH; in drm_format_to_dpu()
244 format |= BIT_DPU_LAY_FORMAT_YUV420_3PLANE; in drm_format_to_dpu()
246 format |= BIT_DPU_LAY_DATA_ENDIAN_B0B1B2B3; in drm_format_to_dpu()
248 format |= BIT_DPU_LAY_RB_OR_UV_SWITCH; in drm_format_to_dpu()
254 return format; in drm_format_to_dpu()
325 u32 addr, size, offset, pitch, blend, format, rotation; in sprd_dpu_layer() local
339 for (i = 0; i < fb->format->num_planes; i++) { in sprd_dpu_layer()
351 if (fb->format->num_planes == 3) { in sprd_dpu_layer()
353 pitch = (fb->pitches[0] / fb->format->cpp[0]) | in sprd_dpu_layer()
354 (fb->pitches[0] / fb->format->cpp[0] << 15); in sprd_dpu_layer()
356 pitch = fb->pitches[0] / fb->format->cpp[0]; in sprd_dpu_layer()
366 format = drm_format_to_dpu(fb); in sprd_dpu_layer()
371 format | in sprd_dpu_layer()