| /Linux-v5.15/sound/soc/ |
| D | soc-compress.c | 25 static int soc_compr_clean(struct snd_compr_stream *cstream, int rollback) in soc_compr_clean() argument 27 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_clean() 30 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_clean() 45 snd_soc_link_compr_shutdown(cstream, rollback); in soc_compr_clean() 47 snd_soc_component_compr_free(cstream, rollback); in soc_compr_clean() 49 snd_soc_dai_compr_shutdown(cpu_dai, cstream, rollback); in soc_compr_clean() 56 snd_soc_pcm_component_pm_runtime_put(rtd, cstream, rollback); in soc_compr_clean() 61 static int soc_compr_free(struct snd_compr_stream *cstream) in soc_compr_free() argument 63 return soc_compr_clean(cstream, 0); in soc_compr_free() 66 static int soc_compr_open(struct snd_compr_stream *cstream) in soc_compr_open() argument [all …]
|
| D | soc-component.c | 428 int snd_soc_component_compr_open(struct snd_compr_stream *cstream) in snd_soc_component_compr_open() argument 430 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_open() 437 ret = component->driver->compress_ops->open(component, cstream); in snd_soc_component_compr_open() 441 soc_component_mark_push(component, cstream, compr_open); in snd_soc_component_compr_open() 448 void snd_soc_component_compr_free(struct snd_compr_stream *cstream, in snd_soc_component_compr_free() argument 451 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_free() 456 if (rollback && !soc_component_mark_match(component, cstream, compr_open)) in snd_soc_component_compr_free() 461 component->driver->compress_ops->free(component, cstream); in snd_soc_component_compr_free() 463 soc_component_mark_pop(component, cstream, compr_open); in snd_soc_component_compr_free() 468 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd) in snd_soc_component_compr_trigger() argument [all …]
|
| D | soc-link.c | 184 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream) in snd_soc_link_compr_startup() argument 186 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_startup() 191 ret = rtd->dai_link->compr_ops->startup(cstream); in snd_soc_link_compr_startup() 194 soc_link_mark_push(rtd, cstream, compr_startup); in snd_soc_link_compr_startup() 200 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream, in snd_soc_link_compr_shutdown() argument 203 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_shutdown() 205 if (rollback && !soc_link_mark_match(rtd, cstream, compr_startup)) in snd_soc_link_compr_shutdown() 210 rtd->dai_link->compr_ops->shutdown(cstream); in snd_soc_link_compr_shutdown() 212 soc_link_mark_pop(rtd, cstream, compr_startup); in snd_soc_link_compr_shutdown() 216 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream) in snd_soc_link_compr_set_params() argument [all …]
|
| D | soc-dai.c | 697 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup() argument 703 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup() 707 soc_dai_mark_push(dai, cstream, compr_startup); in snd_soc_dai_compr_startup() 714 struct snd_compr_stream *cstream, in snd_soc_dai_compr_shutdown() argument 717 if (rollback && !soc_dai_mark_match(dai, cstream, compr_startup)) in snd_soc_dai_compr_shutdown() 722 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown() 725 soc_dai_mark_pop(dai, cstream, compr_startup); in snd_soc_dai_compr_shutdown() 730 struct snd_compr_stream *cstream, int cmd) in snd_soc_dai_compr_trigger() argument 736 ret = dai->driver->cops->trigger(cstream, cmd, dai); in snd_soc_dai_compr_trigger() 743 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_params() argument [all …]
|
| /Linux-v5.15/sound/soc/sof/intel/ |
| D | hda-compress.c | 17 hda_compr_get_stream(struct snd_compr_stream *cstream) in hda_compr_get_stream() argument 19 return cstream->runtime->private_data; in hda_compr_get_stream() 23 struct snd_compr_stream *cstream, in hda_probe_compr_assign() argument 28 stream = hda_dsp_stream_get(sdev, cstream->direction, 0); in hda_probe_compr_assign() 33 hdac_stream(stream)->cstream = cstream; in hda_probe_compr_assign() 34 cstream->runtime->private_data = stream; in hda_probe_compr_assign() 40 struct snd_compr_stream *cstream, in hda_probe_compr_free() argument 43 struct hdac_ext_stream *stream = hda_compr_get_stream(cstream); in hda_probe_compr_free() 46 ret = hda_dsp_stream_put(sdev, cstream->direction, in hda_probe_compr_free() 53 hdac_stream(stream)->cstream = NULL; in hda_probe_compr_free() [all …]
|
| D | hda.h | 587 struct snd_compr_stream *cstream, 590 struct snd_compr_stream *cstream, 593 struct snd_compr_stream *cstream, 597 struct snd_compr_stream *cstream, int cmd, 600 struct snd_compr_stream *cstream,
|
| D | hda-stream.c | 683 if ((!s->substream && !s->cstream) || in hda_dsp_stream_check() 691 } else if (s->cstream) { in hda_dsp_stream_check() 693 s->cstream->runtime->buffer_size); in hda_dsp_stream_check() 694 snd_compr_fragment_elapsed(s->cstream); in hda_dsp_stream_check()
|
| /Linux-v5.15/sound/soc/intel/atom/ |
| D | sst-mfld-platform-compress.c | 26 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_compr_fragment_elapsed() local 29 if (cstream) in sst_compr_fragment_elapsed() 30 snd_compr_fragment_elapsed(cstream); in sst_compr_fragment_elapsed() 35 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_drain_notify() local 38 if (cstream) in sst_drain_notify() 39 snd_compr_drain_notify(cstream); in sst_drain_notify() 43 struct snd_compr_stream *cstream) in sst_platform_compr_open() argument 46 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open() 76 struct snd_compr_stream *cstream) in sst_platform_compr_free() argument 81 stream = cstream->runtime->private_data; in sst_platform_compr_free() [all …]
|
| D | sst-mfld-platform-pcm.c | 180 struct snd_compr_stream *cstream = NULL; in sst_fill_stream_params() local 186 cstream = (struct snd_compr_stream *)substream; in sst_fill_stream_params() 207 if (cstream) { in sst_fill_stream_params() 208 index = sst_get_stream_mapping(cstream->device->device, in sst_fill_stream_params() 209 0, cstream->direction, in sst_fill_stream_params() 217 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params()
|
| /Linux-v5.15/sound/soc/uniphier/ |
| D | aio-compress.c | 20 struct snd_compr_stream *cstream); 22 struct snd_compr_stream *cstream); 76 struct snd_compr_stream *cstream) in uniphier_aio_compr_open() argument 78 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_open() 80 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_open() 83 if (sub->cstream) in uniphier_aio_compr_open() 86 sub->cstream = cstream; in uniphier_aio_compr_open() 102 struct snd_compr_stream *cstream) in uniphier_aio_compr_free() argument 104 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_free() 106 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_free() [all …]
|
| D | aio-dma.c | 50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() 64 snd_compr_fragment_elapsed(sub->cstream); in aiodma_compr_irq() 86 if (sub->cstream) in aiodma_irq()
|
| D | aio.h | 244 struct snd_compr_stream *cstream; member
|
| /Linux-v5.15/sound/soc/sof/ |
| D | compress.c | 21 int sof_probe_compr_open(struct snd_compr_stream *cstream, in sof_probe_compr_open() argument 28 ret = snd_sof_probe_compr_assign(sdev, cstream, dai); in sof_probe_compr_open() 39 int sof_probe_compr_free(struct snd_compr_stream *cstream, in sof_probe_compr_free() argument 65 snd_compr_free_pages(cstream); in sof_probe_compr_free() 67 return snd_sof_probe_compr_free(sdev, cstream, dai); in sof_probe_compr_free() 71 int sof_probe_compr_set_params(struct snd_compr_stream *cstream, in sof_probe_compr_set_params() argument 74 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probe_compr_set_params() 79 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probe_compr_set_params() 80 cstream->dma_buffer.dev.dev = sdev->dev; in sof_probe_compr_set_params() 81 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params() [all …]
|
| D | compress.h | 18 int sof_probe_compr_open(struct snd_compr_stream *cstream, 20 int sof_probe_compr_free(struct snd_compr_stream *cstream, 22 int sof_probe_compr_set_params(struct snd_compr_stream *cstream, 24 int sof_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd, 26 int sof_probe_compr_pointer(struct snd_compr_stream *cstream, 29 struct snd_compr_stream *cstream,
|
| D | ops.h | 434 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_assign() argument 436 return sof_ops(sdev)->probe_assign(sdev, cstream, dai); in snd_sof_probe_compr_assign() 441 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_free() argument 443 return sof_ops(sdev)->probe_free(sdev, cstream, dai); in snd_sof_probe_compr_free() 448 struct snd_compr_stream *cstream, in snd_sof_probe_compr_set_params() argument 451 return sof_ops(sdev)->probe_set_params(sdev, cstream, params, dai); in snd_sof_probe_compr_set_params() 456 struct snd_compr_stream *cstream, int cmd, in snd_sof_probe_compr_trigger() argument 459 return sof_ops(sdev)->probe_trigger(sdev, cstream, cmd, dai); in snd_sof_probe_compr_trigger() 464 struct snd_compr_stream *cstream, in snd_sof_probe_compr_pointer() argument 468 return sof_ops(sdev)->probe_pointer(sdev, cstream, tstamp, dai); in snd_sof_probe_compr_pointer()
|
| D | sof-priv.h | 184 struct snd_compr_stream *cstream, 187 struct snd_compr_stream *cstream, 190 struct snd_compr_stream *cstream, 194 struct snd_compr_stream *cstream, int cmd, 197 struct snd_compr_stream *cstream,
|
| /Linux-v5.15/sound/soc/sprd/ |
| D | sprd-pcm-compress.c | 70 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->runtime; in sprd_platform_compr_dma_config() [all …]
|
| /Linux-v5.15/tools/perf/util/ |
| D | zstd.c | 27 data->cstream = ZSTD_createCStream(); in zstd_init() 28 if (data->cstream == NULL) { in zstd_init() 33 ret = ZSTD_initCStream(data->cstream, level); in zstd_init() 49 if (data->cstream) { in zstd_fini() 50 ZSTD_freeCStream(data->cstream); in zstd_fini() 51 data->cstream = NULL; in zstd_fini() 74 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records() 75 ZSTD_flushStream(data->cstream, &output); in zstd_compress_stream_to_records()
|
| D | compress.h | 22 ZSTD_CStream *cstream; member
|
| /Linux-v5.15/tools/build/feature/ |
| D | test-libzstd.c | 6 ZSTD_CStream *cstream; in main() local 8 cstream = ZSTD_createCStream(); in main() 9 ZSTD_freeCStream(cstream); in main()
|
| /Linux-v5.15/include/sound/ |
| D | soc-component.h | 458 int snd_soc_component_compr_open(struct snd_compr_stream *cstream); 459 void snd_soc_component_compr_free(struct snd_compr_stream *cstream, 461 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd); 462 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream, 464 int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream, 466 int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream, 468 int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream, 470 int snd_soc_component_compr_ack(struct snd_compr_stream *cstream, size_t bytes); 471 int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream, 473 int snd_soc_component_compr_copy(struct snd_compr_stream *cstream, [all …]
|
| D | soc-link.h | 27 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);
|
| D | soc-dai.h | 243 struct snd_compr_stream *cstream); 245 struct snd_compr_stream *cstream, 248 struct snd_compr_stream *cstream, int cmd); 250 struct snd_compr_stream *cstream, 253 struct snd_compr_stream *cstream, 256 struct snd_compr_stream *cstream, 259 struct snd_compr_stream *cstream, 262 struct snd_compr_stream *cstream, 265 struct snd_compr_stream *cstream,
|
| D | hdaudio.h | 515 struct snd_compr_stream *cstream; member
|
| /Linux-v5.15/sound/soc/qcom/qdsp6/ |
| D | q6asm-dai.c | 52 struct snd_compr_stream *cstream; member 497 struct snd_compr_stream *substream = prtd->cstream; in compress_event_handler() 538 snd_compr_drain_notify(prtd->cstream); in compress_event_handler() 619 prtd->cstream = stream; in q6asm_dai_compr_open()
|