/Zephyr-latest/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-latest/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 | 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 | 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() [all …]
|
D | stepper.h | 222 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_enable() local 224 return api->enable(dev, enable); in z_impl_stepper_enable() 244 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_move_by() local 246 return api->move_by(dev, micro_steps); in z_impl_stepper_move_by() 270 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_max_velocity() local 272 return api->set_max_velocity(dev, micro_steps_per_second); in z_impl_stepper_set_max_velocity() 292 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_micro_step_res() local 294 if (api->set_micro_step_res == NULL) { in z_impl_stepper_set_micro_step_res() 297 return api->set_micro_step_res(dev, resolution); in z_impl_stepper_set_micro_step_res() 316 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_get_micro_step_res() local [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 | 390 const struct video_driver_api *api = (const struct video_driver_api *)dev->api; in video_set_format() local 392 if (api->set_format == NULL) { in video_set_format() 396 return api->set_format(dev, ep, fmt); in video_set_format() 413 const struct video_driver_api *api = (const struct video_driver_api *)dev->api; in video_get_format() local 415 if (api->get_format == NULL) { in video_get_format() 419 return api->get_format(dev, ep, fmt); in video_get_format() 442 const struct video_driver_api *api = (const struct video_driver_api *)dev->api; in video_set_frmival() local 444 if (api->set_frmival == NULL) { in video_set_frmival() 448 return api->set_frmival(dev, ep, frmival); in video_set_frmival() 468 const struct video_driver_api *api = (const struct video_driver_api *)dev->api; in video_get_frmival() local [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 | 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 | 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 | 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() 85 return api->trylock(dev, id); in z_impl_hwspinlock_trylock() 101 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_lock() local 102 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_lock() 104 if (api->lock != NULL) { in z_impl_hwspinlock_lock() 105 api->lock(dev, id); in z_impl_hwspinlock_lock() 122 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_unlock() local 123 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_unlock() [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 236 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_init() local 238 __ASSERT(api->init != NULL, "Callback pointer should not be NULL"); in tcpc_init() 240 return api->init(dev); in tcpc_init() 257 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_get_cc() local 259 if (api->get_cc == NULL) { in tcpc_get_cc() 263 return api->get_cc(dev, cc1, cc2); in tcpc_get_cc() 278 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_select_rp_value() local 280 if (api->select_rp_value == NULL) { in tcpc_select_rp_value() 284 return api->select_rp_value(dev, rp); in tcpc_select_rp_value() 299 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_get_rp_value() local [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-latest/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-latest/include/zephyr/drivers/uart/ |
D | uart_internal.h | 145 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_err_check() local 147 if (api->err_check == NULL) { in z_impl_uart_err_check() 151 return api->err_check(dev); in z_impl_uart_err_check() 156 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in() local 158 if (api->poll_in == NULL) { in z_impl_uart_poll_in() 162 return api->poll_in(dev, p_char); in z_impl_uart_poll_in() 168 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in_u16() local 170 if (api->poll_in_u16 == NULL) { in z_impl_uart_poll_in_u16() 174 return api->poll_in_u16(dev, p_u16); in z_impl_uart_poll_in_u16() 184 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_out() local [all …]
|
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/ |
D | transport.h | 113 const struct scmi_transport_api *api = in scmi_transport_request_channel() local 114 (const struct scmi_transport_api *)transport->api; in scmi_transport_request_channel() 116 if (api->request_channel) { in scmi_transport_request_channel() 117 return api->request_channel(transport, proto, tx); in scmi_transport_request_channel() 144 const struct scmi_transport_api *api = in scmi_transport_init() local 145 (const struct scmi_transport_api *)transport->api; in scmi_transport_init() 147 if (api->init) { in scmi_transport_init() 148 return api->init(transport); in scmi_transport_init() 174 const struct scmi_transport_api *api = in scmi_transport_setup_chan() local 175 (const struct scmi_transport_api *)transport->api; in scmi_transport_setup_chan() [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/include/zephyr/audio/ |
D | codec.h | 205 const struct audio_codec_api *api = in audio_codec_configure() local 206 (const struct audio_codec_api *)dev->api; in audio_codec_configure() 208 return api->configure(dev, cfg); in audio_codec_configure() 220 const struct audio_codec_api *api = in audio_codec_start_output() local 221 (const struct audio_codec_api *)dev->api; in audio_codec_start_output() 223 api->start_output(dev); in audio_codec_start_output() 235 const struct audio_codec_api *api = in audio_codec_stop_output() local 236 (const struct audio_codec_api *)dev->api; in audio_codec_stop_output() 238 api->stop_output(dev); in audio_codec_stop_output() 258 const struct audio_codec_api *api = in audio_codec_set_property() local [all …]
|
/Zephyr-latest/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-latest/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-latest/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()
|