| /linux-6.15/sound/soc/ |
| H A D | soc-compress.c | 77 snd_soc_link_compr_shutdown(cstream, rollback); in soc_compr_clean() 95 return soc_compr_clean(cstream, 0); in soc_compr_free() 115 ret = snd_soc_compr_components_open(cstream); in soc_compr_open() 119 ret = snd_soc_link_compr_startup(cstream); in soc_compr_open() 128 soc_compr_clean(cstream, 1); in soc_compr_open() 169 ret = snd_soc_compr_components_open(cstream); in soc_compr_open_fe() 173 ret = snd_soc_link_compr_startup(cstream); in soc_compr_open_fe() 191 snd_soc_compr_components_free(cstream, 1); in soc_compr_open_fe() 234 snd_soc_link_compr_shutdown(cstream, 0); in soc_compr_free_fe() 236 snd_soc_compr_components_free(cstream, 0); in soc_compr_free_fe() [all …]
|
| H A D | soc-link.c | 170 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream) in snd_soc_link_compr_startup() argument 172 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_startup() 177 ret = rtd->dai_link->compr_ops->startup(cstream); in snd_soc_link_compr_startup() 180 soc_link_mark_push(rtd, cstream, compr_startup); in snd_soc_link_compr_startup() 186 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream, in snd_soc_link_compr_shutdown() argument 189 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_shutdown() 191 if (rollback && !soc_link_mark_match(rtd, cstream, compr_startup)) in snd_soc_link_compr_shutdown() 196 rtd->dai_link->compr_ops->shutdown(cstream); in snd_soc_link_compr_shutdown() 202 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream) in snd_soc_link_compr_set_params() argument 204 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_set_params() [all …]
|
| H A D | soc-component.c | 478 struct snd_compr_stream *cstream) in snd_soc_component_compr_open() argument 520 component, cstream, cmd); in snd_soc_component_compr_trigger() 541 component, cstream, params); in snd_soc_component_compr_set_params() 562 component, cstream, params); in snd_soc_component_compr_get_params() 584 component, cstream, caps); in snd_soc_component_compr_get_caps() 608 component, cstream, codec); in snd_soc_component_compr_get_codec_caps() 629 component, cstream, bytes); in snd_soc_component_compr_ack() 650 component, cstream, tstamp); in snd_soc_component_compr_pointer() 672 component, cstream, buf, count); in snd_soc_component_compr_copy() 694 component, cstream, metadata); in snd_soc_component_compr_set_metadata() [all …]
|
| H A D | soc-dai.c | 686 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup() argument 692 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup() 696 soc_dai_mark_push(dai, cstream, compr_startup); in snd_soc_dai_compr_startup() 703 struct snd_compr_stream *cstream, in snd_soc_dai_compr_shutdown() argument 711 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown() 732 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_params() argument 746 struct snd_compr_stream *cstream, in snd_soc_dai_compr_get_params() argument 760 struct snd_compr_stream *cstream, in snd_soc_dai_compr_ack() argument 774 struct snd_compr_stream *cstream, in snd_soc_dai_compr_pointer() argument 788 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_metadata() argument [all …]
|
| /linux-6.15/sound/soc/sof/ |
| H A D | compress.c | 37 snd_compr_fragment_elapsed(sps->cstream); in snd_sof_compr_fragment_elapsed_work() 56 if (!cstream) in snd_sof_compr_fragment_elapsed() 59 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed() 60 crtd = cstream->runtime; in snd_sof_compr_fragment_elapsed() 84 int dir = cstream->direction; in create_page_table() 96 struct snd_compr_stream *cstream) in sof_compr_open() argument 114 dir = cstream->direction; in sof_compr_open() 116 if (spcm->stream[dir].cstream) { in sof_compr_open() 121 spcm->stream[dir].cstream = cstream; in sof_compr_open() 132 struct snd_compr_stream *cstream) in sof_compr_free() argument [all …]
|
| H A D | sof-client-probes.h | 17 int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, 19 int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, 21 int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, 24 int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, 26 int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
|
| H A D | sof-client-probes.c | 88 snd_compr_free_pages(cstream); in sof_probes_compr_shutdown() 90 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown() 103 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probes_compr_set_params() 109 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probes_compr_set_params() 110 cstream->dma_buffer.dev.dev = sof_client_get_dma_dev(cdev); in sof_probes_compr_set_params() 111 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probes_compr_set_params() 115 ret = ops->set_params(cdev, cstream, params, dai); in sof_probes_compr_set_params() 136 return ops->trigger(cdev, cstream, cmd, dai); in sof_probes_compr_trigger() 148 return ops->pointer(cdev, cstream, tstamp, dai); in sof_probes_compr_pointer() 160 struct snd_compr_stream *cstream, in sof_probes_compr_copy() argument [all …]
|
| H A D | stream-ipc.c | 46 } 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()
|
| /linux-6.15/sound/soc/sof/intel/ |
| H A D | hda-probes.c | 25 return cstream->runtime->private_data; in hda_compr_get_stream() 29 struct snd_compr_stream *cstream, in hda_probes_compr_startup() argument 40 hdac_stream(hext_stream)->cstream = cstream; in hda_probes_compr_startup() 41 cstream->runtime->private_data = hext_stream; in hda_probes_compr_startup() 49 struct snd_compr_stream *cstream, in hda_probes_compr_shutdown() argument 63 hdac_stream(hext_stream)->cstream = NULL; in hda_probes_compr_shutdown() 64 cstream->runtime->private_data = NULL; in hda_probes_compr_shutdown() 70 struct snd_compr_stream *cstream, in hda_probes_compr_set_params() argument 81 dmab = cstream->runtime->dma_buffer_p; in hda_probes_compr_set_params() 104 struct snd_compr_stream *cstream, in hda_probes_compr_trigger() argument [all …]
|
| /linux-6.15/sound/soc/intel/atom/ |
| H A D | sst-mfld-platform-compress.c | 29 if (cstream) in sst_compr_fragment_elapsed() 30 snd_compr_fragment_elapsed(cstream); in sst_compr_fragment_elapsed() 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 150 cstream->runtime->buffer_size; in sst_platform_compr_set_params() 154 cb.param = cstream; in sst_platform_compr_set_params() 156 cb.drain_cb_param = cstream; in sst_platform_compr_set_params() 235 cstream->runtime->private_data; in sst_platform_compr_get_caps() 245 cstream->runtime->private_data; in sst_platform_compr_get_codec_caps() [all …]
|
| H A 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-6.15/sound/soc/uniphier/ |
| H A 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 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 116 sub->cstream = NULL; in uniphier_aio_compr_free() 122 struct snd_compr_stream *cstream, in uniphier_aio_compr_get_params() argument 135 struct snd_compr_stream *cstream, in uniphier_aio_compr_set_params() argument 167 struct snd_compr_stream *cstream) in uniphier_aio_compr_hw_free() argument [all …]
|
| H A 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()
|
| /linux-6.15/sound/soc/sof/amd/ |
| H A D | acp-probes.c | 24 struct snd_compr_stream *cstream, in acp_probes_compr_startup() argument 36 stream->cstream = cstream; in acp_probes_compr_startup() 37 cstream->runtime->private_data = stream; in acp_probes_compr_startup() 46 struct snd_compr_stream *cstream, in acp_probes_compr_shutdown() argument 61 stream->cstream = NULL; in acp_probes_compr_shutdown() 62 cstream->runtime->private_data = NULL; in acp_probes_compr_shutdown() 69 struct snd_compr_stream *cstream, in acp_probes_compr_set_params() argument 79 stream->dmab = cstream->runtime->dma_buffer_p; in acp_probes_compr_set_params() 81 size = cstream->runtime->buffer_size; in acp_probes_compr_set_params() 102 struct snd_compr_stream *cstream, in acp_probes_compr_trigger() argument [all …]
|
| /linux-6.15/sound/soc/sprd/ |
| H A D | sprd-pcm-compress.c | 70 struct snd_compr_stream *cstream; member 105 struct snd_compr_stream *cstream = arg; in sprd_platform_compr_drain_notify() local 111 snd_compr_drain_notify(cstream); in sprd_platform_compr_drain_notify() 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 250 dma->desc->callback_param = cstream; in sprd_platform_compr_dma_config() 334 stream->cstream = cstream; in sprd_platform_compr_open() 372 cb.drain_data = cstream; in sprd_platform_compr_open() 426 int stream_id = cstream->direction; in sprd_platform_compr_trigger() 608 struct snd_compr_stream *cstream, in sprd_platform_compr_get_caps() argument [all …]
|
| /linux-6.15/sound/soc/intel/avs/ |
| H A D | probes.c | 55 return cstream->runtime->private_data; in avs_compr_get_host_stream() 69 host_stream = snd_hdac_ext_cstream_assign(bus, cstream); in avs_probe_compr_open() 77 cstream->runtime->private_data = host_stream; in avs_probe_compr_open() 118 snd_compr_free_pages(cstream); in avs_probe_compr_free() 124 static int avs_probe_compr_set_params(struct snd_compr_stream *cstream, in avs_probe_compr_set_params() argument 128 struct snd_compr_runtime *rtd = cstream->runtime; in avs_probe_compr_set_params() 138 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in avs_probe_compr_set_params() 139 cstream->dma_buffer.dev.dev = adev->dev; in avs_probe_compr_set_params() 141 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in avs_probe_compr_set_params() 215 static int avs_probe_compr_pointer(struct snd_compr_stream *cstream, in avs_probe_compr_pointer() argument [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | zstd.c | 12 data->cstream = NULL; in zstd_init() 23 if (data->cstream) { in zstd_fini() 24 ZSTD_freeCStream(data->cstream); in zstd_fini() 25 data->cstream = NULL; in zstd_fini() 40 if (!data->cstream) { in zstd_compress_stream_to_records() 41 data->cstream = ZSTD_createCStream(); in zstd_compress_stream_to_records() 42 if (data->cstream == NULL) { in zstd_compress_stream_to_records() 47 ret = ZSTD_initCStream(data->cstream, data->comp_level); in zstd_compress_stream_to_records() 63 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records() 64 ZSTD_flushStream(data->cstream, &output); in zstd_compress_stream_to_records()
|
| /linux-6.15/lib/zstd/ |
| H A D | zstd_compress_module.c | 215 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 249 return ZSTD_compressStream(cstream, output, input); in zstd_compress_stream() 253 size_t zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output) in zstd_flush_stream() argument 255 return ZSTD_flushStream(cstream, output); in zstd_flush_stream() 259 size_t zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output) in zstd_end_stream() argument [all …]
|
| /linux-6.15/tools/build/feature/ |
| H A D | test-libzstd.c | 6 ZSTD_CStream *cstream; in main() local 8 cstream = ZSTD_createCStream(); in main() 9 ZSTD_freeCStream(cstream); in main()
|
| /linux-6.15/include/sound/ |
| H A D | soc-component.h | 487 struct snd_compr_stream *cstream); 489 struct snd_compr_stream *cstream, 491 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd); 492 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream, 494 int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream, 496 int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream, 498 int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream, 501 int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream, 503 int snd_soc_component_compr_copy(struct snd_compr_stream *cstream, 505 int snd_soc_component_compr_set_metadata(struct snd_compr_stream *cstream, [all …]
|
| H A 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);
|
| H A D | soc-dai.h | 242 struct snd_compr_stream *cstream); 244 struct snd_compr_stream *cstream, 247 struct snd_compr_stream *cstream, int cmd); 249 struct snd_compr_stream *cstream, 252 struct snd_compr_stream *cstream, 255 struct snd_compr_stream *cstream, 258 struct snd_compr_stream *cstream, 261 struct snd_compr_stream *cstream, 264 struct snd_compr_stream *cstream,
|
| /linux-6.15/include/linux/ |
| H A D | zstd.h | 491 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-6.15/sound/hda/ |
| H A D | hdac_stream.c | 574 struct snd_compr_stream *cstream = azx_dev->cstream; in snd_hdac_stream_setup_periods() local 581 } else if (cstream) { in snd_hdac_stream_setup_periods() 582 dmab = snd_pcm_get_dma_buf(cstream); in snd_hdac_stream_setup_periods() 604 struct snd_compr_stream *cstream = azx_dev->cstream; in snd_hdac_stream_set_params() local 613 } else if (cstream) { in snd_hdac_stream_set_params() 614 bufsize = cstream->runtime->buffer_size; in snd_hdac_stream_set_params() 615 period_bytes = cstream->runtime->fragment_size; in snd_hdac_stream_set_params()
|
| /linux-6.15/sound/hda/ext/ |
| H A D | hdac_ext_stream.c | 425 struct snd_compr_stream *cstream) in snd_hdac_ext_cstream_assign() argument 434 if (hstream->direction != cstream->direction) in snd_hdac_ext_cstream_assign() 447 res->hstream.cstream = cstream; in snd_hdac_ext_cstream_assign()
|