Lines Matching defs:buffer
328 * sof_comp_alloc - allocate and initialize buffer for a new component
563 struct sof_ipc_buffer *buffer;
566 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
567 if (!buffer)
570 swidget->private = buffer;
573 buffer->comp.hdr.size = sizeof(*buffer);
574 buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW;
575 buffer->comp.id = swidget->comp_id;
576 buffer->comp.type = SOF_COMP_BUFFER;
577 buffer->comp.pipeline_id = swidget->pipeline_id;
578 buffer->comp.core = swidget->core;
580 /* parse one set of buffer tokens */
581 ret = sof_update_ipc_object(scomp, buffer, SOF_BUFFER_TOKENS, swidget->tuples,
582 swidget->num_tuples, sizeof(*buffer), 1);
589 dev_dbg(scomp->dev, "buffer %s: size %d caps 0x%x\n",
590 swidget->widget->name, buffer->size, buffer->caps);
2227 * For virtual routes, both sink and source are not buffer. IPC3 only supports
2228 * connections between a buffer and a component. Ignore the rest.