Lines Matching refs:display
24 static lv_display_t *display; variable
104 static int lvgl_allocate_rendering_buffers(lv_display_t *display) in lvgl_allocate_rendering_buffers() argument
109 lv_display_set_buffers(display, &buf0, &buf1, BUFFER_SIZE, LV_DISPLAY_RENDER_MODE_PARTIAL); in lvgl_allocate_rendering_buffers()
111 lv_display_set_buffers(display, &buf0, NULL, BUFFER_SIZE, LV_DISPLAY_RENDER_MODE_PARTIAL); in lvgl_allocate_rendering_buffers()
123 static int lvgl_allocate_rendering_buffers(lv_display_t *display) in lvgl_allocate_rendering_buffers() argument
129 struct lvgl_disp_data *data = (struct lvgl_disp_data *)lv_display_get_user_data(display); in lvgl_allocate_rendering_buffers()
130 uint16_t hor_res = lv_display_get_horizontal_resolution(display); in lvgl_allocate_rendering_buffers()
131 uint16_t ver_res = lv_display_get_vertical_resolution(display); in lvgl_allocate_rendering_buffers()
185 lv_display_set_buffers(display, buf0, buf1, buf_size, LV_DISPLAY_RENDER_MODE_PARTIAL); in lvgl_allocate_rendering_buffers()
249 display = lv_display_create(disp_data.cap.x_resolution, disp_data.cap.y_resolution); in lvgl_init()
250 if (!display) { in lvgl_init()
253 lv_display_set_user_data(display, &disp_data); in lvgl_init()
255 if (set_lvgl_rendering_cb(display) != 0) { in lvgl_init()
260 err = lvgl_allocate_rendering_buffers(display); in lvgl_init()
266 lv_display_set_render_mode(display, LV_DISPLAY_RENDER_MODE_FULL); in lvgl_init()