Home
last modified time | relevance | path

Searched refs:index (Results 26 – 50 of 767) sorted by relevance

12345678910>>...31

/Zephyr-latest/tests/lib/cmsis_dsp/interpolation/src/
Dq15.c21 size_t index; in ZTEST() local
30 for (index = 0; index < length; index++) { in ZTEST()
35 output[index] = arm_linear_interp_q15((q15_t *)in_linear_y, in ZTEST()
36 in_linear_x[index], in ZTEST()
58 size_t index; in ZTEST() local
72 for (index = 0; index < length; index++) { in ZTEST()
73 output[index] = arm_bilinear_interp_q15( in ZTEST()
75 in_bilinear_x[2 * index], in ZTEST()
76 in_bilinear_x[2 * index + 1] in ZTEST()
Dq31.c21 size_t index; in ZTEST() local
30 for (index = 0; index < length; index++) { in ZTEST()
35 output[index] = arm_linear_interp_q31((q31_t *)in_linear_y, in ZTEST()
36 in_linear_x[index], in ZTEST()
58 size_t index; in ZTEST() local
72 for (index = 0; index < length; index++) { in ZTEST()
73 output[index] = arm_bilinear_interp_q31( in ZTEST()
75 in_bilinear_x[2 * index], in ZTEST()
76 in_bilinear_x[2 * index + 1] in ZTEST()
Dq7.c21 size_t index; in ZTEST() local
30 for (index = 0; index < length; index++) { in ZTEST()
35 output[index] = arm_linear_interp_q7((q7_t *)in_linear_y, in ZTEST()
36 in_linear_x[index], in ZTEST()
58 size_t index; in ZTEST() local
72 for (index = 0; index < length; index++) { in ZTEST()
73 output[index] = arm_bilinear_interp_q7( in ZTEST()
75 in_bilinear_x[2 * index], in ZTEST()
76 in_bilinear_x[2 * index + 1] in ZTEST()
Df16.c23 size_t index; in ZTEST() local
39 for (index = 0; index < length; index++) { in ZTEST()
40 output[index] = arm_linear_interp_f16(&inst, in ZTEST()
41 input[index]); in ZTEST()
62 size_t index; in ZTEST() local
77 for (index = 0; index < length; index++) { in ZTEST()
78 output[index] = arm_bilinear_interp_f16( in ZTEST()
80 input[2 * index], in ZTEST()
81 input[2 * index + 1] in ZTEST()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dhas.h124 uint8_t index; member
162 void (*preset_switch)(struct bt_has *has, int err, uint8_t index);
203 void (*preset_deleted)(struct bt_has *has, uint8_t index, bool is_last);
216 void (*preset_availability)(struct bt_has *has, uint8_t index, bool available,
268 int bt_has_client_presets_read(struct bt_has *has, uint8_t index, uint8_t max_count);
282 int bt_has_client_preset_set(struct bt_has *has, uint8_t index, bool sync);
327 int (*select)(uint8_t index, bool sync);
337 void (*name_changed)(uint8_t index, const char *name);
347 uint8_t index; member
400 int bt_has_preset_unregister(uint8_t index);
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmicp_mic_ctlr.c309 unsigned long index; in cmd_micp_mic_ctlr_aics_input_state_get() local
312 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_state_get()
319 if (index >= micp_included.aics_cnt) { in cmd_micp_mic_ctlr_aics_input_state_get()
321 micp_included.aics_cnt, index); in cmd_micp_mic_ctlr_aics_input_state_get()
330 result = bt_aics_state_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_state_get()
341 unsigned long index; in cmd_micp_mic_ctlr_aics_gain_setting_get() local
344 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_gain_setting_get()
351 if (index >= micp_included.aics_cnt) { in cmd_micp_mic_ctlr_aics_gain_setting_get()
353 micp_included.aics_cnt, index); in cmd_micp_mic_ctlr_aics_gain_setting_get()
362 result = bt_aics_gain_setting_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_gain_setting_get()
[all …]
Dvcp_vol_rend.c416 unsigned long index; in cmd_vcp_vol_rend_vocs_state_get() local
419 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_state_get()
426 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_state_get()
427 shell_error(sh, "Invalid index %lu", index); in cmd_vcp_vol_rend_vocs_state_get()
432 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_state_get()
443 unsigned long index; in cmd_vcp_vol_rend_vocs_location_get() local
446 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_location_get()
453 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_location_get()
454 shell_error(sh, "Invalid index %lu", index); in cmd_vcp_vol_rend_vocs_location_get()
459 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_location_get()
[all …]
Dvcp_vol_ctlr.c550 unsigned long index; in cmd_vcp_vol_ctlr_vocs_state_get() local
558 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_state_get()
565 if (index >= vcp_included.vocs_cnt) { in cmd_vcp_vol_ctlr_vocs_state_get()
567 vcp_included.vocs_cnt, index); in cmd_vcp_vol_ctlr_vocs_state_get()
572 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_state_get()
583 unsigned long index; in cmd_vcp_vol_ctlr_vocs_location_get() local
591 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_location_get()
598 if (index >= vcp_included.vocs_cnt) { in cmd_vcp_vol_ctlr_vocs_location_get()
600 vcp_included.vocs_cnt, index); in cmd_vcp_vol_ctlr_vocs_location_get()
605 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_location_get()
[all …]
/Zephyr-latest/doc/hardware/
Dindex.rst9 arch/index.rst
10 barriers/index.rst
12 cache/index.rst
13 emulator/index.rst
15 peripherals/index.rst
16 pinctrl/index.rst
17 porting/index
/Zephyr-latest/samples/bluetooth/broadcaster_multiple/src/
Dbroadcaster_multiple.c80 for (int index = 0; index < CONFIG_BT_EXT_ADV_MAX_ADV_SET; index++) { in broadcaster_multiple() local
82 adv_param.sid = index; in broadcaster_multiple()
85 err = bt_le_ext_adv_create(&adv_param, NULL, &adv[index]); in broadcaster_multiple()
88 index, err); in broadcaster_multiple()
93 err = bt_le_ext_adv_set_data(adv[index], ad, ARRAY_SIZE(ad), in broadcaster_multiple()
97 "(err %d)\n", index, err); in broadcaster_multiple()
102 err = bt_le_ext_adv_start(adv[index], in broadcaster_multiple()
106 "(err %d)\n", index, err); in broadcaster_multiple()
110 printk("Started Extended Advertising Set %d.\n", index); in broadcaster_multiple()
/Zephyr-latest/drivers/misc/renesas_ra_external_interrupt/
Drenesas_ra_external_interrupt.c140 #define GPIO_INTERRUPT_INIT(index) \ argument
141 static const struct gpio_ra_irq_config gpio_ra_irq_config##index = { \
142 .reg = DT_INST_REG_ADDR(index), \
143 .channel = DT_INST_PROP(index, channel), \
145 DT_INST_ENUM_IDX_OR(index, renesas_trigger, EXT_INTERRUPT_EDGE_FALLING), \
146 .digital_filter = DT_INST_PROP_OR(index, renesas_digital_filtering, false), \
148 DT_INST_PROP_OR(index, renesas_sample_clock_div, 1)), \
149 .irq = DT_INST_IRQ(index, irq), \
151 static struct gpio_ra_irq_data gpio_ra_irq_data##index; \
152 static int gpio_ra_irq_init##index(const struct device *dev) \
[all …]
/Zephyr-latest/subsys/fs/ext2/
Dext2_bitmap.c18 int ext2_bitmap_set(uint8_t *bm, uint32_t index, uint32_t size) in ext2_bitmap_set() argument
20 LOG_DBG("Setting %d bit in bitmap", index); in ext2_bitmap_set()
22 uint32_t idx = index / 8; in ext2_bitmap_set()
23 uint32_t off = index % 8; in ext2_bitmap_set()
26 LOG_ERR("Tried to set value outside of bitmap (%d)", index); in ext2_bitmap_set()
30 __ASSERT((bm[idx] & BIT(off)) == 0, "Bit %d set in bitmap", index); in ext2_bitmap_set()
39 int ext2_bitmap_unset(uint8_t *bm, uint32_t index, uint32_t size) in ext2_bitmap_unset() argument
41 LOG_DBG("Unsetting %d bit in bitmap", index); in ext2_bitmap_unset()
43 uint32_t idx = index / 8; in ext2_bitmap_unset()
44 uint32_t off = index % 8; in ext2_bitmap_unset()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/statistics/src/
Df32.c23 uint32_t index; in test_arm_max_f32() local
26 arm_max_f32((float32_t *)input1, length, &val, &index); in test_arm_max_f32()
32 zassert_equal(index, ref_max_idx[ref_index], in test_arm_max_f32()
61 uint32_t index; in test_arm_min_f32() local
64 arm_min_f32((float32_t *)input1, length, &val, &index); in test_arm_min_f32()
70 zassert_equal(index, ref_min_idx[ref_index], in test_arm_min_f32()
82 uint32_t index; in test_arm_absmax_f32() local
85 arm_absmax_f32((float32_t *)input1, length, &val, &index); in test_arm_absmax_f32()
91 zassert_equal(index, ref_absmax_idx[ref_index], in test_arm_absmax_f32()
103 uint32_t index; in test_arm_absmin_f32() local
[all …]
Df16.c39 uint32_t index; in test_arm_max_f16() local
42 arm_max_f16((float16_t *)input1, length, &val, &index); in test_arm_max_f16()
48 zassert_equal(index, ref_max_idx[ref_index], in test_arm_max_f16()
77 uint32_t index; in test_arm_min_f16() local
80 arm_min_f16((float16_t *)input1, length, &val, &index); in test_arm_min_f16()
86 zassert_equal(index, ref_min_idx[ref_index], in test_arm_min_f16()
98 uint32_t index; in test_arm_absmax_f16() local
101 arm_absmax_f16((float16_t *)input1, length, &val, &index); in test_arm_absmax_f16()
107 zassert_equal(index, ref_absmax_idx[ref_index], in test_arm_absmax_f16()
119 uint32_t index; in test_arm_absmin_f16() local
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_ll_stm32.c543 #define STM32_I2C_IRQ_CONNECT_AND_ENABLE(index) \ argument
545 IRQ_CONNECT(DT_INST_IRQN(index), \
546 DT_INST_IRQ(index, priority), \
548 DEVICE_DT_INST_GET(index), 0); \
549 irq_enable(DT_INST_IRQN(index)); \
552 #define STM32_I2C_IRQ_CONNECT_AND_ENABLE(index) \ argument
554 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(index, event, irq), \
555 DT_INST_IRQ_BY_NAME(index, event, priority),\
557 DEVICE_DT_INST_GET(index), 0); \
558 irq_enable(DT_INST_IRQ_BY_NAME(index, event, irq)); \
[all …]
/Zephyr-latest/doc/services/portability/posix/
Dindex.rst9 overview/index.rst
10 conformance/index.rst
11 aep/index.rst
12 implementation/index.rst
13 option_groups/index.rst
14 kconfig/index.rst
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_tbs.h17 uint8_t index; member
27 uint8_t index; member
32 uint8_t index; member
39 uint8_t index; member
45 uint8_t index; member
53 uint8_t index; member
59 uint8_t index; member
64 uint8_t index; member
71 uint8_t index; member
/Zephyr-latest/drivers/interrupt_controller/
Dintc_ite_it8xxx2_v2.c80 uint32_t group, index; in ite_intc_isr_clear() local
87 index = irq % MAX_REGISR_IRQ_NUM; in ite_intc_isr_clear()
89 IT8XXX2_INTC_ISR(group) = BIT(index); in ite_intc_isr_clear()
94 uint32_t group, index; in ite_intc_irq_enable() local
101 index = irq % MAX_REGISR_IRQ_NUM; in ite_intc_irq_enable()
106 IT8XXX2_INTC_IER(group) |= BIT(index); in ite_intc_irq_enable()
113 uint32_t group, index; in ite_intc_irq_disable() local
120 index = irq % MAX_REGISR_IRQ_NUM; in ite_intc_irq_disable()
125 IT8XXX2_INTC_IER(group) &= ~BIT(index); in ite_intc_irq_disable()
137 uint32_t group, index; in ite_intc_irq_polarity_set() local
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/fastmath/src/
Df32.c24 size_t index; in ZTEST() local
33 for (index = 0; index < length; index++) { in ZTEST()
34 output[index] = arm_cos_f32(((float32_t *)in_angles)[index]); in ZTEST()
54 size_t index; in ZTEST() local
63 for (index = 0; index < length; index++) { in ZTEST()
64 output[index] = arm_sin_f32(((float32_t *)in_angles)[index]); in ZTEST()
84 size_t index; in ZTEST() local
94 for (index = 0; index < length; index++) { in ZTEST()
96 ((float32_t *)in_sqrt)[index], &output[index]); in ZTEST()
99 if (((float32_t *)in_sqrt)[index] < 0.0f) { in ZTEST()
/Zephyr-latest/soc/andestech/ae350/
Dpma.c56 # define PMACFG_NUM(index) ((index / RV_REGSIZE) * 2) argument
58 # define PMACFG_NUM(index) (index / RV_REGSIZE) argument
60 #define PMACFG_SHIFT(index) ((index % RV_REGSIZE) * 8) argument
77 static void write_pmaaddr_csr(const uint32_t index, unsigned long value) in write_pmaaddr_csr() argument
83 switch (index) { in write_pmaaddr_csr()
95 uint32_t index = PMACFG_NUM(entry_index); in write_pmacfg_entry() local
103 switch (index) { in write_pmacfg_entry()
116 switch (index) { in write_pmacfg_entry()
127 static void region_init(const uint32_t index, in region_init() argument
141 write_pmaaddr_csr(index, pmaaddr); in region_init()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_obj_swmgmt.c249 int index; in find_index() local
251 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in find_index()
252 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in find_index()
253 return &swmgmt_data[index]; in find_index()
684 int index, res_idx = 0, res_inst_idx = 0; in swmgmt_create() local
687 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in swmgmt_create()
688 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in swmgmt_create()
696 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in swmgmt_create()
697 if (!inst[index].obj) { in swmgmt_create()
702 if (index >= MAX_INSTANCE_COUNT) { in swmgmt_create()
[all …]
Dlwm2m_obj_firmware.c420 int index, i = 0, j = 0; in firmware_create() local
423 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in firmware_create()
424 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in firmware_create()
431 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in firmware_create()
432 if (!inst[index].obj) { in firmware_create()
437 if (index >= MAX_INSTANCE_COUNT) { in firmware_create()
443 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in firmware_create()
446 INIT_OBJ_RES_OPT(FIRMWARE_PACKAGE_ID, res[index], i, res_inst[index], j, 1, in firmware_create()
448 INIT_OBJ_RES_LEN(FIRMWARE_PACKAGE_URI_ID, res[index], i, res_inst[index], j, 1, in firmware_create()
449 false, true, package_uri[index], PACKAGE_URI_LEN, 0, NULL, NULL, NULL, in firmware_create()
[all …]
/Zephyr-latest/tests/kernel/common/src/
Dmain.c55 int index = 17; in ZTEST() local
57 index = k_array_index_sanitize(index, 24); in ZTEST()
58 zassert_equal(index, 17, "bad index"); in ZTEST()
61 index = k_array_index_sanitize(index, 5); in ZTEST()
62 zassert_equal(index, 0, "bad index"); in ZTEST()
/Zephyr-latest/drivers/spi/
Dspi_b_renesas_ra8.c619 #define RA_SPI_B_IRQ_CONFIG_INIT(index) \ argument
623 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(index, rxi, irq)] = \
624 ELC_EVENT_SPI_RXI(DT_INST_PROP(index, channel)); \
625 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(index, txi, irq)] = \
626 ELC_EVENT_SPI_TXI(DT_INST_PROP(index, channel)); \
627 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(index, tei, irq)] = \
628 ELC_EVENT_SPI_TEI(DT_INST_PROP(index, channel)); \
629 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(index, eri, irq)] = \
630 ELC_EVENT_SPI_ERI(DT_INST_PROP(index, channel)); \
632 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(index, rxi, irq), \
[all …]
/Zephyr-latest/arch/x86/core/
Dmultiboot.c30 static inline void clear_memmap(int index) in clear_memmap() argument
32 while (index < CONFIG_X86_MEMMAP_ENTRIES) { in clear_memmap()
33 x86_memmap[index].type = X86_MEMMAP_ENTRY_UNUSED; in clear_memmap()
34 ++index; in clear_memmap()
74 int index = 0; in z_multiboot_init() local
91 (index < CONFIG_X86_MEMMAP_ENTRIES)) { in z_multiboot_init()
94 x86_memmap[index].base = mmap->base; in z_multiboot_init()
95 x86_memmap[index].length = mmap->length; in z_multiboot_init()
114 x86_memmap[index].type = type; in z_multiboot_init()
115 ++index; in z_multiboot_init()
[all …]

12345678910>>...31