Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 43) sorted by relevance

12

/sof-3.4.0/src/arch/xtensa/schedule/
Dtask.c47 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in task_main_get() local
49 return &ctx->main_task; in task_main_get()
54 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in task_context_get() local
56 return ctx->td.xtos_active_task; in task_context_get()
61 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in task_context_set() local
63 ctx->td.xtos_active_task = task_ctx; in task_context_set()
78 xtos_task_context *ctx = task_ctx; in task_context_init() local
83 ctx->stack_base = stack; in task_context_init()
84 ctx->stack_size = stack_size; in task_context_init()
86 ctx->stack_base = rballoc(0, SOF_MEM_CAPS_RAM, in task_context_init()
[all …]
Dschedule.c19 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in arch_schedulers_get() local
21 return &ctx->schedulers; in arch_schedulers_get()
/sof-3.4.0/tools/tplg_parser/include/tplg_parser/
Dtopology.h82 #define tplg_get(ctx) ((void *)(ctx->tplg_base + ctx->tplg_offset)) argument
84 #define tplg_get_hdr(ctx) \ argument
86 ptr = (struct snd_soc_tplg_hdr *)(ctx->tplg_base + ctx->tplg_offset); \
90 ctx->tplg_offset); assert(0); \
92 ctx->tplg_offset += sizeof(*ptr); (void *)ptr; })
94 #define tplg_skip_hdr_payload(ctx) \ argument
96 ptr = (struct snd_soc_tplg_hdr *)(ctx->tplg_base + ctx->tplg_offset); \
97 ctx->tplg_offset += hdr->payload_size; (void *)ptr; })
99 #define tplg_get_object(ctx, obj) \ argument
100 ({void *ptr; ptr = ctx->tplg_base + ctx->tplg_offset; \
[all …]
/sof-3.4.0/tools/testbench/
Dtopology.c28 static int tb_register_asrc(struct testbench_prm *tp, struct tplg_context *ctx) in tb_register_asrc() argument
32 struct sof *sof = ctx->sof; in tb_register_asrc()
36 ret = tplg_new_asrc(ctx, comp, MAX_TPLG_OBJECT_SIZE, NULL, 0); in tb_register_asrc()
63 static int tb_register_buffer(struct testbench_prm *tp, struct tplg_context *ctx) in tb_register_buffer() argument
65 struct sof *sof = ctx->sof; in tb_register_buffer()
69 ret = tplg_new_buffer(ctx, &buffer, sizeof(buffer), in tb_register_buffer()
84 static int tb_register_graph(struct tplg_context *ctx, struct tplg_comp_info *temp_comp_list, in tb_register_graph() argument
90 struct sof *sof = ctx->sof; in tb_register_graph()
95 ret = tplg_create_graph(ctx, num_comps, pipeline_id, temp_comp_list, in tb_register_graph()
118 static int tb_register_mixer(struct testbench_prm *tp, struct tplg_context *ctx) in tb_register_mixer() argument
[all …]
Dtestbench.c423 static int test_pipeline_params(struct testbench_prm *tp, struct tplg_context *ctx) in test_pipeline_params() argument
451 ret = tb_pipeline_params(tp, ipc, p, ctx); in test_pipeline_params()
504 static int test_pipeline_load(struct testbench_prm *tp, struct tplg_context *ctx) in test_pipeline_load() argument
509 memset(ctx, 0, sizeof(*ctx)); in test_pipeline_load()
510 ctx->comp_id = 1; in test_pipeline_load()
511 ctx->core_id = 0; in test_pipeline_load()
512 ctx->sof = sof_get(); in test_pipeline_load()
513 ctx->tplg_file = tp->tplg_file; in test_pipeline_load()
514 ctx->ipc_major = 3; in test_pipeline_load()
517 ret = tb_parse_topology(tp, ctx); in test_pipeline_load()
[all …]
/sof-3.4.0/src/include/sof/trace/
Dtrace.h95 #define trace_unused(class, ctx, id_1, id_2, format, ...) \ argument
96 UNUSED(ctx, id_1, id_2, ##__VA_ARGS__)
159 #define trace_event_with_ids(class, ctx, id_1, id_2, format, ...) \ argument
160 _trace_event_with_ids(LOG_LEVEL_INFO, class, ctx, id_1, id_2, \
163 #define trace_event_atomic_with_ids(class, ctx, id_1, id_2, format, ...) \ argument
164 _trace_event_atomic_with_ids(LOG_LEVEL_INFO, class, ctx, id_1, id_2, \
167 #define trace_warn_with_ids(class, ctx, id_1, id_2, format, ...) \ argument
168 _trace_event_with_ids(LOG_LEVEL_WARNING, class, ctx, id_1, id_2, \
171 #define trace_warn_atomic_with_ids(class, ctx, id_1, id_2, format, ...) \ argument
173 ctx, id_1, id_2, \
[all …]
/sof-3.4.0/tools/tplg_parser/
Dcontrol.c21 int tplg_get_single_control(struct tplg_context *ctx, in tplg_get_single_control() argument
34 ctl_hdr = tplg_get(ctx); in tplg_get_single_control()
49 *ctl = tplg_get_object_priv(ctx, mixer_ctl, mixer_ctl->priv.size); in tplg_get_single_control()
62 *ctl = tplg_get_object_priv(ctx, enum_ctl, enum_ctl->priv.size); in tplg_get_single_control()
70 *ctl = tplg_get_object_priv(ctx, bytes_ctl, bytes_ctl->priv.size); in tplg_get_single_control()
86 int tplg_create_controls(struct tplg_context *ctx, int num_kcontrols, in tplg_create_controls() argument
98 ctl_hdr = tplg_get(ctx); in tplg_create_controls()
111 tplg_get_object_priv(ctx, mixer_ctl, mixer_ctl->priv.size); in tplg_create_controls()
122 tplg_get_object_priv(ctx, enum_ctl, enum_ctl->priv.size); in tplg_create_controls()
129 tplg_get_object_priv(ctx, bytes_ctl, bytes_ctl->priv.size); in tplg_create_controls()
[all …]
Dmixer.c30 static int mixer_ipc3_build(struct tplg_context *ctx, void *_mixer) in mixer_ipc3_build() argument
33 int comp_id = ctx->comp_id; in mixer_ipc3_build()
40 mixer->comp.pipeline_id = ctx->pipeline_id; in mixer_ipc3_build()
56 static int mixer_ipc4_build(struct tplg_context *ctx, void *mixer) in mixer_ipc4_build() argument
68 int tplg_new_mixer(struct tplg_context *ctx, void *mixer, size_t mixer_size, in tplg_new_mixer() argument
73 ret = tplg_create_object(ctx, mixer_ipc, ARRAY_SIZE(mixer_ipc), in tplg_new_mixer()
78 if (tplg_create_controls(ctx, ctx->widget->num_kcontrols, in tplg_new_mixer()
Dpga.c40 static int pga_ipc3_build(struct tplg_context *ctx, void *_pga) in pga_ipc3_build() argument
56 volume->comp.id = ctx->comp_id; in pga_ipc3_build()
59 volume->comp.pipeline_id = ctx->pipeline_id; in pga_ipc3_build()
64 for (i = 0; i < ctx->widget->num_kcontrols; i++) { in pga_ipc3_build()
65 ret = tplg_get_single_control(ctx, &ctl, &priv_data); in pga_ipc3_build()
72 if (ctx->ctl_cb) in pga_ipc3_build()
73 ctx->ctl_cb(ctl, volume, ctx->ctl_arg); in pga_ipc3_build()
106 static int pga_ipc4_build(struct tplg_context *ctx, void *pga) in pga_ipc4_build() argument
119 int tplg_new_pga(struct tplg_context *ctx, void *pga, in tplg_new_pga() argument
125 ret = tplg_create_object(ctx, pga_ipc, ARRAY_SIZE(pga_ipc), in tplg_new_pga()
Dpcm.c36 static int pcm_ipc3_build(struct tplg_context *ctx, void *_pcm) in pcm_ipc3_build() argument
39 int comp_id = ctx->comp_id; in pcm_ipc3_build()
46 host->comp.pipeline_id = ctx->pipeline_id; in pcm_ipc3_build()
47 host->direction = ctx->dir; in pcm_ipc3_build()
62 static int pcm_ipc4_build(struct tplg_context *ctx, void *pcm) in pcm_ipc4_build() argument
74 int tplg_new_pcm(struct tplg_context *ctx, void *host, size_t host_size) in tplg_new_pcm() argument
76 return tplg_create_object(ctx, pcm_ipc, ARRAY_SIZE(pcm_ipc), in tplg_new_pcm()
Dsrc.c39 static int src_ipc3_build(struct tplg_context *ctx, void *_src) in src_ipc3_build() argument
42 int comp_id = ctx->comp_id; in src_ipc3_build()
49 src->comp.pipeline_id = ctx->pipeline_id; in src_ipc3_build()
65 static int src_ipc4_build(struct tplg_context *ctx, void *src) in src_ipc4_build() argument
78 int tplg_new_src(struct tplg_context *ctx, void *src, size_t src_size, in tplg_new_src() argument
83 ret = tplg_create_object(ctx, src_ipc, ARRAY_SIZE(src_ipc), in tplg_new_src()
88 if (tplg_create_controls(ctx, ctx->widget->num_kcontrols, in tplg_new_src()
Dasrc.c48 static int asrc_ipc3_build(struct tplg_context *ctx, void *_asrc) in asrc_ipc3_build() argument
51 int comp_id = ctx->comp_id; in asrc_ipc3_build()
58 asrc->comp.pipeline_id = ctx->pipeline_id; in asrc_ipc3_build()
74 static int asrc_ipc4_build(struct tplg_context *ctx, void *asrc) in asrc_ipc4_build() argument
87 int tplg_new_asrc(struct tplg_context *ctx, void *asrc, size_t asrc_size, in tplg_new_asrc() argument
92 ret = tplg_create_object(ctx, asrc_ipc, ARRAY_SIZE(asrc_ipc), in tplg_new_asrc()
97 if (tplg_create_controls(ctx, ctx->widget->num_kcontrols, in tplg_new_asrc()
Dprocess.c102 static int process_ipc3_build(struct tplg_context *ctx, void *_process) in process_ipc3_build() argument
105 int comp_id = ctx->comp_id; in process_ipc3_build()
112 process->comp.pipeline_id = ctx->pipeline_id; in process_ipc3_build()
128 static int process_ipc4_build(struct tplg_context *ctx, void *process) in process_ipc4_build() argument
174 int tplg_new_process(struct tplg_context *ctx, void *process, size_t process_size, in tplg_new_process() argument
177 struct snd_soc_tplg_dapm_widget *widget = ctx->widget; in tplg_new_process()
182 ret = tplg_create_object(ctx, process_ipc, ARRAY_SIZE(process_ipc), in tplg_new_process()
188 ret = tplg_get_single_control(ctx, &ctl, &priv_data); in tplg_new_process()
195 if (ctx->ctl_cb) in tplg_new_process()
196 ctx->ctl_cb(ctl, process, ctx->ctl_arg); in tplg_new_process()
[all …]
Dpipeline.c49 static int pipeline_ipc3_build(struct tplg_context *ctx, void *_pipeline) in pipeline_ipc3_build() argument
52 int comp_id = ctx->comp_id; in pipeline_ipc3_build()
56 pipeline->pipeline_id = ctx->pipeline_id; in pipeline_ipc3_build()
72 static int pipeline_ipc4_build(struct tplg_context *ctx, void *pipeline) in pipeline_ipc4_build() argument
85 int tplg_new_pipeline(struct tplg_context *ctx, void *pipeline, in tplg_new_pipeline() argument
90 ret = tplg_create_object(ctx, pipeline_ipc, ARRAY_SIZE(pipeline_ipc), in tplg_new_pipeline()
Dbuffer.c46 static int buffer_ipc3_build(struct tplg_context *ctx, void *_buffer) in buffer_ipc3_build() argument
49 int comp_id = ctx->comp_id; in buffer_ipc3_build()
54 buffer->comp.pipeline_id = ctx->pipeline_id; 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
88 ret = tplg_create_object(ctx, buffer_ipc, ARRAY_SIZE(buffer_ipc), in tplg_new_buffer()
Dobject.c26 int tplg_create_object(struct tplg_context *ctx, in tplg_create_object() argument
30 struct snd_soc_tplg_vendor_array *array = &ctx->widget->priv.array[0]; in tplg_create_object()
34 int size = ctx->widget->priv.size; in tplg_create_object()
37 if (desc[i].abi_major != ctx->ipc_major) in tplg_create_object()
45 ctx->ipc_major); in tplg_create_object()
86 ret = ipc->builder(ctx, object); in tplg_create_object()
Ddai.c75 static int dai_ipc3_build(struct tplg_context *ctx, void *_dai) in dai_ipc3_build() argument
78 int comp_id = ctx->comp_id; in dai_ipc3_build()
85 dai->comp.pipeline_id = ctx->pipeline_id; in dai_ipc3_build()
100 static int dai_ipc4_build(struct tplg_context *ctx, void *dai) in dai_ipc4_build() argument
112 int tplg_new_dai(struct tplg_context *ctx, void *dai, size_t dai_size, in tplg_new_dai() argument
117 ret = tplg_create_object(ctx, dai_ipc, ARRAY_SIZE(dai_ipc), in tplg_new_dai()
/sof-3.4.0/src/audio/pipeline/
Dpipeline-params.c29 struct pipeline_walk_context *ctx, in pipeline_comp_params_neg() argument
32 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_params_neg()
76 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_params() argument
78 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_params()
130 return pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_params()
151 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_hw_params() argument
153 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_hw_params()
159 ret = pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_hw_params()
181 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_hw_params_buf() argument
183 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_hw_params_buf()
[all …]
Dpipeline-stream.c41 struct pipeline_walk_context *ctx, in pipeline_should_report_enodata_on_trigger() argument
44 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_should_report_enodata_on_trigger()
75 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_copy() argument
77 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_copy()
102 err = pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_copy()
151 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_list() argument
153 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_list()
170 pipeline_comp_trigger_sched_comp(current->pipeline, current, ctx); in pipeline_comp_list()
172 return pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_list()
309 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_trigger() argument
[all …]
Dpipeline-graph.c257 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_complete() argument
259 struct pipeline_data *ppl_data = ctx->comp_data; in pipeline_comp_complete()
274 return pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_complete()
321 struct pipeline_walk_context *ctx, int dir) in pipeline_comp_reset() argument
323 struct pipeline *p = ctx->comp_data; in pipeline_comp_reset()
366 return pipeline_for_each_comp(current, ctx, dir); in pipeline_comp_reset()
398 struct pipeline_walk_context *ctx, int dir) in pipeline_for_each_comp() argument
410 if (ctx->incoming == buffer) in pipeline_for_each_comp()
433 if (ctx->buff_func) in pipeline_for_each_comp()
434 ctx->buff_func(buffer_c, ctx->buff_data); in pipeline_for_each_comp()
[all …]
/sof-3.4.0/src/arch/xtensa/lib/
Dnotifier.c19 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in arch_notify_get() local
21 return &ctx->notify; in arch_notify_get()
Dams.c20 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in arch_ams_get() local
22 return &ctx->ams; in arch_ams_get()
/sof-3.4.0/src/arch/xtensa/include/arch/drivers/
Didc.h24 struct core_context *ctx = (struct core_context *)cpu_read_threadptr(); in idc_get() local
26 return &ctx->idc; in idc_get()
/sof-3.4.0/src/trace/
Dtrace.c126 static inline bool trace_filter_verbosity(uint32_t lvl, const struct tr_ctx *ctx) in trace_filter_verbosity() argument
130 return lvl <= ctx->level; in trace_filter_verbosity()
242 static void dma_trace_log(bool send_atomic, uint32_t log_entry, const struct tr_ctx *ctx, in dma_trace_log() argument
250 put_header(data, ctx->uuid_p, id_1, id_2, log_entry, sof_cycle_get_64_safe()); in dma_trace_log()
263 void trace_log_unfiltered(bool send_atomic, const void *log_entry, const struct tr_ctx *ctx, in trace_log_unfiltered() argument
272 dma_trace_log(send_atomic, (uint32_t)log_entry, ctx, lvl, id_1, id_2, arg_count, vl); in trace_log_unfiltered()
275 void trace_log_filtered(bool send_atomic, const void *log_entry, const struct tr_ctx *ctx, in trace_log_filtered() argument
285 if (!trace_filter_verbosity(lvl, ctx)) in trace_log_filtered()
300 dma_trace_log(send_atomic, (uint32_t)log_entry, ctx, lvl, id_1, id_2, arg_count, vl); in trace_log_filtered()
407 struct tr_ctx *ctx; in trace_filter_update_instances() local
[all …]
/sof-3.4.0/tools/testbench/include/testbench/
Dcommon_test.h47 struct tplg_context *ctx; member
85 int tb_parse_topology(struct testbench_prm *tb, struct tplg_context *ctx);
99 struct tplg_context *ctx);

12