Lines Matching +full:1 +full:- +full:2
34 * drm_mode_legacy_fb_format - compute drm fourcc code from legacy description
45 case 1: in drm_mode_legacy_fb_format()
46 if (depth == 1) in drm_mode_legacy_fb_format()
50 case 2: in drm_mode_legacy_fb_format()
51 if (depth == 2) in drm_mode_legacy_fb_format()
108 * drm_driver_legacy_fb_format - compute drm fourcc code from legacy description
123 if (dev->mode_config.quirk_addfb_prefer_host_byte_order) { in drm_driver_legacy_fb_format()
134 if (dev->mode_config.quirk_addfb_prefer_xbgr_30bpp && in drm_driver_legacy_fb_format()
143 * drm_driver_color_mode_format - Compute DRM 4CC code from color mode
145 * @color_mode: command-line color mode
154 * only legacy formats are supported (fmt->depth is a legacy field), but
178 { .format = DRM_FORMAT_C1, .depth = 1, .num_planes = 1, in __drm_format_info()
179 ….char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
180 { .format = DRM_FORMAT_C2, .depth = 2, .num_planes = 1, in __drm_format_info()
181 ….char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
182 { .format = DRM_FORMAT_C4, .depth = 4, .num_planes = 1, in __drm_format_info()
183 ….char_per_block = { 1, }, .block_w = { 2, }, .block_h = { 1, }, .hsub = 1, .vsub = 1, .is_color_in… in __drm_format_info()
184 …{ .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
185 { .format = DRM_FORMAT_D1, .depth = 1, .num_planes = 1, in __drm_format_info()
186 .char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
187 { .format = DRM_FORMAT_D2, .depth = 2, .num_planes = 1, in __drm_format_info()
188 .char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
189 { .format = DRM_FORMAT_D4, .depth = 4, .num_planes = 1, in __drm_format_info()
190 .char_per_block = { 1, }, .block_w = { 2, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
191 …{ .format = DRM_FORMAT_D8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
192 { .format = DRM_FORMAT_R1, .depth = 1, .num_planes = 1, in __drm_format_info()
193 .char_per_block = { 1, }, .block_w = { 8, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
194 { .format = DRM_FORMAT_R2, .depth = 2, .num_planes = 1, in __drm_format_info()
195 .char_per_block = { 1, }, .block_w = { 4, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
196 { .format = DRM_FORMAT_R4, .depth = 4, .num_planes = 1, in __drm_format_info()
197 .char_per_block = { 1, }, .block_w = { 2, }, .block_h = { 1, }, .hsub = 1, .vsub = 1 }, in __drm_format_info()
198 …{ .format = DRM_FORMAT_R8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
199 … .format = DRM_FORMAT_R10, .depth = 10, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
200 … .format = DRM_FORMAT_R12, .depth = 12, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
201 …ormat = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
202 …ormat = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
203 …rmat = DRM_FORMAT_XRGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
204 …rmat = DRM_FORMAT_XBGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
205 …rmat = DRM_FORMAT_RGBX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
206 …rmat = DRM_FORMAT_BGRX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
207 …rmat = DRM_FORMAT_ARGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
208 …rmat = DRM_FORMAT_ABGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
209 …rmat = DRM_FORMAT_RGBA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
210 …rmat = DRM_FORMAT_BGRA4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
211 …rmat = DRM_FORMAT_XRGB1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
212 …rmat = DRM_FORMAT_XBGR1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
213 …rmat = DRM_FORMAT_RGBX5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
214 …rmat = DRM_FORMAT_BGRX5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
215 …rmat = DRM_FORMAT_ARGB1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
216 …rmat = DRM_FORMAT_ABGR1555, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
217 …rmat = DRM_FORMAT_RGBA5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
218 …rmat = DRM_FORMAT_BGRA5551, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
219 …ormat = DRM_FORMAT_RGB565, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
220 …ormat = DRM_FORMAT_BGR565, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
222 …55 | DRM_FORMAT_BIG_ENDIAN, .depth = 15, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
223 …65 | DRM_FORMAT_BIG_ENDIAN, .depth = 16, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
225 …ormat = DRM_FORMAT_RGB888, .depth = 24, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
226 …ormat = DRM_FORMAT_BGR888, .depth = 24, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
227 …rmat = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
228 …rmat = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
229 …rmat = DRM_FORMAT_RGBX8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
230 …rmat = DRM_FORMAT_BGRX8888, .depth = 24, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
231 …mat = DRM_FORMAT_RGB565_A8, .depth = 24, .num_planes = 2, .cpp = { 2, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
232 …mat = DRM_FORMAT_BGR565_A8, .depth = 24, .num_planes = 2, .cpp = { 2, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
233 …t = DRM_FORMAT_XRGB2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
234 …t = DRM_FORMAT_XBGR2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
235 …t = DRM_FORMAT_RGBX1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
236 …t = DRM_FORMAT_BGRX1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
237 …t = DRM_FORMAT_ARGB2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
238 …t = DRM_FORMAT_ABGR2101010, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
239 …t = DRM_FORMAT_RGBA1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
240 …t = DRM_FORMAT_BGRA1010102, .depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
242 .num_planes = 1, .char_per_block = { 6, 0, 0 }, in __drm_format_info()
243 .block_w = { 1, 0, 0 }, .block_h = { 1, 0, 0 }, in __drm_format_info()
244 .hsub = 1, .vsub = 1, .has_alpha = false }, in __drm_format_info()
246 .num_planes = 1, .char_per_block = { 6, 0, 0 }, in __drm_format_info()
247 .block_w = { 1, 0, 0 }, .block_h = { 1, 0, 0 }, in __drm_format_info()
248 .hsub = 1, .vsub = 1, .has_alpha = false }, in __drm_format_info()
249 …rmat = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
250 …rmat = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
251 …rmat = DRM_FORMAT_RGBA8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
252 …rmat = DRM_FORMAT_BGRA8888, .depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
253 …= DRM_FORMAT_XRGB16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
254 …= DRM_FORMAT_XBGR16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
255 …= DRM_FORMAT_ARGB16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
256 …= DRM_FORMAT_ABGR16161616F, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
257 …FORMAT_AXBXGXRX106106106106, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
258 … = DRM_FORMAT_XRGB16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
259 … = DRM_FORMAT_XBGR16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
260 … = DRM_FORMAT_ARGB16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
261 … = DRM_FORMAT_ABGR16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
262 …mat = DRM_FORMAT_RGB888_A8, .depth = 32, .num_planes = 2, .cpp = { 3, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
263 …mat = DRM_FORMAT_BGR888_A8, .depth = 32, .num_planes = 2, .cpp = { 3, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
264 …t = DRM_FORMAT_XRGB8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
265 …t = DRM_FORMAT_XBGR8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
266 …t = DRM_FORMAT_RGBX8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
267 …t = DRM_FORMAT_BGRX8888_A8, .depth = 32, .num_planes = 2, .cpp = { 4, 1, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
268 …{ .format = DRM_FORMAT_YUV410, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub… in __drm_format_info()
269 …{ .format = DRM_FORMAT_YVU410, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub… in __drm_format_info()
270 …= DRM_FORMAT_YUV411, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 1, .is_… in __drm_format_info()
271 …= DRM_FORMAT_YVU411, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 4, .vsub = 1, .is_… in __drm_format_info()
272 …= DRM_FORMAT_YUV420, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 2, .is_… in __drm_format_info()
273 …= DRM_FORMAT_YVU420, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 2, .is_… in __drm_format_info()
274 …= DRM_FORMAT_YUV422, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 1, .is_… in __drm_format_info()
275 …= DRM_FORMAT_YVU422, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 2, .vsub = 1, .is_… in __drm_format_info()
276 …= DRM_FORMAT_YUV444, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 1, .vsub = 1, .is_… in __drm_format_info()
277 …= DRM_FORMAT_YVU444, .depth = 0, .num_planes = 3, .cpp = { 1, 1, 1 }, .hsub = 1, .vsub = 1, .is_… in __drm_format_info()
278 ….format = DRM_FORMAT_NV12, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2… in __drm_format_info()
279 ….format = DRM_FORMAT_NV21, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2… in __drm_format_info()
280 ….format = DRM_FORMAT_NV16, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
281 ….format = DRM_FORMAT_NV61, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
282 ….format = DRM_FORMAT_NV24, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
283 ….format = DRM_FORMAT_NV42, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
284 ….format = DRM_FORMAT_YUYV, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
285 ….format = DRM_FORMAT_YVYU, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
286 ….format = DRM_FORMAT_UYVY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
287 ….format = DRM_FORMAT_VYUY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
288 …rmat = DRM_FORMAT_XYUV8888, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
289 …DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
290 ….format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
291 …DRM_FORMAT_Y210, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
292 …DRM_FORMAT_Y212, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
293 …DRM_FORMAT_Y216, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 2, .vsub = 1… in __drm_format_info()
294 …DRM_FORMAT_Y410, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
295 …DRM_FORMAT_Y412, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
296 …DRM_FORMAT_Y416, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
297 …t = DRM_FORMAT_XVYU2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
298 …DRM_FORMAT_XVYU12_16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
299 … = DRM_FORMAT_XVYU16161616, .depth = 0, .num_planes = 1, .cpp = { 8, 0, 0 }, .hsub = 1, .vsub = 1… in __drm_format_info()
300 { .format = DRM_FORMAT_Y0L0, .depth = 0, .num_planes = 1, in __drm_format_info()
301 .char_per_block = { 8, 0, 0 }, .block_w = { 2, 0, 0 }, .block_h = { 2, 0, 0 }, in __drm_format_info()
302 .hsub = 2, .vsub = 2, .has_alpha = true, .is_yuv = true }, in __drm_format_info()
303 { .format = DRM_FORMAT_X0L0, .depth = 0, .num_planes = 1, in __drm_format_info()
304 .char_per_block = { 8, 0, 0 }, .block_w = { 2, 0, 0 }, .block_h = { 2, 0, 0 }, in __drm_format_info()
305 .hsub = 2, .vsub = 2, .is_yuv = true }, in __drm_format_info()
306 { .format = DRM_FORMAT_Y0L2, .depth = 0, .num_planes = 1, in __drm_format_info()
307 .char_per_block = { 8, 0, 0 }, .block_w = { 2, 0, 0 }, .block_h = { 2, 0, 0 }, in __drm_format_info()
308 .hsub = 2, .vsub = 2, .has_alpha = true, .is_yuv = true }, in __drm_format_info()
309 { .format = DRM_FORMAT_X0L2, .depth = 0, .num_planes = 1, in __drm_format_info()
310 .char_per_block = { 8, 0, 0 }, .block_w = { 2, 0, 0 }, .block_h = { 2, 0, 0 }, in __drm_format_info()
311 .hsub = 2, .vsub = 2, .is_yuv = true }, in __drm_format_info()
312 { .format = DRM_FORMAT_P010, .depth = 0, .num_planes = 2, in __drm_format_info()
313 .char_per_block = { 2, 4, 0 }, .block_w = { 1, 1, 0 }, .block_h = { 1, 1, 0 }, in __drm_format_info()
314 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
315 { .format = DRM_FORMAT_P012, .depth = 0, .num_planes = 2, in __drm_format_info()
316 .char_per_block = { 2, 4, 0 }, .block_w = { 1, 1, 0 }, .block_h = { 1, 1, 0 }, in __drm_format_info()
317 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
318 { .format = DRM_FORMAT_P016, .depth = 0, .num_planes = 2, in __drm_format_info()
319 .char_per_block = { 2, 4, 0 }, .block_w = { 1, 1, 0 }, .block_h = { 1, 1, 0 }, in __drm_format_info()
320 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
322 .num_planes = 2, .char_per_block = { 2, 4, 0 }, in __drm_format_info()
323 .block_w = { 1, 1, 0 }, .block_h = { 1, 1, 0 }, .hsub = 2, in __drm_format_info()
324 .vsub = 1, .is_yuv = true }, in __drm_format_info()
326 .num_planes = 1, .cpp = { 0, 0, 0 }, .hsub = 1, .vsub = 1, in __drm_format_info()
329 .num_planes = 1, .cpp = { 0, 0, 0 }, .hsub = 2, .vsub = 2, in __drm_format_info()
332 .num_planes = 1, .cpp = { 0, 0, 0 }, .hsub = 2, .vsub = 2, in __drm_format_info()
335 .num_planes = 2, .char_per_block = { 5, 5, 0 }, in __drm_format_info()
336 .block_w = { 4, 2, 0 }, .block_h = { 1, 1, 0 }, .hsub = 2, in __drm_format_info()
337 .vsub = 2, .is_yuv = true }, in __drm_format_info()
339 .num_planes = 2, .char_per_block = { 5, 5, 0 }, in __drm_format_info()
340 .block_w = { 4, 2, 0 }, .block_h = { 1, 1, 0 }, .hsub = 2, in __drm_format_info()
341 .vsub = 1, .is_yuv = true }, in __drm_format_info()
343 .num_planes = 2, .char_per_block = { 5, 5, 0 }, in __drm_format_info()
344 .block_w = { 4, 2, 0 }, .block_h = { 1, 1, 0 }, .hsub = 1, in __drm_format_info()
345 .vsub = 1, .is_yuv = true }, in __drm_format_info()
347 .num_planes = 3, .char_per_block = { 2, 2, 2 }, in __drm_format_info()
348 .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 1, in __drm_format_info()
349 .vsub = 1, .is_yuv = true }, in __drm_format_info()
351 .num_planes = 3, .char_per_block = { 2, 2, 2 }, in __drm_format_info()
352 .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 1, in __drm_format_info()
353 .vsub = 1, .is_yuv = true }, in __drm_format_info()
354 { .format = DRM_FORMAT_P030, .depth = 0, .num_planes = 2, in __drm_format_info()
355 .char_per_block = { 4, 8, 0 }, .block_w = { 3, 3, 0 }, .block_h = { 1, 1, 0 }, in __drm_format_info()
356 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
358 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
359 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
361 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
362 .hsub = 2, .vsub = 1, .is_yuv = true}, in __drm_format_info()
364 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
365 .hsub = 1, .vsub = 1, .is_yuv = true}, in __drm_format_info()
367 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
368 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
370 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
371 .hsub = 2, .vsub = 1, .is_yuv = true}, in __drm_format_info()
373 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
374 .hsub = 1, .vsub = 1, .is_yuv = true}, in __drm_format_info()
376 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
377 .hsub = 2, .vsub = 2, .is_yuv = true}, in __drm_format_info()
379 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
380 .hsub = 2, .vsub = 1, .is_yuv = true}, in __drm_format_info()
382 .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, in __drm_format_info()
383 .hsub = 1, .vsub = 1, .is_yuv = true}, in __drm_format_info()
397 * drm_format_info - query information for a given format
418 * drm_get_format_info - query information for a given framebuffer configuration
433 if (dev->mode_config.funcs->get_format_info) in drm_get_format_info()
434 info = dev->mode_config.funcs->get_format_info(pixel_format, in drm_get_format_info()
445 * drm_format_info_block_width - width in pixels of block.
455 if (!info || plane < 0 || plane >= info->num_planes) in drm_format_info_block_width()
458 if (!info->block_w[plane]) in drm_format_info_block_width()
459 return 1; in drm_format_info_block_width()
460 return info->block_w[plane]; in drm_format_info_block_width()
465 * drm_format_info_block_height - height in pixels of a block
475 if (!info || plane < 0 || plane >= info->num_planes) in drm_format_info_block_height()
478 if (!info->block_h[plane]) in drm_format_info_block_height()
479 return 1; in drm_format_info_block_height()
480 return info->block_h[plane]; in drm_format_info_block_height()
485 * drm_format_info_bpp - number of bits per pixel
494 if (!info || plane < 0 || plane >= info->num_planes) in drm_format_info_bpp()
497 return info->char_per_block[plane] * 8 / in drm_format_info_bpp()
504 * drm_format_info_min_pitch - computes the minimum required pitch in bytes
516 if (!info || plane < 0 || plane >= info->num_planes) in drm_format_info_min_pitch()
519 return DIV_ROUND_UP_ULL((u64)buffer_width * info->char_per_block[plane], in drm_format_info_min_pitch()