Home
last modified time | relevance | path

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

12345678910>>...79

/Zephyr-Core-3.6.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.6.0/include/zephyr/drivers/
Dedac.h9 * @brief EDAC API header file
20 * @defgroup edac EDAC API
44 * @brief EDAC driver API
46 * This is the mandatory API any EDAC driver needs to expose.
49 /* Error Injection API is disabled by default */
58 /* Error Logging API */
64 /* Error stats API */
68 /* Notification callback API */
98 const struct edac_driver_api *api = in edac_inject_set_param1() local
99 (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 …]
Ddisplay.h9 * @brief Public API for display drivers and applications
132 * @brief Callback API to turn on display blanking
139 * @brief Callback API to turn off display blanking
146 * @brief Callback API for writing data to the display
156 * @brief Callback API for reading data from the display
166 * @brief Callback API to get framebuffer pointer
173 * @brief Callback API to set display brightness
181 * @brief Callback API to set display contrast
189 * @brief Callback API to get display capabilities
198 * @brief Callback API to set pixel format used by the display
[all …]
Dcellular.h10 * @brief Public cellular network API
79 /** API for configuring networks */
84 /** API for getting supported networks */
89 /** API for getting network signal strength */
93 /** API for getting modem information */
98 /** Cellular driver API */
124 * @retval -ENOTSUP if API is not supported by cellular network device.
130 const struct cellular_driver_api *api = (const struct cellular_driver_api *)dev->api; in cellular_configure_networks() local
132 if (api->configure_networks == NULL) { in cellular_configure_networks()
136 return api->configure_networks(dev, networks, size); in cellular_configure_networks()
[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 …]
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 …]
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 …]
/Zephyr-Core-3.6.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.6.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.6.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.6.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:
67 logging.immediate.api:
71 logging.immediate.api.printk:
[all …]
/Zephyr-Core-3.6.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.6.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 …]
Dusbc_ppc.h8 * @brief USB Type-C Power Path Controller device API
67 * API functions
81 const struct usbc_ppc_drv *api = (const struct usbc_ppc_drv *)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_drv *api = (const struct usbc_ppc_drv *)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_drv *api = (const struct usbc_ppc_drv *)dev->api; in ppc_is_vbus_source() local
126 if (api->is_vbus_source == NULL) { in ppc_is_vbus_source()
[all …]
/Zephyr-Core-3.6.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.6.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.6.0/include/zephyr/drivers/interrupt_controller/
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 …]
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 …]
/Zephyr-Core-3.6.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.6.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
87 * Note: This API is not supported for ivshmem-v2, as
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
[all …]
/Zephyr-Core-3.6.0/subsys/net/l2/dummy/
Ddummy.c32 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_send() local
35 if (!api) { in dummy_send()
39 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in dummy_send()
51 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_enable() local
53 if (!api) { in dummy_enable()
58 if (api->stop) { in dummy_enable()
59 ret = api->stop(net_if_get_device(iface)); in dummy_enable()
62 if (api->start) { in dummy_enable()
63 ret = api->start(net_if_get_device(iface)); in dummy_enable()

12345678910>>...79