Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/Zephyr-Core-2.7.6/drivers/dma/
Ddma_stm32_v2.c18 uint32_t dma_stm32_id_to_stream(uint32_t id) in dma_stm32_id_to_stream() argument
37 __ASSERT_NO_MSG(id < ARRAY_SIZE(stream_nr)); in dma_stm32_id_to_stream()
39 return stream_nr[id]; in dma_stm32_id_to_stream()
42 void dma_stm32_clear_ht(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_clear_ht() argument
61 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_ht()
63 func[id](DMAx); in dma_stm32_clear_ht()
66 void dma_stm32_clear_tc(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_clear_tc() argument
85 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_tc()
87 func[id](DMAx); in dma_stm32_clear_tc()
90 bool dma_stm32_is_ht_active(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_is_ht_active() argument
[all …]
Ddma_stm32_v1.c20 uint32_t dma_stm32_id_to_stream(uint32_t id) in dma_stm32_id_to_stream() argument
33 __ASSERT_NO_MSG(id < ARRAY_SIZE(stream_nr)); in dma_stm32_id_to_stream()
35 return stream_nr[id]; in dma_stm32_id_to_stream()
58 void dma_stm32_clear_ht(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_clear_ht() argument
71 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_ht()
73 func[id](DMAx); in dma_stm32_clear_ht()
76 void dma_stm32_clear_tc(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_clear_tc() argument
89 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_tc()
91 func[id](DMAx); in dma_stm32_clear_tc()
94 bool dma_stm32_is_ht_active(DMA_TypeDef *DMAx, uint32_t id) in dma_stm32_is_ht_active() argument
[all …]
Ddma_stm32.h60 uint32_t dma_stm32_id_to_stream(uint32_t id);
62 uint32_t dma_stm32_slot_to_channel(uint32_t id);
68 bool dma_stm32_is_tc_active(DMA_TypeDef *DMAx, uint32_t id);
69 void dma_stm32_clear_tc(DMA_TypeDef *DMAx, uint32_t id);
70 bool dma_stm32_is_ht_active(DMA_TypeDef *DMAx, uint32_t id);
71 void dma_stm32_clear_ht(DMA_TypeDef *DMAx, uint32_t id);
72 bool dma_stm32_is_te_active(DMA_TypeDef *DMAx, uint32_t id);
73 void dma_stm32_clear_te(DMA_TypeDef *DMAx, uint32_t id);
76 bool dma_stm32_is_dme_active(DMA_TypeDef *DMAx, uint32_t id);
77 void dma_stm32_clear_dme(DMA_TypeDef *DMAx, uint32_t id);
[all …]
Ddma_stm32.c67 static void dma_stm32_dump_stream_irq(const struct device *dev, uint32_t id) in dma_stm32_dump_stream_irq() argument
72 stm32_dma_dump_stream_irq(dma, id); in dma_stm32_dump_stream_irq()
75 static void dma_stm32_clear_stream_irq(const struct device *dev, uint32_t id) in dma_stm32_clear_stream_irq() argument
80 dma_stm32_clear_tc(dma, id); in dma_stm32_clear_stream_irq()
81 dma_stm32_clear_ht(dma, id); in dma_stm32_clear_stream_irq()
82 stm32_dma_clear_stream_irq(dma, id); in dma_stm32_clear_stream_irq()
85 static void dma_stm32_irq_handler(const struct device *dev, uint32_t id) in dma_stm32_irq_handler() argument
92 __ASSERT_NO_MSG(id < config->max_streams); in dma_stm32_irq_handler()
94 stream = &config->streams[id]; in dma_stm32_irq_handler()
99 callback_arg = id + STREAM_OFFSET; in dma_stm32_irq_handler()
[all …]
Ddmamux_stm32.c39 void (*dmamux_callback)(void *arg, uint32_t id,
85 int dmamux_stm32_configure(const struct device *dev, uint32_t id, in dmamux_stm32_configure() argument
103 if (id >= dev_config->channel_nb) { in dmamux_stm32_configure()
104 LOG_ERR("channel ID %d is too big.", id); in dmamux_stm32_configure()
119 if (dma_stm32_configure(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_configure()
120 dev_config->mux_channels[id].dma_id, config) != 0) { in dmamux_stm32_configure()
129 LL_DMAMUX_SetRequestID(dmamux, id, request_id); in dmamux_stm32_configure()
134 int dmamux_stm32_start(const struct device *dev, uint32_t id) in dmamux_stm32_start() argument
139 if (id >= dev_config->channel_nb) { in dmamux_stm32_start()
140 LOG_ERR("channel ID %d is too big.", id); in dmamux_stm32_start()
[all …]
/Zephyr-Core-2.7.6/soc/arm/atmel_sam/common/
Dsoc_pmc.c19 void soc_pmc_peripheral_enable(uint32_t id) in soc_pmc_peripheral_enable() argument
21 __ASSERT(id < ID_PERIPH_COUNT, "Invalid peripheral id"); in soc_pmc_peripheral_enable()
23 if (id < 32) { in soc_pmc_peripheral_enable()
24 PMC->PMC_PCER0 = BIT(id); in soc_pmc_peripheral_enable()
26 } else if (id < 64) { in soc_pmc_peripheral_enable()
27 PMC->PMC_PCER1 = BIT(id & 0x1F); in soc_pmc_peripheral_enable()
36 void soc_pmc_peripheral_disable(uint32_t id) in soc_pmc_peripheral_disable() argument
38 __ASSERT(id < ID_PERIPH_COUNT, "Invalid peripheral id"); in soc_pmc_peripheral_disable()
40 if (id < 32) { in soc_pmc_peripheral_disable()
41 PMC->PMC_PCDR0 = BIT(id); in soc_pmc_peripheral_disable()
[all …]
Dsoc_sam4l_pm.c37 void soc_pmc_peripheral_enable(uint32_t id) in soc_pmc_peripheral_enable() argument
39 uint32_t bus_grp = id >> 5; in soc_pmc_peripheral_enable()
40 uint32_t per_idx = id & 0x1F; in soc_pmc_peripheral_enable()
63 void soc_pmc_peripheral_disable(uint32_t id) in soc_pmc_peripheral_disable() argument
65 uint32_t bus_grp = id >> 5; in soc_pmc_peripheral_disable()
66 uint32_t per_idx = id & 0x1F; in soc_pmc_peripheral_disable()
89 uint32_t soc_pmc_peripheral_is_enabled(uint32_t id) in soc_pmc_peripheral_is_enabled() argument
91 uint32_t bus_grp = id >> 5; in soc_pmc_peripheral_is_enabled()
92 uint32_t per_idx = id & 0x1F; in soc_pmc_peripheral_is_enabled()
/Zephyr-Core-2.7.6/subsys/tracing/ctf/tsdl/
Dmetadata21 uint8_t id;
36 id = 0x10;
45 id = 0x11;
54 id = 0x12;
65 id = 0x13;
74 id = 0x14;
83 id = 0x15;
92 id = 0x16;
100 id = 0x17;
109 id = 0x18;
[all …]
/Zephyr-Core-2.7.6/include/app_memory/
Dapp_memdomain.h23 #define K_APP_DMEM_SECTION(id) data_smem_##id##_data argument
33 #define K_APP_BMEM_SECTION(id) data_smem_##id##_bss argument
44 #define K_APP_DMEM(id) Z_GENERIC_SECTION(K_APP_DMEM_SECTION(id)) argument
54 #define K_APP_BMEM(id) Z_GENERIC_SECTION(K_APP_BMEM_SECTION(id)) argument
61 #define Z_APP_START(id) z_data_smem_##id##_part_start argument
62 #define Z_APP_SIZE(id) z_data_smem_##id##_part_size argument
63 #define Z_APP_BSS_START(id) z_data_smem_##id##_bss_start argument
64 #define Z_APP_BSS_SIZE(id) z_data_smem_##id##_bss_size argument
/Zephyr-Core-2.7.6/drivers/hwinfo/
Dhwinfo_esp32.c17 uint8_t id[6]; in z_impl_hwinfo_get_device_id() local
25 id[0] = (uint8_t)(rdata2 >> 8); in z_impl_hwinfo_get_device_id()
26 id[1] = (uint8_t)(rdata2 >> 0); in z_impl_hwinfo_get_device_id()
27 id[2] = (uint8_t)(rdata1 >> 24); in z_impl_hwinfo_get_device_id()
28 id[3] = (uint8_t)(rdata1 >> 16); in z_impl_hwinfo_get_device_id()
29 id[4] = (uint8_t)(rdata1 >> 8); in z_impl_hwinfo_get_device_id()
30 id[5] = (uint8_t)(rdata1 >> 0); in z_impl_hwinfo_get_device_id()
32 if (length > sizeof(id)) { in z_impl_hwinfo_get_device_id()
33 length = sizeof(id); in z_impl_hwinfo_get_device_id()
35 memcpy(buffer, id, length); in z_impl_hwinfo_get_device_id()
Dhwinfo_sam0.c15 uint32_t id[4]; member
22 dev_id.id[0] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id()
24 dev_id.id[1] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id()
26 dev_id.id[2] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id()
28 dev_id.id[3] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id()
31 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id()
32 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id()
35 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
Dhwinfo_imxrt.c13 uint32_t id[2]; member
21 dev_id.id[0] = sys_cpu_to_be32(OCOTP->FUSEN[17].FUSE); in z_impl_hwinfo_get_device_id()
22 dev_id.id[1] = sys_cpu_to_be32(OCOTP->FUSEN[16].FUSE); in z_impl_hwinfo_get_device_id()
24 dev_id.id[0] = sys_cpu_to_be32(OCOTP->CFG2); in z_impl_hwinfo_get_device_id()
25 dev_id.id[1] = sys_cpu_to_be32(OCOTP->CFG1); in z_impl_hwinfo_get_device_id()
28 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id()
29 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id()
32 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Dkeys.c45 uint8_t id; member
54 key = bt_keys_find_addr(conn->id, bt_conn_get_dst(conn)); in find_key_in_use()
58 if (bt_addr_cmp(&key->addr.a, &key_pool[kdata->id].addr.a) == 0) { in find_key_in_use()
61 bt_addr_le_str(bt_conn_get_dst(conn)), kdata->id); in find_key_in_use()
66 static bool key_is_in_use(uint8_t id) in key_is_in_use() argument
68 struct key_data kdata = { false, id }; in key_is_in_use()
76 struct bt_keys *bt_keys_get_addr(uint8_t id, const bt_addr_le_t *addr) in bt_keys_get_addr() argument
87 if (keys->id == id && !bt_addr_le_cmp(&keys->addr, addr)) { in bt_keys_get_addr()
121 bt_unpair(oldest->id, &oldest_addr); in bt_keys_get_addr()
130 keys->id = id; in bt_keys_get_addr()
[all …]
/Zephyr-Core-2.7.6/subsys/task_wdt/
Dtask_wdt.c68 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in schedule_next_timeout() local
69 if (channels[id].reload_period != 0 && in schedule_next_timeout()
70 channels[id].timeout_abs_ticks < next_timeout) { in schedule_next_timeout()
71 next_channel_id = id; in schedule_next_timeout()
72 next_timeout = channels[id].timeout_abs_ticks; in schedule_next_timeout()
157 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in task_wdt_add() local
158 if (channels[id].reload_period == 0) { in task_wdt_add()
159 channels[id].reload_period = reload_period; in task_wdt_add()
160 channels[id].user_data = user_data; in task_wdt_add()
161 channels[id].timeout_abs_ticks = K_TICKS_FOREVER; in task_wdt_add()
[all …]
/Zephyr-Core-2.7.6/include/drivers/dma/
Ddma_stm32.h17 #define STM32_DMA_SLOT(id, dir, slot) 0 argument
19 #define STM32_DMA_SLOT(id, dir, slot) DT_INST_DMAS_CELL_BY_NAME(id, dir, slot) argument
25 #define STM32_DMA_FEATURES(id, dir) 0 argument
27 #define STM32_DMA_FEATURES(id, dir) \ argument
28 DT_INST_DMAS_CELL_BY_NAME(id, dir, features)
31 #define STM32_DMA_CTLR(id, dir) \ argument
32 DT_INST_DMAS_CTLR_BY_NAME(id, dir)
33 #define STM32_DMA_CHANNEL_CONFIG(id, dir) \ argument
34 DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
/Zephyr-Core-2.7.6/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/
Dmain.c85 static void set_phil_state_pos(int id) in set_phil_state_pos() argument
88 printk("\x1b[%d;%dH", id + 1, 1); in set_phil_state_pos()
93 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument
97 set_phil_state_pos(id); in print_phil_state()
100 id, prio < 0 ? "C" : "P", in print_phil_state()
113 static int32_t get_random_delay(int id, int period_in_ms) in get_random_delay() argument
120 int32_t delay = (k_uptime_get_32() / 100 * (id + 1)) & 0x1f; in get_random_delay()
128 static inline int is_last_philosopher(int id) in is_last_philosopher() argument
130 return id == (NUM_PHIL - 1); in is_last_philosopher()
133 void philosopher(void const *id) in philosopher() argument
[all …]
/Zephyr-Core-2.7.6/include/net/
Ddns_sd.h109 #define DNS_SD_REGISTER_SERVICE(id, instance, service, proto, domain, \ argument
111 static const STRUCT_SECTION_ITERABLE(dns_sd_rec, id) = { \
161 #define DNS_SD_REGISTER_TCP_SERVICE(id, instance, service, domain, text, \ argument
163 static const uint16_t id ## _port = sys_cpu_to_be16(port); \
164 DNS_SD_REGISTER_SERVICE(id, instance, service, "_tcp", domain, \
165 text, &id ## _port)
192 #define DNS_SD_REGISTER_UDP_SERVICE(id, instance, service, domain, text, \ argument
194 static const uint16_t id ## _port = sys_cpu_to_be16(port); \
195 DNS_SD_REGISTER_SERVICE(id, instance, service, "_udp", domain, \
196 text, &id ## _port)
/Zephyr-Core-2.7.6/scripts/gitlint/
Dzephyr_commit_rules.py25 id = "UC6" variable in BodyMinLineCount
36 return [RuleViolation(self.id, message, line_nr=1)]
43 id = "UC1" variable in BodyMaxLineCount
53 return [RuleViolation(self.id, message, line_nr=1)]
64 id = "UC2" variable in SignedOffBy
72 … return [RuleViolation(self.id, "Signed-off-by: must have a full name", line_nr=1)]
75 return [RuleViolation(self.id, "Body does not contain a 'Signed-off-by:' line", line_nr=1)]
79 id = "UC5" variable in TitleMaxLengthRevert
87 … return [RuleViolation(self.id, self.violation_message.format(len(line), max_length), line)]
91 id = "UC3" variable in TitleStartsWithSubsystem
[all …]
/Zephyr-Core-2.7.6/tests/subsys/portability/cmsis_rtos_v1/src/
Dthread_apis.c24 osThreadId id = osThreadGetId(); in thread1() local
26 zassert_true(id != NULL, "Failed getting Thread ID"); in thread1()
58 osThreadId id = osThreadGetId(); in thread3() local
59 osPriority prio = osThreadGetPriority(id); in thread3()
62 osThreadSetPriority(id, osPriorityBelowNormal); in thread3()
63 rv = osThreadGetPriority(id); in thread3()
69 osThreadSetPriority(id, osPriorityAboveNormal); in thread3()
70 rv = osThreadGetPriority(id); in thread3()
76 osThreadSetPriority(id, prio); in thread3()
77 rv = osThreadGetPriority(id); in thread3()
[all …]
/Zephyr-Core-2.7.6/drivers/i2c/
Di2c_mcux_flexcomm.c217 #define I2C_MCUX_FLEXCOMM_DEVICE(id) \ argument
218 static void mcux_flexcomm_config_func_##id(const struct device *dev); \
219 static const struct mcux_flexcomm_config mcux_flexcomm_config_##id = { \
220 .base = (I2C_Type *) DT_INST_REG_ADDR(id), \
221 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
223 (clock_control_subsys_t)DT_INST_CLOCKS_CELL(id, name),\
224 .irq_config_func = mcux_flexcomm_config_func_##id, \
225 .bitrate = DT_INST_PROP(id, clock_frequency), \
227 static struct mcux_flexcomm_data mcux_flexcomm_data_##id; \
228 DEVICE_DT_INST_DEFINE(id, \
[all …]
Di2c_rv32m1_lpi2c.c248 #define RV32M1_LPI2C_DEVICE(id) \ argument
249 static void rv32m1_lpi2c_irq_config_func_##id(const struct device *dev); \
250 static const struct rv32m1_lpi2c_config rv32m1_lpi2c_##id##_config = { \
252 (LPI2C_Type *)DT_INST_REG_ADDR(id), \
253 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
255 (clock_control_subsys_t) DT_INST_CLOCKS_CELL(id, name),\
256 .clock_ip_name = INST_DT_CLOCK_IP_NAME(id), \
258 .bitrate = DT_INST_PROP(id, clock_frequency), \
259 .irq_config_func = rv32m1_lpi2c_irq_config_func_##id, \
261 static struct rv32m1_lpi2c_data rv32m1_lpi2c_##id##_data = { \
[all …]
/Zephyr-Core-2.7.6/drivers/can/
Dcan_mcux_flexcan.c72 #define FLEXCAN_ID_TO_ZCAN_ID_STD(id) \ argument
73 ((uint32_t)((((uint32_t)(id)) & CAN_ID_STD_MASK) >> CAN_ID_STD_SHIFT))
74 #define FLEXCAN_ID_TO_ZCAN_ID_EXT(id) \ argument
75 ((uint32_t)((((uint32_t)(id)) & (CAN_ID_STD_MASK | CAN_ID_EXT_MASK)) \
207 dest->id = FLEXCAN_ID_STD(src->id); in mcux_flexcan_copy_zframe_to_frame()
210 dest->id = FLEXCAN_ID_EXT(src->id); in mcux_flexcan_copy_zframe_to_frame()
229 dest->id = FLEXCAN_ID_TO_ZCAN_ID_STD(src->id); in mcux_flexcan_copy_frame_to_zframe()
232 dest->id = FLEXCAN_ID_TO_ZCAN_ID_EXT(src->id); in mcux_flexcan_copy_frame_to_zframe()
255 dest->id = FLEXCAN_ID_STD(src->id); in mcux_flexcan_copy_zfilter_to_mbconfig()
259 dest->id = FLEXCAN_ID_EXT(src->id); in mcux_flexcan_copy_zfilter_to_mbconfig()
[all …]
/Zephyr-Core-2.7.6/dts/arm/atmel/
Dsame70.dtsi56 peripheral-id = <6>;
75 peripheral-id = <4>;
87 peripheral-id = <19>;
100 peripheral-id = <20>;
113 peripheral-id = <41>;
125 peripheral-id = <21>;
137 peripheral-id = <42>;
147 peripheral-id = <7>;
157 peripheral-id = <8>;
166 peripheral-id = <44>;
[all …]
/Zephyr-Core-2.7.6/drivers/counter/
Dcounter_mcux_ctimer.c219 #define COUNTER_LPC_CTIMER_DEVICE(id) \ argument
220 static void mcux_lpc_ctimer_irq_config_##id(const struct device *dev); \
221 static struct mcux_lpc_ctimer_config mcux_lpc_ctimer_config_##id = { \
228 .base = (CTIMER_Type *)DT_INST_REG_ADDR(id), \
229 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
231 (clock_control_subsys_t)(DT_INST_CLOCKS_CELL(id, name) + MCUX_CTIMER_CLK_OFFSET),\
232 .mode = DT_INST_PROP(id, mode), \
233 .input = DT_INST_PROP(id, input), \
234 .prescale = DT_INST_PROP(id, prescale), \
235 .irq_config_func = mcux_lpc_ctimer_irq_config_##id, \
[all …]
/Zephyr-Core-2.7.6/drivers/regulator/
Dregulator_fixed.c359 #define REG_IS_SYNC(id) \ argument
360 DT_NODE_HAS_COMPAT(DT_DRV_INST(id), regulator_fixed_sync)
362 #define REG_DATA_TAG(id) COND_CODE_1(REG_IS_SYNC(id), \ argument
365 #define REG_API(id) COND_CODE_1(REG_IS_SYNC(id), \ argument
368 #define REG_INIT(id) COND_CODE_1(REG_IS_SYNC(id), \ argument
372 #define REGULATOR_DEVICE(id) \ argument
373 static const struct driver_config regulator_##id##_cfg = { \
374 .regulator_name = DT_INST_PROP(id, regulator_name), \
375 .gpio_name = DT_INST_GPIO_LABEL(id, enable_gpios), \
376 .startup_delay_us = DT_INST_PROP(id, startup_delay_us), \
[all …]

12345678910>>...23