/Zephyr-latest/soc/intel/intel_adsp/ace/ |
D | sram.c | 21 uint32_t idx; in hp_sram_init() local 23 for (idx = 0; idx < hpsram_ebb_quantity; ++idx) { in hp_sram_init() 24 HPSRAM_REGS(idx)->HSxPGCTL = 0; in hp_sram_init() 25 HPSRAM_REGS(idx)->HSxRMCTL = IS_ENABLED(CONFIG_SRAM_RETENTION_MODE); in hp_sram_init() 27 for (idx = 0; idx < hpsram_ebb_quantity; ++idx) { in hp_sram_init() 28 while (HPSRAM_REGS(idx)->HSxPGISTS != 0) { in hp_sram_init() 38 uint32_t idx; in lp_sram_init() local 40 for (idx = 0; idx < lpsram_ebb_quantity; ++idx) { in lp_sram_init() 41 LPSRAM_REGS(idx)->USxPGCTL = 0; in lp_sram_init() 42 LPSRAM_REGS(idx)->USxRMCTL = IS_ENABLED(CONFIG_SRAM_RETENTION_MODE); in lp_sram_init() [all …]
|
/Zephyr-latest/drivers/pcie/host/ |
D | vc.c | 41 int idx; in pcie_vc_load_resources_regs() local 43 for (idx = 0; idx < nb_regs; idx++) { in pcie_vc_load_resources_regs() 46 PCIE_VC_RES_CAP_REG_OFFSET(idx)); in pcie_vc_load_resources_regs() 49 PCIE_VC_RES_CTRL_REG_OFFSET(idx)); in pcie_vc_load_resources_regs() 52 PCIE_VC_RES_STATUS_REG_OFFSET(idx)); in pcie_vc_load_resources_regs() 84 int idx; in pcie_vc_enable() local 91 for (idx = 1; idx < regs.cap_reg_1.vc_count + 1; idx++) { in pcie_vc_enable() 92 if (idx > 0 && res_regs[idx].ctrl_reg.vc_enable == 1) { in pcie_vc_enable() 99 res_regs[idx].ctrl_reg.vc_enable = 1; in pcie_vc_enable() 109 int idx; in pcie_vc_disable() local [all …]
|
/Zephyr-latest/soc/nordic/ |
D | validate_enabled_instances.c | 9 #define I2C_ENABLED(idx) (IS_ENABLED(CONFIG_I2C) && \ argument 10 DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(i2c##idx))) 12 #define SPI_ENABLED(idx) (IS_ENABLED(CONFIG_SPI) && \ argument 13 DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(spi##idx))) 15 #define UART_ENABLED(idx) (IS_ENABLED(CONFIG_SERIAL) && \ argument 19 DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart##idx))) 34 #define CHECK(idx) \ argument 35 !(I2C_ENABLED(idx) && SPI_ENABLED(idx)) && \ 36 !(I2C_ENABLED(idx) && UART_ENABLED(idx)) && \ 37 !(SPI_ENABLED(idx) && UART_ENABLED(idx)) [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_gecko.c | 727 #define GECKO_UART_IRQ_HANDLER_DECL(idx) \ argument 728 static void uart_gecko_config_func_##idx(const struct device *dev) 729 #define GECKO_UART_IRQ_HANDLER_FUNC(idx) \ argument 730 .irq_config_func = uart_gecko_config_func_##idx, 731 #define GECKO_UART_IRQ_HANDLER(idx) \ argument 732 static void uart_gecko_config_func_##idx(const struct device *dev) \ 734 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(idx, rx, irq), \ 735 DT_INST_IRQ_BY_NAME(idx, rx, priority), \ 736 uart_gecko_isr, DEVICE_DT_INST_GET(idx), 0); \ 737 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(idx, tx, irq), \ [all …]
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_mchp_mec5.c | 36 size_t idx = 0; in mec5_config_pin() local 52 cfg2[idx].prop = MEC_GPIO_SLEW_RATE_ID; in mec5_config_pin() 53 cfg2[idx].val = (uint8_t)MEC_GPIO_SLEW_RATE_SLOW; in mec5_config_pin() 55 cfg2[idx].val = (uint8_t)MEC_GPIO_SLEW_RATE_FAST; in mec5_config_pin() 57 idx++; in mec5_config_pin() 63 cfg2[idx].prop = MEC_GPIO_DRV_STR_ID; in mec5_config_pin() 64 cfg2[idx].val = (uint8_t)(temp - 1u); in mec5_config_pin() 65 idx++; in mec5_config_pin() 69 cfg2[idx].prop = MEC_GPIO_PUD_PROP_ID; in mec5_config_pin() 71 cfg2[idx++].val = MEC_GPIO_PROP_NO_PUD; in mec5_config_pin() [all …]
|
/Zephyr-latest/drivers/comparator/ |
D | comparator_renesas_ra.c | 206 #define ACMPHS_RENESAS_RA_IRQ_INIT(idx) \ argument 208 R_ICU->IELSR_b[DT_INST_IRQ_BY_NAME(idx, hs, irq)].IELS = \ 209 BSP_PRV_IELS_ENUM(CONCAT(EVENT_ACMPHS, DT_INST_PROP(idx, channel), _INT)); \ 211 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(idx, hs, irq), \ 212 DT_INST_IRQ_BY_NAME(idx, hs, priority), comp_hs_int_isr, \ 213 DEVICE_DT_INST_GET(idx), 0); \ 215 irq_enable(DT_INST_IRQ_BY_NAME(idx, hs, irq)); \ 218 #define FILTER_PARAMETER(idx) \ argument 219 COND_CODE_1(IS_EQ(DT_INST_PROP(idx, noise_filter), 1), \ 220 (COMPARATOR_FILTER_OFF), (UTIL_CAT(COMPARATOR_FILTER_, DT_INST_PROP(idx, noise_filter)))) [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_nrfx_twim_rtio.c | 195 #define CONCAT_BUF_SIZE(idx) \ argument 196 COND_CODE_1(DT_NODE_HAS_PROP(I2C(idx), zephyr_concat_buf_size), \ 197 (DT_PROP(I2C(idx), zephyr_concat_buf_size)), (0)) 198 #define FLASH_BUF_MAX_SIZE(idx) \ argument 199 COND_CODE_1(DT_NODE_HAS_PROP(I2C(idx), zephyr_flash_buf_max_size), \ 200 (DT_PROP(I2C(idx), zephyr_flash_buf_max_size)), (0)) 202 #define USES_MSG_BUF(idx) \ argument 203 COND_CODE_0(CONCAT_BUF_SIZE(idx), (COND_CODE_0(FLASH_BUF_MAX_SIZE(idx), (0), (1))), (1)) 204 #define MSG_BUF_SIZE(idx) MAX(CONCAT_BUF_SIZE(idx), FLASH_BUF_MAX_SIZE(idx)) argument 206 #define MSG_BUF_HAS_MEMORY_REGIONS(idx) \ argument [all …]
|
D | i2c_nrfx_twim.c | 216 #define CONCAT_BUF_SIZE(idx) \ argument 217 COND_CODE_1(DT_NODE_HAS_PROP(I2C(idx), zephyr_concat_buf_size), \ 218 (DT_PROP(I2C(idx), zephyr_concat_buf_size)), (0)) 219 #define FLASH_BUF_MAX_SIZE(idx) \ argument 220 COND_CODE_1(DT_NODE_HAS_PROP(I2C(idx), zephyr_flash_buf_max_size), \ 221 (DT_PROP(I2C(idx), zephyr_flash_buf_max_size)), (0)) 223 #define USES_MSG_BUF(idx) \ argument 224 COND_CODE_0(CONCAT_BUF_SIZE(idx), \ 225 (COND_CODE_0(FLASH_BUF_MAX_SIZE(idx), (0), (1))), \ 227 #define MSG_BUF_SIZE(idx) MAX(CONCAT_BUF_SIZE(idx), FLASH_BUF_MAX_SIZE(idx)) argument [all …]
|
/Zephyr-latest/soc/espressif/esp32/ |
D | gdbstub.c | 111 .idx = 0, 119 .idx = 1, 126 .idx = 2, 133 .idx = 3, 140 .idx = 4, 147 .idx = 5, 154 .idx = 6, 161 .idx = 7, 168 .idx = 8, 175 .idx = 9, [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | iface_dynamic.h | 18 static void iface_index_get(size_t idx, struct shell_static_entry *entry); 22 static char *set_iface_index_buffer(size_t idx) in set_iface_index_buffer() argument 24 struct net_if *iface = net_if_get_by_index(idx); in set_iface_index_buffer() 27 if (idx == 0) { in set_iface_index_buffer() 35 snprintk(iface_index_buffer[idx - 1], MAX_IFACE_STR_LEN, "%d", (uint8_t)idx); in set_iface_index_buffer() 37 return iface_index_buffer[idx - 1]; in set_iface_index_buffer() 40 static char *set_iface_index_help(size_t idx) in set_iface_index_help() argument 42 struct net_if *iface = net_if_get_by_index(idx); in set_iface_index_help() 45 if (idx == 0) { in set_iface_index_help() 59 snprintk(iface_help_buffer[idx - 1], MAX_IFACE_HELP_STR_LEN, in set_iface_index_help() [all …]
|
/Zephyr-latest/tests/lib/linear_range/src/ |
D | main.c | 11 * | Val | Idx | 182 uint16_t idx; in ZTEST() local 185 ret = linear_range_get_index(&r[0], -10, &idx); in ZTEST() 187 zassert_equal(idx, 0U); in ZTEST() 189 ret = linear_range_get_index(&r[0], -7, &idx); in ZTEST() 191 zassert_equal(idx, 1U); in ZTEST() 194 ret = linear_range_get_index(&r[1], -1, &idx); in ZTEST() 196 zassert_equal(idx, 2U); in ZTEST() 198 ret = linear_range_get_index(&r[1], 2, &idx); in ZTEST() 200 zassert_equal(idx, 3U); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfu_slot.c | 32 uint32_t idx; member 39 static char *slot_entry_encode(uint16_t idx, char buf[SLOT_ENTRY_BUFLEN], in slot_entry_encode() argument 42 snprintf(buf, SLOT_ENTRY_BUFLEN, DFU_SLOT_SETTINGS_PATH "/%x/%s", idx, in slot_entry_encode() 70 uint16_t idx = ARRAY_INDEX(slots, slot_to_store); in slot_store() local 74 err = settings_save_one(slot_entry_encode(idx, buf, PROP_HEADER), in slot_store() 80 err = settings_save_one(slot_entry_encode(idx, buf, PROP_FWID), in slot_store() 86 err = settings_save_one(slot_entry_encode(idx, buf, in slot_store() 95 uint16_t idx = ARRAY_INDEX(slots, slot_to_erase); in slot_erase() local 98 (void)settings_delete(slot_entry_encode(idx, buf, PROP_HEADER)); in slot_erase() 99 (void)settings_delete(slot_entry_encode(idx, buf, PROP_FWID)); in slot_erase() [all …]
|
/Zephyr-latest/drivers/led_strip/ |
D | ws2812_spi.c | 36 #define SPI_OPER(idx) (SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | \ argument 177 #define WS2812_SPI_NUM_PIXELS(idx) \ argument 178 (DT_INST_PROP(idx, chain_length)) 179 #define WS2812_SPI_HAS_WHITE(idx) \ argument 180 (DT_INST_PROP(idx, has_white_channel) == 1) 181 #define WS2812_SPI_ONE_FRAME(idx) \ argument 182 (DT_INST_PROP(idx, spi_one_frame)) 183 #define WS2812_SPI_ZERO_FRAME(idx) \ argument 184 (DT_INST_PROP(idx, spi_zero_frame)) 185 #define WS2812_SPI_BUFSZ(idx) \ argument [all …]
|
D | ws2812_i2s.c | 210 #define WS2812_I2S_LRCK_PERIOD_US(idx) DT_INST_PROP(idx, lrck_period) argument 212 #define WS2812_RESET_DELAY_US(idx) DT_INST_PROP(idx, reset_delay) argument 214 #define WS2812_RESET_DELAY_WORDS(idx) \ argument 215 DIV_ROUND_UP(WS2812_RESET_DELAY_US(idx), WS2812_I2S_LRCK_PERIOD_US(idx)) 217 #define WS2812_NUM_COLORS(idx) (DT_INST_PROP_LEN(idx, color_mapping)) argument 219 #define WS2812_I2S_NUM_PIXELS(idx) (DT_INST_PROP(idx, chain_length)) argument 221 #define WS2812_I2S_BUFSIZE(idx) \ argument 222 (((WS2812_NUM_COLORS(idx) * WS2812_I2S_NUM_PIXELS(idx)) + \ 223 WS2812_I2S_PRE_DELAY_WORDS + WS2812_RESET_DELAY_WORDS(idx)) * 4) 225 #define WS2812_I2S_DEVICE(idx) \ argument [all …]
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_nrf_vevif_task_rx.c | 34 #define VEVIF_IRQN(idx, _) DT_INST_IRQ_BY_IDX(0, idx, irq) argument 43 uint8_t idx = channel - TASKS_IDX_MIN; in vevif_task_rx_isr() local 47 if (cbs.cb[idx] != NULL) { in vevif_task_rx_isr() 48 cbs.cb[idx](DEVICE_DT_INST_GET(0), channel, cbs.user_data[idx], NULL); in vevif_task_rx_isr() 68 uint8_t idx = id - TASKS_IDX_MIN; in vevif_task_rx_register_callback() local 74 cbs.cb[idx] = cb; in vevif_task_rx_register_callback() 75 cbs.user_data[idx] = user_data; in vevif_task_rx_register_callback() 83 uint8_t idx = id - TASKS_IDX_MIN; in vevif_task_rx_set_enabled() local 95 irq_enable(vevif_irqs[idx]); in vevif_task_rx_set_enabled() 102 irq_disable(vevif_irqs[idx]); in vevif_task_rx_set_enabled() [all …]
|
/Zephyr-latest/soc/infineon/cat3/xmc4xxx/ |
D | pinctrl_soc.h | 17 #define Z_PINCTRL_STATE_PIN_INIT(node, pr, idx) \ argument 18 (DT_PROP_BY_PHANDLE_IDX(node, pr, idx, pinmux) | \ 19 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, bias_pull_down) << XMC4XXX_PULL_DOWN_POS | \ 20 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, bias_pull_up) << XMC4XXX_PULL_UP_POS | \ 21 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, drive_push_pull) << XMC4XXX_PUSH_PULL_POS | \ 22 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, drive_open_drain) << XMC4XXX_OPEN_DRAIN_POS | \ 23 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, output_high) << XMC4XXX_OUT_HIGH_POS | \ 24 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, output_low) << XMC4XXX_OUT_LOW_POS | \ 25 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, invert_input) << XMC4XXX_INV_INPUT_POS | \ 26 DT_ENUM_IDX(DT_PHANDLE_BY_IDX(node, pr, idx), drive_strength) << XMC4XXX_DRIVE_POS | \ [all …]
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/lll/ |
D | lll_adv_pdu.h | 11 static inline void lll_adv_pdu_enqueue(struct lll_adv_pdu *pdu, uint8_t idx) in lll_adv_pdu_enqueue() argument 13 pdu->last = idx; in lll_adv_pdu_enqueue() 16 struct pdu_adv *lll_adv_pdu_alloc(struct lll_adv_pdu *pdu, uint8_t *idx); 18 static inline struct pdu_adv *lll_adv_data_alloc(struct lll_adv *lll, uint8_t *idx) in lll_adv_data_alloc() argument 20 return lll_adv_pdu_alloc(&lll->adv_data, idx); in lll_adv_data_alloc() 23 static inline void lll_adv_data_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_data_enqueue() argument 25 lll_adv_pdu_enqueue(&lll->adv_data, idx); in lll_adv_data_enqueue() 38 static inline struct pdu_adv *lll_adv_scan_rsp_alloc(struct lll_adv *lll, uint8_t *idx) in lll_adv_scan_rsp_alloc() argument 40 return lll_adv_pdu_alloc(&lll->scan_rsp, idx); in lll_adv_scan_rsp_alloc() 43 static inline void lll_adv_scan_rsp_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_scan_rsp_enqueue() argument [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_xlnx_ps.c | 116 #define GPIO_XLNX_PS_GEN_BANK_ARRAY(idx)\ argument 117 static const struct device *const gpio_xlnx_ps##idx##_banks[] = {\ 118 DT_INST_FOREACH_CHILD_STATUS_OKAY_SEP(idx, DEVICE_DT_GET, (,))\ 122 #define GPIO_XLNX_PS_DEV_DATA(idx)\ argument 123 static struct gpio_xlnx_ps_dev_data gpio_xlnx_ps##idx##_data = {\ 127 #define GPIO_XLNX_PS_DEV_CONFIG(idx)\ argument 128 static const struct gpio_xlnx_ps_dev_cfg gpio_xlnx_ps##idx##_cfg = {\ 129 DEVICE_MMIO_NAMED_ROM_INIT(reg_base, DT_DRV_INST(idx)),\ 130 .bank_devices = gpio_xlnx_ps##idx##_banks,\ 131 .num_banks = ARRAY_SIZE(gpio_xlnx_ps##idx##_banks),\ [all …]
|
/Zephyr-latest/tests/kernel/threads/tls/src/ |
D | main.c | 65 uint32_t idx; in tls_thread_entry() local 67 idx = (uint32_t)POINTER_TO_UINT(p1); in tls_thread_entry() 71 tls_result[idx] = ERR_BAD_STATIC_DATA; in tls_thread_entry() 76 tls_result[idx] = ERR_BAD_STATIC_DATA; in tls_thread_entry() 81 tls_result[idx] = ERR_BAD_STATIC_DATA; in tls_thread_entry() 86 tls_result[idx] = ERR_BSS_NOT_ZERO; in tls_thread_entry() 91 tls_result[idx] = ERR_BSS_NOT_ZERO; in tls_thread_entry() 96 tls_result[idx] = ERR_BSS_NOT_ZERO; in tls_thread_entry() 101 thread_data8 = STATIC_DATA8 + idx; in tls_thread_entry() 102 thread_bss8 = PREFIX_8 + idx; in tls_thread_entry() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_adv_pdu.h | 14 static inline void lll_adv_pdu_enqueue(struct lll_adv_pdu *pdu, uint8_t idx) in lll_adv_pdu_enqueue() argument 16 pdu->last = idx; in lll_adv_pdu_enqueue() 19 struct pdu_adv *lll_adv_pdu_alloc(struct lll_adv_pdu *pdu, uint8_t *idx); 22 uint8_t *idx) in lll_adv_data_alloc() argument 24 return lll_adv_pdu_alloc(&lll->adv_data, idx); in lll_adv_data_alloc() 27 static inline void lll_adv_data_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_data_enqueue() argument 29 lll_adv_pdu_enqueue(&lll->adv_data, idx); in lll_adv_data_enqueue() 38 uint8_t *idx) in lll_adv_scan_rsp_alloc() argument 40 return lll_adv_pdu_alloc(&lll->scan_rsp, idx); in lll_adv_scan_rsp_alloc() 43 static inline void lll_adv_scan_rsp_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_scan_rsp_enqueue() argument [all …]
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_bitmap.c | 22 uint32_t idx = index / 8; in ext2_bitmap_set() local 25 if (idx >= size) { in ext2_bitmap_set() 30 __ASSERT((bm[idx] & BIT(off)) == 0, "Bit %d set in bitmap", index); in ext2_bitmap_set() 32 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_set() 33 bm[idx] |= BIT(off); in ext2_bitmap_set() 34 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_set() 43 uint32_t idx = index / 8; in ext2_bitmap_unset() local 46 if (idx >= size) { in ext2_bitmap_unset() 51 __ASSERT(bm[idx] & BIT(off), "Bit %d not set in bitmap", index); in ext2_bitmap_unset() 53 LOG_DBG("Bitmap %d: %x", idx, bm[idx]); in ext2_bitmap_unset() [all …]
|
/Zephyr-latest/samples/subsys/shell/shell_module/src/ |
D | dynamic_cmd.c | 33 uint8_t idx; in cmd_dynamic_add() local 49 for (idx = 0U; idx < cmd_len; idx++) { in cmd_dynamic_add() 50 if (isalnum((int)(argv[1][idx])) == 0) { in cmd_dynamic_add() 58 for (idx = 0U; idx < MAX_CMD_CNT; idx++) { in cmd_dynamic_add() 59 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_add() 81 for (uint8_t idx = 0; idx < dynamic_cmd_cnt; idx++) { in cmd_dynamic_execute() local 82 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_execute() 99 for (uint8_t idx = 0; idx < dynamic_cmd_cnt; idx++) { in cmd_dynamic_remove() local 100 if (!strcmp(dynamic_cmd_buffer[idx], argv[1])) { in cmd_dynamic_remove() 101 if (idx == MAX_CMD_CNT - 1) { in cmd_dynamic_remove() [all …]
|
/Zephyr-latest/arch/common/ |
D | isr_tables_shell.c | 11 static void dump_isr_table_entry(const struct shell *sh, int idx, struct _isr_table_entry *entry) in dump_isr_table_entry() argument 20 shell_print(sh, "%4d: %s(%p)", idx, name, entry->arg); in dump_isr_table_entry() 22 shell_print(sh, "%4d: %p(%p)", idx, entry->isr, entry->arg); in dump_isr_table_entry() 30 for (int idx = 0; idx < IRQ_TABLE_SIZE; idx++) { in cmd_sw_isr_table() local 31 dump_isr_table_entry(sh, idx, &_sw_isr_table[idx]); in cmd_sw_isr_table() 43 for (int idx = 0; idx < IRQ_TABLE_SIZE; idx++) { in cmd_shared_sw_isr_table() local 44 for (int c = 0; c < z_shared_sw_isr_table[idx].client_num; c++) { in cmd_shared_sw_isr_table() 45 dump_isr_table_entry(sh, idx, &z_shared_sw_isr_table[idx].clients[c]); in cmd_shared_sw_isr_table()
|
/Zephyr-latest/soc/ite/ec/common/ |
D | soc_dt.h | 13 #define IT8XXX2_DEV_WUC(idx, inst) \ argument 14 DEVICE_DT_GET(DT_PHANDLE(IT8XXX2_DT_INST_WUCCTRL(inst, idx), wucs)) 15 #define IT8XXX2_DEV_WUC_MASK(idx, inst) \ argument 16 DT_PHA(IT8XXX2_DT_INST_WUCCTRL(inst, idx), wucs, mask) 23 * @param idx index in the wucctrl property 24 * @return node identifier for the phandle at index idx in the wucctrl 27 #define IT8XXX2_DT_INST_WUCCTRL(inst, idx) \ argument 28 DT_INST_PHANDLE_BY_IDX(inst, wucctrl, idx) 33 * @param idx index in LISTIFY extension 37 #define IT8XXX2_DT_WUC_ITEMS_FUNC(idx, inst) \ argument [all …]
|
/Zephyr-latest/subsys/usb/device_next/ |
D | usbd_desc.c | 49 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx() 51 LOG_DBG("Add %u behind %u", new_nd->str.idx, tmp_nd->str.idx); in desc_add_and_update_idx() 58 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx() 60 LOG_DBG("Add %u before %u", new_nd->str.idx, next_nd->str.idx); in desc_add_and_update_idx() 65 if (tmp_nd->str.idx != (next_nd->str.idx - 1)) { in desc_add_and_update_idx() 67 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx() 70 tmp_nd->str.idx, next_nd->str.idx, new_nd->str.idx); in desc_add_and_update_idx() 75 /* If there are none of same bDescriptorType, node idx is set to 0. */ in desc_add_and_update_idx() 76 new_nd->str.idx = 0; in desc_add_and_update_idx() 84 const uint8_t type, const uint8_t idx) in usbd_get_descriptor() argument [all …]
|