Lines Matching refs:width

15 static const uint32_t display_width = DT_PROP(DT_CHOSEN(zephyr_display), width);
20 static uint8_t disp_buffer[DT_PROP(DT_CHOSEN(zephyr_display), width) *
46 static void verify_bytes_of_area(uint8_t *data, int cmp_x, int cmp_y, size_t width, size_t height) in verify_bytes_of_area() argument
50 .pitch = width, in verify_bytes_of_area()
51 .width = width, in verify_bytes_of_area()
52 .buf_size = height * width * bpp, in verify_bytes_of_area()
60 zassert_mem_equal(data, disp_buffer, width * height / 8, NULL); in verify_bytes_of_area()
62 zassert_mem_equal(data, disp_buffer, width * height * bpp, NULL); in verify_bytes_of_area()
66 static void verify_background_color(int x, int y, size_t width, size_t height, uint32_t color) in verify_background_color() argument
68 size_t buf_size = is_tiled ? (height * width / 8) : (height * width * bpp); in verify_background_color()
71 .pitch = width, in verify_background_color()
72 .width = width, in verify_background_color()
83 for (size_t i = 0; i < width * height; i++) { in verify_background_color()
93 uint16_t x = i % (width); in verify_background_color()
94 uint16_t line = (i - x) / width; in verify_background_color()
98 uint8_t *tptr = disp_buffer + (tile * width + x); in verify_background_color()
121 .width = display_width, in display_before()
146 uint16_t width = sizeof(data) / bpp; in ZTEST() local
147 uint16_t buf_size = width * bpp; in ZTEST()
150 .pitch = width, in ZTEST()
151 .width = width, in ZTEST()
159 verify_bytes_of_area(data, 0, 0, width, height); in ZTEST()
163 verify_background_color(width, 0, display_width - width, display_height, 0); in ZTEST()
174 uint16_t width = sizeof(data) / bpp; in ZTEST() local
175 uint16_t buf_size = width * bpp; in ZTEST()
178 .pitch = width, in ZTEST()
179 .width = width, in ZTEST()
185 .width = display_width, in ZTEST()
191 display_write(dev, display_width - width, display_height - height, &desc, data); in ZTEST()
210 verify_background_color(0, display_height - height, display_width - width, height, 0); in ZTEST()
220 uint16_t width = sizeof(data) / bpp; in ZTEST() local
221 uint16_t buf_size = width * bpp; in ZTEST()
224 .pitch = width, in ZTEST()
225 .width = width, in ZTEST()
231 .width = display_width, in ZTEST()
240 verify_bytes_of_area(data, 0, 0, width, height); in ZTEST()
244 verify_background_color(width, 0, display_width - width, display_height, 0); in ZTEST()
247 display_write(dev, display_width - width, display_height - height, &desc, data); in ZTEST()
265 verify_bytes_of_area(data, 0, 0, width, height); in ZTEST()
268 verify_background_color(width, 0, display_width - width, display_height - height, 0); in ZTEST()
269 verify_background_color(0, height, display_width - width, display_height - height, 0); in ZTEST()