Lines Matching full:pipeline

122 	[SOF_PIPELINE_TOKENS] = {"Pipeline tokens", pipeline_tokens, ARRAY_SIZE(pipeline_tokens)},
607 struct sof_ipc4_pipeline *pipeline; in sof_ipc4_widget_setup_comp_pipeline() local
610 pipeline = kzalloc(sizeof(*pipeline), GFP_KERNEL); in sof_ipc4_widget_setup_comp_pipeline()
611 if (!pipeline) in sof_ipc4_widget_setup_comp_pipeline()
614 ret = sof_update_ipc_object(scomp, pipeline, SOF_SCHED_TOKENS, swidget->tuples, in sof_ipc4_widget_setup_comp_pipeline()
615 swidget->num_tuples, sizeof(*pipeline), 1); in sof_ipc4_widget_setup_comp_pipeline()
621 /* parse one set of pipeline tokens */ in sof_ipc4_widget_setup_comp_pipeline()
625 dev_err(scomp->dev, "parsing pipeline tokens failed\n"); in sof_ipc4_widget_setup_comp_pipeline()
630 pipeline->priority = 0; in sof_ipc4_widget_setup_comp_pipeline()
632 dev_dbg(scomp->dev, "pipeline '%s': id %d pri %d lp mode %d\n", in sof_ipc4_widget_setup_comp_pipeline()
634 pipeline->priority, pipeline->lp_mode); in sof_ipc4_widget_setup_comp_pipeline()
636 swidget->private = pipeline; in sof_ipc4_widget_setup_comp_pipeline()
638 pipeline->msg.primary = SOF_IPC4_GLB_PIPE_PRIORITY(pipeline->priority); in sof_ipc4_widget_setup_comp_pipeline()
639 pipeline->msg.primary |= SOF_IPC4_GLB_PIPE_INSTANCE_ID(swidget->pipeline_id); in sof_ipc4_widget_setup_comp_pipeline()
640 pipeline->msg.primary |= SOF_IPC4_MSG_TYPE_SET(SOF_IPC4_GLB_CREATE_PIPELINE); in sof_ipc4_widget_setup_comp_pipeline()
641 pipeline->msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_widget_setup_comp_pipeline()
642 pipeline->msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_FW_GEN_MSG); in sof_ipc4_widget_setup_comp_pipeline()
644 pipeline->msg.extension = pipeline->lp_mode; in sof_ipc4_widget_setup_comp_pipeline()
645 pipeline->state = SOF_IPC4_PIPE_UNINITIALIZED; in sof_ipc4_widget_setup_comp_pipeline()
649 kfree(pipeline); in sof_ipc4_widget_setup_comp_pipeline()
824 struct sof_ipc4_pipeline *pipeline; in sof_ipc4_update_pipeline_mem_usage() local
849 pipeline = pipe_widget->private; in sof_ipc4_update_pipeline_mem_usage()
850 pipeline->mem_usage += total; in sof_ipc4_update_pipeline_mem_usage()
959 struct sof_ipc4_pipeline *pipeline; in sof_ipc4_unprepare_copier_module() local
961 /* reset pipeline memory usage */ in sof_ipc4_unprepare_copier_module()
963 pipeline = pipe_widget->private; in sof_ipc4_unprepare_copier_module()
964 pipeline->mem_usage = 0; in sof_ipc4_unprepare_copier_module()
1127 struct sof_ipc4_pipeline *pipeline; in sof_ipc4_prepare_copier_module() local
1130 pipeline = pipe_widget->private; in sof_ipc4_prepare_copier_module()
1153 gtw_attr->lp_buffer_alloc = pipeline->lp_mode; in sof_ipc4_prepare_copier_module()
1314 /* update pipeline memory usage */ in sof_ipc4_prepare_copier_module()
1339 /* update pipeline memory usage */ in sof_ipc4_prepare_gain_module()
1365 /* update pipeline memory usage */ in sof_ipc4_prepare_mixer_module()
1391 /* update pipeline memory usage */ in sof_ipc4_prepare_src_module()
1450 struct sof_ipc4_pipeline *pipeline; in sof_ipc4_widget_setup() local
1458 pipeline = swidget->private; in sof_ipc4_widget_setup()
1460 dev_dbg(sdev->dev, "pipeline: %d memory pages: %d\n", swidget->pipeline_id, in sof_ipc4_widget_setup()
1461 pipeline->mem_usage); in sof_ipc4_widget_setup()
1463 msg = &pipeline->msg; in sof_ipc4_widget_setup()
1464 msg->primary |= pipeline->mem_usage; in sof_ipc4_widget_setup()
1564 /* freeing a pipeline frees all the widgets associated with it */ in sof_ipc4_widget_free()
1566 struct sof_ipc4_pipeline *pipeline = swidget->private; in sof_ipc4_widget_free() local
1579 dev_err(sdev->dev, "failed to free pipeline widget %s\n", in sof_ipc4_widget_free()
1582 pipeline->mem_usage = 0; in sof_ipc4_widget_free()
1583 pipeline->state = SOF_IPC4_PIPE_UNINITIALIZED; in sof_ipc4_widget_free()
1669 struct sof_ipc4_pipeline *pipeline = pipe_widget->private; in sof_ipc4_dai_config() local
1690 gtw_attr->lp_buffer_alloc = pipeline->lp_mode; in sof_ipc4_dai_config()