Home
last modified time | relevance | path

Searched refs:pstr (Results 1 – 25 of 28) sorted by relevance

12

/linux/sound/usb/line6/
H A Dpcm.c148 struct line6_pcm_stream *pstr, int direction, int type) in line6_buffer_acquire() argument
156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire()
157 pstr->buffer = in line6_buffer_acquire()
161 if (!pstr->buffer) in line6_buffer_acquire()
171 struct line6_pcm_stream *pstr, int type) in line6_buffer_release() argument
173 clear_bit(type, &pstr->opened); in line6_buffer_release()
174 if (!pstr->opened) { in line6_buffer_release()
175 line6_wait_clear_audio_urbs(line6pcm, pstr); in line6_buffer_release()
176 kfree(pstr->buffer); in line6_buffer_release()
177 pstr->buffer = NULL; in line6_buffer_release()
[all …]
/linux/sound/core/
H A Dpcm.c106 struct snd_pcm_str *pstr; in snd_pcm_control_ioctl() local
123 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
124 if (pstr->substream_count == 0) in snd_pcm_control_ioctl()
126 if (subdevice >= pstr->substream_count) in snd_pcm_control_ioctl()
128 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
482 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
483 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
489 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
492 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
496 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
[all …]
H A Drawmidi.c637 info->subdevices_count = substream->pstr->substream_count; in snd_rawmidi_info()
638 info->subdevices_avail = (substream->pstr->substream_count - in snd_rawmidi_info()
639 substream->pstr->substream_opened); in snd_rawmidi_info()
662 struct snd_rawmidi_str *pstr; in __snd_rawmidi_info_select() local
671 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
672 if (pstr->substream_count == 0) in __snd_rawmidi_info_select()
674 if (info->subdevice >= pstr->substream_count) in __snd_rawmidi_info_select()
676 list_for_each_entry(substream, &pstr->substreams, list) { in __snd_rawmidi_info_select()
1812 substream->pstr = stream; in snd_rawmidi_alloc_substreams()
H A Dpcm_native.c224 struct snd_pcm_str *pstr = substream->pstr; in snd_pcm_info() local
235 info->subdevices_count = pstr->substream_count; in snd_pcm_info()
236 info->subdevices_avail = pstr->substream_count - pstr->substream_opened; in snd_pcm_info()
/linux/fs/crypto/
H A Dhooks.c360 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local
369 pstr.name = READ_ONCE(inode->i_link); in fscrypt_get_symlink()
370 if (pstr.name) in fscrypt_get_symlink()
371 return pstr.name; in fscrypt_get_symlink()
399 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink()
403 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
408 if (pstr.name[0] == '\0') in fscrypt_get_symlink()
411 pstr.name[pstr.len] = '\0'; in fscrypt_get_symlink()
420 cmpxchg_release(&inode->i_link, NULL, pstr.name) != NULL) in fscrypt_get_symlink()
421 set_delayed_call(done, kfree_link, pstr.name); in fscrypt_get_symlink()
[all …]
/linux/sound/hda/codecs/hdmi/
H A Dsimplehdmi.c16 struct hda_pcm_stream *pstr; in snd_hda_hdmi_simple_build_pcms() local
28 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_simple_build_pcms()
29 *pstr = spec->pcm_playback; in snd_hda_hdmi_simple_build_pcms()
30 pstr->nid = per_cvt->cvt_nid; in snd_hda_hdmi_simple_build_pcms()
31 if (pstr->channels_max <= 2 && chans && chans <= 16) in snd_hda_hdmi_simple_build_pcms()
32 pstr->channels_max = chans; in snd_hda_hdmi_simple_build_pcms()
H A Dhdmi.c1852 struct hda_pcm_stream *pstr; in snd_hda_hdmi_generic_build_pcms() local
1863 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_generic_build_pcms()
1864 pstr->substreams = 1; in snd_hda_hdmi_generic_build_pcms()
1865 pstr->ops = generic_ops; in snd_hda_hdmi_generic_build_pcms()
1868 pstr->channels_min = per_cvt->channels_min; in snd_hda_hdmi_generic_build_pcms()
1869 pstr->channels_max = per_cvt->channels_max; in snd_hda_hdmi_generic_build_pcms()
/linux/sound/soc/fsl/
H A Dmpc5200_dma.c125 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
140 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
158 substream->pstr->stream, s->period_count); in psc_dma_trigger()
163 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
173 substream->pstr->stream, cmd); in psc_dma_trigger()
222 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
249 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
274 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
H A Dmpc5200_psc_ac97.c154 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) in psc_ac97_hw_analog_params()
184 substream->pstr->stream); in psc_ac97_trigger()
193 substream->pstr->stream); in psc_ac97_trigger()
H A Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/linux/sound/soc/codecs/
H A Dfs-amp-lib.c37 int offset, const char **pstr) in fs_get_fwm_string() argument
41 if (!amp_lib || !amp_lib->dev || !pstr) in fs_get_fwm_string()
46 *pstr = (char *)table + offset; in fs_get_fwm_string()
48 *pstr = NULL; in fs_get_fwm_string()
/linux/sound/soc/google/
H A Dchv3-i2s.c158 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_close()
211 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_prepare()
240 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_pointer()
262 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_ack()
/linux/sound/core/oss/
H A Dpcm_oss.c2024 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2953 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2954 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2955 guard(mutex)(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2971 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2975 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2981 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2987 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
2994 guard(mutex)(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_write()
2998 snd_pcm_oss_proc_free_setup_list(pstr); in snd_pcm_oss_proc_write()
[all …]
/linux/rust/kernel/device/
H A Dproperty.rs448 let pstr: *mut _ = &mut str; in read_from_fwnode_property() localVariable
454 bindings::fwnode_property_read_string(fwnode.as_raw(), name.as_char_ptr(), pstr.cast()) in read_from_fwnode_property()
463 let str = unsafe { CStr::from_char_ptr(*pstr) }; in read_from_fwnode_property()
/linux/tools/perf/
H A Dbuiltin-diff.c1062 static int abstime_str_dup(char **pstr) in abstime_str_dup() argument
1072 *pstr = str; in abstime_str_dup()
1076 static int parse_absolute_time(struct data__file *d, char **pstr) in parse_absolute_time() argument
1078 char *p = *pstr; in parse_absolute_time()
1085 p = strchr(*pstr, ':'); in parse_absolute_time()
1087 if (p == *pstr) { in parse_absolute_time()
1100 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1108 *pstr = NULL; in parse_absolute_time()
1110 *pstr = p; in parse_absolute_time()
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-g723.c78 struct snd_pcm_str *pstr = in solo_g723_isr() local
83 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr()
/linux/include/sound/
H A Drawmidi.h96 struct snd_rawmidi_str *pstr; member
H A Dpcm.h466 struct snd_pcm_str *pstr; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c461 char *substr, *pstr = str; in mlx5_tracer_get_num_of_params() local
469 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params()
472 pstr = substr; in mlx5_tracer_get_num_of_params()
473 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params()
/linux/drivers/staging/greybus/
H A Daudio_codec.h124 char pstr[NAME_SIZE]; member
/linux/sound/pci/rme9652/
H A Drme9652.c1828 substream->pstr->stream, in snd_rme9652_playback_copy()
1848 substream->pstr->stream, in snd_rme9652_capture_copy()
1865 substream->pstr->stream, in snd_rme9652_hw_silence()
1909 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_rme9652_hw_params()
H A Dhdsp.c3932 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy()
3950 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_capture_copy()
3965 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_hw_silence()
4014 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdsp_hw_params()
/linux/sound/usb/usx2y/
H A Dusbusx2yaudio.c754 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()
/linux/drivers/firmware/cirrus/
H A Dcs_dsp.c413 const char **pstr) in cs_dsp_debugfs_string_read() argument
419 if (*pstr) { in cs_dsp_debugfs_string_read()
420 str = kasprintf(GFP_KERNEL, "%s\n", *pstr); in cs_dsp_debugfs_string_read()
/linux/sound/drivers/
H A Daloop.c195 int device = dpcm->substream->pstr->pcm->device; in get_setup()

12