Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 62) sorted by relevance

123

/sof-3.4.0/src/init/
Dinit.c109 int err; in secondary_core_restore() local
124 err = schedulers_restore(); in secondary_core_restore()
125 if (err < 0) in secondary_core_restore()
126 return err; in secondary_core_restore()
130 err = idc_restore(); in secondary_core_restore()
131 if (err < 0) in secondary_core_restore()
132 return err; in secondary_core_restore()
150 int err; in secondary_core_init() local
156 err = arch_init(); in secondary_core_init()
157 if (err < 0) in secondary_core_init()
[all …]
/sof-3.4.0/src/audio/pipeline/
Dpipeline-schedule.c68 int err, cmd = p->trigger.cmd; in pipeline_task_cmd() local
109 err = pipeline_trigger_run(p, host, cmd); in pipeline_task_cmd()
110 if (err < 0) { in pipeline_task_cmd()
111 pipe_err(p, "pipeline_task_cmd(): failed to trigger components: %d", err); in pipeline_task_cmd()
112 reply->error = err; in pipeline_task_cmd()
113 err = SOF_TASK_STATE_COMPLETED; in pipeline_task_cmd()
129 if (err == PPL_STATUS_PATH_STOP) { in pipeline_task_cmd()
137 err = SOF_TASK_STATE_RUNNING; in pipeline_task_cmd()
139 err = SOF_TASK_STATE_COMPLETED; in pipeline_task_cmd()
146 err = SOF_TASK_STATE_RESCHEDULE; in pipeline_task_cmd()
[all …]
Dpipeline-params.c34 int err = 0; in pipeline_comp_params_neg() local
51 err = buffer_set_params(buf_c, &ppl_data->params->params, in pipeline_comp_params_neg()
66 err = -EINVAL; in pipeline_comp_params_neg()
71 return err; in pipeline_comp_params_neg()
87 int err; in pipeline_comp_params() local
119 err = pipeline_for_each_comp(current, &param_neg_ctx, !dir); in pipeline_comp_params()
120 if (err < 0 || err == PPL_STATUS_PATH_STOP) in pipeline_comp_params()
121 return err; in pipeline_comp_params()
126 err = comp_params(current, &ppl_data->params->params); in pipeline_comp_params()
127 if (err < 0 || err == PPL_STATUS_PATH_STOP) in pipeline_comp_params()
[all …]
Dpipeline-stream.c79 int err; in pipeline_comp_copy() local
97 err = comp_copy(current); in pipeline_comp_copy()
98 if (err < 0 || err == PPL_STATUS_PATH_STOP) in pipeline_comp_copy()
99 return err; in pipeline_comp_copy()
102 err = pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_copy()
103 if (err < 0 || err == PPL_STATUS_PATH_STOP) in pipeline_comp_copy()
104 return err; in pipeline_comp_copy()
107 err = comp_copy(current); in pipeline_comp_copy()
109 return err; in pipeline_comp_copy()
314 int err; in pipeline_comp_trigger() local
[all …]
/sof-3.4.0/src/drivers/intel/cavs/
Dtimer.c122 int err; in platform_host_timestamp() local
125 err = comp_position(host, posn); in platform_host_timestamp()
126 if (err == 0) in platform_host_timestamp()
134 int err; in platform_dai_timestamp() local
137 err = comp_position(dai, posn); in platform_dai_timestamp()
138 if (err == 0) in platform_dai_timestamp()
157 int err; in platform_timer_register() local
164 err = interrupt_register(timer->logical_irq, handler, arg); in platform_timer_register()
165 if (err < 0) in platform_timer_register()
166 return err; in platform_timer_register()
[all …]
/sof-3.4.0/src/drivers/imx/
Dtimer.c51 int err; in platform_host_timestamp() local
54 err = comp_position(host, posn); in platform_host_timestamp()
55 if (err == 0) in platform_host_timestamp()
63 int err; in platform_dai_timestamp() local
66 err = comp_position(dai, posn); in platform_dai_timestamp()
67 if (err == 0) in platform_dai_timestamp()
/sof-3.4.0/src/drivers/amd/rembrandt/
Dtimer.c52 int err; in platform_host_timestamp() local
54 err = comp_position(host, posn); in platform_host_timestamp()
55 if (err == 0) in platform_host_timestamp()
62 int err; in platform_dai_timestamp() local
64 err = comp_position(dai, posn); in platform_dai_timestamp()
65 if (err == 0) in platform_dai_timestamp()
/sof-3.4.0/src/drivers/amd/renoir/
Dtimer.c53 int err; in platform_host_timestamp() local
55 err = comp_position(host, posn); in platform_host_timestamp()
56 if (err == 0) in platform_host_timestamp()
63 int err; in platform_dai_timestamp() local
65 err = comp_position(dai, posn); in platform_dai_timestamp()
66 if (err == 0) in platform_dai_timestamp()
/sof-3.4.0/src/trace/
Ddma-trace.c165 goto err; in dma_trace_init_early()
170 err: in dma_trace_init_early()
261 int err; in dma_trace_buffer_init() local
280 err = dma_get_attribute(d->dc.dmac->z_dev, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT, in dma_trace_buffer_init()
283 err = dma_get_attribute_legacy(d->dc.dmac, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT, in dma_trace_buffer_init()
286 if (err < 0) in dma_trace_buffer_init()
287 return err; in dma_trace_buffer_init()
368 int err = 0; in dma_trace_start() local
384 err = dma_stop_legacy(d->dc.chan); in dma_trace_start()
385 if (err < 0) { in dma_trace_start()
[all …]
/sof-3.4.0/src/drivers/mediatek/mt8195/
Dtimer.c120 int err; in platform_host_timestamp() local
123 err = comp_position(host, posn); in platform_host_timestamp()
124 if (err == 0) in platform_host_timestamp()
132 int err; in platform_dai_timestamp() local
135 err = comp_position(dai, posn); in platform_dai_timestamp()
136 if (err == 0) in platform_dai_timestamp()
162 int err; in platform_timer_register() local
170 err = interrupt_register(timer_irq0, platform_timer_handler, timer); in platform_timer_register()
171 if (err < 0) in platform_timer_register()
172 return err; in platform_timer_register()
[all …]
/sof-3.4.0/src/probe/
Dprobe.c139 int err = 0; in probe_dma_init() local
156 err = dma_get_attribute(dma->dc.dmac->z_dev, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT, in probe_dma_init()
159 err = dma_get_attribute_legacy(dma->dc.dmac, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT, in probe_dma_init()
162 if (err < 0) in probe_dma_init()
163 return err; in probe_dma_init()
166 err = probe_dma_buffer_init(&dma->dmapb, PROBE_BUFFER_LOCAL_SIZE, addr_align); in probe_dma_init()
167 if (err < 0) in probe_dma_init()
168 return err; in probe_dma_init()
170 err = dma_copy_set_stream_tag(&dma->dc, channel); in probe_dma_init()
171 if (err < 0) in probe_dma_init()
[all …]
/sof-3.4.0/tools/testbench/
Dtestbench.c150 int err; in test_pipeline_free_comps() local
160 err = ipc_comp_free(sof_get()->ipc, icd->id); in test_pipeline_free_comps()
161 if (err) in test_pipeline_free_comps()
168 err = ipc_buffer_free(sof_get()->ipc, icd->id); in test_pipeline_free_comps()
169 if (err) in test_pipeline_free_comps()
176 err = ipc_pipeline_free(sof_get()->ipc, icd->id); in test_pipeline_free_comps()
177 if (err) in test_pipeline_free_comps()
605 int err; in pipline_test() local
620 err = test_pipeline_load(tp, &ctx); in pipline_test()
621 if (err < 0) { in pipline_test()
[all …]
/sof-3.4.0/src/ipc/ipc3/
Dhost-page-table.c158 int err; in ipc_process_host_buffer() local
164 err = ipc_get_page_descriptors(data_host_buffer->dmac, in ipc_process_host_buffer()
167 if (err < 0) { in ipc_process_host_buffer()
168 tr_err(&ipc_tr, "ipc: get descriptors failed %d", err); in ipc_process_host_buffer()
174 err = ipc_parse_page_descriptors(data_host_buffer->page_table, in ipc_process_host_buffer()
177 if (err < 0) { in ipc_process_host_buffer()
178 tr_err(&ipc_tr, "ipc: parse descriptors failed %d", err); in ipc_process_host_buffer()
185 return err; in ipc_process_host_buffer()
Dhandler.c213 int err, reset_err; in ipc_stream_pcm_params() local
283 err = comp_get_attribute(cd, COMP_ATTR_COPY_DIR, &direction); in ipc_stream_pcm_params()
284 if (err < 0) in ipc_stream_pcm_params()
287 err = ipc_process_host_buffer(ipc, &pcm_params.params.buffer, in ipc_stream_pcm_params()
291 if (err < 0) in ipc_stream_pcm_params()
294 err = comp_set_attribute(cd, COMP_ATTR_HOST_BUFFER, &elem_array); in ipc_stream_pcm_params()
295 if (err < 0) { in ipc_stream_pcm_params()
297 pcm_params.comp_id, err); in ipc_stream_pcm_params()
302 err = comp_set_attribute(cd, COMP_ATTR_COPY_TYPE, &copy_type); in ipc_stream_pcm_params()
303 if (err < 0) { in ipc_stream_pcm_params()
[all …]
/sof-3.4.0/src/lib/
Dams.c138 int err = -EINVAL; in ams_register_producer() local
160 err = 0; in ams_register_producer()
166 return err; in ams_register_producer()
177 int err = -EINVAL; in ams_unregister_producer() local
198 err = 0; in ams_unregister_producer()
204 return err; in ams_unregister_producer()
216 int err = -EINVAL; in ams_register_consumer() local
236 err = 0; in ams_register_consumer()
242 return err; in ams_register_consumer()
253 int err = -EINVAL; in ams_unregister_consumer() local
[all …]
/sof-3.4.0/src/audio/
Ddai-legacy.c338 int err = 0; in dai_playback_params() local
348 err = -EINVAL; in dai_playback_params()
373 err = dma_sg_alloc(&config->elem_array, SOF_MEM_ZONE_RUNTIME, in dai_playback_params()
379 if (err < 0) in dai_playback_params()
381 period_count, period_bytes, err); in dai_playback_params()
387 return err; in dai_playback_params()
400 int err = 0; in dai_capture_params() local
410 err = -EINVAL; in dai_capture_params()
446 err = dma_sg_alloc(&config->elem_array, SOF_MEM_ZONE_RUNTIME, in dai_capture_params()
452 if (err < 0) in dai_capture_params()
[all …]
Dhost-legacy.c527 int err; in create_local_elems() local
537 err = dma_sg_alloc(&hd->config.elem_array, SOF_MEM_ZONE_RUNTIME, in create_local_elems()
539 if (err < 0) { in create_local_elems()
541 return err; in create_local_elems()
548 err = dma_sg_alloc(elem_array, SOF_MEM_ZONE_RUNTIME, dir, buffer_count, in create_local_elems()
552 if (err < 0) { in create_local_elems()
554 return err; in create_local_elems()
755 int err; in host_params() local
759 err = host_verify_params(dev, params); in host_params()
760 if (err < 0) { in host_params()
[all …]
Dchain_dma.c78 int err; in chain_host_start() local
80 err = dma_start(cd->chan_host->dma->z_dev, cd->chan_host->index); in chain_host_start()
81 if (err < 0) in chain_host_start()
82 return err; in chain_host_start()
92 int err; in chain_link_start() local
94 err = dma_start(cd->chan_link->dma->z_dev, cd->chan_link->index); in chain_link_start()
95 if (err < 0) in chain_link_start()
96 return err; in chain_link_start()
106 int err; in chain_link_stop() local
108 err = dma_stop(cd->chan_link->dma->z_dev, cd->chan_link->index); in chain_link_stop()
[all …]
Dhost-zephyr.c500 int err; in create_local_elems() local
510 err = dma_sg_alloc(&hd->config.elem_array, SOF_MEM_ZONE_RUNTIME, in create_local_elems()
512 if (err < 0) { in create_local_elems()
514 return err; in create_local_elems()
521 err = dma_sg_alloc(elem_array, SOF_MEM_ZONE_RUNTIME, dir, buffer_count, in create_local_elems()
525 if (err < 0) { in create_local_elems()
527 return err; in create_local_elems()
753 int i, channel, err; in host_zephyr_params() local
764 err = dma_get_attribute(hd->dma->z_dev, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT, in host_zephyr_params()
766 if (err < 0) { in host_zephyr_params()
[all …]
Ddai-zephyr.c453 int i, err = 0; in dai_playback_params() local
463 err = -EINVAL; in dai_playback_params()
487 err = dma_get_attribute(dd->dma->z_dev, DMA_ATTR_MAX_BLOCK_COUNT, in dai_playback_params()
489 if (err < 0) { in dai_playback_params()
490 comp_err(dev, "dai_playback_params(): could not get dma attr max block count, err = %d", err); in dai_playback_params()
508 err = dma_sg_alloc(&config->elem_array, SOF_MEM_ZONE_RUNTIME, in dai_playback_params()
514 if (err < 0) { in dai_playback_params()
516 period_count, period_bytes, err); in dai_playback_params()
526 err = -ENOMEM; in dai_playback_params()
552 err = -ENOMEM; in dai_playback_params()
[all …]
/sof-3.4.0/src/ipc/
Ddma-copy.c101 int32_t err; in dma_copy_to_host_flags() local
132 err = dma_set_config_legacy(dc->chan, &config); in dma_copy_to_host_flags()
133 if (err < 0) in dma_copy_to_host_flags()
134 return err; in dma_copy_to_host_flags()
136 err = dma_copy_legacy(dc->chan, local_sg_elem.size, in dma_copy_to_host_flags()
138 if (err < 0) in dma_copy_to_host_flags()
139 return err; in dma_copy_to_host_flags()
/sof-3.4.0/zephyr/
Dwrapper.c233 int err; in platform_host_timestamp() local
236 err = comp_position(host, posn); in platform_host_timestamp()
237 if (err == 0) in platform_host_timestamp()
245 int err; in platform_dai_timestamp() local
248 err = comp_position(dai, posn); in platform_dai_timestamp()
249 if (err == 0) in platform_dai_timestamp()
/sof-3.4.0/src/drivers/mediatek/mt818x/
Dtimer.c133 int err; in platform_host_timestamp() local
136 err = comp_position(host, posn); in platform_host_timestamp()
137 if (err == 0) in platform_host_timestamp()
145 int err; in platform_dai_timestamp() local
148 err = comp_position(dai, posn); in platform_dai_timestamp()
149 if (err == 0) in platform_dai_timestamp()
/sof-3.4.0/src/ipc/ipc4/
Dhandler.c89 int err; in ipc4_comp_params() local
99 err = comp_params(current, &ppl_data->params->params); in ipc4_comp_params()
100 if (err < 0 || err == PPL_STATUS_PATH_STOP) in ipc4_comp_params()
101 return err; in ipc4_comp_params()
126 int err, reset_err; in ipc4_pcm_params() local
135 err = ipc4_pipeline_params(pcm_dev->cd->pipeline, pcm_dev->cd); in ipc4_pcm_params()
136 if (err < 0) { in ipc4_pcm_params()
139 pcm_dev->cd->pipeline->comp_id, err); in ipc4_pcm_params()
144 err = pipeline_prepare(pcm_dev->cd->pipeline, pcm_dev->cd); in ipc4_pcm_params()
145 if (err < 0) { in ipc4_pcm_params()
[all …]
/sof-3.4.0/src/audio/smart_amp/
Dsmart_amp.c87 goto err; in smart_amp_alloc_memory()
96 goto err; in smart_amp_alloc_memory()
103 goto err; in smart_amp_alloc_memory()
110 goto err; in smart_amp_alloc_memory()
117 goto err; in smart_amp_alloc_memory()
124 goto err; in smart_amp_alloc_memory()
131 goto err; in smart_amp_alloc_memory()
138 goto err; in smart_amp_alloc_memory()
145 goto err; in smart_amp_alloc_memory()
152 goto err; in smart_amp_alloc_memory()
[all …]

123