Lines Matching defs:plane
374 * @plane: plane index
377 * The width in pixels of a block, depending on the plane index.
380 int plane)
382 if (!info || plane < 0 || plane >= info->num_planes)
385 if (!info->block_w[plane])
387 return info->block_w[plane];
394 * @plane: plane index
397 * The height in pixels of a block, depending on the plane index.
400 int plane)
402 if (!info || plane < 0 || plane >= info->num_planes)
405 if (!info->block_h[plane])
407 return info->block_h[plane];
414 * @plane: plane index
417 * The actual number of bits per pixel, depending on the plane index.
419 unsigned int drm_format_info_bpp(const struct drm_format_info *info, int plane)
421 if (!info || plane < 0 || plane >= info->num_planes)
424 return info->char_per_block[plane] * 8 /
425 (drm_format_info_block_width(info, plane) *
426 drm_format_info_block_height(info, plane));
433 * @plane: plane index
441 int plane, unsigned int buffer_width)
443 if (!info || plane < 0 || plane >= info->num_planes)
446 return DIV_ROUND_UP_ULL((u64)buffer_width * info->char_per_block[plane],
447 drm_format_info_block_width(info, plane) *
448 drm_format_info_block_height(info, plane));