/Zephyr-latest/dts/bindings/clock/ |
D | silabs,series2-hfrcodpll.yaml | 1 compatible: "silabs,series2-hfrcodpll" 4 Silicon Labs HFRCODPLL peripheral (high-frequency RC oscillator with digital phase-locked loop). 5 Can be used as a free-running RC oscillator or with PLL lock to the crystal oscillators HFXO 7 the `dpll-*` options to desired values. 9 In PLL mode, `clock-frequency` represents the target PLL frequency. 10 In free-running mode, `clock-frequency` represents the HFRCO band to use. 12 include: fixed-clock.yaml 15 dpll-n: 18 dpll-m: 21 dpll-edge: [all …]
|
/Zephyr-latest/dts/bindings/watchdog/ |
D | nxp,s32-swt.yaml | 1 # Copyright 2022-2024 NXP 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,s32-swt" 20 master-access-mask: 26 are chip-specific. 29 reset-on-invalid-access: 34 service-mode: 38 - "fixed" 39 - "keyed" 41 Watchdog service mode: [all …]
|
/Zephyr-latest/lib/os/ |
D | fdtable.c | 5 * SPDX-License-Identifier: Apache-2.0 34 struct k_mutex lock; member 37 uint32_t mode; member 55 .lock = Z_MUTEX_INITIALIZER(fdtable[0].lock), 62 .lock = Z_MUTEX_INITIALIZER(fdtable[1].lock), 69 .lock = Z_MUTEX_INITIALIZER(fdtable[2].lock), 98 } while (!atomic_cas(&fdtable[fd].refcount, old_rc, old_rc - 1)); in z_fd_unref() 101 return old_rc - 1; in z_fd_unref() 121 return -1; in _find_fd_entry() 128 return -1; in _check_fd() [all …]
|
/Zephyr-latest/kernel/ |
D | poll.c | 5 * SPDX-License-Identifier: Apache-2.0 29 /* Single subsystem lock. Locking per-event would be better on highly 31 * subtle (it relies on releasing/reacquiring the lock in areas for 36 static struct k_spinlock lock; variable 44 int mode, void *obj) in k_poll_event_init() argument 46 __ASSERT(mode == K_POLL_MODE_NOTIFY_ONLY, in k_poll_event_init() 47 "only NOTIFY_ONLY mode is supported\n"); in k_poll_event_init() 51 event->poller = NULL; in k_poll_event_init() 52 /* event->tag is left uninitialized: the user will set it if needed */ in k_poll_event_init() 53 event->type = type; in k_poll_event_init() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_rt1718s_port.c | 4 * SPDX-License-Identifier: Apache-2.0 34 /* lock GPIO registers access */ 35 struct k_sem lock; member 41 const struct gpio_rt1718s_port_config *const config = dev->config; in gpio_rt1718s_pin_config() 42 struct gpio_rt1718s_port_data *const data = dev->data; in gpio_rt1718s_pin_config() 46 /* Don't support simultaneous in/out mode */ in gpio_rt1718s_pin_config() 48 return -ENOTSUP; in gpio_rt1718s_pin_config() 51 /* Don't support "open source" mode */ in gpio_rt1718s_pin_config() 53 return -ENOTSUP; in gpio_rt1718s_pin_config() 58 return -EINVAL; in gpio_rt1718s_pin_config() [all …]
|
D | gpio_tle9104.c | 4 * SPDX-License-Identifier: Apache-2.0 36 struct k_mutex lock; member 41 const struct tle9104_gpio_config *config = dev->config; in tle9104_gpio_pin_configure() 42 struct tle9104_gpio_data *data = dev->data; in tle9104_gpio_pin_configure() 47 return -EWOULDBLOCK; in tle9104_gpio_pin_configure() 52 return -EINVAL; in tle9104_gpio_pin_configure() 57 return -ENOTSUP; in tle9104_gpio_pin_configure() 62 return -ENOTSUP; in tle9104_gpio_pin_configure() 67 return -ENOTSUP; in tle9104_gpio_pin_configure() 72 return -ENOTSUP; in tle9104_gpio_pin_configure() [all …]
|
D | gpio_nct38xx_port.c | 4 * SPDX-License-Identifier: Apache-2.0 34 /* lock NCT38xx register access */ 35 struct k_sem *lock; member 43 const struct gpio_nct38xx_port_config *const config = dev->config; in gpio_nct38xx_pin_config() 44 struct gpio_nct38xx_port_data *const data = dev->data; in gpio_nct38xx_pin_config() 49 /* Don't support simultaneous in/out mode */ in gpio_nct38xx_pin_config() 51 return -ENOTSUP; in gpio_nct38xx_pin_config() 54 /* Don't support "open source" mode */ in gpio_nct38xx_pin_config() 56 return -ENOTSUP; in gpio_nct38xx_pin_config() 59 /* Don't support pull-up/pull-down */ in gpio_nct38xx_pin_config() [all …]
|
D | gpio_andes_atcgpio100.c | 4 * SPDX-License-Identifier: Apache-2.0 16 #include <zephyr/dt-bindings/gpio/andestech-atcgpio100.h> 36 #define REG_IMD0 0x54 /* Interrupt mode 0 ~ 7 reg. */ 37 #define REG_IMD1 0x58 /* Interrupt mode 8 ~ 15 reg. */ 38 #define REG_IMD2 0x5C /* Interrupt mode 16 ~ 23 reg. */ 39 #define REG_IMD3 0x60 /* Interrupt mode 24 ~ 31 reg. */ 41 #define REG_DEBE 0x70 /* De-bounce enable reg. */ 42 #define REG_DEBC 0x74 /* De-Bounce control reg. */ 56 ((const struct gpio_atcgpio100_config * const)(dev)->config)->base 72 #define SET_GPIO_INT_MODE(cur_val, mode, ch_idx) \ argument [all …]
|
D | gpio_emul.c | 4 * SPDX-License-Identifier: Apache-2.0 94 struct k_spinlock lock; member 97 /** Singly-linked list of callbacks associated with the controller */ 106 * The caller must ensure that @ref gpio_emul_data.lock is locked. 121 (struct gpio_emul_data *)port->data; in get_pins_with_flags() 123 (const struct gpio_emul_config *)port->config; in get_pins_with_flags() 125 for (i = 0; i < config->num_pins; ++i) { in get_pins_with_flags() 126 if ((drv_data->flags[i] & mask) == flags) { in get_pins_with_flags() 137 * The caller must ensure that @ref gpio_emul_data.lock is locked. 151 * The caller must ensure that @ref gpio_emul_data.lock is locked. [all …]
|
D | gpio_ite_it8xxx2_v2.c | 4 * SPDX-License-Identifier: Apache-2.0 18 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h> 19 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 66 struct k_spinlock lock; member 80 const struct gpio_ite_cfg *gpio_config = dev->config; in gpio_ite_configure() 81 volatile uint8_t *reg_gpdr = (uint8_t *)gpio_config->reg_gpdr; in gpio_ite_configure() 82 volatile uint8_t *reg_gpotr = (uint8_t *)gpio_config->reg_gpotr; in gpio_ite_configure() 83 volatile uint8_t *reg_p18scr = (uint8_t *)gpio_config->reg_p18scr; in gpio_ite_configure() 84 volatile uint8_t *reg_gpcr = (uint8_t *)gpio_config->reg_gpcr + pin; in gpio_ite_configure() 85 struct gpio_ite_data *data = dev->data; in gpio_ite_configure() [all …]
|
D | gpio_grgpio2.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * - iflag determine pending interrupt. 10 * - interrupt map decides interrupt number if implemented. 11 * - logic or/and/xor registers used when possible 33 struct k_spinlock lock; member 45 const struct cfg *cfg = dev->config; in pin_configure() 46 struct data *data = dev->data; in pin_configure() 47 volatile struct grgpio_regs *regs = cfg->regs; in pin_configure() 51 return -ENOTSUP; in pin_configure() 55 return -ENOTSUP; in pin_configure() [all …]
|
/Zephyr-latest/include/zephyr/drivers/flash/ |
D | npcx_flash_api_ex.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * NPCX User Mode Access (UMA) mode execution. 20 * Execute a SPI transaction via User Mode Access (UMA) mode. Users can 27 * NPCX Configure specific operation for Quad-SPI nor flash. 29 * It configures specific operation for Quad-SPI nor flash such as lock 30 * or unlock UMA mode, set write protection pin of internal flash, and 35 * NPCX Get specific operation for Quad-SPI nor flash. 37 * It returns current specific operation for Quad-SPI nor flash. 68 #define NPCX_EX_OP_LOCK_UMA BIT(0) /* Lock/Unlock UMA mode */
|
/Zephyr-latest/dts/bindings/pinctrl/ |
D | nuvoton,npcx-pinctrl.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 - bias-pull-down: Enable pull-down resistor. 11 - bias-pull-up: Enable pull-up resistor. 12 - drive-open-drain: Output driver is open-drain. 15 - pinmux-locked: Lock pinmux configuration for peripheral device 16 - pinmux-gpio: Inverse pinmux back to gpio 17 - psl-in-mode: Select the assertion detection mode of PSL input 18 - psl-in-pol: Select the assertion detection polarity of PSL input 23 #include <nuvoton/npcx/npcx7/npcx7-pinctrl.dtsi> 26 internal 3.3V pull-up if its i2c frequency won't exceed 400kHz. [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | cirrus,cp9314.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 cirrus,initial-switched-capacitor-mode = "2:1"; 17 - name: i2c-device.yaml 18 - name: regulator.yaml 19 property-allowlist: 20 - regulator-boot-on 26 cirrus,en-gpios: 27 type: phandle-array 30 cirrus,pgood-gpios: 31 type: phandle-array [all …]
|
/Zephyr-latest/lib/libc/newlib/ |
D | libc-hooks.c | 4 * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/linker/linker-defs.h> 17 #include <zephyr/sys/libc-hooks.h> 29 int _open(const char *name, int mode); 43 * - HEAP_BASE base address of the heap arena 44 * - MAX_HEAP_SIZE size of the heap arena 59 /* Arena size expressed in Kconfig, due to power-of-two size/align 104 #define MAX_HEAP_SIZE (POINTER_TO_UINT(&_heap_sentry) - \ 107 #define MAX_HEAP_SIZE (KB(CONFIG_SRAM_SIZE) - (HEAP_BASE - \ 242 int _open(const char *name, int mode) in _open() argument [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_renesas_ra.c | 4 * SPDX-License-Identifier: Apache-2.0 41 struct k_spinlock lock; member 52 #define SMR 0x00 /*!< Serial Mode Register */ 58 #define SEMR 0x07 /*!< Serial Extended Mode Register */ 63 * SMR (Serial Mode Register) 65 * - CKS[0..2]: Clock Select 66 * - MP[2..3]: Multi-Processor Mode(Valid only in asynchronous mode) 67 * - STOP[3..4]: Stop Bit Length(Valid only in asynchronous mode) 68 * - PM[4..5]: Parity Mode (Valid only when the PE bit is 1) 69 * - PE[5..6]: Parity Enable(Valid only in asynchronous mode) [all …]
|
D | uart_mchp_xec.c | 2 * Copyright (c) 2010, 2012-2015 Wind River Systems, Inc. 6 * SPDX-License-Identifier: Apache-2.0 93 * RXRDY, Mode 0: When in the 16450 Mode (FCR0 = 0) or in 94 * the FIFO Mode (FCR0 = 1, FCR3 = 0) and there is at least 1 97 * RXRDY pin will go inactive when there are no more charac- 100 * RXRDY, Mode 1: In the FIFO Mode (FCR0 = 1) when the 102 * reached, the RXRDY pin will go low active. Once it is acti- 106 * TXRDY, Mode 0: In the 16450 Mode (FCR0 = 0) or in the 107 * FIFO Mode (FCR0 = 1, FCR3 = 0) and there are no charac- 113 * TXRDY, Mode 1: In the FIFO Mode (FCR0 = 1) when [all …]
|
/Zephyr-latest/drivers/timer/ |
D | ti_dmtimer.c | 6 * SPDX-License-Identifier: Apache-2.0 29 #define MAX_TICKS ((k_ticks_t)(UINT32_MAX / CYC_PER_TICK) - 1) 31 static struct k_spinlock lock; variable 61 k_spinlock_key_t key = k_spin_lock(&lock); in ti_dmtimer_isr() 64 uint32_t delta_cycles = curr_cycle - last_cycle; in ti_dmtimer_isr() 79 k_spin_unlock(&lock, key); in ti_dmtimer_isr() 95 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() 103 k_spin_unlock(&lock, key); in sys_clock_set_timeout() 108 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32() 112 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32() [all …]
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_common.c | 4 * SPDX-License-Identifier: Apache-2.0 19 struct regulator_common_data *data = dev->data; in regulator_common_data_init() 22 (void)k_mutex_init(&data->lock); in regulator_common_data_init() 24 data->refcnt = 0; in regulator_common_data_init() 29 const struct regulator_driver_api *api = dev->api; in regulator_common_init() 30 const struct regulator_common_config *config = dev->config; in regulator_common_init() 31 struct regulator_common_data *data = dev->data; in regulator_common_init() 35 if (config->initial_mode != REGULATOR_INITIAL_MODE_UNKNOWN) { in regulator_common_init() 36 ret = regulator_set_mode(dev, config->initial_mode); in regulator_common_init() 42 if (REGULATOR_ACTIVE_DISCHARGE_GET_BITS(config->flags) != in regulator_common_init() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_dw_timer.c | 4 * SPDX-License-Identifier: Apache-2.0 27 /* free running mode value */ 39 #define DEV_CFG(_dev) ((const struct counter_dw_timer_config *)(_dev)->config) 40 #define DEV_DATA(_dev) ((struct counter_dw_timer_drv_data *const)(_dev)->data) 74 /* spin lock to protect user data */ 75 struct k_spinlock lock; member 90 counter_alarm_callback_t alarm_cb = data->alarm_cb; in counter_dw_timer_irq_handler() 97 key = k_spin_lock(&data->lock); in counter_dw_timer_irq_handler() 102 if (data->alarm_cb) { in counter_dw_timer_irq_handler() 105 data->alarm_cb = NULL; in counter_dw_timer_irq_handler() [all …]
|
/Zephyr-latest/dts/bindings/gnss/ |
D | gnss-pps.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 pps-mode: 9 PPS output mode: 10 - GNSS_PPS_MODE_DISABLED: Output disabled 11 - GNSS_PPS_MODE_ENABLED: Output always enabled 12 - GNSS_PPS_MODE_ENABLED_AFTER_LOCK: Output enabled from first lock 13 - GNSS_PPS_MODE_ENABLED_WHILE_LOCKED: Output enabled only while locked 15 - GNSS_PPS_MODE_DISABLED 16 - GNSS_PPS_MODE_ENABLED 17 - GNSS_PPS_MODE_ENABLED_AFTER_LOCK [all …]
|
/Zephyr-latest/lib/os/zvfs/ |
D | zvfs_eventfd.c | 6 * SPDX-License-Identifier: Apache-2.0 23 struct k_spinlock lock; member 37 return (efd->flags & ZVFS_EFD_IN_USE) != 0; in zvfs_eventfd_is_in_use() 42 return (efd->flags & ZVFS_EFD_SEMAPHORE) != 0; in zvfs_eventfd_is_semaphore() 47 return (efd->flags & ZVFS_EFD_NONBLOCK) == 0; in zvfs_eventfd_is_blocking() 55 if (pfd->events & ZSOCK_POLLIN) { in zvfs_eventfd_poll_prepare() 58 return -1; in zvfs_eventfd_poll_prepare() 61 (*pev)->obj = &efd->read_sig; in zvfs_eventfd_poll_prepare() 62 (*pev)->type = K_POLL_TYPE_SIGNAL; in zvfs_eventfd_poll_prepare() 63 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zvfs_eventfd_poll_prepare() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | irq.h | 4 * SPDX-License-Identifier: Apache-2.0 14 /* Pull in the arch-specific implementations */ 39 * Although this routine is invoked at run-time, all of its arguments must be 46 * @param flags_p Architecture-specific IRQ configuration flags.. 60 * @param flags Arch-specific IRQ configuration flags 85 * @param flags Arch-specific IRQ configuration flags 105 * These ISRs are designed for performance-critical interrupt handling and do 114 * - No parameters are passed to the ISR. 115 * - No stack switch is done, the ISR will run on the interrupted context's 117 * - Interrupt locking state is unchanged from how the HW sets it when the ISR [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_mcan.c | 2 * Copyright (c) 2022-2023 Vestas Wind Systems A/S 5 * SPDX-License-Identifier: Apache-2.0 22 const struct can_mcan_config *config = dev->config; in can_mcan_read_reg() 25 err = config->ops->read_reg(dev, reg, val); in can_mcan_read_reg() 35 const struct can_mcan_config *config = dev->config; in can_mcan_write_reg() 38 err = config->ops->write_reg(dev, reg, val); in can_mcan_write_reg() 48 struct can_mcan_data *data = dev->data; in can_mcan_exit_sleep_mode() 53 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_exit_sleep_mode() 75 if (k_cycle_get_32() - start_time > k_ms_to_cyc_ceil32(CAN_INIT_TIMEOUT_MS)) { in can_mcan_exit_sleep_mode() 82 err = -EAGAIN; in can_mcan_exit_sleep_mode() [all …]
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.h | 5 * SPDX-License-Identifier: Apache-2.0 46 * Passive mode differs a bit between firmware versions and the macro 48 * passive mode. For AT version 1.7 passive mode only affects TCP but in AT 110 #define ESP_CMD_CWMODE(mode) "AT+"_CWMODE"="STRINGIFY(_CONCAT(ESP_MODE_, mode)) argument 112 #define ESP_CMD_CWMODE(mode) "AT+"_CWMODE"="STRINGIFY(_CONCAT(ESP_MODE_, mode))",0" 123 #define _ESP_CMD_DHCP_ENABLE(mode, enable) \ argument 124 "AT+CWDHCP_CUR=" mode "," STRINGIFY(enable) 126 #define _ESP_CMD_DHCP_ENABLE(mode, enable) \ 127 "AT+CWDHCP=" STRINGIFY(enable) "," mode 130 #define ESP_CMD_DHCP_ENABLE(mode, enable) \ argument [all …]
|