drm_format_info_block_width
u32 block_w = drm_format_info_block_width(fb->format, 0);
block_w = drm_format_info_block_width(fb->format, plane);
block_w = drm_format_info_block_width(fb->format, 0);
u32 block_w = drm_format_info_block_width(fb->format, plane);
if ((drm_format_info_block_width(format, 0) > 1) ||
WARN_ON((drm_format_info_block_width(format, 0) > 1) ||
EXPORT_SYMBOL(drm_format_info_block_width);
(drm_format_info_block_width(info, plane) *
drm_format_info_block_width(info, plane) *
unsigned int block_width = drm_format_info_block_width(format, 0);
unsigned int block_width = drm_format_info_block_width(format, 0);
*hsub = drm_format_info_block_width(fb->format, color_plane) /
drm_format_info_block_width(fb->format, main_plane);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 2), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 2), 1);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 3), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 2);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0);
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
return (int)fb->pitches[plane_index] * drm_format_info_block_width(fb->format,
return -(int)fb->pitches[plane_index] * drm_format_info_block_width(fb->format,
WARN_ONCE(drm_format_info_block_width(frame_info->fb->format,
int block_x = x / drm_format_info_block_width(format, plane_index);
*rem_x = x % drm_format_info_block_width(format, plane_index);
unsigned int drm_format_info_block_width(const struct drm_format_info *info,