Home
last modified time | relevance | path

Searched +full:device +full:- +full:id (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/Zephyr-latest/subsys/bluetooth/services/
DKconfig.dis1 # GATT Device Information service
4 # SPDX-License-Identifier: Apache-2.0
7 bool "GATT Device Information service"
12 bool "Settings usage in Device Information Service"
15 Enable Settings usage in Device Information Service.
30 The device model inside Device Information Service.
36 The device manufacturer inside Device Information Service.
42 Enable PnP_ID characteristic in Device Information Service.
47 int "Vendor ID source"
51 The Vendor ID Source field designates which organization assigned the
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dhwspinlock.h4 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/device.h>
32 typedef int (*hwspinlock_api_trylock)(const struct device *dev, uint32_t id);
38 typedef void (*hwspinlock_api_lock)(const struct device *dev, uint32_t id);
44 typedef void (*hwspinlock_api_unlock)(const struct device *dev, uint32_t id);
47 * @brief Callback API to get HW spinlock max ID
50 typedef uint32_t (*hwspinlock_api_get_max_id)(const struct device *dev);
68 * @param dev HW spinlock device instance.
69 * @param id Spinlock identifier.
72 * @retval -errno In case of any failure.
[all …]
Dreset.h2 * Copyright (c) 2022 Andrei-Edward Popa <andrei.popa105@yahoo.com>
4 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/device.h>
33 /** Reset controller device configuration. */
35 /** Reset controller device. */
36 const struct device *dev;
38 uint32_t id; member
59 * // .id = 10
65 * controller reset line id as shown above.
74 .id = DT_RESET_ID_BY_IDX(node_id, idx) \
[all …]
Drtc.h5 * SPDX-License-Identifier: Apache-2.0
26 #include <zephyr/device.h>
53 * @brief Structure for storing date and time values with sub-second precision.
55 * @details The structure is 1-1 mapped to the struct tm for the members
67 int tm_year; /**< Year - 1900 */
68 int tm_wday; /**< Day of the week [0, 6] (Sunday = 0) (Unknown = -1) */
69 int tm_yday; /**< Day of the year [0, 365] (Unknown = -1) */
70 int tm_isdst; /**< Daylight saving time flag [-1] (Unknown = -1) */
78 * @param dev Device instance invoking the handler
81 typedef void (*rtc_update_callback)(const struct device *dev, void *user_data);
[all …]
/Zephyr-latest/drivers/hwinfo/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
14 module-str = HWINFO
42 Always return factory pre-programmed values, stored in FCFG and ignore
46 prompt "Select MAC address type for device ID"
49 Specify the MAC address type to be used as device ID by the driver.
54 Use 8-bytes length IEEE 802.15.4 extended address as device ID value.
59 Use 6-bytes length BLE MAC address as device ID value.
74 bool "NRF device ID"
91 bool "NXP kinetis SIM device ID"
115 bool "NXP LPC device ID"
[all …]
/Zephyr-latest/drivers/reset/
Dreset_lpc_syscon.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
15 #define LPC_RESET_OFFSET(id) (id >> 16) argument
16 #define LPC_RESET_BIT(id) (BIT(id & 0xFFFF)) argument
18 static int reset_nxp_syscon_status(const struct device *dev, uint32_t id, uint8_t *status) in reset_nxp_syscon_status() argument
20 const volatile uint32_t *ctrl_reg = ((uint32_t *)dev->config)+(LPC_RESET_OFFSET(id)); in reset_nxp_syscon_status()
21 *status = (uint8_t)FIELD_GET((uint32_t)LPC_RESET_BIT(id), *ctrl_reg); in reset_nxp_syscon_status()
26 static int reset_nxp_syscon_line_assert(const struct device *dev, uint32_t id) in reset_nxp_syscon_line_assert() argument
28 SYSCON->PRESETCTRLSET[LPC_RESET_OFFSET(id)] = FIELD_PREP(LPC_RESET_BIT(id), 0b1); in reset_nxp_syscon_line_assert()
33 static int reset_nxp_syscon_line_deassert(const struct device *dev, uint32_t id) in reset_nxp_syscon_line_deassert() argument
[all …]
Dreset_gd32.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/device.h>
14 /** RCU offset (from id field) */
15 #define GD32_RESET_ID_OFFSET(id) (((id) >> 6U) & 0xFFU) argument
16 /** RCU configuration bit (from id field) */
17 #define GD32_RESET_ID_BIT(id) ((id) & 0x1FU) argument
23 static int reset_gd32_status(const struct device *dev, uint32_t id, in reset_gd32_status() argument
26 const struct reset_gd32_config *config = dev->config; in reset_gd32_status()
28 *status = !!sys_test_bit(config->base + GD32_RESET_ID_OFFSET(id), in reset_gd32_status()
29 GD32_RESET_ID_BIT(id)); in reset_gd32_status()
[all …]
Dreset_stm32.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/device.h>
14 #define STM32_RESET_CLR_OFFSET(id) (((id) >> 17U) & 0xFFFU) argument
15 #define STM32_RESET_SET_OFFSET(id) (((id) >> 5U) & 0xFFFU) argument
16 #define STM32_RESET_REG_BIT(id) ((id)&0x1FU) argument
22 static int reset_stm32_status(const struct device *dev, uint32_t id, in reset_stm32_status() argument
25 const struct reset_stm32_config *config = dev->config; in reset_stm32_status()
27 *status = !!sys_test_bit(config->base + STM32_RESET_SET_OFFSET(id), in reset_stm32_status()
28 STM32_RESET_REG_BIT(id)); in reset_stm32_status()
33 static int reset_stm32_line_assert(const struct device *dev, uint32_t id) in reset_stm32_line_assert() argument
[all …]
Dreset_ast10x0.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/reset/ast10x0_reset.h>
17 * - Each bit in these registers controls a reset line
18 * - Write '1' to a bit: assert the corresponding reset line
19 * - Write '0' to a bit: no effect
21 * - Write '1' to a bit: clear the corresponding bit in RESET_CTRL0/1_ASSERT.
30 const struct device *syscon;
33 static int aspeed_reset_line_assert(const struct device *dev, uint32_t id) in aspeed_reset_line_assert() argument
35 const struct reset_aspeed_config *config = dev->config; in aspeed_reset_line_assert()
36 const struct device *syscon = config->syscon; in aspeed_reset_line_assert()
[all …]
Dreset_nxp_rstctl.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
15 #define NXP_RSTCTL_OFFSET(id) ((id >> 16) * sizeof(uint32_t)) argument
16 #define NXP_RSTCTL_BIT(id) (BIT(id & 0xFFFF)) argument
17 #define NXP_RSTCTL_CTL(id) (NXP_RSTCTL_OFFSET(id) + 0x10) argument
18 #define NXP_RSTCTL_SET(id) (NXP_RSTCTL_OFFSET(id) + 0x40) argument
19 #define NXP_RSTCTL_CLR(id) (NXP_RSTCTL_OFFSET(id) + 0x70) argument
21 static int reset_nxp_rstctl_status(const struct device *dev, uint32_t id, uint8_t *status) in reset_nxp_rstctl_status() argument
23 const uint32_t *base = dev->config; in reset_nxp_rstctl_status()
24 volatile const uint32_t *ctl_reg = base+(NXP_RSTCTL_CTL(id)/sizeof(uint32_t)); in reset_nxp_rstctl_status()
[all …]
Dreset_numaker.c2 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/device.h>
16 #define NUMAKER_RESET_IP_OFFSET(id) (NUMAKER_RESET_IPRST0_OFFSET + (((id) >> 24UL) & 0xffUL)) argument
18 #define NUMAKER_RESET_IP_BIT(id) (id & 0x00ffffffUL) argument
24 static int reset_numaker_status(const struct device *dev, uint32_t id, uint8_t *status) in reset_numaker_status() argument
26 const struct reset_numaker_config *config = dev->config; in reset_numaker_status()
28 *status = !!sys_test_bit(config->base + NUMAKER_RESET_IP_OFFSET(id), in reset_numaker_status()
29 NUMAKER_RESET_IP_BIT(id)); in reset_numaker_status()
34 static int reset_numaker_line_assert(const struct device *dev, uint32_t id) in reset_numaker_line_assert() argument
36 const struct reset_numaker_config *config = dev->config; in reset_numaker_line_assert()
[all …]
Dreset_intel_socfpga.c2 * Copyright (c) 2022-2023, Intel Corporation.
4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
26 static int32_t reset_intel_soc_status(const struct device *dev, uint32_t id, uint8_t *status) in reset_intel_soc_status() argument
28 const struct reset_intel_config *config = (const struct reset_intel_config *)dev->config; in reset_intel_soc_status()
34 regbit = (id & ((RESET_REG_WIDTH << (RESET_REG_WIDTH - 1)) - 1)); in reset_intel_soc_status()
35 offset = (id >> (RESET_REG_WIDTH + 1)) << (RESET_REG_WIDTH >> 1); in reset_intel_soc_status()
37 *status = !(value & BIT(regbit)) ^ config->active_low; in reset_intel_soc_status()
41 static void reset_intel_soc_update(const struct device *dev, uint32_t id, bool assert) in reset_intel_soc_update() argument
43 const struct reset_intel_config *config = (const struct reset_intel_config *)dev->config; in reset_intel_soc_update()
[all …]
Dreset_rpi_pico.c2 * Copyright (c) 2022 Andrei-Edward Popa
4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/device.h>
22 static int reset_rpi_read_register(const struct device *dev, uint16_t offset, uint32_t *value) in reset_rpi_read_register()
24 const struct reset_rpi_config *config = dev->config; in reset_rpi_read_register()
25 uint32_t base_address = config->base_address; in reset_rpi_read_register()
27 switch (config->reg_width) { in reset_rpi_read_register()
38 return -EINVAL; in reset_rpi_read_register()
44 static int reset_rpi_write_register(const struct device *dev, uint16_t offset, uint32_t value) in reset_rpi_write_register()
46 const struct reset_rpi_config *config = dev->config; in reset_rpi_write_register()
[all …]
/Zephyr-latest/dts/bindings/i3c/
Di3c-device.yaml2 # SPDX-License-Identifier: Apache-2.0
8 on-bus: i3c
17 of Provisioned ID, and the second half of the Provisioned ID.
18 1. The static address can be assigned to be the target device's
22 2. First half of the Provisioned ID contains the manufacturer
23 ID left-shifted by 1, where the manufacturer ID is
24 the bits 33-47 (zero-based) of the 48-bit Provisioned ID.
25 3. Second half of the Provisioned ID contains the combination of
26 the part ID (bits 16-31 of the Provisioned ID) left-shifted
27 by 16, and the instance ID (bits 12-15 of the Provisioned ID)
[all …]
/Zephyr-latest/dts/bindings/acpi/
Dacpi.yaml2 # SPDX-License-Identifier: Apache-2.0
7 acpi-hid:
9 description: Used to supply OSPM with the device’s PNP ID or ACPI ID.
13 acpi-uid:
16 Provides OSPM with a logical device ID that does not change
17 across reboots. This object is optional, but is required when the device
18 has no other way to report a persistent unique device ID. The _UID must be
21 acpi-comp-id:
22 type: string-array
23 description: Used to supply OSPM with a device’s Plug and Play-Compatible Device ID
/Zephyr-latest/drivers/dma/
Ddma_stm32_bdma.h4 * SPDX-License-Identifier: Apache-2.0
40 void (*config_irq)(const struct device *dev);
50 uint32_t bdma_stm32_id_to_channel(uint32_t id);
52 uint32_t bdma_stm32_slot_to_channel(uint32_t id);
58 bool bdma_stm32_is_gi_active(BDMA_TypeDef *DMAx, uint32_t id);
59 void bdma_stm32_clear_gi(BDMA_TypeDef *DMAx, uint32_t id);
61 void bdma_stm32_clear_tc(BDMA_TypeDef *DMAx, uint32_t id);
62 void bdma_stm32_clear_ht(BDMA_TypeDef *DMAx, uint32_t id);
63 bool bdma_stm32_is_te_active(BDMA_TypeDef *DMAx, uint32_t id);
64 void bdma_stm32_clear_te(BDMA_TypeDef *DMAx, uint32_t id);
[all …]
Ddma_stm32.h4 * SPDX-License-Identifier: Apache-2.0
39 void (*config_irq)(const struct device *dev);
49 uint32_t dma_stm32_id_to_stream(uint32_t id);
51 uint32_t dma_stm32_slot_to_channel(uint32_t id);
63 bool dma_stm32_is_tc_active(DMA_TypeDef *DMAx, uint32_t id);
64 void dma_stm32_clear_tc(DMA_TypeDef *DMAx, uint32_t id);
65 bool dma_stm32_is_ht_active(DMA_TypeDef *DMAx, uint32_t id);
66 void dma_stm32_clear_ht(DMA_TypeDef *DMAx, uint32_t id);
67 bool dma_stm32_is_te_active(DMA_TypeDef *DMAx, uint32_t id);
68 void dma_stm32_clear_te(DMA_TypeDef *DMAx, uint32_t id);
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_nrfx_twis.c4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/pm/device.h>
19 #define SHIM_NRF_TWIS_NODE(id) \ argument
20 DT_NODELABEL(_CONCAT(i2c, id))
22 #define SHIM_NRF_TWIS_DEVICE_GET(id) \ argument
23 DEVICE_DT_GET(SHIM_NRF_TWIS_NODE(id))
25 #define SHIM_NRF_TWIS_IRQ_HANDLER(id) \ argument
26 _CONCAT_3(nrfx_twis_, id, _irq_handler)
28 #define SHIM_NRF_TWIS_IRQN(id) \ argument
29 DT_IRQN(SHIM_NRF_TWIS_NODE(id))
[all …]
/Zephyr-latest/drivers/mbox/
Dmbox_nrf_vevif_event_rx.c3 * SPDX-License-Identifier: Apache-2.0
24 mbox_callback_t cb[EVENTS_IDX_MAX - EVENTS_IDX_MIN + 1U];
25 void *user_data[EVENTS_IDX_MAX - EVENTS_IDX_MIN + 1U];
36 static void trigger_callback(const struct device *dev, struct mbox_vevif_event_rx_cbs *cbs, in trigger_callback()
37 uint8_t id) in trigger_callback() argument
39 uint8_t idx = id - EVENTS_IDX_MIN; in trigger_callback()
41 if ((cbs->enabled_mask & BIT(id)) && (cbs->cb[idx] != NULL)) { in trigger_callback()
42 cbs->cb[idx](dev, id, cbs->user_data[idx], NULL); in trigger_callback()
46 static void vevif_event_rx_isr(const void *device) in vevif_event_rx_isr() argument
48 const struct device *dev = (struct device *)device; in vevif_event_rx_isr()
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_mcux_lpc_rtc.c2 * Copyright 2021-23, NXP
4 * SPDX-License-Identifier: Apache-2.0
26 const struct device *rtc_dev;
27 void (*irq_config_func)(const struct device *dev);
28 /* Device defined as wake-up source */
33 static int mcux_lpc_rtc_highres_start(const struct device *dev);
36 static void mcux_lpc_rtc_isr(const struct device *dev) in mcux_lpc_rtc_isr()
38 const struct counter_config_info *info = dev->config; in mcux_lpc_rtc_isr()
41 struct mcux_lpc_rtc_data *data = dev->data; in mcux_lpc_rtc_isr()
43 uint32_t current = RTC_GetSecondsTimerCount(config->base); in mcux_lpc_rtc_isr()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/priv_beacon/
Dpriv_proxy_net_id.sh3 # SPDX-License-Identifier: Apache-2.0
7 # Test Private Net ID advertisment
10 # 0. TX device disables GATT proxy and enables Private GATT proxy.
11 # 1. RX device enables scanner and scans for Net ID advertisments.
12 # 2. RX device scans for a single Net ID advertisment and stores
14 # 3. RX device waits for 10 minutes.
15 # 4. RX device scans for a another Private Net ID advertisement and compares
17 # of the previous Private Net ID.
18 # 5. Test passes if the random field of the two Private Net ID advertisements
Dpriv_proxy_node_id.sh3 # SPDX-License-Identifier: Apache-2.0
7 # Test Private Node ID advertisment
10 # 0. TX device disables GATT proxy and enables the Private Node
13 # 1. RX device enables scanner and scans for Private Node ID advertisements.
14 # 2. RX device scans for a single Private Node ID advertisement and stores
17 # 3. TC device verifies that the previous advertisement is finished
20 # 4. RX device scans for a another Private Node ID advertisement and compares
22 # of the previous Net ID.
23 # 5. Test passes if the random field of the two Private Node ID advertisements
/Zephyr-latest/drivers/hwspinlock/
Dsqn_hwspinlock.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
27 static inline mem_addr_t get_lock_addr(const struct device *dev, uint32_t id) in get_lock_addr() argument
29 return (mem_addr_t)(DEVICE_MMIO_GET(dev) + id * sizeof(uint32_t)); in get_lock_addr()
33 * To define CPU id, we use the affinity2 and affinity1
43 static int sqn_hwspinlock_trylock(const struct device *dev, uint32_t id) in sqn_hwspinlock_trylock() argument
45 const struct sqn_hwspinlock_config *config = dev->config; in sqn_hwspinlock_trylock()
48 if (id > config->num_locks) { in sqn_hwspinlock_trylock()
49 return -EINVAL; in sqn_hwspinlock_trylock()
60 if (sys_read8(get_lock_addr(dev, id)) == cpuid) { in sqn_hwspinlock_trylock()
[all …]
/Zephyr-latest/dts/bindings/pcie/host/
Dpcie-device.yaml2 # SPDX-License-Identifier: Apache-2.0
7 vendor-id:
9 description: Vendor ID of the device
10 device-id:
12 description: Device ID of the device
13 class-rev:
16 class-rev-mask:
/Zephyr-latest/dts/bindings/misc/
Dnuvoton,npcx-soc-id.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nuvoton, NPCX soc ID node
6 compatible: "nuvoton,npcx-soc-id"
9 family-id:
12 description: NPCX family ID
14 chip-id:
17 description: NPCX chip ID
19 device-id:
22 description: NPCX device ID
24 revision-reg:

12345678910>>...42