Home
last modified time | relevance | path

Searched full:api (Results 1 – 25 of 1712) sorted by relevance

12345678910>>...69

/Zephyr-Core-3.5.0/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-3.5.0/include/zephyr/drivers/
Dedac.h9 * @brief EDAC API header file
22 * @defgroup edac EDAC API
38 * @brief EDAC driver API
40 * This is the mandatory API any EDAC driver needs to expose.
43 /* Error Injection API is disabled by default */
52 /* Error Logging API */
58 /* Error stats API */
62 /* Notification callback API */
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()
[all …]
Dfpga.h58 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 …]
Dauxdisplay.h9 * @brief Public API for auxiliary (textual/non-graphical) display drivers
142 * @brief Callback API to turn display on
149 * @brief Callback API to turn display off
156 * @brief Callback API to turn display cursor visibility on or off
163 * @brief Callback API to turn the current position blinking on or off
171 * @brief Callback API to set how the cursor shifts after a character is written
179 * @brief Callback API to set the cursor position
188 * @brief Callback API to get the cursor position
196 * @brief Callback API to set the current position of the display
205 * @brief Callback API to get the current position of the display
[all …]
Drtc.h10 * @brief Public real time clock driver API
99 * @brief API for setting RTC time
105 * @brief API for getting RTC time
111 * @brief API for getting the supported fields of the RTC alarm time
118 * @brief API for setting RTC alarm time
125 * @brief API for getting RTC alarm time
132 * @brief API for testing if RTC alarm is pending
138 * @brief API for setting RTC alarm callback
145 * @brief API for setting RTC update callback
152 * @brief API for setting RTC calibration
[all …]
Dhwspinlock.h29 * @brief Callback API for trying to lock HW spinlock
35 * @brief Callback API to lock HW spinlock
41 * @brief Callback API to unlock HW spinlock
47 * @brief Callback API to get HW spinlock max ID
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()
[all …]
Dbbram.h27 * @brief API template to check if the BBRAM is invalid.
35 * @brief API template to check for standby power failure.
43 * @brief API template to check for V CC1 power failure.
51 * @brief API template to check the size of the BBRAM
59 * @brief API template to read from BBRAM.
68 * @brief API template to write to BBRAM.
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()
[all …]
Dsyscon.h32 * API template to get the base address of the syscon region.
39 * API template to read a single register.
46 * API template to write a single register.
53 * API template to get the size of the syscon register.
60 * @brief System Control (syscon) register driver API
80 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_base() local
82 if (api == NULL) { in z_impl_syscon_get_base()
86 return api->get_base(dev, addr); in z_impl_syscon_get_base()
105 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_read_reg() local
107 if (api == NULL) { in z_impl_syscon_read_reg()
[all …]
Ddisplay.h9 * @brief Public API for display drivers and applications
131 * @brief Callback API to turn on display blanking
138 * @brief Callback API to turn off display blanking
145 * @brief Callback API for writing data to the display
155 * @brief Callback API for reading data from the display
165 * @brief Callback API to get framebuffer pointer
172 * @brief Callback API to set display brightness
180 * @brief Callback API to set display contrast
188 * @brief Callback API to get display capabilities
197 * @brief Callback API to set pixel format used by the display
[all …]
Dps2.h9 * @brief Public API for PS/2 devices such as keyboard and mouse.
10 * Callers of this API are responsible for setting the typematic rate
44 * PS2 driver API definition and system call entry points
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
[all …]
Dled.h50 * @brief Callback API for blinking an LED
59 * @brief Optional API callback to get LED information
68 * @brief Callback API for setting brightness of an LED
76 * @brief Optional API callback to set the colors of a LED.
85 * @brief Callback API for turning on an LED
93 * @brief Callback API for turning off an LED
101 * @brief Callback API for writing a strip of LED channels
111 * @brief LED driver API
143 const struct led_driver_api *api = in z_impl_led_blink() local
144 (const struct led_driver_api *)dev->api; in z_impl_led_blink()
[all …]
/Zephyr-Core-3.5.0/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-3.5.0/subsys/usb/device_next/
Dusbd_class_api.h9 * @brief USB device stack class instances API
11 * This file contains the USB device stack class instances API.
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()
[all …]
/Zephyr-Core-3.5.0/doc/develop/api/
Dapi_lifecycle.rst3 API Lifecycle
7 given API will not change in future releases. At the same time, developers
15 :alt: API Life Cycle
18 API Life Cycle
32 - Documentation of the API (usage)
35 - The API introduction should be accompanied by at least one implementation
36 of said API (in the case of peripheral APIs, this corresponds to one driver)
37 - At least one sample using the new API (may only build on one single board)
42 When introducing an API (public header file with documentation) for a new
43 peripheral or driver subsystem, review of the API is enforced and is driven by
[all …]
/Zephyr-Core-3.5.0/tests/subsys/logging/log_api/
Dtestcase.yaml15 logging.deferred.api.overflow_rt_filter:
21 logging.deferred.api.overflow:
26 logging.deferred.api.no_overflow:
31 logging.deferred.api.static_filter:
36 logging.deferred.api.printk:
44 logging.deferred.api.func_prefix:
50 logging.deferred.api.64b_timestamp:
55 logging.deferred.api.override_level:
66 logging.immediate.api:
70 logging.immediate.api.printk:
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h19 * @brief USB Type-C Port Controller API
20 * @defgroup usb_type_c_port_controller_api USB Type-C Port Controller API
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()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/edac/ibecc/src/
Ddummy.c32 /* Error log API */ in ZTEST()
35 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
38 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
41 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
44 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
46 /* Error stat API */ in ZTEST()
49 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
52 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
54 /* Notification API */ in ZTEST()
58 zassert_equal(ret, -ENOSYS, "dummy api failed"); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/drivers/usb/uhc/
Duhc_common.c103 const struct uhc_api *api = dev->api; in uhc_xfer_alloc() local
106 api->lock(dev); in uhc_xfer_alloc()
130 api->unlock(dev); in uhc_xfer_alloc()
166 const struct uhc_api *api = dev->api; in uhc_xfer_free() local
169 api->lock(dev); in uhc_xfer_free()
180 api->unlock(dev); in uhc_xfer_free()
189 const struct uhc_api *api = dev->api; in uhc_xfer_buf_add() local
192 api->lock(dev); in uhc_xfer_buf_add()
199 api->unlock(dev); in uhc_xfer_buf_add()
206 const struct uhc_api *api = dev->api; in uhc_ep_enqueue() local
[all …]
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/ace/
Dirq.c15 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()
/Zephyr-Core-3.5.0/include/zephyr/drivers/interrupt_controller/
Dintel_vtd.h74 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 …]
Dgicv3_its.h37 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.5.0/tests/kernel/device/src/
Dabstract_driver.h10 /* define subsystem common API for drivers */
24 struct subsystem_api *api; in subsystem_do_this() local
26 api = (struct subsystem_api *)device->api; in subsystem_do_this()
27 return api->do_this(device, foo, bar); in subsystem_do_this()
33 struct subsystem_api *api; in subsystem_do_that() local
35 api = (struct subsystem_api *)device->api; in subsystem_do_that()
36 api->do_that(device, baz); in subsystem_do_that()
/Zephyr-Core-3.5.0/include/zephyr/drivers/virtualization/
Divshmem.h11 * @brief Inter-VM Shared Memory (ivshmem) reference API
12 * @defgroup ivshmem Inter-VM Shared Memory (ivshmem) reference API
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()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/
Dirq_nextlevel.h55 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.5.0/include/zephyr/drivers/pcie/endpoint/
Dpcie_ep.h47 * @brief Callback API for PCIe reset interrupts
82 * @details This API reads EP's own configuration space
94 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()
103 * @details This API writes EP's own configuration space
113 const struct pcie_ep_driver_api *api = in pcie_ep_conf_write() local
114 (const struct pcie_ep_driver_api *)dev->api; in pcie_ep_conf_write()
116 api->conf_write(dev, offset, data); in pcie_ep_conf_write()
122 * @details This API maps a host memory buffer to PCIe outbound region,
[all …]

12345678910>>...69