/Zephyr-latest/drivers/spi/ |
D | spi_andes_atcspi200.h | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/logging/log.h> 11 #include <zephyr/device.h> 12 #include <zephyr/drivers/spi.h> 13 #include <zephyr/drivers/spi/rtio.h> 16 #include <zephyr/drivers/dma.h> 30 #define SPI_TFMAT(base) (base + REG_TFMAT) argument 31 #define SPI_TCTRL(base) (base + REG_TCTRL) argument 32 #define SPI_CMD(base) (base + REG_CMD) argument 33 #define SPI_DATA(base) (base + REG_DATA) argument [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_iproc.c | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/arch/common/sys_bitops.h> 11 #include <zephyr/device.h> 12 #include <zephyr/drivers/gpio.h> 13 #include <zephyr/drivers/gpio/gpio_utils.h> 14 #include <zephyr/irq.h> 15 #include <zephyr/kernel.h> 33 mem_addr_t base; member 43 #define DEV_CFG(dev) ((const struct gpio_iproc_config *const)(dev)->config) 44 #define DEV_DATA(dev) ((struct gpio_iproc_data *const)(dev)->data) [all …]
|
D | gpio_stellaris.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/arch/cpu.h> 11 #include <zephyr/device.h> 12 #include <zephyr/drivers/gpio.h> 13 #include <zephyr/irq.h> 15 #include <zephyr/sys/sys_io.h> 16 #include <zephyr/drivers/gpio/gpio_utils.h> 23 uint32_t base; member 34 #define GPIO_REG_ADDR(base, offset) (base + offset) argument 36 #define GPIO_RW_ADDR(base, offset, p) \ argument [all …]
|
D | gpio_brcmstb.c | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/arch/common/sys_bitops.h> 10 #include <zephyr/arch/cpu.h> 11 #include <zephyr/device.h> 12 #include <zephyr/drivers/gpio.h> 13 #include <zephyr/drivers/gpio/gpio_utils.h> 18 #define DEV_CFG(dev) ((const struct gpio_brcmstb_config *)(dev)->config) 19 #define DEV_DATA(dev) ((struct gpio_brcmstb_data *)(dev)->data) 32 mem_addr_t base; member 37 struct gpio_brcmstb_data *data = port->data; in gpio_brcmstb_pin_configure() [all …]
|
D | gpio_imx.c | 2 * Copyright (c) 2018-2019, NXP 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/device.h> 11 #include <zephyr/drivers/gpio.h> 12 #include <zephyr/irq.h> 14 #include <zephyr/sys/util.h> 17 #include <zephyr/drivers/pinctrl.h> 19 #include <zephyr/drivers/gpio/gpio_utils.h> 24 GPIO_Type *base; member 39 const struct imx_gpio_config *config = port->config; in imx_gpio_configure() [all …]
|
/Zephyr-latest/drivers/mdio/ |
D | mdio_nxp_enet_qos.c | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/net/mdio.h> 10 #include <zephyr/drivers/mdio.h> 11 #include <zephyr/kernel.h> 12 #include <zephyr/drivers/pinctrl.h> 13 #include <zephyr/drivers/ethernet/eth_nxp_enet_qos.h> 14 #include <zephyr/sys/util.h> 16 #include <zephyr/logging/log.h> 35 enet_qos_t *base; member 39 static bool check_busy(enet_qos_t *base) in check_busy() argument [all …]
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_nxp_vref.c | 2 * Copyright 2023-2024 NXP 3 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/regulator.h> 11 #include <zephyr/dt-bindings/regulator/nxp_vref.h> 12 #include <zephyr/kernel.h> 13 #include <zephyr/sys/linear_range.h> 14 #include <zephyr/sys/util.h> 26 VREF_Type *base; member 34 const struct regulator_nxp_vref_config *config = dev->config; in regulator_nxp_vref_enable() 35 VREF_Type *const base = config->base; in regulator_nxp_vref_enable() local [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_dw_common.c | 1 /* SPDX-License-Identifier: Apache-2.0 */ 8 #include <zephyr/drivers/watchdog.h> 9 #include <zephyr/logging/log.h> 10 #include <zephyr/sys_clock.h> 11 #include <zephyr/math/ilog2.h> 33 int dw_wdt_configure(const uint32_t base, const uint32_t config) in dw_wdt_configure() argument 39 return -ENOTSUP; in dw_wdt_configure() 45 if (dw_wdt_dual_timeout_period_get(base)) { in dw_wdt_configure() 46 dw_wdt_timeout_period_init_set(base, period); in dw_wdt_configure() 49 dw_wdt_timeout_period_set(base, period); in dw_wdt_configure() [all …]
|
D | wdt_mcux_imx_wdog.c | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/drivers/pinctrl.h> 10 #include <zephyr/drivers/watchdog.h> 11 #include <zephyr/sys_clock.h> 15 #include <zephyr/logging/log.h> 16 #include <zephyr/irq.h> 19 #define WDOG_TMOUT_SEC(x) (((x * 2) / MSEC_PER_SEC) - 1) 22 WDOG_Type *base; member 35 const struct mcux_wdog_config *config = dev->config; in mcux_wdog_setup() 36 struct mcux_wdog_data *data = dev->data; in mcux_wdog_setup() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_imx_epit.c | 2 * Copyright (c) 2018-2019 NXP 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/counter.h> 9 #include <zephyr/device.h> 10 #include <zephyr/irq.h> 18 EPIT_Type *base; member 29 return CONTAINER_OF(dev->config, struct imx_epit_config, in get_epit_config() 35 EPIT_Type *base = get_epit_config(dev)->base; in imx_epit_isr() local 36 struct imx_epit_data *driver_data = dev->data; in imx_epit_isr() 38 EPIT_ClearStatusFlag(base); in imx_epit_isr() [all …]
|
D | counter_nxp_mrt.c | 4 * SPDX-License-Identifier: Apache-2.0 11 * initialization, interrupt handling, and any other module-wide tasks. The current implementation 18 #include <zephyr/drivers/counter.h> 19 #include <zephyr/sys/util.h> 20 #include <zephyr/drivers/clock_control.h> 21 #include <zephyr/devicetree.h> 22 #include <zephyr/device.h> 23 #include <zephyr/irq.h> 24 #include <zephyr/drivers/reset.h> 29 #include <zephyr/logging/log.h> [all …]
|
D | counter_mcux_tpm.c | 2 * Copyright 2023-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/drivers/counter.h> 10 #include <zephyr/drivers/clock_control.h> 11 #include <zephyr/irq.h> 12 #include <zephyr/logging/log.h> 18 #define DEV_CFG(_dev) ((const struct mcux_tpm_config *)(_dev)->config) 19 #define DEV_DATA(_dev) ((struct mcux_tpm_data *)(_dev)->data) 49 const struct mcux_tpm_config *config = dev->config; in mcux_tpm_start() 50 TPM_Type *base = get_base(dev); in mcux_tpm_start() local [all …]
|
D | counter_mcux_gpt.c | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/counter.h> 11 #include <zephyr/drivers/clock_control.h> 12 #include <zephyr/irq.h> 14 #include <zephyr/logging/log.h> 15 #include <zephyr/sys/barrier.h> 19 #define DEV_CFG(_dev) ((const struct mcux_gpt_config *)(_dev)->config) 20 #define DEV_DATA(_dev) ((struct mcux_gpt_data *)(_dev)->data) 48 GPT_Type *base = get_base(dev); in mcux_gpt_start() local 50 GPT_StartTimer(base); in mcux_gpt_start() [all …]
|
D | counter_mcux_rtc.c | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/counter.h> 11 #include <zephyr/irq.h> 12 #include <zephyr/kernel.h> 13 #include <zephyr/sys_clock.h> 15 #include <zephyr/logging/log.h> 28 RTC_Type *base; member 34 const struct counter_config_info *info = dev->config; in mcux_rtc_start() 38 RTC_StartTimer(config->base); in mcux_rtc_start() 39 RTC_EnableInterrupts(config->base, in mcux_rtc_start() [all …]
|
/Zephyr-latest/subsys/net/lib/prometheus/ |
D | collector.c | 5 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/net/prometheus/collector.h> 10 #include <zephyr/net/prometheus/metric.h> 11 #include <zephyr/net/prometheus/histogram.h> 12 #include <zephyr/net/prometheus/summary.h> 13 #include <zephyr/net/prometheus/counter.h> 14 #include <zephyr/net/prometheus/gauge.h> 15 #include <zephyr/net/prometheus/formatter.h> 20 #include <zephyr/kernel.h> 21 #include <zephyr/sys/iterable_sections.h> [all …]
|
/Zephyr-latest/drivers/memc/ |
D | memc_nxp_flexram.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/dt-bindings/memory-controller/nxp,flexram.h> 9 #include <zephyr/devicetree.h> 10 #include <zephyr/init.h> 11 #include <zephyr/sys/util.h> 13 #include <zephyr/irq.h> 89 static FLEXRAM_Type *const base = (FLEXRAM_Type *) DT_REG_ADDR(FLEXRAM_DT_NODE); 110 if (base->INT_STATUS & FLEXRAM_INT_STATUS_OCRAM_ERR_STATUS_MASK) { in nxp_flexram_isr() 111 base->INT_STATUS |= FLEXRAM_INT_STATUS_OCRAM_ERR_STATUS_MASK; in nxp_flexram_isr() 114 if (base->INT_STATUS & FLEXRAM_INT_STATUS_DTCM_ERR_STATUS_MASK) { in nxp_flexram_isr() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_cc32xx.c | 2 * Copyright (c) 2016-2017, Texas Instruments Incorporated 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/kernel.h> 10 #include <zephyr/arch/cpu.h> 11 #include <zephyr/drivers/uart.h> 12 #include <zephyr/drivers/pinctrl.h> 20 #include <zephyr/irq.h> 23 unsigned long base; member 49 * However, the Zephyr console driver, and the Zephyr uart sample test, assume 56 const struct uart_cc32xx_dev_config *config = dev->config; in uart_cc32xx_init() [all …]
|
D | uart_opentitan.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/kernel.h> 8 #include <zephyr/arch/cpu.h> 9 #include <zephyr/drivers/uart.h> 10 #include <zephyr/irq.h> 39 mem_addr_t base; member 45 const struct uart_opentitan_config *cfg = dev->config; in uart_opentitan_init() 48 sys_write32(0u, cfg->base + UART_CTRL_REG_OFFSET); in uart_opentitan_init() 52 cfg->base + UART_FIFO_CTRL_REG_OFFSET); in uart_opentitan_init() 55 sys_write32(0u, cfg->base + UART_OVRD_REG_OFFSET); in uart_opentitan_init() [all …]
|
D | uart_rzt2m.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include "zephyr/spinlock.h" 9 #include "zephyr/sys/printk.h" 10 #include <zephyr/drivers/uart.h> 11 #include <zephyr/drivers/pinctrl.h> 12 #include <zephyr/sys/util.h> 13 #include <zephyr/irq.h> 15 #include <zephyr/logging/log.h> 23 mm_reg_t base; member 39 if (!dev || !dev->config || !dev->data) { in rzt2m_poll_in() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_cc13xx_cc26xx.c | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/kernel.h> 10 #include <zephyr/drivers/i2c.h> 11 #include <zephyr/drivers/pinctrl.h> 12 #include <zephyr/pm/device.h> 13 #include <zephyr/pm/policy.h> 16 #include <zephyr/logging/log.h> 24 #include <zephyr/irq.h> 26 #include "i2c-priv.h" 39 uint32_t base; member [all …]
|
/Zephyr-latest/drivers/pcie/host/ |
D | msi.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/kernel.h> 8 #include <zephyr/drivers/pcie/msi.h> 9 #include <zephyr/drivers/pcie/cap.h> 15 uint32_t base; in pcie_msi_base() local 21 base = pcie_get_cap(bdf, PCI_CAP_ID_MSI); in pcie_msi_base() 28 base = base_msix; in pcie_msi_base() 36 return base; in pcie_msi_base() 41 #include <zephyr/kernel/mm.h> 71 uint32_t base) in get_msix_table_size() argument [all …]
|
D | ptm.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/logging/log.h> 13 #include <zephyr/kernel.h> 16 #include <zephyr/device.h> 17 #include <zephyr/init.h> 21 #include <zephyr/drivers/pcie/pcie.h> 24 static int pcie_ptm_root_setup(const struct device *dev, uint32_t base) in pcie_ptm_root_setup() argument 26 const struct pcie_ptm_root_config *config = dev->config; in pcie_ptm_root_setup() 30 cap.raw = pcie_conf_read(config->pcie->bdf, base + PTM_CAP_REG_OFFSET); in pcie_ptm_root_setup() 32 LOG_ERR("PTM root not supported on 0x%x", config->pcie->bdf); in pcie_ptm_root_setup() [all …]
|
/Zephyr-latest/share/zephyr-package/cmake/ |
D | ZephyrConfig.cmake | 1 # SPDX-License-Identifier: Apache-2.0 3 # This file provides Zephyr Config Package functionality. 6 # - Use ZEPHYR_BASE environment setting for explicitly set select a zephyr installation 7 # - Support automatic Zephyr installation lookup through the use of find_package(ZEPHYR) 9 # First check to see if user has provided a Zephyr base manually. 10 # Set Zephyr base to environment setting. 13 # Internal Zephyr CMake package message macro. 15 # This macro is only intended to be used within the Zephyr CMake package. 29 set(Zephyr_DIR ${ZEPHYR_BASE}/share/zephyr-package/cmake CACHE PATH 30 "The directory containing a CMake configuration file for Zephyr." FORCE [all …]
|
/Zephyr-latest/kernel/ |
D | priority_queues.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/kernel.h> 9 #include <zephyr/sys/math_extras.h> 10 #include <zephyr/sys/dlist.h> 17 thread_a = CONTAINER_OF(a, struct k_thread, base.qnode_rb); in z_priq_rb_lessthan() 18 thread_b = CONTAINER_OF(b, struct k_thread, base.qnode_rb); in z_priq_rb_lessthan() 27 return thread_a->base.order_key < thread_b->base.order_key in z_priq_rb_lessthan()
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_imx.c | 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/device.h> 13 #include <zephyr/drivers/ipm.h> 14 #include <zephyr/irq.h> 15 #include <zephyr/sys/barrier.h> 24 #define MU(config) ((MU_Type *)config->base) 33 MU_Type *base; member 48 * @param base Register base address for the module. 53 static inline bool MU_IsRxFull(MU_Type *base, uint32_t index) in MU_IsRxFull() argument 57 return (bool)(MU_GetStatusFlags(base) & kMU_Rx0FullFlag); in MU_IsRxFull() [all …]
|