Lines Matching defs:plane
343 * @plane: plane index
346 * The width in pixels of a block, depending on the plane index.
349 int plane)
351 if (!info || plane < 0 || plane >= info->num_planes)
354 if (!info->block_w[plane])
356 return info->block_w[plane];
363 * @plane: plane index
366 * The height in pixels of a block, depending on the plane index.
369 int plane)
371 if (!info || plane < 0 || plane >= info->num_planes)
374 if (!info->block_h[plane])
376 return info->block_h[plane];
383 * @plane: plane index
391 int plane, unsigned int buffer_width)
393 if (!info || plane < 0 || plane >= info->num_planes)
396 return DIV_ROUND_UP_ULL((u64)buffer_width * info->char_per_block[plane],
397 drm_format_info_block_width(info, plane) *
398 drm_format_info_block_height(info, plane));