/Zephyr-latest/tests/drivers/i2s/i2s_speed/src/ |
D | test_i2s_speed.c | 86 static int verify_buf(int16_t *rx_block, int att) in verify_buf() argument 100 } while (rx_block[2 * offset] != data_l[0] >> att); in verify_buf() 105 rx_block += 2 * offset; in verify_buf() 110 if (rx_block[2 * i] != data_l[i] >> att) { in verify_buf() 113 att, i, data_l[i] >> att, rx_block[2 * i]); in verify_buf() 116 if (rx_block[2 * i + 1] != data_r[i] >> att) { in verify_buf() 119 att, i, data_r[i] >> att, rx_block[2 * i + 1]); in verify_buf() 199 void *rx_block[3]; in ZTEST() local 228 ret = i2s_read(dev_i2s_rx, &rx_block[0], &rx_size); in ZTEST() 232 ret = i2s_read(dev_i2s_rx, &rx_block[1], &rx_size); in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/ |
D | common.c | 39 static int verify_buf(int16_t *rx_block, int att) in verify_buf() argument 53 } while (rx_block[2 * offset] != data_l[0] >> att); in verify_buf() 58 rx_block += 2 * offset; in verify_buf() 63 if (rx_block[2 * i] != data_l[i] >> att) { in verify_buf() 66 att, i, data_l[i] >> att, rx_block[2 * i]); in verify_buf() 69 if (rx_block[2 * i + 1] != data_r[i] >> att) { in verify_buf() 72 att, i, data_r[i] >> att, rx_block[2 * i + 1]); in verify_buf() 88 int verify_buf_const(int16_t *rx_block, int16_t val_l, int16_t val_r) in verify_buf_const() argument 91 if (rx_block[2 * i] != val_l) { in verify_buf_const() 94 i, val_l, rx_block[2 * i]); in verify_buf_const() [all …]
|
D | i2s_api_test.h | 44 int verify_buf_const(int16_t *rx_block, int16_t val_l, int16_t val_r);
|
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/ |
D | main.c | 243 void *rx_block; in process_mic_data() local 254 rx_block = NULL; in process_mic_data() 257 ret = i2s_read(ctx->i2s_dev, &rx_block, &num_bytes); in process_mic_data() 262 sys_cache_data_invd_range(rx_block, num_bytes); in process_mic_data() 269 src = rx_block; in process_mic_data() 276 mic_buf = rx_block; in process_mic_data() 283 k_mem_slab_free(&i2s_rx_slab, rx_block); in process_mic_data() 305 if (rx_block != mic_buf) { in process_mic_data() 307 k_mem_slab_free(&i2s_rx_slab, rx_block); in process_mic_data() 310 ret = i2s_read(ctx->i2s_dev, &rx_block, &num_bytes); in process_mic_data() [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/microphone/src/ |
D | main.c | 43 void *rx_block[NUM_MS]; variable 73 ret = dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000); in main() 92 uint16_t *pcm_out = rx_block[i]; in main() 104 uint16_t *pcm_out = rx_block[i]; in main()
|
/Zephyr-latest/samples/boards/96boards/argonkey/microphone/src/ |
D | main.c | 70 void *rx_block[NUM_MS]; variable 137 ret = dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000); in main() 158 uint16_t *pcm_out = rx_block[i]; in main() 170 uint16_t *pcm_out = rx_block[i]; in main()
|
/Zephyr-latest/drivers/spi/ |
D | spi_smartbond.c | 817 struct dma_block_config *rx_block = &data->rx_dma_block_cfg; in spi_smartbond_dma_config() local 899 rx_block->source_addr_adj = 0x2; in spi_smartbond_dma_config() 901 rx_block->dest_addr_adj = 0x0; in spi_smartbond_dma_config() 902 rx_block->source_address = (uint32_t)&config->regs->SPI_RX_TX_REG; in spi_smartbond_dma_config() 908 rx_block->block_size = 0; in spi_smartbond_dma_config() 910 rx_block->dest_address = 0; in spi_smartbond_dma_config() 923 struct dma_block_config *rx_block = &data->rx_dma_block_cfg; in spi_smartbond_dma_trigger() local 939 rx_block->block_size = data->rx_len * data->dfs; in spi_smartbond_dma_trigger() 940 tx_block->block_size = rx_block->block_size; in spi_smartbond_dma_trigger() 942 rx_block->dest_address = (uint32_t)ctx->rx_buf; in spi_smartbond_dma_trigger() [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_smartbond.c | 219 struct dma_block_config *rx_block = &usbd_dma_cfg.rx_block_cfg; in usb_smartbond_dma_config() local 269 rx->head_block = rx_block; in usb_smartbond_dma_config() 286 rx_block->source_addr_adj = 0x2; in usb_smartbond_dma_config() 288 rx_block->dest_addr_adj = 0x0; in usb_smartbond_dma_config() 291 rx_block->source_address = 0; in usb_smartbond_dma_config() 293 rx_block->dest_address = MCU_SYSRAM_M_BASE; in usb_smartbond_dma_config() 295 rx_block->block_size = 0; in usb_smartbond_dma_config()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_smartbond.c | 133 struct dma_block_config *rx_block = &data->dma_data.rx_block_cfg; in usb_smartbond_dma_config() local 181 rx->head_block = rx_block; in usb_smartbond_dma_config() 198 rx_block->source_addr_adj = 0x2; in usb_smartbond_dma_config() 200 rx_block->dest_addr_adj = 0x0; in usb_smartbond_dma_config() 203 rx_block->source_address = 0; in usb_smartbond_dma_config() 205 rx_block->dest_address = MCU_SYSRAM_M_BASE; in usb_smartbond_dma_config() 207 rx_block->block_size = 0; in usb_smartbond_dma_config()
|