| /Zephyr-4.2.1/include/zephyr/drivers/uart/ |
| D | uart_internal.h | 38 /** @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-4.2.1/doc/develop/api/ |
| D | api_lifecycle.rst | 3 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 …]
|
| D | overview.rst | 3 API Overview 7 current :ref:`stability level <api_lifecycle>`. More details about API changes 14 change at any time. The public API SHOULD NOT be considered stable. 16 * If minor version is up to one (0.1.z), API is considered 18 * If minor version is larger than one (0.y.z | y > 1), API is considered 21 * Version 1.0.0 defines the public API. The way in which the version number 22 is incremented after this release is dependent on this public API and how it 34 compatible functionality is introduced to the public API. It MUST be 35 incremented if any public API functionality is marked as deprecated. It MAY 41 breaking change was made to the API. [all …]
|
| /Zephyr-4.2.1/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-4.2.1/include/zephyr/drivers/ |
| D | edac.h | 10 * @brief Main header file for EDAC (Error Detection and Correction) driver API. 28 * @defgroup edac_interface_ext Device-specific EDAC API extensions 52 * @brief EDAC driver API 54 * This is the mandatory API any EDAC driver needs to expose. 57 /* Error Injection API is disabled by default */ 66 /* Error Logging API */ 72 /* Error stats API */ 76 /* Notification callback API */ 106 const struct edac_driver_api *api = in edac_inject_set_param1() local 107 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1() [all …]
|
| D | syscon.h | 10 * @brief Main header file for SYSCON (System Control) driver API. 33 * API template to get the base address of the syscon region. 40 * API template to read a single register. 47 * API template to write a single register. 54 * API template to get the size of the syscon register. 61 * @brief System Control (syscon) register driver API 77 * @retval -ENOSYS If the API or function isn't implemented. 83 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_base() local 85 if ((api == NULL) || (api->get_base == NULL)) { in z_impl_syscon_get_base() 89 return api->get_base(dev, addr); in z_impl_syscon_get_base() [all …]
|
| D | fpga.h | 10 * @brief Main header file for FPGA driver API. 73 const struct fpga_driver_api *api = in fpga_get_status() local 74 (const struct fpga_driver_api *)dev->api; in fpga_get_status() 76 if (api->get_status == NULL) { in fpga_get_status() 83 return api->get_status(dev); in fpga_get_status() 96 const struct fpga_driver_api *api = in fpga_reset() local 97 (const struct fpga_driver_api *)dev->api; in fpga_reset() 99 if (api->reset == NULL) { in fpga_reset() 103 return api->reset(dev); in fpga_reset() 119 const struct fpga_driver_api *api = in fpga_load() local [all …]
|
| D | virtio.h | 10 * @brief Main header file for Virtio driver API. 42 * @brief Virtio api structure 67 const struct virtio_driver_api *api = dev->api; in virtio_get_virtqueue() local 69 return api->get_virtqueue(dev, queue_idx); in virtio_get_virtqueue() 84 const struct virtio_driver_api *api = dev->api; in virtio_notify_virtqueue() local 86 api->notify_virtqueue(dev, queue_idx); in virtio_notify_virtqueue() 97 const struct virtio_driver_api *api = dev->api; in virtio_get_device_specific_config() local 99 return api->get_device_specific_config(dev); in virtio_get_device_specific_config() 111 const struct virtio_driver_api *api = dev->api; in virtio_read_device_feature_bit() local 113 return api->read_device_feature_bit(dev, bit); in virtio_read_device_feature_bit() [all …]
|
| D | auxdisplay.h | 10 * @brief Main header file for auxiliary (textual/non-graphical) display driver API. 145 * @brief Callback API to turn display on 152 * @brief Callback API to turn display off 159 * @brief Callback API to turn display cursor visibility on or off 166 * @brief Callback API to turn the current position blinking on or off 174 * @brief Callback API to set how the cursor shifts after a character is written 182 * @brief Callback API to set the cursor position 191 * @brief Callback API to get the cursor position 199 * @brief Callback API to set the current position of the display 208 * @brief Callback API to get the current position of the display [all …]
|
| D | bbram.h | 10 * @brief Main header file for Battery-Backed RAM (BBRAM) driver API. 33 * @brief API template to check if the BBRAM is invalid. 41 * @brief API template to check for standby power failure. 49 * @brief API template to check for V CC1 power failure. 57 * @brief API template to check the size of the BBRAM 65 * @brief API template to read from BBRAM. 74 * @brief API template to write to BBRAM. 103 const struct bbram_driver_api *api = in z_impl_bbram_check_invalid() local 104 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_invalid() 106 if (!api->check_invalid) { in z_impl_bbram_check_invalid() [all …]
|
| D | display.h | 10 * @brief Main header file for display driver API. 24 * @defgroup display_interface_ext Device-specific Display API extensions 167 * @brief Callback API to turn on display blanking 174 * @brief Callback API to turn off display blanking 181 * @brief Callback API for writing data to the display 191 * @brief Callback API for reading data from the display 201 * @brief Callback API for clearing the screen of the display 208 * @brief Callback API to get framebuffer pointer 215 * @brief Callback API to set display brightness 223 * @brief Callback API to set display contrast [all …]
|
| /Zephyr-4.2.1/subsys/usb/device_next/ |
| D | usbd_class_api.h | 9 * @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-4.2.1/tests/subsys/logging/log_api/ |
| D | testcase.yaml | 15 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-4.2.1/tests/subsys/edac/ibecc/src/ |
| D | dummy.c | 32 /* 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-4.2.1/subsys/net/l2/dummy/ |
| D | dummy.c | 22 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_recv() local 24 if (api == NULL) { in dummy_recv() 28 if (api->recv == NULL) { in dummy_recv() 32 return api->recv(iface, pkt); in dummy_recv() 37 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_send() local 40 if (!api) { in dummy_send() 44 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in dummy_send() 63 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_enable() local 65 if (!api) { in dummy_enable() 70 if (api->stop) { in dummy_enable() [all …]
|
| /Zephyr-4.2.1/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()
|
| /Zephyr-4.2.1/include/zephyr/drivers/usb_c/ |
| D | usbc_tcpc.h | 19 * @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 = (const struct tcpc_driver_api *)dev->api; in tcpc_init() local 240 __ASSERT(api->init != NULL, "Callback pointer should not be NULL"); in tcpc_init() 242 return api->init(dev); in tcpc_init() 259 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_get_cc() local 261 if (api->get_cc == NULL) { in tcpc_get_cc() 265 return api->get_cc(dev, cc1, cc2); in tcpc_get_cc() 280 const struct tcpc_driver_api *api = (const struct tcpc_driver_api *)dev->api; in tcpc_select_rp_value() local 282 if (api->select_rp_value == NULL) { in tcpc_select_rp_value() [all …]
|
| D | usbc_ppc.h | 8 * @brief USB Type-C Power Path Controller device API 74 * API functions 88 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_dead_battery_mode() local 90 if (api->is_dead_battery_mode == NULL) { in ppc_is_dead_battery_mode() 94 return api->is_dead_battery_mode(dev); in ppc_is_dead_battery_mode() 111 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_exit_dead_battery_mode() local 113 if (api->exit_dead_battery_mode == NULL) { in ppc_exit_dead_battery_mode() 117 return api->exit_dead_battery_mode(dev); in ppc_exit_dead_battery_mode() 131 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_source() local 133 if (api->is_vbus_source == NULL) { in ppc_is_vbus_source() [all …]
|
| /Zephyr-4.2.1/include/zephyr/drivers/interrupt_controller/ |
| D | gicv3_its.h | 37 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 …]
|
| 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-4.2.1/drivers/usb/uhc/ |
| D | uhc_common.c | 101 const struct uhc_api *api = dev->api; in uhc_xfer_alloc() local 107 api->lock(dev); in uhc_xfer_alloc() 153 api->unlock(dev); in uhc_xfer_alloc() 186 const struct uhc_api *api = dev->api; in uhc_xfer_free() local 189 api->lock(dev); in uhc_xfer_free() 200 api->unlock(dev); in uhc_xfer_free() 209 const struct uhc_api *api = dev->api; in uhc_xfer_buf_add() local 212 api->lock(dev); in uhc_xfer_buf_add() 219 api->unlock(dev); in uhc_xfer_buf_add() 226 const struct uhc_api *api = dev->api; in uhc_ep_enqueue() local [all …]
|
| /Zephyr-4.2.1/doc/services/storage/secure_storage/ |
| D | index.rst | 7 …`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-4.2.1/subsys/secure_storage/ |
| D | Kconfig | 9 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 32 UID ranges are defined for the different users of the API which guarantees that all the 39 prompt "Internal Trusted Storage (ITS) API implementation" 46 Use Zephyr's implementation of the ITS API. 53 A custom implementation of the ITS API is present. 64 Increasing this value increases the stack usage when serving PSA ITS API calls. 88 prompt "Protected Storage (PS) API implementation" [all …]
|
| /Zephyr-4.2.1/include/zephyr/drivers/virtualization/ |
| D | ivshmem.h | 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 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() [all …]
|
| /Zephyr-4.2.1/samples/subsys/pm/device_pm/src/ |
| D | main.c | 14 struct dummy_driver_api *api; in main() local 19 api = (struct dummy_driver_api *)dev->api; in main() 20 ret = api->open(dev); in main() 22 ret = api->write(dev, val); in main() 23 ret = api->read(dev, &val); in main() 24 ret = api->close(dev); in main()
|