Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 239) sorted by relevance

12345678910

/sof-3.4.0/src/audio/
Dbuffer.c23 LOG_MODULE_REGISTER(buffer, CONFIG_SOF_LOG_LEVEL);
32 struct comp_buffer *buffer; in buffer_alloc() local
48 buffer = coherent_init_thread(struct comp_buffer, c); in buffer_alloc()
49 if (!buffer) { in buffer_alloc()
54 buffer->stream.addr = rballoc_align(0, caps, size, align); in buffer_alloc()
55 if (!buffer->stream.addr) { in buffer_alloc()
56 rfree(buffer); in buffer_alloc()
62 list_init(&buffer->source_list); in buffer_alloc()
63 list_init(&buffer->sink_list); in buffer_alloc()
66 buffer_c = buffer_acquire(buffer); in buffer_alloc()
[all …]
/sof-3.4.0/src/include/sof/audio/
Daudio_stream.h98 #define audio_stream_read_frag(buffer, idx, size) \ argument
99 audio_stream_get_frag(buffer, (buffer)->r_ptr, idx, size)
109 #define audio_stream_read_frag_s16(buffer, idx) \ argument
110 audio_stream_get_frag(buffer, (buffer)->r_ptr, idx, sizeof(int16_t))
120 #define audio_stream_read_frag_s32(buffer, idx) \ argument
121 audio_stream_get_frag(buffer, (buffer)->r_ptr, idx, sizeof(int32_t))
141 #define audio_stream_write_frag(buffer, idx, size) \ argument
142 audio_stream_get_frag(buffer, (buffer)->w_ptr, idx, size)
152 #define audio_stream_write_frag_s16(buffer, idx) \ argument
153 audio_stream_get_frag(buffer, (buffer)->w_ptr, idx, sizeof(int16_t))
[all …]
Dbuffer.h166 struct comp_buffer __sparse_cache *buffer; member
172 struct comp_buffer *buffer; member
175 #define buffer_comp_list(buffer, dir) \ argument
176 ((dir) == PPL_DIR_DOWNSTREAM ? &buffer->source_list : \
177 &buffer->sink_list)
184 #define buffer_set_cb(buffer, func, data, type) \ argument
186 buffer->cb = func; \
187 buffer->cb_data = data; \
188 buffer->cb_type = type; \
194 int buffer_set_size(struct comp_buffer __sparse_cache *buffer, uint32_t size);
[all …]
/sof-3.4.0/test/cmocka/src/
Dutil.h26 struct comp_buffer *buffer = buffer_new(&desc); in create_test_sink() local
28 memset(buffer->stream.addr, 0, buffer_size); in create_test_sink()
32 list_item_append(&buffer->source_list, &dev->bsink_list); in create_test_sink()
35 buffer->sink = calloc(1, sizeof(struct comp_dev)); in create_test_sink()
36 buffer->sink->state = COMP_STATE_PREPARE; in create_test_sink()
37 buffer->stream.frame_fmt = frame_fmt; in create_test_sink()
38 buffer->stream.channels = channels; in create_test_sink()
40 return buffer; in create_test_sink()
43 static inline void free_test_sink(struct comp_buffer *buffer) in free_test_sink() argument
45 free(buffer->sink); in free_test_sink()
[all …]
/sof-3.4.0/src/trace/
Ddma-trace.c52 struct dma_trace_buf *buffer,
61 struct dma_trace_buf *buffer = &d->dmatb; in trace_work() local
64 uint32_t avail = buffer->avail; in trace_work()
86 size = dma_trace_get_avail_data(d, buffer, avail); in trace_work()
100 buffer->r_ptr, size); in trace_work()
112 buffer->r_ptr = (char *)buffer->r_ptr + size; in trace_work()
113 if (buffer->r_ptr >= buffer->end_addr) in trace_work()
114 buffer->r_ptr = (char *)buffer->r_ptr - DMA_TRACE_LOCAL_SIZE; in trace_work()
124 buffer->avail = DMA_TRACE_LOCAL_SIZE - size; in trace_work()
126 buffer->avail -= size; in trace_work()
[all …]
/sof-3.4.0/smex/
Dldc.c21 void *buffer = NULL; in fw_version_copy() local
24 section_size = elf_read_section(src, ".fw_ready", NULL, &buffer); in fw_version_copy()
30 &((struct sof_ipc_fw_ready *)buffer)->version, in fw_version_copy()
32 free(buffer); in fw_version_copy()
47 section_size = elf_read_section(src, ".fw_metadata", NULL, &buffer); in fw_version_copy()
52 ext_hdr = (struct ext_man_elem_header *)buffer; in fw_version_copy()
53 while ((uintptr_t)ext_hdr < (uintptr_t)buffer + section_size) { in fw_version_copy()
64 free(buffer); in fw_version_copy()
79 void *buffer = NULL; in write_logs_dictionary() local
93 ret = elf_read_section(src, ".static_log_entries", &section, &buffer); in write_logs_dictionary()
[all …]
/sof-3.4.0/src/ipc/
Dipc-helper.c41 struct comp_buffer *buffer; in buffer_new() local
47 buffer = buffer_alloc(desc->size, desc->caps, PLATFORM_DCACHE_ALIGN); in buffer_new()
48 if (buffer) { in buffer_new()
49 buffer->id = desc->comp.id; in buffer_new()
50 buffer->pipeline_id = desc->comp.pipeline_id; in buffer_new()
51 buffer->core = desc->comp.core; in buffer_new()
53 buffer->stream.underrun_permitted = desc->flags & in buffer_new()
55 buffer->stream.overrun_permitted = desc->flags & in buffer_new()
58 memcpy_s(&buffer->tctx, sizeof(struct tr_ctx), in buffer_new()
62 return buffer; in buffer_new()
[all …]
/sof-3.4.0/tools/tplg_parser/
Dbuffer.c48 struct sof_ipc_buffer *buffer = _buffer; in buffer_ipc3_build() local
52 buffer->comp.core = 0; in buffer_ipc3_build()
53 buffer->comp.id = comp_id; in buffer_ipc3_build()
54 buffer->comp.pipeline_id = ctx->pipeline_id; in buffer_ipc3_build()
55 buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW; in buffer_ipc3_build()
56 buffer->comp.type = SOF_COMP_BUFFER; in buffer_ipc3_build()
57 buffer->comp.hdr.size = sizeof(struct sof_ipc_buffer); in buffer_ipc3_build()
71 static int buffer_ipc4_build(struct tplg_context *ctx, void *buffer) in buffer_ipc4_build() argument
83 int tplg_new_buffer(struct tplg_context *ctx, void *buffer, size_t buffer_size, in tplg_new_buffer() argument
89 "buffer", buffer, buffer_size); in tplg_new_buffer()
/sof-3.4.0/tools/topology/topology2/include/pipelines/
Deq-iir-volume-capture.conf25 <include/components/buffer.conf>
56 buffer."1" {
73 buffer."2" {
83 buffer."3" {
92 source buffer.$index.1
98 sink buffer.$index.1
102 source buffer.$index.2
108 sink buffer.$index.2
112 source buffer.$index.3
Dvolume-demux-playback.conf25 <include/components/buffer.conf>
56 buffer."1" {
70 buffer."2" {
82 buffer."3" {
91 sink buffer.$index.1
97 source buffer.$index.1
101 sink buffer.$index.2
107 source buffer.$index.2
111 sink buffer.$index.3
Dvolume-playback.conf24 <include/components/buffer.conf>
58 buffer."1" {
71 buffer."2" {
Dvolume-capture.conf24 <include/components/buffer.conf>
58 buffer."1" {
76 buffer."2" {
/sof-3.4.0/src/audio/pipeline/
Dpipeline-graph.c168 static void buffer_set_comp(struct comp_buffer *buffer, struct comp_dev *comp, in buffer_set_comp() argument
171 struct comp_buffer __sparse_cache *buffer_c = buffer_acquire(buffer); in buffer_set_comp()
181 if (!buffer->c.shared) in buffer_set_comp()
182 dcache_writeback_invalidate_region(uncache_to_cache(buffer), sizeof(*buffer)); in buffer_set_comp()
185 int pipeline_connect(struct comp_dev *comp, struct comp_buffer *buffer, in pipeline_connect() argument
192 comp_info(comp, "connect buffer %d as sink", buffer->id); in pipeline_connect()
194 comp_info(comp, "connect buffer %d as source", buffer->id); in pipeline_connect()
199 buffer_attach(buffer, comp_list, dir); in pipeline_connect()
200 buffer_set_comp(buffer, comp, dir); in pipeline_connect()
207 void pipeline_disconnect(struct comp_dev *comp, struct comp_buffer *buffer, int dir) in pipeline_disconnect() argument
[all …]
/sof-3.4.0/src/arch/xtensa/hal/
Ddisass.c86 char *buffer, /* where the result goes */ in xthal_disassemble() argument
93 char *p = buffer, *endp = buffer + buflen - 1; in xthal_disassemble()
108 if( p > buffer ) in xthal_disassemble()
123 if( p > buffer ) in xthal_disassemble()
135 if( p > buffer ) in xthal_disassemble()
147 return p - buffer; /* return length needed, even if longer than buflen */ in xthal_disassemble()
/sof-3.4.0/tools/ctl/
Dctl.c41 uint32_t *buffer; member
101 (struct sof_abi_hdr *)&ctl_data->buffer[BUFFER_ABI_OFFSET]; in header_init()
112 (struct sof_abi_hdr *)&ctl_data->buffer[BUFFER_ABI_OFFSET]; in read_setup()
138 n = fread(&ctl_data->buffer[data_start_int_index], in read_setup()
147 ctl_data->buffer[data_int_index] = x; in read_setup()
186 (struct sof_abi_hdr *)&ctl_data->buffer[BUFFER_ABI_OFFSET]; in header_dump()
209 n = ctl_data->buffer[BUFFER_SIZE_OFFSET] / sizeof(uint16_t); in hex_data_dump()
223 config = (uint16_t *)&ctl_data->buffer[int_offset]; in hex_data_dump()
245 config = &ctl_data->buffer[BUFFER_ABI_OFFSET]; in csv_data_dump()
246 n = ctl_data->buffer[BUFFER_SIZE_OFFSET] / sizeof(uint32_t); in csv_data_dump()
[all …]
/sof-3.4.0/test/cmocka/src/audio/pipeline/
Dpipeline_connection_mocks.c71 struct comp_buffer *buffer = calloc(sizeof(struct comp_buffer), 1); in get_standard_connect_objects() local
73 buffer->source = first; in get_standard_connect_objects()
74 buffer->sink = second; in get_standard_connect_objects()
75 list_init(&buffer->sink_list); in get_standard_connect_objects()
76 list_init(&buffer->source_list); in get_standard_connect_objects()
77 pipeline_connect_data->b1 = buffer; in get_standard_connect_objects()
/sof-3.4.0/src/debug/gdb/
Dgdb.c21 static void put_packet(unsigned char *buffer);
48 unsigned char *buffer = &remcom_in_buffer[0]; in get_packet() local
71 buffer[count] = ch; in get_packet()
75 buffer[count] = 0x00; in get_packet()
93 if (buffer[2] == ':') { in get_packet()
94 put_debug_char(buffer[0]); in get_packet()
95 put_debug_char(buffer[1]); in get_packet()
97 return &buffer[3]; in get_packet()
101 return buffer; in get_packet()
404 static void put_packet(unsigned char *buffer) in put_packet() argument
[all …]
/sof-3.4.0/src/include/sof/audio/mfcc/
Dmfcc_comp.h125 static inline int mfcc_buffer_samples_without_wrap(struct mfcc_buffer *buffer, int16_t *ptr) in mfcc_buffer_samples_without_wrap() argument
127 return buffer->end_addr - ptr; in mfcc_buffer_samples_without_wrap()
130 static inline int16_t *mfcc_buffer_wrap(struct mfcc_buffer *buffer, int16_t *ptr) in mfcc_buffer_wrap() argument
132 if (ptr >= buffer->end_addr) in mfcc_buffer_wrap()
133 ptr -= buffer->s_length; in mfcc_buffer_wrap()
/sof-3.4.0/src/platform/library/lib/
Dmemory.c232 sof->memory_map->buffer[0].blocks = ARRAY_SIZE(buf_heap_map); in platform_init_memmap()
233 sof->memory_map->buffer[0].map = uncached_block_map(buf_heap_map); in platform_init_memmap()
234 sof->memory_map->buffer[0].heap = (unsigned long)malloc(heap_buffer_size); in platform_init_memmap()
235 sof->memory_map->buffer[0].size = heap_buffer_size; in platform_init_memmap()
236 sof->memory_map->buffer[0].info.free = heap_buffer_size; in platform_init_memmap()
237 sof->memory_map->buffer[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_HP | in platform_init_memmap()
241 sof->memory_map->buffer[1].blocks = ARRAY_SIZE(lp_buf_heap_map); in platform_init_memmap()
242 sof->memory_map->buffer[1].map = uncached_block_map(lp_buf_heap_map); in platform_init_memmap()
243 sof->memory_map->buffer[1].heap = (unsigned long)malloc(HEAP_LP_BUFFER_SIZE); in platform_init_memmap()
244 sof->memory_map->buffer[1].size = HEAP_LP_BUFFER_SIZE; in platform_init_memmap()
[all …]
/sof-3.4.0/src/ipc/ipc4/
Dhelper.c228 struct comp_buffer *buffer; in ipc_pipeline_module_free() local
235 buffer = container_of(list, struct comp_buffer, source_list); in ipc_pipeline_module_free()
236 pipeline_disconnect(icd->cd, buffer, PPL_CONN_DIR_COMP_TO_BUFFER); in ipc_pipeline_module_free()
237 buffer_c = buffer_acquire(buffer); in ipc_pipeline_module_free()
243 buffer_free(buffer); in ipc_pipeline_module_free()
251 buffer = container_of(list, struct comp_buffer, sink_list); in ipc_pipeline_module_free()
252 pipeline_disconnect(icd->cd, buffer, PPL_CONN_DIR_BUFFER_TO_COMP); in ipc_pipeline_module_free()
253 buffer_c = buffer_acquire(buffer); in ipc_pipeline_module_free()
259 buffer_free(buffer); in ipc_pipeline_module_free()
333 struct comp_buffer *buffer; in ipc_comp_connect() local
[all …]
/sof-3.4.0/src/library_manager/
Dlib_manager.c389 static void lib_manager_dma_buffer_update(struct lib_manager_dma_buf *buffer, in lib_manager_dma_buffer_update() argument
392 buffer->size = size; in lib_manager_dma_buffer_update()
393 buffer->w_ptr = buffer->addr; in lib_manager_dma_buffer_update()
394 buffer->r_ptr = buffer->addr; in lib_manager_dma_buffer_update()
395 buffer->end_addr = buffer->addr + buffer->size; in lib_manager_dma_buffer_update()
396 buffer->avail = 0; in lib_manager_dma_buffer_update()
399 static int lib_manager_dma_buffer_init(struct lib_manager_dma_buf *buffer, uint32_t size, in lib_manager_dma_buffer_init() argument
403 buffer->addr = (uintptr_t)rballoc_align(0, SOF_MEM_CAPS_DMA, size, align); in lib_manager_dma_buffer_init()
405 if (!buffer->addr) { in lib_manager_dma_buffer_init()
410 bzero((void *)buffer->addr, size); in lib_manager_dma_buffer_init()
[all …]
/sof-3.4.0/src/platform/intel/cavs/lib/
Dmemory.c229 sof->memory_map->buffer[0].blocks = ARRAY_SIZE(buf_heap_map); in platform_init_memmap()
230 sof->memory_map->buffer[0].map = uncached_block_map(buf_heap_map); in platform_init_memmap()
231 sof->memory_map->buffer[0].heap = (uint32_t)cache_to_uncache(&_buffer_heap); in platform_init_memmap()
232 sof->memory_map->buffer[0].size = heap_buffer_size; in platform_init_memmap()
233 sof->memory_map->buffer[0].info.free = heap_buffer_size; in platform_init_memmap()
234 sof->memory_map->buffer[0].caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_HP | in platform_init_memmap()
239 sof->memory_map->buffer[1].blocks = ARRAY_SIZE(lp_buf_heap_map); in platform_init_memmap()
240 sof->memory_map->buffer[1].map = uncached_block_map(lp_buf_heap_map); in platform_init_memmap()
241 sof->memory_map->buffer[1].heap = HEAP_LP_BUFFER_BASE; in platform_init_memmap()
242 sof->memory_map->buffer[1].size = HEAP_LP_BUFFER_SIZE; in platform_init_memmap()
[all …]
/sof-3.4.0/src/include/sof/math/
Dfir_hifi3.h51 static inline void fir_comp_setup_circular(const struct audio_stream *buffer) in fir_comp_setup_circular() argument
53 AE_SETCBEGIN0(buffer->addr); in fir_comp_setup_circular()
54 AE_SETCEND0(buffer->end_addr); in fir_comp_setup_circular()
/sof-3.4.0/src/include/sof/trace/
Ddma-trace.h77 static inline uint32_t dtrace_calc_buf_margin(struct dma_trace_buf *buffer) in dtrace_calc_buf_margin() argument
79 return (char *)buffer->end_addr - (char *)buffer->w_ptr; in dtrace_calc_buf_margin()
/sof-3.4.0/
DKconfig.xtos-dbg17 bool "Force the allocator to allocate coherent buffer only"
21 buffer only.
22 This should be selected for debug purpose only, as accessing buffer

12345678910