Home
last modified time | relevance | path

Searched refs:mem_slab (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-Core-3.4.0/drivers/i2s/
Di2s_handlers.c29 if (Z_SYSCALL_OBJ(config.mem_slab, K_OBJ_MEM_SLAB)) { in z_vrfy_i2s_configure()
36 if (config.block_size > config.mem_slab->block_size) { in z_vrfy_i2s_configure()
69 k_mem_slab_free(rx_cfg->mem_slab, &mem_block); in z_vrfy_i2s_buf_read()
96 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_vrfy_i2s_buf_write()
103 k_mem_slab_free(tx_cfg->mem_slab, &mem_block); in z_vrfy_i2s_buf_write()
109 k_mem_slab_free(tx_cfg->mem_slab, &mem_block); in z_vrfy_i2s_buf_write()
Di2s_common.c24 k_mem_slab_free(rx_cfg->mem_slab, &mem_block); in z_impl_i2s_buf_read()
45 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_impl_i2s_buf_write()
54 k_mem_slab_free(tx_cfg->mem_slab, &mem_block); in z_impl_i2s_buf_write()
Di2s_mcux_sai.c120 struct k_mem_slab *mem_slab, in i2s_purge_stream_buffers() argument
127 k_mem_slab_free(mem_slab, &buffer); in i2s_purge_stream_buffers()
133 k_mem_slab_free(mem_slab, &buffer); in i2s_purge_stream_buffers()
172 i2s_purge_stream_buffers(strm, dev_data->tx.cfg.mem_slab, in i2s_tx_stream_disable()
207 i2s_purge_stream_buffers(strm, dev_data->rx.cfg.mem_slab, in i2s_rx_stream_disable()
280 k_mem_slab_free(strm->cfg.mem_slab, &buffer); in i2s_dma_tx_callback()
382 ret = k_mem_slab_alloc(strm->cfg.mem_slab, in i2s_dma_rx_callback()
386 strm->cfg.mem_slab, ret); in i2s_dma_rx_callback()
661 (uint32_t)i2s_cfg->mem_slab->free_list); in i2s_mcux_config()
663 (uint32_t)i2s_cfg->mem_slab->num_blocks); in i2s_mcux_config()
[all …]
Di2s_mcux_flexcomm.c278 struct k_mem_slab *mem_slab) in i2s_purge_stream_buffers() argument
283 k_mem_slab_free(mem_slab, &buffer); in i2s_purge_stream_buffers()
286 k_mem_slab_free(mem_slab, &buffer); in i2s_purge_stream_buffers()
327 i2s_purge_stream_buffers(stream, stream->cfg.mem_slab); in i2s_mcux_tx_stream_disable()
354 i2s_purge_stream_buffers(stream, stream->cfg.mem_slab); in i2s_mcux_rx_stream_disable()
435 k_mem_slab_free(stream->cfg.mem_slab, &buffer); in i2s_mcux_dma_tx_callback()
516 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &buffer, K_NO_WAIT); in i2s_mcux_dma_rx_callback()
519 stream->cfg.mem_slab, ret); in i2s_mcux_dma_rx_callback()
599 num_of_bufs = k_mem_slab_num_free_get(stream->cfg.mem_slab); in i2s_mcux_rx_stream_start()
610 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &buffer[i], in i2s_mcux_rx_stream_start()
Di2s_ll_stm32.c543 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &stream->mem_block, in dma_rx_callback()
603 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in dma_tx_callback()
722 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &stream->mem_block, in rx_stream_start()
809 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in rx_stream_disable()
827 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in tx_stream_disable()
842 k_mem_slab_free(stream->cfg.mem_slab, &mem_block); in rx_queue_drop()
855 k_mem_slab_free(stream->cfg.mem_slab, &mem_block); in tx_queue_drop()
Di2s_sam_ssc.c240 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &stream->mem_block, in dma_rx_callback()
280 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in dma_tx_callback()
639 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &stream->mem_block, in rx_stream_start()
739 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in rx_stream_disable()
751 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in tx_stream_disable()
762 k_mem_slab_free(stream->cfg.mem_slab, &mem_block); in rx_queue_drop()
775 k_mem_slab_free(stream->cfg.mem_slab, &mem_block); in tx_queue_drop()
Di2s_nrfx.c201 int ret = k_mem_slab_alloc(drv_data->rx.cfg.mem_slab, in get_next_rx_buffer()
216 k_mem_slab_free(drv_data->tx.cfg.mem_slab, (void **)&buffer); in free_tx_buffer()
222 k_mem_slab_free(drv_data->rx.cfg.mem_slab, &buffer); in free_rx_buffer()
424 __ASSERT_NO_MSG(i2s_cfg->mem_slab != NULL && in i2s_nrfx_configure()
Di2s_litex.c547 ret = k_mem_slab_alloc(stream->cfg.mem_slab, &stream->mem_block, in i2s_litex_isr_rx()
591 k_mem_slab_free(stream->cfg.mem_slab, &stream->mem_block); in i2s_litex_isr_tx()
/Zephyr-Core-3.4.0/samples/drivers/audio/dmic/src/
Dmain.c29 K_MEM_SLAB_DEFINE_STATIC(mem_slab, MAX_BLOCK_SIZE, BLOCK_COUNT, 4);
65 k_mem_slab_free(&mem_slab, &buffer); in do_pdm_transfer()
91 .mem_slab = &mem_slab, in main()
/Zephyr-Core-3.4.0/drivers/led_strip/
Dws2812_i2s.c39 struct k_mem_slab *mem_slab; member
91 ret = k_mem_slab_alloc(cfg->mem_slab, &mem_block, K_SECONDS(10)); in ws2812_strip_update_rgb()
142 k_mem_slab_free(cfg->mem_slab, &mem_block); in ws2812_strip_update_rgb()
190 config.mem_slab = cfg->mem_slab; in ws2812_i2s_init()
251 .mem_slab = &ws2812_i2s_##idx##_slab, \
/Zephyr-Core-3.4.0/samples/boards/litex/i2s/src/
Dmain.c52 i2s_rx_cfg.mem_slab = &i2s_rx_mem_slab; in init()
77 i2s_tx_cfg.mem_slab = &i2s_tx_mem_slab; in init()
/Zephyr-Core-3.4.0/samples/drivers/i2s/echo/src/
Dmain.c44 K_MEM_SLAB_DEFINE_STATIC(mem_slab, BLOCK_SIZE, BLOCK_COUNT, 4);
194 ret = k_mem_slab_alloc(&mem_slab, &mem_block, K_NO_WAIT); in prepare_transfer()
280 config.mem_slab = &mem_slab; in main()
/Zephyr-Core-3.4.0/drivers/audio/
Dmpxxdtyy-i2s.c104 data->pcm_mem_slab = cfg->streams->mem_slab; in mpxxdtyy_i2s_configure()
134 i2s_cfg.mem_slab = &rx_pdm_i2s_mslab; in mpxxdtyy_i2s_configure()
Ddmic_nrfx_pdm.c20 struct k_mem_slab *mem_slab; member
42 k_mem_slab_free(drv_data->mem_slab, &buffer); in free_buffer()
56 ret = k_mem_slab_alloc(drv_data->mem_slab, &buffer, K_NO_WAIT); in event_handler()
371 drv_data->mem_slab = stream->mem_slab; in dmic_nrfx_pdm_configure()
/Zephyr-Core-3.4.0/tests/bluetooth/audio/mocks/
DCMakeLists.txt18 src/mem_slab.c
/Zephyr-Core-3.4.0/tests/drivers/i2s/i2s_api/src/
Dcommon.c186 i2s_cfg.mem_slab = &tx_mem_slab; in configure_stream()
196 i2s_cfg.mem_slab = &rx_mem_slab; in configure_stream()
Dtest_i2s_states.c27 i2s_cfg.mem_slab = &rx_mem_slab; in ZTEST_USER()
51 i2s_cfg.mem_slab = &tx_mem_slab; in ZTEST_USER()
/Zephyr-Core-3.4.0/samples/shields/x_nucleo_iks02a1/microphone/src/
Dmain.c28 .mem_slab = &rx_mem_slab,
/Zephyr-Core-3.4.0/include/zephyr/audio/
Ddmic.h113 struct k_mem_slab *mem_slab; member
/Zephyr-Core-3.4.0/samples/boards/96b_argonkey/microphone/src/
Dmain.c31 .mem_slab = &rx_mem_slab,
/Zephyr-Core-3.4.0/include/zephyr/drivers/
Di2s.h307 struct k_mem_slab *mem_slab; member
/Zephyr-Core-3.4.0/kernel/
DCMakeLists.txt28 mem_slab.c
/Zephyr-Core-3.4.0/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c160 i2s_cfg.mem_slab = &tx_0_mem_slab; in configure_stream()
170 i2s_cfg.mem_slab = &rx_0_mem_slab; in configure_stream()
/Zephyr-Core-3.4.0/doc/releases/
Drelease-notes-1.11.rst261 * :github:`3747` - tests/kernel/mem_slab/test_mslab_threadsafe/testcase.ini#test type:qemu-zephyr-a…
277 * :github:`4010` - [CID: 174928]: Control flow issues in /tests/kernel/mem_slab/mslab/src/slab.c
/Zephyr-Core-3.4.0/boards/x86/qemu_x86/
Dqemu_x86_tiny.ld555 /* For tests/kernel/mem_slab/ tests */

12