Lines Matching refs:api
251 struct display_driver_api *api = in display_write() local
252 (struct display_driver_api *)dev->api; in display_write()
254 return api->write(dev, x, y, desc, buf); in display_write()
274 struct display_driver_api *api = in display_read() local
275 (struct display_driver_api *)dev->api; in display_read()
277 if (api->read == NULL) { in display_read()
281 return api->read(dev, x, y, desc, buf); in display_read()
295 struct display_driver_api *api = in display_get_framebuffer() local
296 (struct display_driver_api *)dev->api; in display_get_framebuffer()
298 if (api->get_framebuffer == NULL) { in display_get_framebuffer()
302 return api->get_framebuffer(dev); in display_get_framebuffer()
326 struct display_driver_api *api = in display_blanking_on() local
327 (struct display_driver_api *)dev->api; in display_blanking_on()
329 if (api->blanking_on == NULL) { in display_blanking_on()
333 return api->blanking_on(dev); in display_blanking_on()
350 struct display_driver_api *api = in display_blanking_off() local
351 (struct display_driver_api *)dev->api; in display_blanking_off()
353 if (api->blanking_off == NULL) { in display_blanking_off()
357 return api->blanking_off(dev); in display_blanking_off()
375 struct display_driver_api *api = in display_set_brightness() local
376 (struct display_driver_api *)dev->api; in display_set_brightness()
378 if (api->set_brightness == NULL) { in display_set_brightness()
382 return api->set_brightness(dev, brightness); in display_set_brightness()
399 struct display_driver_api *api = in display_set_contrast() local
400 (struct display_driver_api *)dev->api; in display_set_contrast()
402 if (api->set_contrast == NULL) { in display_set_contrast()
406 return api->set_contrast(dev, contrast); in display_set_contrast()
419 struct display_driver_api *api = in display_get_capabilities() local
420 (struct display_driver_api *)dev->api; in display_get_capabilities()
422 api->get_capabilities(dev, capabilities); in display_get_capabilities()
438 struct display_driver_api *api = in display_set_pixel_format() local
439 (struct display_driver_api *)dev->api; in display_set_pixel_format()
441 if (api->set_pixel_format == NULL) { in display_set_pixel_format()
445 return api->set_pixel_format(dev, pixel_format); in display_set_pixel_format()
461 struct display_driver_api *api = in display_set_orientation() local
462 (struct display_driver_api *)dev->api; in display_set_orientation()
464 if (api->set_orientation == NULL) { in display_set_orientation()
468 return api->set_orientation(dev, orientation); in display_set_orientation()