Home
last modified time | relevance | path

Searched refs:cstream (Results 1 – 25 of 30) sorted by relevance

12

/linux/sound/soc/sof/
H A Dcompress.c
H A Dstream-ipc.c46 } else if (sps->cstream) { in sof_ipc_msg_data()
48 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_ipc_msg_data()
84 } else if (sps->cstream) { in sof_set_stream_data_offset()
85 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_set_stream_data_offset()
89 sps->cstream->direction, posn_offset); in sof_set_stream_data_offset()
H A Dsof-audio.h340 struct snd_compr_stream *cstream;
674 void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream);
677 struct snd_compr_stream *cstream,
680 static inline void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream) { }
331 struct snd_compr_stream *cstream; global() member
646 snd_sof_compr_fragment_elapsed(struct snd_compr_stream * cstream) snd_sof_compr_fragment_elapsed() argument
/linux/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c27 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_compr_fragment_elapsed() local
30 if (cstream) in sst_compr_fragment_elapsed()
31 snd_compr_fragment_elapsed(cstream); in sst_compr_fragment_elapsed()
36 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_drain_notify() local
39 if (cstream) in sst_drain_notify()
40 snd_compr_drain_notify(cstream); in sst_drain_notify()
44 struct snd_compr_stream *cstream) in sst_platform_compr_open() argument
47 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open()
77 struct snd_compr_stream *cstream) in sst_platform_compr_free() argument
82 stream = cstream->runtime->private_data; in sst_platform_compr_free()
[all …]
H A Dsst-mfld-platform-pcm.c172 struct snd_compr_stream *cstream = NULL;
178 cstream = (struct snd_compr_stream *)substream; in sst_fill_stream_params()
199 if (cstream) { in sst_fill_stream_params()
200 index = sst_get_stream_mapping(cstream->device->device, in sst_fill_stream_params()
201 0, cstream->direction, in sst_fill_stream_params()
209 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params()
180 struct snd_compr_stream *cstream = NULL; sst_fill_stream_params() local
/linux/sound/soc/sprd/
H A Dsprd-pcm-compress.c70 struct snd_compr_stream *cstream; member
100 struct snd_compr_stream *cstream,
105 struct snd_compr_stream *cstream = arg; in sprd_platform_compr_drain_notify() local
106 struct snd_compr_runtime *runtime = cstream->runtime; in sprd_platform_compr_drain_notify()
111 snd_compr_drain_notify(cstream); in sprd_platform_compr_drain_notify()
116 struct snd_compr_stream *cstream = data; in sprd_platform_compr_dma_complete() local
117 struct snd_compr_runtime *runtime = cstream->runtime; in sprd_platform_compr_dma_complete()
126 snd_compr_fragment_elapsed(cstream); in sprd_platform_compr_dma_complete()
130 struct snd_compr_stream *cstream, in sprd_platform_compr_dma_config() argument
134 struct snd_compr_runtime *runtime = cstream in sprd_platform_compr_dma_config()
265 sprd_platform_compr_set_params(struct snd_soc_component * component,struct snd_compr_stream * cstream,struct snd_compr_params * params) sprd_platform_compr_set_params() argument
329 sprd_platform_compr_open(struct snd_soc_component * component,struct snd_compr_stream * cstream) sprd_platform_compr_open() argument
406 sprd_platform_compr_free(struct snd_soc_component * component,struct snd_compr_stream * cstream) sprd_platform_compr_free() argument
432 sprd_platform_compr_trigger(struct snd_soc_component * component,struct snd_compr_stream * cstream,int cmd) sprd_platform_compr_trigger() argument
528 sprd_platform_compr_pointer(struct snd_soc_component * component,struct snd_compr_stream * cstream,struct snd_compr_tstamp64 * tstamp) sprd_platform_compr_pointer() argument
543 sprd_platform_compr_copy(struct snd_soc_component * component,struct snd_compr_stream * cstream,char __user * buf,size_t count) sprd_platform_compr_copy() argument
621 sprd_platform_compr_get_caps(struct snd_soc_component * component,struct snd_compr_stream * cstream,struct snd_compr_caps * caps) sprd_platform_compr_get_caps() argument
638 sprd_platform_compr_get_codec_caps(struct snd_soc_component * component,struct snd_compr_stream * cstream,struct snd_compr_codec_caps * codec) sprd_platform_compr_get_codec_caps() argument
[all...]
/linux/sound/soc/intel/avs/
H A Dprobes.c58 static inline struct hdac_ext_stream *avs_compr_get_host_stream(struct snd_compr_stream *cstream) in avs_compr_get_host_stream() argument
60 return cstream->runtime->private_data; in avs_compr_get_host_stream()
63 static int avs_probe_compr_open(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_open() argument
74 host_stream = snd_hdac_ext_cstream_assign(bus, cstream); in avs_probe_compr_open()
82 cstream->runtime->private_data = host_stream; in avs_probe_compr_open()
87 static int avs_probe_compr_free(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_free() argument
89 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_free()
123 snd_compr_free_pages(cstream); in avs_probe_compr_free()
129 static int avs_probe_compr_set_params(struct snd_compr_stream *cstream, in avs_probe_compr_set_params() argument
132 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_set_params()
183 avs_probe_compr_trigger(struct snd_compr_stream * cstream,int cmd,struct snd_soc_dai * dai) avs_probe_compr_trigger() argument
218 avs_probe_compr_pointer(struct snd_compr_stream * cstream,struct snd_compr_tstamp64 * tstamp,struct snd_soc_dai * dai) avs_probe_compr_pointer() argument
231 avs_probe_compr_copy(struct snd_soc_component * comp,struct snd_compr_stream * cstream,char __user * buf,size_t count) avs_probe_compr_copy() argument
[all...]
H A Dcore.c272 } else if (stream->cstream) { in hdac_update_stream()
273 u64 buffer_size = stream->cstream->runtime->buffer_size; in hdac_update_stream()
276 snd_compr_fragment_elapsed(stream->cstream); in hdac_update_stream()
/linux/tools/perf/util/
H A Dzstd.c13 data->cstream = NULL; in zstd_init()
24 if (data->cstream) { in zstd_fini()
25 ZSTD_freeCStream(data->cstream); in zstd_fini()
26 data->cstream = NULL; in zstd_fini()
43 if (!data->cstream) { in zstd_compress_stream_to_records()
44 data->cstream = ZSTD_createCStream(); in zstd_compress_stream_to_records()
45 if (data->cstream == NULL) { in zstd_compress_stream_to_records()
50 ret = ZSTD_initCStream(data->cstream, data->comp_level); in zstd_compress_stream_to_records()
69 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records()
70 ZSTD_flushStream(data->cstream, in zstd_compress_stream_to_records()
[all...]
H A Dcompress.h44 ZSTD_CStream *cstream; in zstd_init()
24 ZSTD_CStream *cstream; global() member
/linux/lib/zstd/
H A Dzstd_compress_module.c215 zstd_cstream *cstream; in zstd_init_cstream() local
220 cstream = ZSTD_initStaticCStream(workspace, workspace_size); in zstd_init_cstream()
221 if (cstream == NULL) in zstd_init_cstream()
228 if (ZSTD_isError(zstd_cctx_init(cstream, parameters, pledged_src_size))) in zstd_init_cstream()
231 return cstream; in zstd_init_cstream()
235 size_t zstd_reset_cstream(zstd_cstream *cstream, in zstd_reset_cstream() argument
240 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_reset(cstream, ZSTD_reset_session_only) ); in zstd_reset_cstream()
241 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_setPledgedSrcSize(cstream, pledged_src_size) ); in zstd_reset_cstream()
246 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output, in zstd_compress_stream() argument
249 return ZSTD_compressStream(cstream, output, input); in zstd_compress_stream()
[all …]
/linux/sound/soc/
H A Dsoc-component.c476 struct snd_compr_stream *cstream) in snd_soc_component_compr_trigger()
482 ret = component->driver->compress_ops->open(component, cstream); in snd_soc_component_compr_trigger()
486 soc_component_mark_push(component, cstream, compr_open); in snd_soc_component_compr_trigger()
493 struct snd_compr_stream *cstream, in snd_soc_component_compr_set_params()
496 if (rollback && !soc_component_mark_match(component, cstream, compr_open)) in snd_soc_component_compr_set_params()
501 component->driver->compress_ops->free(component, cstream); in snd_soc_component_compr_set_params()
508 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd) in snd_soc_component_compr_set_params()
510 struct snd_soc_pcm_runtime *rtd = cstream->private_data;
518 component, cstream, cmd); in snd_soc_component_compr_get_params()
528 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream, in snd_soc_component_compr_get_params()
438 snd_soc_component_compr_open(struct snd_soc_component * component,struct snd_compr_stream * cstream) snd_soc_component_compr_open() argument
455 snd_soc_component_compr_free(struct snd_soc_component * component,struct snd_compr_stream * cstream,int rollback) snd_soc_component_compr_free() argument
470 snd_soc_component_compr_trigger(struct snd_compr_stream * cstream,int cmd) snd_soc_component_compr_trigger() argument
490 snd_soc_component_compr_set_params(struct snd_compr_stream * cstream,struct snd_compr_params * params) snd_soc_component_compr_set_params() argument
511 snd_soc_component_compr_get_params(struct snd_compr_stream * cstream,struct snd_codec * params) snd_soc_component_compr_get_params() argument
531 snd_soc_component_compr_get_caps(struct snd_compr_stream * cstream,struct snd_compr_caps * caps) snd_soc_component_compr_get_caps() argument
555 snd_soc_component_compr_get_codec_caps(struct snd_compr_stream * cstream,struct snd_compr_codec_caps * codec) snd_soc_component_compr_get_codec_caps() argument
579 snd_soc_component_compr_ack(struct snd_compr_stream * cstream,size_t bytes) snd_soc_component_compr_ack() argument
599 snd_soc_component_compr_pointer(struct snd_compr_stream * cstream,struct snd_compr_tstamp64 * tstamp) snd_soc_component_compr_pointer() argument
619 snd_soc_component_compr_copy(struct snd_compr_stream * cstream,char __user * buf,size_t count) snd_soc_component_compr_copy() argument
643 snd_soc_component_compr_set_metadata(struct snd_compr_stream * cstream,struct snd_compr_metadata * metadata) snd_soc_component_compr_set_metadata() argument
664 snd_soc_component_compr_get_metadata(struct snd_compr_stream * cstream,struct snd_compr_metadata * metadata) snd_soc_component_compr_get_metadata() argument
[all...]
/linux/include/sound/
H A Dsoc-component.h396 struct snd_compr_stream *cstream);
398 struct snd_compr_stream *cstream,
400 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd);
401 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream,
403 int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream,
405 int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream,
407 int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream,
409 int snd_soc_component_compr_ack(struct snd_compr_stream *cstream, size_t bytes);
410 int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream,
412 int snd_soc_component_compr_copy(struct snd_compr_stream *cstream,
[all...]
H A Dsoc-link.h27 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream);
28 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream,
30 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream);
H A Dhdaudio_ext.h83 struct snd_compr_stream *cstream);
/linux/tools/build/feature/
H A Dtest-libzstd.c6 ZSTD_CStream *cstream; in main() local
8 cstream = ZSTD_createCStream(); in main()
9 ZSTD_freeCStream(cstream); in main()
/linux/include/linux/
H A Dzstd.h491 size_t zstd_reset_cstream(zstd_cstream *cstream,
511 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output,
527 size_t zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output);
541 size_t zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output);
/linux/sound/hda/core/
H A Dstream.c594 struct snd_compr_stream *cstream = azx_dev->cstream;
601 } else if (cstream) { in snd_hdac_stream_set_params()
602 dmab = snd_pcm_get_dma_buf(cstream); in snd_hdac_stream_set_params() local
604 WARN(1, "No substream or cstream assigned\n"); in snd_hdac_stream_set_params()
624 struct snd_compr_stream *cstream = azx_dev->cstream; in snd_hdac_stream_set_params()
633 } else if (cstream) {
634 bufsize = cstream->runtime->buffer_size;
635 period_bytes = cstream
572 struct snd_compr_stream *cstream = azx_dev->cstream; snd_hdac_stream_setup_periods() local
[all...]
/linux/sound/hda/core/ext/
H A Dstream.c422 struct snd_compr_stream *cstream) in snd_hdac_ext_cstream_assign() argument
431 if (hstream->direction != cstream->direction) in snd_hdac_ext_cstream_assign()
444 res->hstream.cstream = cstream; in snd_hdac_ext_cstream_assign()
/linux/fs/netfs/
H A Dwrite_collect.c416 struct netfs_io_stream *cstream = &wreq->io_streams[1]; in netfs_write_collection() local
451 if (cstream->active) { in netfs_write_collection()
461 } else if (!cstream->failed) { in netfs_write_collection()
462 netfs_cache_collect(wreq, cstream, cstream->cache_collect); in netfs_write_collection()
/linux/sound/soc/uniphier/
H A Daio-dma.c50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq()
64 snd_compr_fragment_elapsed(sub->cstream); in aiodma_compr_irq()
85 if (sub->cstream) in aiodma_irq()
H A Daio.h244 struct snd_compr_stream *cstream; member
/linux/sound/soc/sof/intel/
H A Dhda-stream.c48 else if (hstream->cstream) in hda_hstream_dbg_get_stream_info_str()
49 rtd = hstream->cstream->private_data; in hda_hstream_dbg_get_stream_info_str()
814 struct snd_compr_stream *cstream) in hda_dsp_stream_check()
816 return _hda_dsp_stream_hw_free(sdev, cstream->runtime->private_data); in hda_dsp_stream_check()
878 if (!s->substream && !s->cstream) { in hda_dsp_stream_init()
897 } else if (s->cstream) { in hda_dsp_stream_init()
898 hda_dsp_compr_bytes_transferred(s, s->cstream->direction); in hda_dsp_stream_init()
899 snd_compr_fragment_elapsed(s->cstream); in hda_dsp_stream_init()
1265 * @cstream: Compress stream
1269 u64 hda_dsp_compr_get_stream_llp(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream)
[all...]
/linux/sound/soc/qcom/qdsp6/
H A Dq6apm-dai.c77 struct snd_compr_stream *cstream;
270 struct snd_compr_stream *substream = prtd->cstream; in q6apm_dai_prepare()
280 snd_compr_drain_notify(prtd->cstream); in q6apm_dai_prepare()
821 prtd->cstream = stream; in q6apm_dai_compr_set_params()
62 struct snd_compr_stream *cstream; global() member
H A Dq6asm-dai.c54 struct snd_compr_stream *cstream; member
523 struct snd_compr_stream *substream = prtd->cstream; in compress_event_handler()
562 snd_compr_drain_notify(prtd->cstream); in compress_event_handler()
636 prtd->cstream = stream; in q6asm_dai_compr_open()

12