Lines Matching defs:plane
357 * @plane: plane index
360 * The width in pixels of a block, depending on the plane index.
363 int plane)
365 if (!info || plane < 0 || plane >= info->num_planes)
368 if (!info->block_w[plane])
370 return info->block_w[plane];
377 * @plane: plane index
380 * The height in pixels of a block, depending on the plane index.
383 int plane)
385 if (!info || plane < 0 || plane >= info->num_planes)
388 if (!info->block_h[plane])
390 return info->block_h[plane];
397 * @plane: plane index
405 int plane, unsigned int buffer_width)
407 if (!info || plane < 0 || plane >= info->num_planes)
410 return DIV_ROUND_UP_ULL((u64)buffer_width * info->char_per_block[plane],
411 drm_format_info_block_width(info, plane) *
412 drm_format_info_block_height(info, plane));