Home
last modified time | relevance | path

Searched full:pstr (Results 1 – 25 of 30) 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 in line6_buffer_release()
186 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); line6_stream_start() local
211 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); line6_stream_stop() local
293 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_pointer() local
303 struct line6_pcm_stream *pstr; line6_pcm_acquire() local
334 struct line6_pcm_stream *pstr; line6_pcm_release() local
354 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_hw_params() local
372 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_hw_free() local
589 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_prepare() local
[all...]
/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.c1851 struct hda_pcm_stream *pstr; in snd_hda_hdmi_generic_build_pcms() local
1862 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_generic_build_pcms()
1863 pstr->substreams = 1; in snd_hda_hdmi_generic_build_pcms()
1864 pstr->ops = generic_ops; in snd_hda_hdmi_generic_build_pcms()
1867 pstr->channels_min = per_cvt->channels_min; in snd_hda_hdmi_generic_build_pcms()
1868 pstr->channels_max = per_cvt->channels_max; in snd_hda_hdmi_generic_build_pcms()
1873 /* other pstr fields are set in open */ 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/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/arch/arm/mach-shmobile/
H A Dsmp-sh73a0.c22 #define PSTR 0x40 /* System-CPU Power Status Register */ macro
37 if (((readl(cpg2 + PSTR) >> (4 * lcpu)) & 3) == 3) in sh73a0_boot_secondary()
/linux/sound/core/oss/
H A Dpcm_oss.c2019 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2948 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read()
2949 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read() local
2950 guard(mutex)(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2966 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr)
2970 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2976 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2982 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write()
2989 guard(mutex)(&pstr in snd_pcm_oss_proc_write()
2967 snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) snd_pcm_oss_proc_free_setup_list() argument
2983 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_oss_proc_write() local
3059 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_init() local
3082 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_done() local
[all...]
/linux/arch/arm/mach-pxa/
H A Dpxa25x.c66 SAVE(PSTR); in pxa25x_cpu_pm_save()
71 RESTORE(PSTR); in pxa25x_cpu_pm_restore()
H A Dpxa27x.c108 SAVE(PSTR); in pxa27x_cpu_pm_save()
118 RESTORE(PSTR); in pxa27x_cpu_pm_restore()
H A Dpxa2xx-regs.h35 #define PSTR __REG(0x40F00038) /* Power Manager Standby Config Register */ macro
/linux/tools/perf/
H A Dbuiltin-diff.c1064 static int abstime_str_dup(char **pstr) in abstime_str_dup() argument
1074 *pstr = str; in abstime_str_dup()
1078 static int parse_absolute_time(struct data__file *d, char **pstr) in parse_absolute_time() argument
1080 char *p = *pstr; in parse_absolute_time()
1087 p = strchr(*pstr, ':'); in parse_absolute_time()
1089 if (p == *pstr) { in parse_absolute_time()
1102 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1110 *pstr = NULL; in parse_absolute_time()
1112 *pstr = p; in parse_absolute_time()
/linux/Documentation/devicetree/bindings/power/
H A Drenesas,apmu.yaml41 CPU cores used by the WUPCR and PSTR registers in the Advanced Power
/linux/sound/core/
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()
235 info->subdevices_count = pstr->substream_count; in snd_pcm_info()
236 info->subdevices_avail = pstr->substream_count - pstr->substream_opened;
219 struct snd_pcm_str *pstr = substream->pstr; snd_pcm_info() local
/linux/rust/kernel/device/
H A Dproperty.rs447 let pstr: *mut _ = &mut str; in read_from_fwnode_property()
453 bindings::fwnode_property_read_string(fwnode.as_raw(), name.as_char_ptr(), pstr.cast()) in read_from_fwnode_property()
458 // - `pstr` is a valid pointer to a NUL-terminated C string. in read_from_fwnode_property()
462 let str = unsafe { CStr::from_char_ptr(*pstr) }; in read_from_fwnode_property()
446 let pstr: *mut _ = &mut str; read_from_fwnode_property() localVariable
/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/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c419 char *substr, *pstr = str; in mlx5_tracer_get_num_of_params() local
423 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params()
426 pstr = substr; in mlx5_tracer_get_num_of_params()
427 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 rme9652_channel_buffer_location()
1848 substream->pstr->stream, in snd_rme9652_playback_copy()
1865 substream->pstr->stream, in snd_rme9652_capture_copy()
1909 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_rme9652_reset()
H A Dhdsp.c3932 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_interrupt()
3950 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in hdsp_channel_buffer_location()
3965 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy()
4014 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdsp_reset()
/linux/sound/usb/usx2y/
H A Dusbusx2yaudio.c756 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()
/linux/sound/pci/riptide/
H A Driptide.c239 #define SEND_PSTR(p,b) sendcmd(p,PARM,PSTR,BYTE3(b),RET(0)) /* pause stream */
307 0x20, PSTR, KSTR, KDMA, GPOS, SETF, GSTS, NGPOS, PSEL = enumerator

12