Home
last modified time | relevance | path

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

12345678910>>...86

/Zephyr-latest/include/zephyr/drivers/uart/
Duart_internal.h38 /** @brief Driver API structure. */
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()
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/
Deth_stats.h20 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/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
35 - Documentation of the API (usage)
38 - The API introduction should be accompanied by at least one implementation
39 of said API (in the case of peripheral APIs, this corresponds to one driver)
40 - At least one sample using the new API (may only build on one single board)
42 When introducing a new and experimental API, mark the API version in the headers
43 where the API is defined. An experimental API shall have a version where the minor
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dedac.h9 * @brief EDAC API header file
20 * @defgroup edac EDAC API
46 * @brief EDAC driver API
48 * This is the mandatory API any EDAC driver needs to expose.
51 /* Error Injection API is disabled by default */
60 /* Error Logging API */
66 /* Error stats API */
70 /* Notification callback API */
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()
[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 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 …]
Dauxdisplay.h9 * @brief Public API for auxiliary (textual/non-graphical) display drivers
144 * @brief Callback API to turn display on
151 * @brief Callback API to turn display off
158 * @brief Callback API to turn display cursor visibility on or off
165 * @brief Callback API to turn the current position blinking on or off
173 * @brief Callback API to set how the cursor shifts after a character is written
181 * @brief Callback API to set the cursor position
190 * @brief Callback API to get the cursor position
198 * @brief Callback API to set the current position of the display
207 * @brief Callback API to get the current position of the display
[all …]
Dcellular.h10 * @brief Public cellular network API
88 /** API for configuring networks */
93 /** API for getting supported networks */
98 /** API for getting network signal strength */
102 /** API for getting modem information */
107 /** API for getting registration status */
112 /** Cellular driver API */
139 * @retval -ENOTSUP if API is not supported by cellular network device.
145 const struct cellular_driver_api *api = (const struct cellular_driver_api *)dev->api; in cellular_configure_networks() local
147 if (api->configure_networks == NULL) { in cellular_configure_networks()
[all …]
Ddisplay.h9 * @brief Public API for display drivers and applications
136 * @brief Callback API to turn on display blanking
143 * @brief Callback API to turn off display blanking
150 * @brief Callback API for writing data to the display
160 * @brief Callback API for reading data from the display
170 * @brief Callback API to get framebuffer pointer
177 * @brief Callback API to set display brightness
185 * @brief Callback API to set display contrast
193 * @brief Callback API to get display capabilities
202 * @brief Callback API to set pixel format used by the display
[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()
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()
[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 …]
/Zephyr-latest/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 = 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()
[all …]
/Zephyr-latest/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-latest/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:
37 logging.deferred.api.printk:
45 logging.deferred.api.func_prefix:
51 logging.deferred.api.64b_timestamp:
56 logging.deferred.api.override_level:
67 logging.immediate.api:
71 logging.immediate.api.printk:
[all …]
/Zephyr-latest/subsys/net/l2/dummy/
Ddummy.c20 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/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-latest/doc/services/
Dsecure_storage.rst7 …`Platform Security Architecture (PSA) Secure Storage API <https://arm-software.github.io/psa-api/s…
9 that don't already have an implementation of the API.
14 The secure storage subsystem makes the PSA Secure Storage API available on all board targets with
16 As such, it provides an implementation of the API on those that don't already have one, ensuring
17 functional support for the API.
19 cannot enable the subsystem because TF-M already provides an implementation of the API.
21 | In addition to providing functional support for the API, depending on
23 may secure the data stored via the PSA Secure Storage API at rest.
30 The secure storage subsystem's implementation of the PSA Secure Storage API:
34 | Its foremost goal is functional support for the API on all board targets.
[all …]
/Zephyr-latest/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-latest/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
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()
[all …]
Dusbc_ppc.h8 * @brief USB Type-C Power Path Controller device API
67 * API functions
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()
[all …]
/Zephyr-latest/soc/intel/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-latest/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-latest/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-latest/subsys/secure_storage/
DKconfig9 The secure storage subsystem provides an implementation of the PSA Secure Storage API
11 It allows making use of the PSA Secure Storage API and persistent keys in the PSA Crypto
12 API in a standard and portable way.
15 In addition to providing functional support for the PSA Secure Storage API, depending on
28 prompt "Internal Trusted Storage (ITS) API implementation"
35 Use Zephyr's implementation of the ITS API.
42 A custom implementation of the ITS API is present.
53 Increasing this value increases the stack usage when serving PSA ITS API calls.
78 prompt "Protected Storage (PS) API implementation"
84 The PS API doesn't have an implementation of its own, and directly calls into the ITS API.
[all …]

12345678910>>...86