Lines Matching full:api
9 * @brief Public API for display drivers and applications
132 * @brief Callback API to turn on display blanking
139 * @brief Callback API to turn off display blanking
146 * @brief Callback API for writing data to the display
156 * @brief Callback API for reading data from the display
166 * @brief Callback API to get framebuffer pointer
173 * @brief Callback API to set display brightness
181 * @brief Callback API to set display contrast
189 * @brief Callback API to get display capabilities
198 * @brief Callback API to set pixel format used by the display
207 * @brief Callback API to set orientation used by the display
215 * @brief Display driver API
216 * API which a display driver should expose
247 struct display_driver_api *api = in display_write() local
248 (struct display_driver_api *)dev->api; in display_write()
250 return api->write(dev, x, y, desc, buf); in display_write()
270 struct display_driver_api *api = in display_read() local
271 (struct display_driver_api *)dev->api; in display_read()
273 if (api->read == NULL) { in display_read()
277 return api->read(dev, x, y, desc, buf); in display_read()
291 struct display_driver_api *api = in display_get_framebuffer() local
292 (struct display_driver_api *)dev->api; in display_get_framebuffer()
294 if (api->get_framebuffer == NULL) { in display_get_framebuffer()
298 return api->get_framebuffer(dev); in display_get_framebuffer()
322 struct display_driver_api *api = in display_blanking_on() local
323 (struct display_driver_api *)dev->api; in display_blanking_on()
325 if (api->blanking_on == NULL) { in display_blanking_on()
329 return api->blanking_on(dev); in display_blanking_on()
346 struct display_driver_api *api = in display_blanking_off() local
347 (struct display_driver_api *)dev->api; in display_blanking_off()
349 if (api->blanking_off == NULL) { in display_blanking_off()
353 return api->blanking_off(dev); in display_blanking_off()
371 struct display_driver_api *api = in display_set_brightness() local
372 (struct display_driver_api *)dev->api; in display_set_brightness()
374 if (api->set_brightness == NULL) { in display_set_brightness()
378 return api->set_brightness(dev, brightness); in display_set_brightness()
395 struct display_driver_api *api = in display_set_contrast() local
396 (struct display_driver_api *)dev->api; in display_set_contrast()
398 if (api->set_contrast == NULL) { in display_set_contrast()
402 return api->set_contrast(dev, contrast); in display_set_contrast()
415 struct display_driver_api *api = in display_get_capabilities() local
416 (struct display_driver_api *)dev->api; in display_get_capabilities()
418 api->get_capabilities(dev, capabilities); in display_get_capabilities()
434 struct display_driver_api *api = in display_set_pixel_format() local
435 (struct display_driver_api *)dev->api; in display_set_pixel_format()
437 if (api->set_pixel_format == NULL) { in display_set_pixel_format()
441 return api->set_pixel_format(dev, pixel_format); in display_set_pixel_format()
457 struct display_driver_api *api = in display_set_orientation() local
458 (struct display_driver_api *)dev->api; in display_set_orientation()
460 if (api->set_orientation == NULL) { in display_set_orientation()
464 return api->set_orientation(dev, orientation); in display_set_orientation()