/Zephyr-Core-3.7.0/subsys/usb/device_next/ |
D | usbd_class_api.h | 33 const struct usbd_class_api *api = c_data->api; in usbd_class_request() local 35 if (api->request != NULL) { in usbd_class_request() 36 return api->request(c_data, buf, err); in usbd_class_request() 66 const struct usbd_class_api *api = c_data->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(c_data, setup, buf); in usbd_class_control_to_host() 99 const struct usbd_class_api *api = c_data->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(c_data, setup, buf); in usbd_class_control_to_dev() 127 const struct usbd_class_api *api = c_data->api; in usbd_class_feature_halt() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | edac.h | 100 const struct edac_driver_api *api = in edac_inject_set_param1() local 101 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1() 103 if (api->inject_set_param1 == NULL) { in edac_inject_set_param1() 107 return api->inject_set_param1(dev, value); in edac_inject_set_param1() 124 const struct edac_driver_api *api = in edac_inject_get_param1() local 125 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1() 127 if (api->inject_get_param1 == NULL) { in edac_inject_get_param1() 131 return api->inject_get_param1(dev, value); in edac_inject_get_param1() 149 const struct edac_driver_api *api = in edac_inject_set_param2() local 150 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2() [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 if (api->get_status == NULL) { in fpga_get_status() 68 return api->get_status(dev); in fpga_get_status() 81 const struct fpga_driver_api *api = in fpga_reset() local 82 (const struct fpga_driver_api *)dev->api; in fpga_reset() 84 if (api->reset == NULL) { in fpga_reset() 88 return api->reset(dev); in fpga_reset() 104 const struct fpga_driver_api *api = in fpga_load() local 105 (const struct fpga_driver_api *)dev->api; in fpga_load() [all …]
|
D | auxdisplay.h | 327 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_display_on() local 329 if (!api->display_on) { in z_impl_auxdisplay_display_on() 333 return api->display_on(dev); in z_impl_auxdisplay_display_on() 349 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_display_off() local 351 if (!api->display_off) { in z_impl_auxdisplay_display_off() 355 return api->display_off(dev); in z_impl_auxdisplay_display_off() 374 struct auxdisplay_driver_api *api = (struct auxdisplay_driver_api *)dev->api; in z_impl_auxdisplay_cursor_set_enabled() local 376 if (!api->cursor_set_enabled) { in z_impl_auxdisplay_cursor_set_enabled() 380 return api->cursor_set_enabled(dev, enabled); in z_impl_auxdisplay_cursor_set_enabled() 399 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 | espi_saf.h | 225 const struct espi_saf_driver_api *api = in z_impl_espi_saf_config() local 226 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_config() 228 return api->config(dev, cfg); in z_impl_espi_saf_config() 253 const struct espi_saf_driver_api *api = in z_impl_espi_saf_set_protection_regions() local 254 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_set_protection_regions() 256 return api->set_protection_regions(dev, pr); in z_impl_espi_saf_set_protection_regions() 275 const struct espi_saf_driver_api *api = in z_impl_espi_saf_activate() local 276 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_activate() 278 return api->activate(dev); in z_impl_espi_saf_activate() 296 const struct espi_saf_driver_api *api = in z_impl_espi_saf_get_channel_status() local [all …]
|
D | display.h | 249 struct display_driver_api *api = in display_write() local 250 (struct display_driver_api *)dev->api; in display_write() 252 return api->write(dev, x, y, desc, buf); in display_write() 272 struct display_driver_api *api = in display_read() local 273 (struct display_driver_api *)dev->api; in display_read() 275 if (api->read == NULL) { in display_read() 279 return api->read(dev, x, y, desc, buf); in display_read() 293 struct display_driver_api *api = in display_get_framebuffer() local 294 (struct display_driver_api *)dev->api; in display_get_framebuffer() 296 if (api->get_framebuffer == NULL) { in display_get_framebuffer() [all …]
|
D | clock_control.h | 128 const struct clock_control_driver_api *api = in clock_control_on() local 129 (const struct clock_control_driver_api *)dev->api; in clock_control_on() 131 return api->on(dev, sys); in clock_control_on() 147 const struct clock_control_driver_api *api = in clock_control_off() local 148 (const struct clock_control_driver_api *)dev->api; in clock_control_off() 150 return api->off(dev, sys); in clock_control_off() 175 const struct clock_control_driver_api *api = in clock_control_async_on() local 176 (const struct clock_control_driver_api *)dev->api; in clock_control_async_on() 178 if (api->async_on == NULL) { in clock_control_async_on() 182 return api->async_on(dev, sys, cb, user_data); in clock_control_async_on() [all …]
|
D | video.h | 286 const struct video_driver_api *api = in video_set_format() local 287 (const struct video_driver_api *)dev->api; in video_set_format() 289 if (api->set_format == NULL) { in video_set_format() 293 return api->set_format(dev, ep, fmt); in video_set_format() 311 const struct video_driver_api *api = in video_get_format() local 312 (const struct video_driver_api *)dev->api; in video_get_format() 314 if (api->get_format == NULL) { in video_get_format() 318 return api->get_format(dev, ep, fmt); in video_get_format() 339 const struct video_driver_api *api = in video_enqueue() local 340 (const struct video_driver_api *)dev->api; in video_enqueue() [all …]
|
D | dai.h | 354 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_probe() local 356 return api->probe(dev); in dai_probe() 371 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_remove() local 373 return api->remove(dev); in dai_remove() 400 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_config_set() local 402 return api->config_set(dev, cfg, bespoke_cfg); in dai_config_set() 417 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_config_get() local 419 return api->config_get(dev, cfg, dir); in dai_config_get() 436 const struct dai_driver_api *api = (const struct dai_driver_api *)dev->api; in dai_get_properties() local 438 return api->get_properties(dev, dir, stream_id); in dai_get_properties() [all …]
|
D | sdhc.h | 292 const struct sdhc_driver_api *api = (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_hw_reset() local 294 if (!api->reset) { in z_impl_sdhc_hw_reset() 298 return api->reset(dev); in z_impl_sdhc_hw_reset() 322 const struct sdhc_driver_api *api = (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_request() local 324 if (!api->request) { in z_impl_sdhc_request() 328 return api->request(dev, cmd, data); in z_impl_sdhc_request() 348 const struct sdhc_driver_api *api = (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_set_io() local 350 if (!api->set_io) { in z_impl_sdhc_set_io() 354 return api->set_io(dev, io); in z_impl_sdhc_set_io() 372 const struct sdhc_driver_api *api = (const struct sdhc_driver_api *)dev->api; in z_impl_sdhc_card_present() local [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 | regulator.h | 346 const struct regulator_parent_driver_api *api = in regulator_parent_dvs_state_set() local 347 (const struct regulator_parent_driver_api *)dev->api; in regulator_parent_dvs_state_set() 349 if (api->dvs_state_set == NULL) { in regulator_parent_dvs_state_set() 353 return api->dvs_state_set(dev, state); in regulator_parent_dvs_state_set() 372 const struct regulator_parent_driver_api *api = in regulator_parent_ship_mode() local 373 (const struct regulator_parent_driver_api *)dev->api; in regulator_parent_ship_mode() 375 if (api->ship_mode == NULL) { in regulator_parent_ship_mode() 379 return api->ship_mode(dev); in regulator_parent_ship_mode() 441 const struct regulator_driver_api *api = in regulator_count_voltages() local 442 (const struct regulator_driver_api *)dev->api; in regulator_count_voltages() [all …]
|
D | hwspinlock.h | 78 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_trylock() local 79 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_trylock() 81 if (api->trylock == NULL) in z_impl_hwspinlock_trylock() 84 return api->trylock(dev, id); in z_impl_hwspinlock_trylock() 100 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_lock() local 101 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_lock() 103 if (api->lock != NULL) in z_impl_hwspinlock_lock() 104 api->lock(dev, id); in z_impl_hwspinlock_lock() 120 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_unlock() local 121 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_unlock() [all …]
|
D | rtc.h | 202 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_set_time() local 204 return api->set_time(dev, timeptr); in z_impl_rtc_set_time() 221 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_get_time() local 223 return api->get_time(dev, timeptr); in z_impl_rtc_get_time() 252 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_get_supported_fields() local 254 if (api->alarm_get_supported_fields == NULL) { in z_impl_rtc_alarm_get_supported_fields() 258 return api->alarm_get_supported_fields(dev, id, mask); in z_impl_rtc_alarm_get_supported_fields() 290 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_set_time() local 292 if (api->alarm_set_time == NULL) { in z_impl_rtc_alarm_set_time() 296 return api->alarm_set_time(dev, id, mask, timeptr); in z_impl_rtc_alarm_set_time() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 242 const struct tcpc_driver_api *api = in tcpc_init() local 243 (const struct tcpc_driver_api *)dev->api; in tcpc_init() 245 __ASSERT(api->init != NULL, in tcpc_init() 248 return api->init(dev); in tcpc_init() 266 const struct tcpc_driver_api *api = in tcpc_get_cc() local 267 (const struct tcpc_driver_api *)dev->api; in tcpc_get_cc() 269 if (api->get_cc == NULL) { in tcpc_get_cc() 273 return api->get_cc(dev, cc1, cc2); in tcpc_get_cc() 288 const struct tcpc_driver_api *api = in tcpc_select_rp_value() local 289 (const struct tcpc_driver_api *)dev->api; in tcpc_select_rp_value() [all …]
|
D | usbc_ppc.h | 81 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_dead_battery_mode() local 83 if (api->is_dead_battery_mode == NULL) { in ppc_is_dead_battery_mode() 87 return api->is_dead_battery_mode(dev); in ppc_is_dead_battery_mode() 104 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_exit_dead_battery_mode() local 106 if (api->exit_dead_battery_mode == NULL) { in ppc_exit_dead_battery_mode() 110 return api->exit_dead_battery_mode(dev); in ppc_exit_dead_battery_mode() 124 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_source() local 126 if (api->is_vbus_source == NULL) { in ppc_is_vbus_source() 130 return api->is_vbus_source(dev); in ppc_is_vbus_source() 144 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_sink() local [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/ |
D | eth_stats.h | 20 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_rx() local 21 net_if_get_device(iface)->api; in eth_stats_update_bytes_rx() 24 if (!api->get_stats) { in eth_stats_update_bytes_rx() 28 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_rx() 39 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_tx() local 40 net_if_get_device(iface)->api; in eth_stats_update_bytes_tx() 43 if (!api->get_stats) { in eth_stats_update_bytes_tx() 47 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_tx() 57 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_pkts_rx() local 58 net_if_get_device(iface)->api; in eth_stats_update_pkts_rx() [all …]
|
/Zephyr-Core-3.7.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.7.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 …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/dummy/ |
D | dummy.c | 20 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_recv() local 22 if (api == NULL) { in dummy_recv() 26 if (api->recv == NULL) { in dummy_recv() 30 return api->recv(iface, pkt); in dummy_recv() 35 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_send() local 38 if (!api) { in dummy_send() 42 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in dummy_send() 54 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_enable() local 56 if (!api) { in dummy_enable() 61 if (api->stop) { in dummy_enable() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/audio/ |
D | codec.h | 182 const struct audio_codec_api *api = in audio_codec_configure() local 183 (const struct audio_codec_api *)dev->api; in audio_codec_configure() 185 return api->configure(dev, cfg); in audio_codec_configure() 197 const struct audio_codec_api *api = in audio_codec_start_output() local 198 (const struct audio_codec_api *)dev->api; in audio_codec_start_output() 200 api->start_output(dev); in audio_codec_start_output() 212 const struct audio_codec_api *api = in audio_codec_stop_output() local 213 (const struct audio_codec_api *)dev->api; in audio_codec_stop_output() 215 api->stop_output(dev); in audio_codec_stop_output() 235 const struct audio_codec_api *api = in audio_codec_set_property() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/virtualization/ |
D | ivshmem.h | 104 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_mem() local 105 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_mem() 107 return api->get_mem(dev, memmap); in z_impl_ivshmem_get_mem() 121 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_id() local 122 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_id() 124 return api->get_id(dev); in z_impl_ivshmem_get_id() 138 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_vectors() local 139 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_vectors() 141 return api->get_vectors(dev); in z_impl_ivshmem_get_vectors() 159 const struct ivshmem_driver_api *api = in z_impl_ivshmem_int_peer() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/ |
D | irq_nextlevel.h | 56 const struct irq_next_level_api *api = in irq_enable_next_level() local 57 (const struct irq_next_level_api *)dev->api; in irq_enable_next_level() 59 api->intr_enable(dev, irq); in irq_enable_next_level() 73 const struct irq_next_level_api *api = in irq_disable_next_level() local 74 (const struct irq_next_level_api *)dev->api; in irq_disable_next_level() 76 api->intr_disable(dev, irq); in irq_disable_next_level() 91 const struct irq_next_level_api *api = in irq_is_enabled_next_level() local 92 (const struct irq_next_level_api *)dev->api; in irq_is_enabled_next_level() 94 return api->intr_get_state(dev); in irq_is_enabled_next_level() 112 const struct irq_next_level_api *api = in irq_set_priority_next_level() local [all …]
|
/Zephyr-Core-3.7.0/soc/intel/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()
|