Lines Matching full:desc
143 const struct display_buffer_descriptor *desc, const void *buf) in max7219_write() argument
154 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), "Input buffer too small"); in max7219_write()
155 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in max7219_write()
156 __ASSERT(desc->pitch <= max_width, "Pitch in descriptor is larger than screen size"); in max7219_write()
157 __ASSERT(desc->height <= max_height, "Height in descriptor is larger than screen size"); in max7219_write()
158 __ASSERT(x + desc->pitch <= max_width, in max7219_write()
160 __ASSERT(y + desc->height <= max_height, in max7219_write()
163 if (desc->width > desc->pitch || (desc->pitch * desc->height) > (desc->buf_size * 8U)) { in max7219_write()
167 if ((x + desc->pitch) > max_width || (y + desc->height) > max_height) { in max7219_write()
171 const uint16_t end_x = x + desc->width; in max7219_write()
172 const uint16_t end_y = y + desc->height; in max7219_write()
174 const uint16_t to_skip = desc->pitch - desc->width; in max7219_write()
310 const struct display_buffer_descriptor desc = { in max7219_init() local
317 ret = max7219_write(dev, 0, 0, &desc, dev_data->digit_buf); in max7219_init()