/Zephyr-latest/samples/modules/cmsis_dsp/moving_average/src/ |
D | main.c | 13 #define BLOCK_SIZE 32 /* Number of samples processed per block */ macro 22 q31_t firState[NUM_TAPS + BLOCK_SIZE - 1]; 26 q31_t input[BLOCK_SIZE]; in main() 27 q31_t output[BLOCK_SIZE]; in main() 31 for (int i = 0; i < BLOCK_SIZE; i++) { in main() 36 arm_fir_init_q31(&sFIR, NUM_TAPS, firCoeffs, firState, BLOCK_SIZE); in main() 40 arm_fir_q31(&sFIR, input, output, BLOCK_SIZE); in main() 45 for (int i = 0; i < BLOCK_SIZE; i++) { in main()
|
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/ |
D | test_i2s_errors.c | 21 .block_size = BLOCK_SIZE, in ZTEST_USER() 54 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() 59 .block_size = BLOCK_SIZE, in ZTEST_USER() 68 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER() 87 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() 92 .block_size = BLOCK_SIZE, in ZTEST_USER() 101 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER() 111 char tx_data[BLOCK_SIZE] = {0}; in ZTEST_USER() 116 .block_size = BLOCK_SIZE, in ZTEST_USER() 125 err = i2s_buf_write(dev_i2s, tx_data, BLOCK_SIZE); in ZTEST_USER() [all …]
|
D | common.c | 12 K_MEM_SLAB_DEFINE(rx_mem_slab, BLOCK_SIZE, NUM_RX_BLOCKS, 32); 13 K_MEM_SLAB_DEFINE(tx_mem_slab, BLOCK_SIZE, NUM_TX_BLOCKS, 32); 111 char tx_block[BLOCK_SIZE]; in tx_block_write_slab() 115 ret = i2s_buf_write(dev_i2s, tx_block, BLOCK_SIZE); in tx_block_write_slab() 133 char rx_block[BLOCK_SIZE]; in rx_block_read_slab() 138 if (ret < 0 || rx_size != BLOCK_SIZE) { in rx_block_read_slab() 165 i2s_cfg.block_size = BLOCK_SIZE; in configure_stream()
|
D | i2s_api_test.h | 35 #define BLOCK_SIZE (2 * sizeof(data_l)) macro
|
D | test_i2s_loopback.c | 151 char buf[BLOCK_SIZE]; in ZTEST_USER() 156 ret = i2s_buf_write(dev_i2s_tx, buf, BLOCK_SIZE); in ZTEST_USER() 197 char buf[BLOCK_SIZE]; in ZTEST_USER() 304 char rx_buf[BLOCK_SIZE]; in ZTEST_USER()
|
D | test_i2s_states.c | 24 char rx_buf[BLOCK_SIZE]; in ZTEST_USER() 257 char rx_buf[BLOCK_SIZE]; in ZTEST_USER()
|
D | test_i2s_dir_both_states.c | 131 char rx_buf[BLOCK_SIZE]; in ZTEST_USER()
|
D | test_i2s_dir_both_loopback.c | 199 char rx_buf[BLOCK_SIZE]; in ZTEST_USER()
|
/Zephyr-latest/tests/drivers/i2s/i2s_speed/src/ |
D | test_i2s_speed.c | 47 #define BLOCK_SIZE (2 * sizeof(data_l)) macro 62 _k_mem_slab_buf_rx_0_mem_slab[(NUM_BLOCKS + 2) * WB_UP(BLOCK_SIZE)]; 65 WB_UP(BLOCK_SIZE), NUM_BLOCKS + 2); 68 _k_mem_slab_buf_tx_0_mem_slab[(NUM_BLOCKS) * WB_UP(BLOCK_SIZE)]; 71 WB_UP(BLOCK_SIZE), NUM_BLOCKS); 139 i2s_cfg.block_size = BLOCK_SIZE; in configure_stream() 210 ret = i2s_write(dev_i2s_tx, tx_block, BLOCK_SIZE); in ZTEST() 230 zassert_equal(rx_size, BLOCK_SIZE); in ZTEST() 234 zassert_equal(rx_size, BLOCK_SIZE); in ZTEST() 242 zassert_equal(rx_size, BLOCK_SIZE); in ZTEST() [all …]
|
/Zephyr-latest/samples/drivers/i2s/output/src/ |
D | main.c | 44 #define BLOCK_SIZE (2 * sizeof(data)) macro 53 _k_mem_slab_buf_tx_0_mem_slab[(NUM_BLOCKS) * WB_UP(BLOCK_SIZE)]; 57 WB_UP(BLOCK_SIZE), NUM_BLOCKS); 76 i2s_cfg.block_size = BLOCK_SIZE; in main() 101 ret = i2s_write(dev_i2s, tx_block[tx_idx++], BLOCK_SIZE); in main() 114 ret = i2s_write(dev_i2s, tx_block[tx_idx++], BLOCK_SIZE); in main()
|
/Zephyr-latest/subsys/usb/device/class/ |
D | msc.c | 111 #define BLOCK_SIZE 512 macro 114 BUILD_ASSERT(MAX_PACKET <= BLOCK_SIZE); 178 static uint8_t __aligned(4) page[BLOCK_SIZE + CONFIG_MASS_STORAGE_BULK_EP_MPS]; 435 (uint8_t)((BLOCK_SIZE >> 16) & 0xff), in readFormatCapacity() 436 (uint8_t)((BLOCK_SIZE >> 8) & 0xff), in readFormatCapacity() 437 (uint8_t)((BLOCK_SIZE >> 0) & 0xff), in readFormatCapacity() 448 sys_put_be32(BLOCK_SIZE, &capacity[4]); in readCapacity() 460 if (n > BLOCK_SIZE - curr_offset) { in thread_memory_read_done() 461 n = BLOCK_SIZE - curr_offset; in thread_memory_read_done() 470 if (curr_offset >= BLOCK_SIZE) { in thread_memory_read_done() [all …]
|
/Zephyr-latest/samples/drivers/i2s/i2s_codec/src/ |
D | main.c | 30 #define BLOCK_SIZE (BYTES_PER_SAMPLE * SAMPLES_PER_BLOCK) macro 32 K_MEM_SLAB_DEFINE_STATIC(mem_slab, BLOCK_SIZE, BLOCK_COUNT, 4); 121 audio_cfg.dai_cfg.i2s.block_size = BLOCK_SIZE; in main() 131 cfg.streams[0].block_size = BLOCK_SIZE; in main() 149 config.block_size = BLOCK_SIZE; in main() 168 uint32_t block_size = BLOCK_SIZE; in main()
|
/Zephyr-latest/samples/drivers/audio/dmic/src/ |
D | main.c | 20 #define BLOCK_SIZE(_sample_rate, _number_of_channels) \ macro 27 #define MAX_BLOCK_SIZE BLOCK_SIZE(MAX_SAMPLE_RATE, 2) 114 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main() 127 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
|
/Zephyr-latest/tests/drivers/audio/dmic_api/src/ |
D | main.c | 27 #define BLOCK_SIZE(_sample_rate, _number_of_channels) \ macro 37 #define MAX_BLOCK_SIZE BLOCK_SIZE(MAX_SAMPLE_RATE, PDM_CHANNELS) 138 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 153 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 187 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 205 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST() 276 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
|
/Zephyr-latest/tests/lib/multi_heap/src/ |
D | test_mheap_concept.c | 11 #define BLOCK_SIZE 16 macro 58 pool_blocks[thread_id] = k_malloc(BLOCK_SIZE); in tmheap_handler()
|
/Zephyr-latest/samples/drivers/i2s/echo/src/ |
D | main.c | 42 #define BLOCK_SIZE (BYTES_PER_SAMPLE * SAMPLES_PER_BLOCK) macro 44 K_MEM_SLAB_DEFINE_STATIC(mem_slab, BLOCK_SIZE, BLOCK_COUNT, 4); 200 memset(mem_block, 0, BLOCK_SIZE); in prepare_transfer() 202 ret = i2s_write(i2s_dev_tx, mem_block, BLOCK_SIZE); in prepare_transfer() 281 config.block_size = BLOCK_SIZE; in main()
|
/Zephyr-latest/samples/boards/nordic/nrf_led_matrix/src/ |
D | main.c | 118 BLOCK_SIZE = 5, in update_through_framebuffer() enumerator 119 STEPS = BLOCK_SIZE - 1, in update_through_framebuffer() 134 for (uint8_t column = 0; column < BLOCK_SIZE; ++column) { in update_through_framebuffer() 135 for (uint8_t row = 0; row < BLOCK_SIZE; ++row) { in update_through_framebuffer()
|
/Zephyr-latest/subsys/bluetooth/controller/util/ |
D | mem.c | 142 #define BLOCK_SIZE MROUND(10) in mem_ut() macro 144 uint8_t MALIGN(4) pool[BLOCK_COUNT][BLOCK_SIZE]; in mem_ut() 150 mem_init(pool, BLOCK_SIZE, BLOCK_COUNT, &mem_free); in mem_ut()
|
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/ |
D | main.c | 30 #define BLOCK_SIZE (SAMPLES_PER_SOF * BYTES_PER_SLOT) macro 118 size = BLOCK_SIZE; in uac2_data_recv_cb()
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | test_threads_cancel_abort.c | 14 #define BLOCK_SIZE 64 macro
|
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/ |
D | main.c | 32 #define BLOCK_SIZE (SAMPLES_PER_SOF * BYTES_PER_SLOT) macro
|