Searched refs:tx_block (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/samples/drivers/i2s/output/src/ |
D | main.c | 30 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument 36 tx_block[2 * i] = data[i] / (1 << att); in fill_buf() 39 tx_block[2 * i + 1] = data[r_idx] / (1 << att); in fill_buf() 61 void *tx_block[NUM_BLOCKS]; in main() local 90 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in main() 96 fill_buf((uint16_t *)tx_block[tx_idx], tx_idx % 3); 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/tests/drivers/i2s/i2s_speed/src/ |
D | test_i2s_speed.c | 78 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument 81 tx_block[2 * i] = data_l[i] >> att; in fill_buf() 82 tx_block[2 * i + 1] = data_r[i] >> att; in fill_buf() 200 void *tx_block; in ZTEST() local 206 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block, K_FOREVER); in ZTEST() 208 fill_buf((uint16_t *)tx_block, i); in ZTEST() 210 ret = i2s_write(dev_i2s_tx, tx_block, BLOCK_SIZE); in ZTEST() 278 void *tx_block[NUM_BLOCKS]; in ZTEST() local 287 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in ZTEST() 290 fill_buf((uint16_t *)tx_block[tx_idx], tx_idx % 3); in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/ |
D | common.c | 31 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument 34 tx_block[2 * i] = data_l[i] >> att; in fill_buf() 35 tx_block[2 * i + 1] = data_r[i] >> att; in fill_buf() 80 void fill_buf_const(int16_t *tx_block, int16_t val_l, int16_t val_r) in fill_buf_const() argument 83 tx_block[2 * i] = val_l; in fill_buf_const() 84 tx_block[2 * i + 1] = val_r; in fill_buf_const() 111 char tx_block[BLOCK_SIZE]; in tx_block_write_slab() local 114 fill_buf((uint16_t *)tx_block, att); in tx_block_write_slab() 115 ret = i2s_buf_write(dev_i2s, tx_block, BLOCK_SIZE); in tx_block_write_slab()
|
D | i2s_api_test.h | 43 void fill_buf_const(int16_t *tx_block, int16_t val_l, int16_t val_r);
|
/Zephyr-latest/drivers/spi/ |
D | spi_smartbond.c | 816 struct dma_block_config *tx_block = &data->tx_dma_block_cfg; in spi_smartbond_dma_config() local 869 tx_block->dest_addr_adj = 0x2; in spi_smartbond_dma_config() 871 tx_block->source_addr_adj = 0x0; in spi_smartbond_dma_config() 872 tx_block->dest_address = (uint32_t)&config->regs->SPI_RX_TX_REG; in spi_smartbond_dma_config() 878 tx_block->block_size = 0; in spi_smartbond_dma_config() 880 tx_block->source_address = 0; in spi_smartbond_dma_config() 922 struct dma_block_config *tx_block = &data->tx_dma_block_cfg; in spi_smartbond_dma_trigger() local 940 tx_block->block_size = rx_block->block_size; in spi_smartbond_dma_trigger() 944 tx_block->source_address = (uint32_t)&spi_smartbond_read_dummy_buf; in spi_smartbond_dma_trigger() 946 tx_block->source_addr_adj = 0x2; in spi_smartbond_dma_trigger() [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_smartbond.c | 218 struct dma_block_config *tx_block = &usbd_dma_cfg.tx_block_cfg; in usb_smartbond_dma_config() local 237 tx->head_block = tx_block; in usb_smartbond_dma_config() 254 tx_block->dest_addr_adj = 0x2; in usb_smartbond_dma_config() 256 tx_block->source_addr_adj = 0x0; in usb_smartbond_dma_config() 259 tx_block->source_address = 0; in usb_smartbond_dma_config() 261 tx_block->dest_address = MCU_SYSRAM_M_BASE; in usb_smartbond_dma_config() 263 tx_block->block_size = 0; in usb_smartbond_dma_config()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_smartbond.c | 132 struct dma_block_config *tx_block = &data->dma_data.tx_block_cfg; in usb_smartbond_dma_config() local 149 tx->head_block = tx_block; in usb_smartbond_dma_config() 166 tx_block->dest_addr_adj = 0x2; in usb_smartbond_dma_config() 168 tx_block->source_addr_adj = 0x0; in usb_smartbond_dma_config() 171 tx_block->source_address = 0; in usb_smartbond_dma_config() 173 tx_block->dest_address = MCU_SYSRAM_M_BASE; in usb_smartbond_dma_config() 175 tx_block->block_size = 0; in usb_smartbond_dma_config()
|
/Zephyr-latest/doc/releases/ |
D | release-notes-2.4.rst | 944 * :github:`28347` - Possible use-after-free of rx_msg->tx_block in kernel/mailbox.c
|