/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/ |
D | eth_stats.h | 19 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/doc/reference/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 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-2.7.6/include/drivers/ |
D | edac.h | 9 * @brief EDAC API header file 20 * @defgroup edac EDAC API 36 * @brief EDAC driver API 38 * This is the mandatory API any EDAC driver needs to expose. 41 /* Error Injection API is disabled by default */ 50 /* Error Logging API */ 56 /* Error stats API */ 60 /* Notification callback API */ 81 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() [all …]
|
D | bbram.h | 17 * API template to check if the BBRAM is invalid. 24 * API template to check for standby power failure. 31 * API template to check for V CC1 power failure. 38 * API template to check the size of the BBRAM 45 * API template to read from BBRAM. 53 * API template to write to BBRAM. 82 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() [all …]
|
D | fpga.h | 56 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 …]
|
D | display.h | 9 * @brief Public API for display drivers and applications 114 * @brief Callback API to turn on display blanking 121 * @brief Callback API to turn off display blanking 128 * @brief Callback API for writing data to the display 138 * @brief Callback API for reading data from the display 148 * @brief Callback API to get framebuffer pointer 155 * @brief Callback API to set display brightness 163 * @brief Callback API to set display contrast 171 * @brief Callback API to get display capabilities 180 * @brief Callback API to set pixel format used by the display [all …]
|
D | syscon.h | 30 * API template to get the base address of the syscon region. 37 * API template to read a single register. 44 * API template to write a single register. 51 * API template to get the size of the syscon register. 58 * @brief System Control (syscon) register driver API 78 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() [all …]
|
D | pinmux.h | 54 * @brief Callback API upon setting a PIN's function 60 * @brief Callback API upon getting a PIN's function 67 * @brief Callback API upon setting a PIN's pullup 74 * @brief Callback API upon setting a PIN's input function 90 const struct pinmux_driver_api *api = in pinmux_pin_set() local 91 (const struct pinmux_driver_api *)dev->api; in pinmux_pin_set() 93 return api->set(dev, pin, func); in pinmux_pin_set() 99 const struct pinmux_driver_api *api = in pinmux_pin_get() local 100 (const struct pinmux_driver_api *)dev->api; in pinmux_pin_get() 102 return api->get(dev, pin, func); in pinmux_pin_get() [all …]
|
D | ps2.h | 9 * @brief Public API for PS/2 devices such as keyboard and mouse. 10 * Callers of this API are responsible for setting the typematic rate 43 * PS2 driver API definition and system call entry points 81 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 [all …]
|
D | led.h | 48 * @brief Callback API for blinking an LED 57 * @brief Optional API callback to get LED information 66 * @brief Callback API for setting brightness of an LED 74 * @brief Optional API callback to set the colors of a LED. 83 * @brief Callback API for turning on an LED 91 * @brief Callback API for turning off an LED 99 * @brief Callback API for writing a strip of LED channels 109 * @brief LED driver API 141 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() [all …]
|
D | uart.h | 351 /** @brief Driver API structure. */ 451 * it can be used to detect if the device supports asynchronous API. Remaining 452 * API does not have that detection. 459 * @retval -ENOTSUP If API not enabled. 467 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() [all …]
|
D | lora.h | 57 * @brief Callback API for configuring the LoRa module 66 * @brief Callback API for sending data over LoRa 75 * @brief Callback API for sending data asynchronously over LoRa 85 * @brief Callback API for receiving data over LoRa 95 * @brief Callback API for transmitting a continuous wave 121 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() [all …]
|
D | kscan.h | 9 * @brief Public API for Keyboard scan matrix devices. 10 * The scope of this API is simply to report which key event was triggered 50 * Keyboard scan driver API definition and system call entry points. 84 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() [all …]
|
D | ptp_clock.h | 43 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 …]
|
/Zephyr-Core-2.7.6/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-Core-2.7.6/tests/subsys/edac/ibecc/src/ |
D | dummy.c | 37 /* Error log API */ in test_edac_dummy_api() 40 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 43 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 46 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 49 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 51 /* Error stat API */ in test_edac_dummy_api() 54 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 57 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() 59 /* Notification API */ in test_edac_dummy_api() 63 zassert_equal(ret, -ENOSYS, "dummy api failed"); in test_edac_dummy_api() [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/device/src/ |
D | abstract_driver.h | 10 /* 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-2.7.6/include/drivers/pcie/endpoint/ |
D | pcie_ep.h | 47 * @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 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() 124 * @details This API maps a host memory buffer to PCIe outbound region, [all …]
|
/Zephyr-Core-2.7.6/samples/tfm_integration/tfm_psa_test/ |
D | README.rst | 52 [Check 1] Call get API for UID 6 which is not set 53 [Check 2] Call get_info API for UID 6 which is not set 54 [Check 3] Call remove API for UID 6 which is not set 55 [Check 4] Call get API for UID 6 which is removed 56 [Check 5] Call get_info API for UID 6 which is removed 57 [Check 6] Call remove API for UID 6 which is removed 59 [Check 7] Call get API for different UID 5 60 [Check 8] Call get_info API for different UID 5 61 [Check 9] Call remove API for different UID 5 64 [Check 1] Call get API for UID 6 which is not set [all …]
|
/Zephyr-Core-2.7.6/include/drivers/virtualization/ |
D | ivshmem.h | 11 * @brief ivshmem reference API 12 * @defgroup ivshmem ivshmem reference API 60 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() [all …]
|
/Zephyr-Core-2.7.6/include/ |
D | irq_nextlevel.h | 57 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/tests/kernel/poll/src/ |
D | test_poll_fail.c | 16 * @brief Test API k_poll with error number events in user mode 18 * @details Using API k_poll with error number 33 * @brief Test API k_poll with error member of events in user mode 35 * @details Using API k_poll with error member 49 * @brief Test API k_poll with NULL sem event in user mode 51 * @details Define a poll event, and using API k_poll with NULL sem 71 * @brief Test API k_poll with NULL signal event in user mode 73 * @details Define a poll, and using API k_poll with NULL signal 93 * @brief Test API k_poll with NULL fifo event in user mode 95 * @details Define a poll, and using API k_poll with NULL fifo [all …]
|
/Zephyr-Core-2.7.6/tests/subsys/pm/device_runtime/src/ |
D | main.c | 24 static struct dummy_driver_api *api; variable 38 ret = api->open(dev); in threadA_func() 45 ret = api->wait(dev); in threadA_func() 55 ret = api->open(dev); in threadA_func() 61 ret = api->wait(dev); in threadA_func() 77 api->close(dev); in threadB_func() 80 ret = api->wait(dev); in threadB_func() 113 api = (struct dummy_driver_api *)dev->api; in test_setup() 135 ret = api->close_sync(dev); in test_teardown() 142 * @brief test device runtime sync API [all …]
|
/Zephyr-Core-2.7.6/doc/reference/peripherals/ |
D | i2c.rst | 25 support the slave mode. Zephyr has API for both roles. 27 .. _i2c-master-api: 29 I2C Master API 32 Zephyr's I2C master API is used when an I2C peripheral controls the bus, 37 This API is supported in all in-tree I2C peripheral drivers and is 40 .. _i2c-slave-api: 42 I2C Slave API 45 Zephyr's I2C slave API is used when an I2C peripheral responds to 50 This API is supported in very few in-tree I2C peripheral drivers. The 51 API is considered experimental, as it is not compatible with the [all …]
|
/Zephyr-Core-2.7.6/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()
|