Home
last modified time | relevance | path

Searched refs:api (Results 1 – 25 of 212) sorted by relevance

123456789

/Zephyr-Core-2.7.6/include/drivers/
Dedac.h81 const struct edac_driver_api *api = in edac_inject_set_param1() local
82 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1()
84 if (api->inject_set_param1 == NULL) { in edac_inject_set_param1()
88 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
105 const struct edac_driver_api *api = in edac_inject_get_param1() local
106 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1()
108 if (api->inject_get_param1 == NULL) { in edac_inject_get_param1()
112 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
130 const struct edac_driver_api *api = in edac_inject_set_param2() local
131 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2()
[all …]
Duart.h467 const struct uart_driver_api *api = in uart_callback_set() local
468 (const struct uart_driver_api *)dev->api; in uart_callback_set()
470 if (api->callback_set == NULL) { in uart_callback_set()
474 return api->callback_set(dev, callback, user_data); in uart_callback_set()
505 const struct uart_driver_api *api = in z_impl_uart_tx() local
506 (const struct uart_driver_api *)dev->api; in z_impl_uart_tx()
508 return api->tx(dev, buf, len, timeout); in z_impl_uart_tx()
531 const struct uart_driver_api *api = in z_impl_uart_tx_abort() local
532 (const struct uart_driver_api *)dev->api; in z_impl_uart_tx_abort()
534 return api->tx_abort(dev); in z_impl_uart_tx_abort()
[all …]
Dvideo.h265 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 …]
Dfpga.h56 const struct fpga_driver_api *api = in fpga_get_status() local
57 (const struct fpga_driver_api *)dev->api; in fpga_get_status()
59 return api->get_status(dev); in fpga_get_status()
72 const struct fpga_driver_api *api = in fpga_reset() local
73 (const struct fpga_driver_api *)dev->api; in fpga_reset()
75 return api->reset(dev); in fpga_reset()
91 const struct fpga_driver_api *api = in fpga_load() local
92 (const struct fpga_driver_api *)dev->api; in fpga_load()
94 return api->load(dev, image_ptr, img_size); in fpga_load()
107 const struct fpga_driver_api *api = in fpga_on() local
[all …]
Despi_saf.h218 const struct espi_saf_driver_api *api = in z_impl_espi_saf_config() local
219 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_config()
221 return api->config(dev, cfg); in z_impl_espi_saf_config()
246 const struct espi_saf_driver_api *api = in z_impl_espi_saf_set_protection_regions() local
247 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_set_protection_regions()
249 return api->set_protection_regions(dev, pr); in z_impl_espi_saf_set_protection_regions()
268 const struct espi_saf_driver_api *api = in z_impl_espi_saf_activate() local
269 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_activate()
271 return api->activate(dev); in z_impl_espi_saf_activate()
289 const struct espi_saf_driver_api *api = in z_impl_espi_saf_get_channel_status() local
[all …]
Ddisplay.h229 struct display_driver_api *api = in display_write() local
230 (struct display_driver_api *)dev->api; in display_write()
232 return api->write(dev, x, y, desc, buf); in display_write()
251 struct display_driver_api *api = in display_read() local
252 (struct display_driver_api *)dev->api; in display_read()
254 return api->read(dev, x, y, desc, buf); in display_read()
268 struct display_driver_api *api = in display_get_framebuffer() local
269 (struct display_driver_api *)dev->api; in display_get_framebuffer()
271 return api->get_framebuffer(dev); in display_get_framebuffer()
294 struct display_driver_api *api = in display_blanking_on() local
[all …]
Despi.h489 const struct espi_driver_api *api = in z_impl_espi_config() local
490 (const struct espi_driver_api *)dev->api; in z_impl_espi_config()
492 return api->config(dev, cfg); in z_impl_espi_config()
513 const struct espi_driver_api *api = in z_impl_espi_get_channel_status() local
514 (const struct espi_driver_api *)dev->api; in z_impl_espi_get_channel_status()
516 return api->get_channel_status(dev, ch); in z_impl_espi_get_channel_status()
539 const struct espi_driver_api *api = in z_impl_espi_read_request() local
540 (const struct espi_driver_api *)dev->api; in z_impl_espi_read_request()
542 if (!api->read_request) { in z_impl_espi_read_request()
546 return api->read_request(dev, req); in z_impl_espi_read_request()
[all …]
Dbbram.h82 const struct bbram_driver_api *api = in z_impl_bbram_check_invalid() local
83 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_invalid()
85 if (!api->check_invalid) { in z_impl_bbram_check_invalid()
89 return api->check_invalid(dev); in z_impl_bbram_check_invalid()
105 const struct bbram_driver_api *api = in z_impl_bbram_check_standby_power() local
106 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_standby_power()
108 if (!api->check_standby_power) { in z_impl_bbram_check_standby_power()
112 return api->check_standby_power(dev); in z_impl_bbram_check_standby_power()
129 const struct bbram_driver_api *api = in z_impl_bbram_check_power() local
130 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_power()
[all …]
Dps2.h81 const struct ps2_driver_api *api = in z_impl_ps2_config() local
82 (struct ps2_driver_api *)dev->api; in z_impl_ps2_config()
84 return api->config(dev, callback_isr); in z_impl_ps2_config()
100 const struct ps2_driver_api *api = in z_impl_ps2_write() local
101 (const struct ps2_driver_api *)dev->api; in z_impl_ps2_write()
103 return api->write(dev, value); in z_impl_ps2_write()
118 const struct ps2_driver_api *api = in z_impl_ps2_read() local
119 (const struct ps2_driver_api *)dev->api; in z_impl_ps2_read()
121 return api->read(dev, value); in z_impl_ps2_read()
135 const struct ps2_driver_api *api = in z_impl_ps2_enable_callback() local
[all …]
Dflash.h174 const struct flash_driver_api *api = in z_impl_flash_read() local
175 (const struct flash_driver_api *)dev->api; in z_impl_flash_read()
177 return api->read(dev, offset, data, len); in z_impl_flash_read()
205 const struct flash_driver_api *api = in z_impl_flash_write() local
206 (const struct flash_driver_api *)dev->api; in z_impl_flash_write()
214 if (api->write_protection != NULL) { in z_impl_flash_write()
215 rc = api->write_protection(dev, false); in z_impl_flash_write()
221 rc = api->write(dev, offset, data, len); in z_impl_flash_write()
223 if (api->write_protection != NULL) { in z_impl_flash_write()
224 (void) api->write_protection(dev, true); in z_impl_flash_write()
[all …]
Dled.h141 const struct led_driver_api *api = in z_impl_led_blink() local
142 (const struct led_driver_api *)dev->api; in z_impl_led_blink()
144 if (api->blink == NULL) { in z_impl_led_blink()
147 return api->blink(dev, led, delay_on, delay_off); in z_impl_led_blink()
166 const struct led_driver_api *api = in z_impl_led_get_info() local
167 (const struct led_driver_api *)dev->api; in z_impl_led_get_info()
169 if (api->get_info == NULL) { in z_impl_led_get_info()
173 return api->get_info(dev, led, info); in z_impl_led_get_info()
198 const struct led_driver_api *api = in z_impl_led_set_brightness() local
199 (const struct led_driver_api *)dev->api; in z_impl_led_set_brightness()
[all …]
Dclock_control.h113 const struct clock_control_driver_api *api = in clock_control_on() local
114 (const struct clock_control_driver_api *)dev->api; in clock_control_on()
116 return api->on(dev, sys); in clock_control_on()
138 const struct clock_control_driver_api *api = in clock_control_off() local
139 (const struct clock_control_driver_api *)dev->api; in clock_control_off()
141 return api->off(dev, sys); in clock_control_off()
166 const struct clock_control_driver_api *api = in clock_control_async_on() local
167 (const struct clock_control_driver_api *)dev->api; in clock_control_async_on()
169 if (api->async_on == NULL) { in clock_control_async_on()
179 return api->async_on(dev, sys, cb, user_data); in clock_control_async_on()
[all …]
Dptp_clock.h43 const struct ptp_clock_driver_api *api = in ptp_clock_set() local
44 (const struct ptp_clock_driver_api *)dev->api; in ptp_clock_set()
46 return api->set(dev, tm); in ptp_clock_set()
62 const struct ptp_clock_driver_api *api = in z_impl_ptp_clock_get() local
63 (const struct ptp_clock_driver_api *)dev->api; in z_impl_ptp_clock_get()
65 return api->get(dev, tm); in z_impl_ptp_clock_get()
78 const struct ptp_clock_driver_api *api = in ptp_clock_adjust() local
79 (const struct ptp_clock_driver_api *)dev->api; in ptp_clock_adjust()
81 return api->adjust(dev, increment); in ptp_clock_adjust()
94 const struct ptp_clock_driver_api *api = in ptp_clock_rate_adjust() local
[all …]
Dipm.h140 const struct ipm_driver_api *api = in z_impl_ipm_send() local
141 (const struct ipm_driver_api *)ipmdev->api; in z_impl_ipm_send()
143 return api->send(ipmdev, wait, id, data, size); in z_impl_ipm_send()
157 const struct ipm_driver_api *api = in ipm_register_callback() local
158 (const struct ipm_driver_api *)ipmdev->api; in ipm_register_callback()
160 api->register_callback(ipmdev, cb, user_data); in ipm_register_callback()
177 const struct ipm_driver_api *api = in z_impl_ipm_max_data_size_get() local
178 (const struct ipm_driver_api *)ipmdev->api; in z_impl_ipm_max_data_size_get()
180 return api->max_data_size_get(ipmdev); in z_impl_ipm_max_data_size_get()
198 const struct ipm_driver_api *api = in z_impl_ipm_max_id_val_get() local
[all …]
Dsyscon.h78 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_base() local
80 if (api == NULL) { in z_impl_syscon_get_base()
84 return api->get_base(dev, addr); in z_impl_syscon_get_base()
103 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_read_reg() local
105 if (api == NULL) { in z_impl_syscon_read_reg()
109 return api->read(dev, reg, val); in z_impl_syscon_read_reg()
128 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_write_reg() local
130 if (api == NULL) { in z_impl_syscon_write_reg()
134 return api->write(dev, reg, val); in z_impl_syscon_write_reg()
148 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_size() local
[all …]
Dcounter.h326 const struct counter_driver_api *api = in z_impl_counter_start() local
327 (struct counter_driver_api *)dev->api; in z_impl_counter_start()
329 return api->start(dev); in z_impl_counter_start()
345 const struct counter_driver_api *api = in z_impl_counter_stop() local
346 (struct counter_driver_api *)dev->api; in z_impl_counter_stop()
348 return api->stop(dev); in z_impl_counter_stop()
364 const struct counter_driver_api *api = in z_impl_counter_get_value() local
365 (struct counter_driver_api *)dev->api; in z_impl_counter_get_value()
367 return api->get_value(dev, ticks); in z_impl_counter_get_value()
398 const struct counter_driver_api *api = in z_impl_counter_set_channel_alarm() local
[all …]
Dkscan.h84 const struct kscan_driver_api *api = in z_impl_kscan_config() local
85 (struct kscan_driver_api *)dev->api; in z_impl_kscan_config()
87 return api->config(dev, callback); in z_impl_kscan_config()
100 const struct kscan_driver_api *api = in z_impl_kscan_enable_callback() local
101 (const struct kscan_driver_api *)dev->api; in z_impl_kscan_enable_callback()
103 if (api->enable_callback == NULL) { in z_impl_kscan_enable_callback()
107 return api->enable_callback(dev); in z_impl_kscan_enable_callback()
121 const struct kscan_driver_api *api = in z_impl_kscan_disable_callback() local
122 (const struct kscan_driver_api *)dev->api; in z_impl_kscan_disable_callback()
124 if (api->disable_callback == NULL) { in z_impl_kscan_disable_callback()
[all …]
Dlora.h121 const struct lora_driver_api *api = in lora_config() local
122 (const struct lora_driver_api *)dev->api; in lora_config()
124 return api->config(dev, config); in lora_config()
140 const struct lora_driver_api *api = in lora_send() local
141 (const struct lora_driver_api *)dev->api; in lora_send()
143 return api->send(dev, data, data_len); in lora_send()
164 const struct lora_driver_api *api = in lora_send_async() local
165 (const struct lora_driver_api *)dev->api; in lora_send_async()
167 return api->send_async(dev, data, data_len, async); in lora_send_async()
188 const struct lora_driver_api *api = in lora_recv() local
[all …]
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/
Deth_stats.h19 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-2.7.6/subsys/net/l2/ppp/
Dppp_stats.h19 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-2.7.6/include/
Dirq_nextlevel.h57 const struct irq_next_level_api *api = in irq_enable_next_level() local
58 (const struct irq_next_level_api *)dev->api; in irq_enable_next_level()
60 api->intr_enable(dev, irq); in irq_enable_next_level()
76 const struct irq_next_level_api *api = in irq_disable_next_level() local
77 (const struct irq_next_level_api *)dev->api; in irq_disable_next_level()
79 api->intr_disable(dev, irq); in irq_disable_next_level()
94 const struct irq_next_level_api *api = in irq_is_enabled_next_level() local
95 (const struct irq_next_level_api *)dev->api; in irq_is_enabled_next_level()
97 return api->intr_get_state(dev); in irq_is_enabled_next_level()
117 const struct irq_next_level_api *api = in irq_set_priority_next_level() local
[all …]
/Zephyr-Core-2.7.6/include/drivers/pcie/endpoint/
Dpcie_ep.h94 const struct pcie_ep_driver_api *api = in pcie_ep_conf_read() local
95 (const struct pcie_ep_driver_api *)dev->api; in pcie_ep_conf_read()
97 return api->conf_read(dev, offset, data); in pcie_ep_conf_read()
115 const struct pcie_ep_driver_api *api = in pcie_ep_conf_write() local
116 (const struct pcie_ep_driver_api *)dev->api; in pcie_ep_conf_write()
118 api->conf_write(dev, offset, data); in pcie_ep_conf_write()
151 const struct pcie_ep_driver_api *api = in pcie_ep_map_addr() local
152 (const struct pcie_ep_driver_api *)dev->api; in pcie_ep_map_addr()
154 return api->map_addr(dev, pcie_addr, mapped_addr, size, ob_mem_type); in pcie_ep_map_addr()
173 const struct pcie_ep_driver_api *api = in pcie_ep_unmap_addr() local
[all …]
/Zephyr-Core-2.7.6/include/audio/
Dcodec.h147 const struct audio_codec_api *api = in audio_codec_configure() local
148 (const struct audio_codec_api *)dev->api; in audio_codec_configure()
150 return api->configure(dev, cfg); in audio_codec_configure()
164 const struct audio_codec_api *api = in audio_codec_start_output() local
165 (const struct audio_codec_api *)dev->api; in audio_codec_start_output()
167 api->start_output(dev); in audio_codec_start_output()
181 const struct audio_codec_api *api = in audio_codec_stop_output() local
182 (const struct audio_codec_api *)dev->api; in audio_codec_stop_output()
184 api->stop_output(dev); in audio_codec_stop_output()
204 const struct audio_codec_api *api = in audio_codec_set_property() local
[all …]
/Zephyr-Core-2.7.6/include/drivers/virtualization/
Divshmem.h60 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_mem() local
61 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_mem()
63 return api->get_mem(dev, memmap); in z_impl_ivshmem_get_mem()
77 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_id() local
78 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_id()
80 return api->get_id(dev); in z_impl_ivshmem_get_id()
94 const struct ivshmem_driver_api *api = in z_impl_ivshmem_get_vectors() local
95 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_vectors()
97 return api->get_vectors(dev); in z_impl_ivshmem_get_vectors()
115 const struct ivshmem_driver_api *api = in z_impl_ivshmem_int_peer() local
[all …]
/Zephyr-Core-2.7.6/include/net/
Dcapture.h88 const struct net_capture_interface_api *api = in net_capture_cleanup() local
89 (const struct net_capture_interface_api *)dev->api; in net_capture_cleanup()
91 return api->cleanup(dev); in net_capture_cleanup()
115 const struct net_capture_interface_api *api = in net_capture_enable() local
116 (const struct net_capture_interface_api *)dev->api; in net_capture_enable()
118 return api->enable(dev, iface); in net_capture_enable()
137 const struct net_capture_interface_api *api = in net_capture_is_enabled() local
138 (const struct net_capture_interface_api *)dev->api; in net_capture_is_enabled()
140 return api->is_enabled(dev); in net_capture_is_enabled()
158 const struct net_capture_interface_api *api = in net_capture_disable() local
[all …]

123456789