Lines Matching refs:disp_data
38 struct sdl_display_data *disp_data = dev->data; in sdl_display_init() local
41 disp_data->current_pixel_format = in sdl_display_init()
57 int rc = sdl_display_init_bottom(config->height, config->width, &disp_data->window, in sdl_display_init()
58 &disp_data->renderer, &disp_data->texture); in sdl_display_init()
65 disp_data->display_on = false; in sdl_display_init()
203 struct sdl_display_data *disp_data = dev->data; in sdl_display_write() local
224 if (disp_data->current_pixel_format == PIXEL_FORMAT_ARGB_8888) { in sdl_display_write()
225 sdl_display_write_argb8888(disp_data->buf, desc, buf); in sdl_display_write()
226 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_888) { in sdl_display_write()
227 sdl_display_write_rgb888(disp_data->buf, desc, buf); in sdl_display_write()
228 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO10) { in sdl_display_write()
229 sdl_display_write_mono(disp_data->buf, desc, buf, true); in sdl_display_write()
230 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO01) { in sdl_display_write()
231 sdl_display_write_mono(disp_data->buf, desc, buf, false); in sdl_display_write()
232 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_565) { in sdl_display_write()
233 sdl_display_write_rgb565(disp_data->buf, desc, buf); in sdl_display_write()
234 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_BGR_565) { in sdl_display_write()
235 sdl_display_write_bgr565(disp_data->buf, desc, buf); in sdl_display_write()
239 disp_data->renderer, disp_data->texture, in sdl_display_write()
240 disp_data->buf, disp_data->display_on); in sdl_display_write()
250 struct sdl_display_data *disp_data = dev->data; in sdl_display_read() local
260 disp_data->renderer, buf, desc->pitch); in sdl_display_read()
270 struct sdl_display_data *disp_data = dev->data; in sdl_display_blanking_off() local
274 disp_data->display_on = true; in sdl_display_blanking_off()
276 sdl_display_blanking_off_bottom(disp_data->renderer, disp_data->texture); in sdl_display_blanking_off()
283 struct sdl_display_data *disp_data = dev->data; in sdl_display_blanking_on() local
287 disp_data->display_on = false; in sdl_display_blanking_on()
289 sdl_display_blanking_on_bottom(disp_data->renderer); in sdl_display_blanking_on()
309 struct sdl_display_data *disp_data = dev->data; in sdl_display_get_capabilities() local
320 capabilities->current_pixel_format = disp_data->current_pixel_format; in sdl_display_get_capabilities()
328 struct sdl_display_data *disp_data = dev->data; in sdl_display_set_pixel_format() local
337 disp_data->current_pixel_format = pixel_format; in sdl_display_set_pixel_format()
345 static void sdl_display_cleanup(struct sdl_display_data *disp_data) in sdl_display_cleanup() argument
347 sdl_display_cleanup_bottom(&disp_data->window, &disp_data->renderer, &disp_data->texture); in sdl_display_cleanup()