/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/lib/os/ |
D | fdtable.c | 4 * SPDX-License-Identifier: Apache-2.0 32 struct k_mutex lock; member 35 uint32_t mode; member 53 .lock = Z_MUTEX_INITIALIZER(fdtable[0].lock), 60 .lock = Z_MUTEX_INITIALIZER(fdtable[1].lock), 67 .lock = Z_MUTEX_INITIALIZER(fdtable[2].lock), 96 } while (!atomic_cas(&fdtable[fd].refcount, old_rc, old_rc - 1)); in z_fd_unref() 99 return old_rc - 1; in z_fd_unref() 119 return -1; in _find_fd_entry() 126 return -1; in _check_fd() [all …]
|
/Zephyr-Core-3.7.0/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_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 …]
|
D | gpio_tle9104.c | 4 * SPDX-License-Identifier: Apache-2.0 34 struct k_mutex lock; member 39 const struct tle9104_gpio_config *config = dev->config; in tle9104_gpio_pin_configure() 40 struct tle9104_gpio_data *data = dev->data; in tle9104_gpio_pin_configure() 45 return -EWOULDBLOCK; in tle9104_gpio_pin_configure() 50 return -EINVAL; in tle9104_gpio_pin_configure() 55 return -ENOTSUP; in tle9104_gpio_pin_configure() 60 return -ENOTSUP; in tle9104_gpio_pin_configure() 65 return -ENOTSUP; in tle9104_gpio_pin_configure() 70 return -ENOTSUP; in tle9104_gpio_pin_configure() [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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 60 k_spinlock_key_t key = k_spin_lock(&lock); in ti_dmtimer_isr() 63 uint32_t delta_cycles = curr_cycle - last_cycle; in ti_dmtimer_isr() 78 k_spin_unlock(&lock, key); in ti_dmtimer_isr() 94 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() 102 k_spin_unlock(&lock, key); in sys_clock_set_timeout() 107 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32() 111 k_spin_unlock(&lock, key); in sys_clock_cycle_get_32() [all …]
|
/Zephyr-Core-3.7.0/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); 41 * - HEAP_BASE base address of the heap arena 42 * - MAX_HEAP_SIZE size of the heap arena 57 /* Arena size expressed in Kconfig, due to power-of-two size/align 102 #define MAX_HEAP_SIZE (POINTER_TO_UINT(&_heap_sentry) - \ 105 #define MAX_HEAP_SIZE (KB(CONFIG_SRAM_SIZE) - (HEAP_BASE - \ 239 int _open(const char *name, int mode) in _open() argument [all …]
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_renesas_ra.c | 4 * SPDX-License-Identifier: Apache-2.0 40 struct k_spinlock lock; member 51 #define SMR 0x00 /*!< Serial Mode Register */ 57 #define SEMR 0x07 /*!< Serial Extended Mode Register */ 62 * SMR (Serial Mode Register) 64 * - CKS[0..2]: Clock Select 65 * - MP[2..3]: Multi-Processor Mode(Valid only in asynchronous mode) 66 * - STOP[3..4]: Stop Bit Length(Valid only in asynchronous mode) 67 * - PM[4..5]: Parity Mode (Valid only when the PE bit is 1) 68 * - 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-Core-3.7.0/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-Core-3.7.0/drivers/mipi_dbi/ |
D | mipi_dbi_spi.c | 4 * SPDX-License-Identifier: Apache-2.0 26 struct k_mutex lock; member 27 /* Used for 3 wire mode */ 31 /* Expands to 1 if the node does not have the `write-only` property */ 34 /* This macro will evaluate to 1 if any of the nodes with zephyr,mipi-dbi-spi 35 * lack a `write-only` property. The intention here is to allow the entire 41 /* In Type C mode 1 MIPI BIT communication, the 9th bit of the word 53 const struct mipi_dbi_spi_config *config = dev->config; in mipi_dbi_spi_write_helper() 54 struct mipi_dbi_spi_data *data = dev->data; in mipi_dbi_spi_write_helper() 62 ret = k_mutex_lock(&data->lock, K_FOREVER); in mipi_dbi_spi_write_helper() [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/include/zephyr/sys/ |
D | fdtable.h | 4 * SPDX-License-Identifier: Apache-2.0 16 /* File mode bits */ 59 * @return Allocated file descriptor, or -1 in case of error (errno is set) 72 * Values permitted for @a mode are one of `ZVFS_MODE_..`. 77 * @param mode File type as specified above. 79 void zvfs_finalize_typed_fd(int fd, void *obj, const struct fd_op_vtable *vtable, uint32_t mode); 105 * @return Allocated file descriptor, or -1 in case of error (errno is set) 142 * @param lock An optional pointer to a pointer variable to store the mutex 143 * preventing concurrent descriptor access. The lock is not taken, 145 * if the lock is not needed by the caller. [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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 …]
|