/Zephyr-Core-3.4.0/subsys/usb/device_next/ |
D | usbd_class_api.h | 33 const struct usbd_class_api *api = node->api; in usbd_class_request() local 35 if (api->request != NULL) { in usbd_class_request() 36 return api->request(node, buf, err); in usbd_class_request() 66 const struct usbd_class_api *api = node->api; in usbd_class_control_to_host() local 68 if (api->control_to_host != NULL) { in usbd_class_control_to_host() 69 return api->control_to_host(node, setup, buf); in usbd_class_control_to_host() 99 const struct usbd_class_api *api = node->api; in usbd_class_control_to_dev() local 101 if (api->control_to_dev != NULL) { in usbd_class_control_to_dev() 102 return api->control_to_dev(node, setup, buf); in usbd_class_control_to_dev() 127 const struct usbd_class_api *api = node->api; in usbd_class_feature_halt() local [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/ |
D | edac.h | 83 const struct edac_driver_api *api = in edac_inject_set_param1() local 84 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1() 86 if (api->inject_set_param1 == NULL) { in edac_inject_set_param1() 90 return api->inject_set_param1(dev, value); in edac_inject_set_param1() 107 const struct edac_driver_api *api = in edac_inject_get_param1() local 108 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1() 110 if (api->inject_get_param1 == NULL) { in edac_inject_get_param1() 114 return api->inject_get_param1(dev, value); in edac_inject_get_param1() 132 const struct edac_driver_api *api = in edac_inject_set_param2() local 133 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2() [all …]
|
D | auxdisplay.h | 325 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_display_on() local 327 if (!api->display_on) { in z_impl_auxdisplay_display_on() 331 return api->display_on(dev); in z_impl_auxdisplay_display_on() 347 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_display_off() local 349 if (!api->display_off) { in z_impl_auxdisplay_display_off() 353 return api->display_off(dev); in z_impl_auxdisplay_display_off() 372 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_cursor_set_enabled() local 374 if (!api->cursor_set_enabled) { in z_impl_auxdisplay_cursor_set_enabled() 378 return api->cursor_set_enabled(dev, enabled); in z_impl_auxdisplay_cursor_set_enabled() 397 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_position_blinking_set_enabled() local [all …]
|
D | uart.h | 473 const struct uart_driver_api *api = in z_impl_uart_err_check() local 474 (const struct uart_driver_api *)dev->api; in z_impl_uart_err_check() 476 if (api->err_check == NULL) { in z_impl_uart_err_check() 480 return api->err_check(dev); in z_impl_uart_err_check() 511 const struct uart_driver_api *api = in z_impl_uart_poll_in() local 512 (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in() 514 if (api->poll_in == NULL) { in z_impl_uart_poll_in() 518 return api->poll_in(dev, p_char); in z_impl_uart_poll_in() 546 const struct uart_driver_api *api = in z_impl_uart_poll_in_u16() local 547 (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in_u16() [all …]
|
D | fpga.h | 58 const struct fpga_driver_api *api = in fpga_get_status() local 59 (const struct fpga_driver_api *)dev->api; in fpga_get_status() 61 return api->get_status(dev); in fpga_get_status() 74 const struct fpga_driver_api *api = in fpga_reset() local 75 (const struct fpga_driver_api *)dev->api; in fpga_reset() 77 return api->reset(dev); in fpga_reset() 93 const struct fpga_driver_api *api = in fpga_load() local 94 (const struct fpga_driver_api *)dev->api; in fpga_load() 96 return api->load(dev, image_ptr, img_size); in fpga_load() 109 const struct fpga_driver_api *api = in fpga_on() local [all …]
|
D | video.h | 265 const struct video_driver_api *api = in video_set_format() local 266 (const struct video_driver_api *)dev->api; in video_set_format() 268 if (api->set_format == NULL) { in video_set_format() 272 return api->set_format(dev, ep, fmt); in video_set_format() 290 const struct video_driver_api *api = in video_get_format() local 291 (const struct video_driver_api *)dev->api; in video_get_format() 293 if (api->get_format == NULL) { in video_get_format() 297 return api->get_format(dev, ep, fmt); in video_get_format() 318 const struct video_driver_api *api = in video_enqueue() local 319 (const struct video_driver_api *)dev->api; in video_enqueue() [all …]
|
D | dai.h | 278 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_probe() local 280 return api->probe(dev); in dai_probe() 295 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_remove() local 297 return api->remove(dev); in dai_remove() 324 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_config_set() local 326 return api->config_set(dev, cfg, bespoke_cfg); in dai_config_set() 341 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_config_get() local 343 return api->config_get(dev, cfg, dir); in dai_config_get() 360 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_get_properties() local 362 return api->get_properties(dev, dir, stream_id); in dai_get_properties() [all …]
|
D | espi_saf.h | 222 const struct espi_saf_driver_api *api = in z_impl_espi_saf_config() local 223 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_config() 225 return api->config(dev, cfg); in z_impl_espi_saf_config() 250 const struct espi_saf_driver_api *api = in z_impl_espi_saf_set_protection_regions() local 251 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_set_protection_regions() 253 return api->set_protection_regions(dev, pr); in z_impl_espi_saf_set_protection_regions() 272 const struct espi_saf_driver_api *api = in z_impl_espi_saf_activate() local 273 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_activate() 275 return api->activate(dev); in z_impl_espi_saf_activate() 293 const struct espi_saf_driver_api *api = in z_impl_espi_saf_get_channel_status() local [all …]
|
D | clock_control.h | 126 const struct clock_control_driver_api *api = in clock_control_on() local 127 (const struct clock_control_driver_api *)dev->api; in clock_control_on() 129 return api->on(dev, sys); in clock_control_on() 145 const struct clock_control_driver_api *api = in clock_control_off() local 146 (const struct clock_control_driver_api *)dev->api; in clock_control_off() 148 return api->off(dev, sys); in clock_control_off() 173 const struct clock_control_driver_api *api = in clock_control_async_on() local 174 (const struct clock_control_driver_api *)dev->api; in clock_control_async_on() 176 if (api->async_on == NULL) { in clock_control_async_on() 180 return api->async_on(dev, sys, cb, user_data); in clock_control_async_on() [all …]
|
D | bbram.h | 97 const struct bbram_driver_api *api = in z_impl_bbram_check_invalid() local 98 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_invalid() 100 if (!api->check_invalid) { in z_impl_bbram_check_invalid() 104 return api->check_invalid(dev); in z_impl_bbram_check_invalid() 119 const struct bbram_driver_api *api = in z_impl_bbram_check_standby_power() local 120 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_standby_power() 122 if (!api->check_standby_power) { in z_impl_bbram_check_standby_power() 126 return api->check_standby_power(dev); in z_impl_bbram_check_standby_power() 142 const struct bbram_driver_api *api = in z_impl_bbram_check_power() local 143 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_power() [all …]
|
D | display.h | 245 struct display_driver_api *api = in display_write() local 246 (struct display_driver_api *)dev->api; in display_write() 248 return api->write(dev, x, y, desc, buf); in display_write() 267 struct display_driver_api *api = in display_read() local 268 (struct display_driver_api *)dev->api; in display_read() 270 return api->read(dev, x, y, desc, buf); in display_read() 284 struct display_driver_api *api = in display_get_framebuffer() local 285 (struct display_driver_api *)dev->api; in display_get_framebuffer() 287 return api->get_framebuffer(dev); in display_get_framebuffer() 310 struct display_driver_api *api = in display_blanking_on() local [all …]
|
D | rtc.h | 200 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_set_time() local 202 return api->set_time(dev, timeptr); in z_impl_rtc_set_time() 219 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_get_time() local 221 return api->get_time(dev, timeptr); in z_impl_rtc_get_time() 250 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_get_supported_fields() local 252 if (api->alarm_get_supported_fields == NULL) { in z_impl_rtc_alarm_get_supported_fields() 256 return api->alarm_get_supported_fields(dev, id, mask); in z_impl_rtc_alarm_get_supported_fields() 288 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_set_time() local 290 if (api->alarm_set_time == NULL) { in z_impl_rtc_alarm_set_time() 294 return api->alarm_set_time(dev, id, mask, timeptr); in z_impl_rtc_alarm_set_time() [all …]
|
D | sdhc.h | 263 const struct sdhc_driver_api *api = in z_impl_sdhc_hw_reset() local 264 (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_hw_reset() 266 if (!api->reset) { in z_impl_sdhc_hw_reset() 270 return api->reset(dev); in z_impl_sdhc_hw_reset() 293 const struct sdhc_driver_api *api = in z_impl_sdhc_request() local 294 (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_request() 296 if (!api->request) { in z_impl_sdhc_request() 300 return api->request(dev, cmd, data); in z_impl_sdhc_request() 320 const struct sdhc_driver_api *api = in z_impl_sdhc_set_io() local 321 (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_set_io() [all …]
|
D | ps2.h | 82 const struct ps2_driver_api *api = in z_impl_ps2_config() local 83 (struct ps2_driver_api *)dev->api; in z_impl_ps2_config() 85 return api->config(dev, callback_isr); in z_impl_ps2_config() 101 const struct ps2_driver_api *api = in z_impl_ps2_write() local 102 (const struct ps2_driver_api *)dev->api; in z_impl_ps2_write() 104 return api->write(dev, value); in z_impl_ps2_write() 119 const struct ps2_driver_api *api = in z_impl_ps2_read() local 120 (const struct ps2_driver_api *)dev->api; in z_impl_ps2_read() 122 return api->read(dev, value); in z_impl_ps2_read() 136 const struct ps2_driver_api *api = in z_impl_ps2_enable_callback() local [all …]
|
D | espi.h | 532 const struct espi_driver_api *api = in z_impl_espi_config() local 533 (const struct espi_driver_api *)dev->api; in z_impl_espi_config() 535 return api->config(dev, cfg); in z_impl_espi_config() 556 const struct espi_driver_api *api = in z_impl_espi_get_channel_status() local 557 (const struct espi_driver_api *)dev->api; in z_impl_espi_get_channel_status() 559 return api->get_channel_status(dev, ch); in z_impl_espi_get_channel_status() 582 const struct espi_driver_api *api = in z_impl_espi_read_request() local 583 (const struct espi_driver_api *)dev->api; in z_impl_espi_read_request() 585 if (!api->read_request) { in z_impl_espi_read_request() 589 return api->read_request(dev, req); in z_impl_espi_read_request() [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 238 const struct tcpc_driver_api *api = in tcpc_init() local 239 (const struct tcpc_driver_api *)dev->api; in tcpc_init() 241 __ASSERT(api->init != NULL, in tcpc_init() 244 return api->init(dev); in tcpc_init() 262 const struct tcpc_driver_api *api = in tcpc_get_cc() local 263 (const struct tcpc_driver_api *)dev->api; in tcpc_get_cc() 265 if (api->get_cc == NULL) { in tcpc_get_cc() 269 return api->get_cc(dev, cc1, cc2); in tcpc_get_cc() 284 const struct tcpc_driver_api *api = in tcpc_select_rp_value() local 285 (const struct tcpc_driver_api *)dev->api; in tcpc_select_rp_value() [all …]
|
D | usbc_vbus.h | 51 const struct usbc_vbus_driver_api *api = (const struct usbc_vbus_driver_api *)dev->api; in usbc_vbus_check_level() local 53 return api->check_level(dev, level); in usbc_vbus_check_level() 67 const struct usbc_vbus_driver_api *api = (const struct usbc_vbus_driver_api *)dev->api; in usbc_vbus_measure() local 69 return api->measure(dev, meas); in usbc_vbus_measure() 84 const struct usbc_vbus_driver_api *api = (const struct usbc_vbus_driver_api *)dev->api; in usbc_vbus_discharge() local 86 return api->discharge(dev, enable); in usbc_vbus_discharge() 101 const struct usbc_vbus_driver_api *api = (const struct usbc_vbus_driver_api *)dev->api; in usbc_vbus_enable() local 103 return api->enable(dev, enable); in usbc_vbus_enable()
|
/Zephyr-Core-3.4.0/subsys/net/l2/ethernet/ |
D | eth_stats.h | 19 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_rx() local 20 net_if_get_device(iface)->api; in eth_stats_update_bytes_rx() 23 if (!api->get_stats) { in eth_stats_update_bytes_rx() 27 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_rx() 38 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_tx() local 39 net_if_get_device(iface)->api; in eth_stats_update_bytes_tx() 42 if (!api->get_stats) { in eth_stats_update_bytes_tx() 46 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_tx() 56 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_pkts_rx() local 57 net_if_get_device(iface)->api; in eth_stats_update_pkts_rx() [all …]
|
/Zephyr-Core-3.4.0/subsys/net/l2/ppp/ |
D | ppp_stats.h | 19 const struct ppp_api *api = (const struct ppp_api *) in ppp_stats_update_bytes_rx() local 20 net_if_get_device(iface)->api; in ppp_stats_update_bytes_rx() 23 if (!api->get_stats) { in ppp_stats_update_bytes_rx() 27 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_rx() 38 const struct ppp_api *api = (const struct ppp_api *) in ppp_stats_update_bytes_tx() local 39 net_if_get_device(iface)->api; in ppp_stats_update_bytes_tx() 42 if (!api->get_stats) { in ppp_stats_update_bytes_tx() 46 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_tx() 56 const struct ppp_api *api = (const struct ppp_api *) in ppp_stats_update_pkts_rx() local 57 net_if_get_device(iface)->api; in ppp_stats_update_pkts_rx() [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/interrupt_controller/ |
D | intel_vtd.h | 74 const struct vtd_driver_api *api = in vtd_allocate_entries() local 75 (const struct vtd_driver_api *)dev->api; in vtd_allocate_entries() 77 return api->allocate_entries(dev, n_entries); in vtd_allocate_entries() 93 const struct vtd_driver_api *api = in vtd_remap_msi() local 94 (const struct vtd_driver_api *)dev->api; in vtd_remap_msi() 96 return api->remap_msi(dev, vector, n_vector); in vtd_remap_msi() 116 const struct vtd_driver_api *api = in vtd_remap() local 117 (const struct vtd_driver_api *)dev->api; in vtd_remap() 119 return api->remap(dev, irte_idx, vector, flags, src_id); in vtd_remap() 135 const struct vtd_driver_api *api = in vtd_set_irte_vector() local [all …]
|
D | gicv3_its.h | 37 const struct its_driver_api *api = in its_alloc_intid() local 38 (const struct its_driver_api *)dev->api; in its_alloc_intid() 40 return api->alloc_intid(dev); in its_alloc_intid() 46 const struct its_driver_api *api = in its_setup_deviceid() local 47 (const struct its_driver_api *)dev->api; in its_setup_deviceid() 49 return api->setup_deviceid(dev, device_id, nites); in its_setup_deviceid() 55 const struct its_driver_api *api = in its_map_intid() local 56 (const struct its_driver_api *)dev->api; in its_map_intid() 58 return api->map_intid(dev, device_id, event_id, intid); in its_map_intid() 63 const struct its_driver_api *api = in its_send_int() local [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/virtualization/ |
D | ivshmem.h | 98 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_mem() local 99 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_mem() 101 return api->get_mem(dev, memmap); in z_impl_ivshmem_get_mem() 115 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_id() local 116 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_id() 118 return api->get_id(dev); in z_impl_ivshmem_get_id() 132 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_vectors() local 133 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_vectors() 135 return api->get_vectors(dev); in z_impl_ivshmem_get_vectors() 153 const struct ivshmem_driver_api *api = in z_impl_ivshmem_int_peer() local [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/ |
D | irq_nextlevel.h | 55 const struct irq_next_level_api *api = in irq_enable_next_level() local 56 (const struct irq_next_level_api *)dev->api; in irq_enable_next_level() 58 api->intr_enable(dev, irq); in irq_enable_next_level() 72 const struct irq_next_level_api *api = in irq_disable_next_level() local 73 (const struct irq_next_level_api *)dev->api; in irq_disable_next_level() 75 api->intr_disable(dev, irq); in irq_disable_next_level() 90 const struct irq_next_level_api *api = in irq_is_enabled_next_level() local 91 (const struct irq_next_level_api *)dev->api; in irq_is_enabled_next_level() 93 return api->intr_get_state(dev); in irq_is_enabled_next_level() 111 const struct irq_next_level_api *api = in irq_set_priority_next_level() local [all …]
|
/Zephyr-Core-3.4.0/drivers/usb/uhc/ |
D | uhc_common.c | 85 const struct uhc_api *api = dev->api; in uhc_xfer_alloc() local 88 api->lock(dev); in uhc_xfer_alloc() 113 api->unlock(dev); in uhc_xfer_alloc() 120 const struct uhc_api *api = dev->api; in uhc_xfer_free() local 124 api->lock(dev); in uhc_xfer_free() 145 api->unlock(dev); in uhc_xfer_free() 154 const struct uhc_api *api = dev->api; in uhc_xfer_buf_alloc() local 157 api->lock(dev); in uhc_xfer_buf_alloc() 184 api->unlock(dev); in uhc_xfer_buf_alloc() 191 const struct uhc_api *api = dev->api; in uhc_xfer_buf_free() local [all …]
|
/Zephyr-Core-3.4.0/soc/xtensa/intel_adsp/ace/ |
D | irq.c | 15 const struct dw_ace_v1_ictl_driver_api *api; in z_soc_irq_enable() local 22 api = (const struct dw_ace_v1_ictl_driver_api *)dev->api; in z_soc_irq_enable() 23 api->intr_enable(dev, irq); in z_soc_irq_enable() 29 const struct dw_ace_v1_ictl_driver_api *api; in z_soc_irq_disable() local 36 api = (const struct dw_ace_v1_ictl_driver_api *)dev->api; in z_soc_irq_disable() 37 api->intr_disable(dev, irq); in z_soc_irq_disable() 43 const struct dw_ace_v1_ictl_driver_api *api; in z_soc_irq_is_enabled() local 50 api = (const struct dw_ace_v1_ictl_driver_api *)dev->api; in z_soc_irq_is_enabled() 51 return api->intr_is_enabled(dev, irq); in z_soc_irq_is_enabled()
|