Lines Matching refs:info

14 	const struct drm_format_info *info = NULL;  in drm_test_format_block_width_invalid()  local
16 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0); in drm_test_format_block_width_invalid()
17 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_invalid()
18 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_invalid()
23 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444); in drm_test_format_block_width_one_plane() local
25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane()
27 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_one_plane()
28 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_one_plane()
29 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_one_plane()
34 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12); in drm_test_format_block_width_two_plane() local
36 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_two_plane()
38 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_two_plane()
39 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 1); in drm_test_format_block_width_two_plane()
40 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 2), 0); in drm_test_format_block_width_two_plane()
41 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_two_plane()
46 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422); in drm_test_format_block_width_three_plane() local
48 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_three_plane()
50 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_three_plane()
51 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 1); in drm_test_format_block_width_three_plane()
52 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 2), 1); in drm_test_format_block_width_three_plane()
53 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 3), 0); in drm_test_format_block_width_three_plane()
54 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_three_plane()
59 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L0); in drm_test_format_block_width_tiled() local
61 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_tiled()
63 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 2); in drm_test_format_block_width_tiled()
64 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_tiled()
65 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_tiled()
70 const struct drm_format_info *info = NULL; in drm_test_format_block_height_invalid() local
72 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 0), 0); in drm_test_format_block_height_invalid()
73 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0); in drm_test_format_block_height_invalid()
74 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 0); in drm_test_format_block_height_invalid()
79 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444); in drm_test_format_block_height_one_plane() local
81 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_one_plane()
83 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 0), 1); in drm_test_format_block_height_one_plane()
84 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0); in drm_test_format_block_height_one_plane()
85 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 0); in drm_test_format_block_height_one_plane()
90 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12); in drm_test_format_block_height_two_plane() local
92 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_two_plane()
94 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 0), 1); in drm_test_format_block_height_two_plane()
95 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 1); in drm_test_format_block_height_two_plane()
96 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 2), 0); in drm_test_format_block_height_two_plane()
97 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0); in drm_test_format_block_height_two_plane()
102 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422); in drm_test_format_block_height_three_plane() local
104 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_three_plane()
106 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 0), 1); in drm_test_format_block_height_three_plane()
107 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 1); in drm_test_format_block_height_three_plane()
108 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 2), 1); in drm_test_format_block_height_three_plane()
109 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 3), 0); in drm_test_format_block_height_three_plane()
110 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0); in drm_test_format_block_height_three_plane()
115 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L0); in drm_test_format_block_height_tiled() local
117 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_tiled()
119 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 0), 2); in drm_test_format_block_height_tiled()
120 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 0); in drm_test_format_block_height_tiled()
121 KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0); in drm_test_format_block_height_tiled()
126 const struct drm_format_info *info = NULL; in drm_test_format_min_pitch_invalid() local
128 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_invalid()
129 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_invalid()
130 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_invalid()
135 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_RGB332); in drm_test_format_min_pitch_one_plane_8bpp() local
137 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_8bpp()
139 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_one_plane_8bpp()
140 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_one_plane_8bpp()
141 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_one_plane_8bpp()
143 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); in drm_test_format_min_pitch_one_plane_8bpp()
144 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); in drm_test_format_min_pitch_one_plane_8bpp()
145 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); in drm_test_format_min_pitch_one_plane_8bpp()
146 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); in drm_test_format_min_pitch_one_plane_8bpp()
147 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); in drm_test_format_min_pitch_one_plane_8bpp()
148 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); in drm_test_format_min_pitch_one_plane_8bpp()
149 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); in drm_test_format_min_pitch_one_plane_8bpp()
150 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_one_plane_8bpp()
152 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), in drm_test_format_min_pitch_one_plane_8bpp()
158 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444); in drm_test_format_min_pitch_one_plane_16bpp() local
160 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_16bpp()
162 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_one_plane_16bpp()
163 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_one_plane_16bpp()
164 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_one_plane_16bpp()
166 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 2); in drm_test_format_min_pitch_one_plane_16bpp()
167 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 4); in drm_test_format_min_pitch_one_plane_16bpp()
168 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1280); in drm_test_format_min_pitch_one_plane_16bpp()
169 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 2048); in drm_test_format_min_pitch_one_plane_16bpp()
170 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 3840); in drm_test_format_min_pitch_one_plane_16bpp()
171 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 8192); in drm_test_format_min_pitch_one_plane_16bpp()
172 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 1342); in drm_test_format_min_pitch_one_plane_16bpp()
173 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_one_plane_16bpp()
175 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), in drm_test_format_min_pitch_one_plane_16bpp()
181 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_RGB888); in drm_test_format_min_pitch_one_plane_24bpp() local
183 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_24bpp()
185 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_one_plane_24bpp()
186 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_one_plane_24bpp()
187 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_one_plane_24bpp()
189 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 3); in drm_test_format_min_pitch_one_plane_24bpp()
190 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 6); in drm_test_format_min_pitch_one_plane_24bpp()
191 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1920); in drm_test_format_min_pitch_one_plane_24bpp()
192 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 3072); in drm_test_format_min_pitch_one_plane_24bpp()
193 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 5760); in drm_test_format_min_pitch_one_plane_24bpp()
194 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 12288); in drm_test_format_min_pitch_one_plane_24bpp()
195 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 2013); in drm_test_format_min_pitch_one_plane_24bpp()
196 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_one_plane_24bpp()
198 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX - 1), in drm_test_format_min_pitch_one_plane_24bpp()
204 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_ABGR8888); in drm_test_format_min_pitch_one_plane_32bpp() local
206 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_32bpp()
208 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_one_plane_32bpp()
209 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_one_plane_32bpp()
210 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_one_plane_32bpp()
212 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 4); in drm_test_format_min_pitch_one_plane_32bpp()
213 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 8); in drm_test_format_min_pitch_one_plane_32bpp()
214 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 2560); in drm_test_format_min_pitch_one_plane_32bpp()
215 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 4096); in drm_test_format_min_pitch_one_plane_32bpp()
216 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 7680); in drm_test_format_min_pitch_one_plane_32bpp()
217 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 16384); in drm_test_format_min_pitch_one_plane_32bpp()
218 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 2684); in drm_test_format_min_pitch_one_plane_32bpp()
219 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_one_plane_32bpp()
221 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX - 1), in drm_test_format_min_pitch_one_plane_32bpp()
227 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12); in drm_test_format_min_pitch_two_plane() local
229 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_two_plane()
231 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_two_plane()
232 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_two_plane()
233 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_two_plane()
234 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 0), 0); in drm_test_format_min_pitch_two_plane()
236 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); in drm_test_format_min_pitch_two_plane()
237 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 2); in drm_test_format_min_pitch_two_plane()
238 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); in drm_test_format_min_pitch_two_plane()
239 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 2); in drm_test_format_min_pitch_two_plane()
240 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); in drm_test_format_min_pitch_two_plane()
241 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 320), 640); in drm_test_format_min_pitch_two_plane()
242 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); in drm_test_format_min_pitch_two_plane()
243 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 512), 1024); in drm_test_format_min_pitch_two_plane()
244 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); in drm_test_format_min_pitch_two_plane()
245 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 960), 1920); in drm_test_format_min_pitch_two_plane()
246 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); in drm_test_format_min_pitch_two_plane()
247 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2048), 4096); in drm_test_format_min_pitch_two_plane()
248 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); in drm_test_format_min_pitch_two_plane()
249 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 336), 672); in drm_test_format_min_pitch_two_plane()
250 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_two_plane()
252 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1), in drm_test_format_min_pitch_two_plane()
254 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), in drm_test_format_min_pitch_two_plane()
256 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2), in drm_test_format_min_pitch_two_plane()
262 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422); in drm_test_format_min_pitch_three_plane_8bpp() local
264 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_three_plane_8bpp()
266 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_three_plane_8bpp()
267 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_three_plane_8bpp()
268 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 0), 0); in drm_test_format_min_pitch_three_plane_8bpp()
269 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_three_plane_8bpp()
270 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 3, 0), 0); in drm_test_format_min_pitch_three_plane_8bpp()
272 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); in drm_test_format_min_pitch_three_plane_8bpp()
273 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 1); in drm_test_format_min_pitch_three_plane_8bpp()
274 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 1), 1); in drm_test_format_min_pitch_three_plane_8bpp()
275 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); in drm_test_format_min_pitch_three_plane_8bpp()
276 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2), 2); in drm_test_format_min_pitch_three_plane_8bpp()
277 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 2), 2); in drm_test_format_min_pitch_three_plane_8bpp()
278 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); in drm_test_format_min_pitch_three_plane_8bpp()
279 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 320), 320); in drm_test_format_min_pitch_three_plane_8bpp()
280 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 320), 320); in drm_test_format_min_pitch_three_plane_8bpp()
281 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); in drm_test_format_min_pitch_three_plane_8bpp()
282 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 512), 512); in drm_test_format_min_pitch_three_plane_8bpp()
283 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 512), 512); in drm_test_format_min_pitch_three_plane_8bpp()
284 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); in drm_test_format_min_pitch_three_plane_8bpp()
285 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 960), 960); in drm_test_format_min_pitch_three_plane_8bpp()
286 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 960), 960); in drm_test_format_min_pitch_three_plane_8bpp()
287 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); in drm_test_format_min_pitch_three_plane_8bpp()
288 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2048), 2048); in drm_test_format_min_pitch_three_plane_8bpp()
289 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 2048), 2048); in drm_test_format_min_pitch_three_plane_8bpp()
290 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); in drm_test_format_min_pitch_three_plane_8bpp()
291 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 336), 336); in drm_test_format_min_pitch_three_plane_8bpp()
292 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 336), 336); in drm_test_format_min_pitch_three_plane_8bpp()
293 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_three_plane_8bpp()
295 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1), in drm_test_format_min_pitch_three_plane_8bpp()
297 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, UINT_MAX / 2 + 1), in drm_test_format_min_pitch_three_plane_8bpp()
299 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1) / 2), in drm_test_format_min_pitch_three_plane_8bpp()
301 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2), in drm_test_format_min_pitch_three_plane_8bpp()
303 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, (UINT_MAX - 1) / 2), in drm_test_format_min_pitch_three_plane_8bpp()
309 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L2); in drm_test_format_min_pitch_tiled() local
311 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_tiled()
313 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 0), 0); in drm_test_format_min_pitch_tiled()
314 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, -1, 0), 0); in drm_test_format_min_pitch_tiled()
315 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0); in drm_test_format_min_pitch_tiled()
317 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 2); in drm_test_format_min_pitch_tiled()
318 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 4); in drm_test_format_min_pitch_tiled()
319 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1280); in drm_test_format_min_pitch_tiled()
320 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 2048); in drm_test_format_min_pitch_tiled()
321 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 3840); in drm_test_format_min_pitch_tiled()
322 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 8192); in drm_test_format_min_pitch_tiled()
323 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 1342); in drm_test_format_min_pitch_tiled()
324 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), in drm_test_format_min_pitch_tiled()
326 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX - 1), in drm_test_format_min_pitch_tiled()