Lines Matching full:desc
89 const uint16_t y, const struct display_buffer_descriptor *desc) in check_descriptor() argument
91 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in check_descriptor()
92 __ASSERT(desc->pitch <= config->width, "Pitch in descriptor is larger than screen size"); in check_descriptor()
93 __ASSERT(desc->height <= config->height, "Height in descriptor is larger than screen size"); in check_descriptor()
94 __ASSERT(x + desc->pitch <= config->width, in check_descriptor()
96 __ASSERT(y + desc->height <= config->height, in check_descriptor()
99 if (desc->width > desc->pitch || x + desc->pitch > config->width || in check_descriptor()
100 y + desc->height > config->height) { in check_descriptor()
108 const struct display_buffer_descriptor *desc, const void *buf) in led_strip_matrix_write() argument
114 rc = check_descriptor(config, x, y, desc); in led_strip_matrix_write()
120 for (size_t ypos = y; ypos < (y + desc->height); ypos++) { in led_strip_matrix_write()
121 for (size_t xpos = x; xpos < (x + desc->width); xpos++) { in led_strip_matrix_write()
141 buf_ptr += (desc->pitch - desc->width) * in led_strip_matrix_write()
157 const struct display_buffer_descriptor *desc, void *buf) in led_strip_matrix_read() argument
163 rc = check_descriptor(config, x, y, desc); in led_strip_matrix_read()
169 for (size_t ypos = y; ypos < (y + desc->height); ypos++) { in led_strip_matrix_read()
170 for (size_t xpos = x; xpos < (x + desc->width); xpos++) { in led_strip_matrix_read()
186 buf_ptr += (desc->pitch - desc->width) * in led_strip_matrix_read()