Lines Matching +full:0 +full:x5400
21 #define TEST_USE_DEFAULT_PITCH 0
123 .clip = DRM_RECT_INIT(0, 0, 1, 1),
124 .xrgb8888 = { 0x01FF0000 },
127 .expected = { 0x4C },
131 .expected = { 0xE0 },
135 .expected = { 0xF800 },
136 .expected_swab = { 0x00F8 },
140 .expected = { 0x7C00 },
144 .expected = { 0xFC00 },
148 .expected = { 0xF801 },
152 .expected = { 0x00, 0x00, 0xFF },
156 .expected = { 0xFFFF0000 },
160 .expected = { 0x3FF00000 },
164 .expected = { 0xFFF00000 },
168 .expected = { 0b0 },
172 .expected = { 0x0000FF01 },
176 .expected = { 0x010000FF },
180 .expected = { 0xFF0000FF },
188 0x00000000, 0x00000000,
189 0x00000000, 0x10FF0000,
193 .expected = { 0x4C },
197 .expected = { 0xE0 },
201 .expected = { 0xF800 },
202 .expected_swab = { 0x00F8 },
206 .expected = { 0x7C00 },
210 .expected = { 0xFC00 },
214 .expected = { 0xF801 },
218 .expected = { 0x00, 0x00, 0xFF },
222 .expected = { 0xFFFF0000 },
226 .expected = { 0x3FF00000 },
230 .expected = { 0xFFF00000 },
234 .expected = { 0b0 },
238 .expected = { 0x0000FF10 },
242 .expected = { 0x100000FF },
246 .expected = { 0xFF0000FF },
258 0x00000000, 0x00000000, 0x00000000, 0x00000000,
259 0x00000000, 0x11FFFFFF, 0x22000000, 0x00000000,
260 0x00000000, 0x33FF0000, 0x4400FF00, 0x00000000,
261 0x00000000, 0x550000FF, 0x66FF00FF, 0x00000000,
262 0x00000000, 0x77FFFF00, 0x8800FFFF, 0x00000000,
267 0xFF, 0x00,
268 0x4C, 0x99,
269 0x19, 0x66,
270 0xE5, 0xB2,
276 0xFF, 0x00,
277 0xE0, 0x1C,
278 0x03, 0xE3,
279 0xFC, 0x1F,
285 0xFFFF, 0x0000,
286 0xF800, 0x07E0,
287 0x001F, 0xF81F,
288 0xFFE0, 0x07FF,
291 0xFFFF, 0x0000,
292 0x00F8, 0xE007,
293 0x1F00, 0x1FF8,
294 0xE0FF, 0xFF07,
300 0x7FFF, 0x0000,
301 0x7C00, 0x03E0,
302 0x001F, 0x7C1F,
303 0x7FE0, 0x03FF,
309 0xFFFF, 0x8000,
310 0xFC00, 0x83E0,
311 0x801F, 0xFC1F,
312 0xFFE0, 0x83FF,
318 0xFFFF, 0x0001,
319 0xF801, 0x07C1,
320 0x003F, 0xF83F,
321 0xFFC1, 0x07FF,
327 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00,
328 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00,
329 0xFF, 0x00, 0x00, 0xFF, 0x00, 0xFF,
330 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00,
336 0xFFFFFFFF, 0xFF000000,
337 0xFFFF0000, 0xFF00FF00,
338 0xFF0000FF, 0xFFFF00FF,
339 0xFFFFFF00, 0xFF00FFFF,
345 0x3FFFFFFF, 0x00000000,
346 0x3FF00000, 0x000FFC00,
347 0x000003FF, 0x3FF003FF,
348 0x3FFFFC00, 0x000FFFFF,
354 0xFFFFFFFF, 0xC0000000,
355 0xFFF00000, 0xC00FFC00,
356 0xC00003FF, 0xFFF003FF,
357 0xFFFFFC00, 0xC00FFFFF,
363 0b01,
364 0b10,
365 0b00,
366 0b11,
372 0xFFFFFF11, 0x00000022,
373 0x0000FF33, 0x00FF0044,
374 0xFF000055, 0xFF00FF66,
375 0x00FFFF77, 0xFFFF0088,
381 0x11FFFFFF, 0x22000000,
382 0x330000FF, 0x4400FF00,
383 0x55FF0000, 0x66FF00FF,
384 0x7700FFFF, 0x88FFFF00,
390 0xFFFFFFFF, 0xFF000000,
391 0xFF0000FF, 0xFF00FF00,
392 0xFFFF0000, 0xFFFF00FF,
393 0xFF00FFFF, 0xFFFFFF00,
401 .clip = DRM_RECT_INIT(0, 0, 3, 3),
403 0xA10E449C, 0xB1114D05, 0xC1A8F303,
404 0xD16CF073, 0xA20E449C, 0xB2114D05,
405 0xC2A80303, 0xD26CF073, 0xA30E449C,
410 0x3C, 0x33, 0xC4, 0x00, 0x00,
411 0xBB, 0x3C, 0x33, 0x00, 0x00,
412 0x34, 0xBB, 0x3C, 0x00, 0x00,
418 0x0A, 0x08, 0xBC, 0x00, 0x00,
419 0x7D, 0x0A, 0x08, 0x00, 0x00,
420 0xA0, 0x7D, 0x0A, 0x00, 0x00,
426 0x0A33, 0x1260, 0xAF80, 0x0000, 0x0000,
427 0x6F8E, 0x0A33, 0x1260, 0x0000, 0x0000,
428 0xA800, 0x6F8E, 0x0A33, 0x0000, 0x0000,
431 0x330A, 0x6012, 0x80AF, 0x0000, 0x0000,
432 0x8E6F, 0x330A, 0x6012, 0x0000, 0x0000,
433 0x00A8, 0x8E6F, 0x330A, 0x0000, 0x0000,
439 0x0513, 0x0920, 0x57C0, 0x0000, 0x0000,
440 0x37CE, 0x0513, 0x0920, 0x0000, 0x0000,
441 0x5400, 0x37CE, 0x0513, 0x0000, 0x0000,
447 0x8513, 0x8920, 0xD7C0, 0x0000, 0x0000,
448 0xB7CE, 0x8513, 0x8920, 0x0000, 0x0000,
449 0xD400, 0xB7CE, 0x8513, 0x0000, 0x0000,
455 0x0A27, 0x1241, 0xAF81, 0x0000, 0x0000,
456 0x6F9D, 0x0A27, 0x1241, 0x0000, 0x0000,
457 0xA801, 0x6F9D, 0x0A27, 0x0000, 0x0000,
463 0x9C, 0x44, 0x0E, 0x05, 0x4D, 0x11, 0x03, 0xF3, 0xA8,
464 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
465 0x73, 0xF0, 0x6C, 0x9C, 0x44, 0x0E, 0x05, 0x4D, 0x11,
466 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
467 0x03, 0x03, 0xA8, 0x73, 0xF0, 0x6C, 0x9C, 0x44, 0x0E,
468 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
474 0xFF0E449C, 0xFF114D05, 0xFFA8F303, 0x00000000, 0x00000000,
475 0xFF6CF073, 0xFF0E449C, 0xFF114D05, 0x00000000, 0x00000000,
476 0xFFA80303, 0xFF6CF073, 0xFF0E449C, 0x00000000, 0x00000000,
482 0x03844672, 0x0444D414, 0x2A2F3C0C, 0x00000000, 0x00000000,
483 0x1B1F0DCD, 0x03844672, 0x0444D414, 0x00000000, 0x00000000,
484 0x2A20300C, 0x1B1F0DCD, 0x03844672, 0x00000000, 0x00000000,
490 0xC3844672, 0xC444D414, 0xEA2F3C0C, 0x00000000, 0x00000000,
491 0xDB1F0DCD, 0xC3844672, 0xC444D414, 0x00000000, 0x00000000,
492 0xEA20300C, 0xDB1F0DCD, 0xC3844672, 0x00000000, 0x00000000,
498 0b100, 0b000,
499 0b001, 0b000,
500 0b010, 0b000,
506 0x9C440EA1, 0x054D11B1, 0x03F3A8C1, 0x00000000, 0x00000000,
507 0x73F06CD1, 0x9C440EA2, 0x054D11B2, 0x00000000, 0x00000000,
508 0x0303A8C2, 0x73F06CD2, 0x9C440EA3, 0x00000000, 0x00000000,
514 0xA19C440E, 0xB1054D11, 0xC103F3A8, 0x00000000, 0x00000000,
515 0xD173F06C, 0xA29C440E, 0xB2054D11, 0x00000000, 0x00000000,
516 0xC20303A8, 0xD273F06C, 0xA39C440E, 0x00000000, 0x00000000,
522 0xFF9C440E, 0xFF054D11, 0xFF03F3A8, 0x00000000, 0x00000000,
523 0xFF73F06C, 0xFF9C440E, 0xFF054D11, 0x00000000, 0x00000000,
524 0xFF0303A8, 0xFF73F06C, 0xFF9C440E, 0x00000000, 0x00000000,
563 for (n = 0; n < buf_size; n++) in le16buf_to_cpu()
578 for (n = 0; n < buf_size; n++) in le32buf_to_cpu()
593 for (n = 0; n < buf_size; n++) in cpubuf_to_le32()
619 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8()
623 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_gray8()
624 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_gray8()
652 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332()
656 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb332()
657 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgb332()
685 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565()
689 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb565()
690 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgb565()
715 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_rgb565()
717 int blit_result = 0; in drm_test_fb_xrgb8888_to_rgb565()
739 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555()
743 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_xrgb1555()
744 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_xrgb1555()
762 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_xrgb1555()
764 int blit_result = 0; in drm_test_fb_xrgb8888_to_xrgb1555()
786 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555()
790 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_argb1555()
791 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_argb1555()
809 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_argb1555()
811 int blit_result = 0; in drm_test_fb_xrgb8888_to_argb1555()
833 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgba5551()
837 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgba5551()
838 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgba5551()
856 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_rgba5551()
858 int blit_result = 0; in drm_test_fb_xrgb8888_to_rgba5551()
880 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb888()
884 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb888()
885 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgb888()
906 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_rgb888()
908 int blit_result = 0; in drm_test_fb_xrgb8888_to_rgb888()
928 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb8888()
932 result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_argb8888()
933 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_argb8888()
951 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_argb8888()
953 int blit_result = 0; in drm_test_fb_xrgb8888_to_argb8888()
975 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb2101010()
979 result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_xrgb2101010()
980 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_xrgb2101010()
998 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_xrgb2101010()
1000 int blit_result = 0; in drm_test_fb_xrgb8888_to_xrgb2101010()
1020 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb2101010()
1024 result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_argb2101010()
1025 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_argb2101010()
1043 memset(buf, 0, dst_size); in drm_test_fb_xrgb8888_to_argb2101010()
1045 int blit_result = 0; in drm_test_fb_xrgb8888_to_argb2101010()
1067 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_mono()
1070 dst_size = conversion_buf_size(DRM_FORMAT_C1, result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_mono()
1072 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_mono()
1100 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_swab()
1103 dst_size = conversion_buf_size(DRM_FORMAT_XRGB8888, result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_swab()
1105 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_swab()
1123 memset(buf, 0, dst_size); in drm_test_fb_swab()
1135 memset(buf, 0, dst_size); in drm_test_fb_swab()
1145 memset(buf, 0, dst_size); in drm_test_fb_swab()
1171 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_abgr8888()
1174 dst_size = conversion_buf_size(DRM_FORMAT_XBGR8888, result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_abgr8888()
1176 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_abgr8888()
1189 int blit_result = 0; in drm_test_fb_xrgb8888_to_abgr8888()
1211 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xbgr8888()
1214 dst_size = conversion_buf_size(DRM_FORMAT_XBGR8888, result->dst_pitch, ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_xbgr8888()
1216 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_xbgr8888()
1229 int blit_result = 0; in drm_test_fb_xrgb8888_to_xbgr8888()
1253 .clip = DRM_RECT_INIT(0, 0, 3, 3),
1254 .expected_offset = 0
1260 .clip = DRM_RECT_INIT(1, 0, 3, 3),
1267 .clip = DRM_RECT_INIT(0, 1, 3, 3),
1281 .clip = DRM_RECT_INIT(1, 0, 3, 3),
1288 .clip = DRM_RECT_INIT(0, 1, 3, 3),
1316 pitch = drm_format_info_min_pitch(format_info, 0, in drm_test_fb_clip_offset()
1323 KUNIT_ASSERT_NE(test, pitch, 0); in drm_test_fb_clip_offset()
1342 .native_fourccs_size = 0,
1452 u32 fourccs_out[TEST_BUF_SIZE] = {0}; in drm_test_fb_build_fourcc_list()
1460 drm = __drm_kunit_helper_alloc_drm_device(test, dev, sizeof(*drm), 0, DRIVER_MODESET); in drm_test_fb_build_fourcc_list()
1486 * test, to make this explicit the 0xFF byte is used on those parts.
1493 .clip = DRM_RECT_INIT(0, 0, 1, 1),
1495 .src = {{ 0x01020304 }},
1497 .expected = {{ 0x01020304 }},
1502 .clip = DRM_RECT_INIT(0, 0, 1, 1),
1505 { 0x01020304 },
1506 { 0xFFFFFF01 },
1510 { 0x01020304 },
1511 { 0x00000001 },
1517 .clip = DRM_RECT_INIT(0, 0, 1, 1),
1520 { 0xFFFFFF01 },
1521 { 0xFFFFFF01 },
1522 { 0xFFFFFF01 },
1526 { 0x00000001 },
1527 { 0x00000001 },
1528 { 0x00000001 },
1538 0x00000000, 0x00000000,
1539 0x00000000, 0x01020304,
1544 { 0x01020304 },
1554 0x00000000, 0x00000000,
1555 0x00000000, 0x01020304,
1557 { 0x01000000 },
1561 { 0x01020304 },
1562 { 0x00000001 },
1571 { 0x01000000 },
1572 { 0x01000000 },
1573 { 0x01000000 },
1577 { 0x00000001 },
1578 { 0x00000001 },
1579 { 0x00000001 },
1589 0x00000000, 0x00000000, 0x00000000, 0x00000000,
1590 0x00000000, 0x11FFFFFF, 0x22000000, 0x00000000,
1591 0x00000000, 0x33FF0000, 0x4400FF00, 0x00000000,
1592 0x00000000, 0x550000FF, 0x66FF00FF, 0x00000000,
1593 0x00000000, 0x77FFFF00, 0x8800FFFF, 0x00000000,
1599 0x11FFFFFF, 0x22000000,
1600 0x33FF0000, 0x4400FF00,
1601 0x550000FF, 0x66FF00FF,
1602 0x77FFFF00, 0x8800FFFF,
1613 0x00000000, 0x00000000, 0x00000000, 0x00000000,
1614 0x00000000, 0xFFFFFFFF, 0xFF000000, 0x00000000,
1615 0x00000000, 0xFFFF0000, 0xFF00FF00, 0x00000000,
1616 0x00000000, 0xFF0000FF, 0xFFFF00FF, 0x00000000,
1617 0x00000000, 0xFFFFFF00, 0xFF00FFFF, 0x00000000,
1620 0x00000000,
1621 0x00221100,
1622 0x00443300,
1623 0x00665500,
1624 0x00887700,
1630 0xFFFFFFFF, 0xFF000000,
1631 0xFFFF0000, 0xFF00FF00,
1632 0xFF0000FF, 0xFFFF00FF,
1633 0xFFFFFF00, 0xFF00FFFF,
1636 0x44332211,
1637 0x88776655,
1648 0x00000000,
1649 0x0000FF00,
1650 0x00954C00,
1651 0x00691D00,
1652 0x00B2E100,
1655 0x00000000,
1656 0x00000000,
1657 0x00BEDE00,
1658 0x00436500,
1659 0x00229B00,
1662 0x00000000,
1663 0x00000000,
1664 0x007E9C00,
1665 0x0083E700,
1666 0x00641A00,
1672 0x954C00FF,
1673 0xB2E1691D,
1676 0xBEDE0000,
1677 0x229B4365,
1680 0x7E9C0000,
1681 0x641A83E7,
1688 .clip = DRM_RECT_INIT(0, 0, 3, 3),
1692 0xA10E449C, 0xB1114D05, 0xC1A8F303,
1693 0xD16CF073, 0xA20E449C, 0xB2114D05,
1694 0xC2A80303, 0xD26CF073, 0xA30E449C,
1700 0xA10E449C, 0xB1114D05, 0xC1A8F303, 0x00000000, 0x00000000,
1701 0xD16CF073, 0xA20E449C, 0xB2114D05, 0x00000000, 0x00000000,
1702 0xC2A80303, 0xD26CF073, 0xA30E449C, 0x00000000, 0x00000000,
1709 .clip = DRM_RECT_INIT(0, 0, 3, 3),
1713 0xFF0E449C, 0xFF114D05, 0xFFA8F303,
1714 0xFF6CF073, 0xFF0E449C, 0xFF114D05,
1715 0xFFA80303, 0xFF6CF073, 0xFF0E449C,
1718 0xB2C1B1A1,
1719 0xD2A3D1A2,
1720 0xFFFFFFC2,
1726 0xFF0E449C, 0xFF114D05, 0xFFA8F303, 0x00000000, 0x00000000,
1727 0xFF6CF073, 0xFF0E449C, 0xFF114D05, 0x00000000, 0x00000000,
1728 0xFFA80303, 0xFF6CF073, 0xFF0E449C, 0x00000000, 0x00000000,
1731 0x00C1B1A1,
1732 0xD1A2B200,
1733 0xD2A30000,
1734 0xFF0000C2,
1741 .clip = DRM_RECT_INIT(0, 0, 3, 3),
1745 0xBAC1323D,
1746 0xBA34323D,
1747 0xFFFFFF3D,
1750 0xE1ABEC2A,
1751 0xE1EAEC2A,
1752 0xFFFFFF2A,
1755 0xBCEBE4D7,
1756 0xBC65E4D7,
1757 0xFFFFFFD7,
1763 0x00C1323D,
1764 0x323DBA00,
1765 0xBA340000,
1766 0xFF00003D,
1769 0x00ABEC2A,
1770 0xEC2AE100,
1771 0xE1EA0000,
1772 0xFF00002A,
1775 0x00EBE4D7,
1776 0xE4D7BC00,
1777 0xBC650000,
1778 0xFF0000D7,
1794 size_t dst_size[DRM_FORMAT_MAX_PLANES] = { 0 }; in drm_test_fb_memcpy()
1795 u32 *buf[DRM_FORMAT_MAX_PLANES] = { 0 }; in drm_test_fb_memcpy()
1796 __le32 *src_cp[DRM_FORMAT_MAX_PLANES] = { 0 }; in drm_test_fb_memcpy()
1797 __le32 *expected[DRM_FORMAT_MAX_PLANES] = { 0 }; in drm_test_fb_memcpy()
1807 for (size_t i = 0; i < fb.format->num_planes; i++) { in drm_test_fb_memcpy()
1810 KUNIT_ASSERT_GT(test, dst_size[i], 0); in drm_test_fb_memcpy()
1820 const unsigned int *dst_pitches = params->dst_pitches[0] == TEST_USE_DEFAULT_PITCH ? NULL : in drm_test_fb_memcpy()
1825 for (size_t i = 0; i < fb.format->num_planes; i++) { in drm_test_fb_memcpy()
1830 memset(buf[i], 0, dst_size[i]); in drm_test_fb_memcpy()
1839 for (size_t i = 0; i < fb.format->num_planes; i++) { in drm_test_fb_memcpy()