Home
last modified time | relevance | path

Searched full:pstr (Results 1 – 25 of 31) 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.c635 info->subdevices_count = substream->pstr->substream_count; in snd_rawmidi_info()
636 info->subdevices_avail = (substream->pstr->substream_count - in snd_rawmidi_info()
637 substream->pstr->substream_opened); in snd_rawmidi_info()
659 struct snd_rawmidi_str *pstr; in __snd_rawmidi_info_select() local
668 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
669 if (pstr->substream_count == 0) in __snd_rawmidi_info_select()
671 if (info->subdevice >= pstr->substream_count) in __snd_rawmidi_info_select()
673 list_for_each_entry(substream, &pstr->substreams, list) { in __snd_rawmidi_info_select()
1807 substream->pstr = stream; in snd_rawmidi_alloc_substreams()
H A Dpcm_native.c218 struct snd_pcm_str *pstr = substream->pstr; in snd_pcm_info() local
229 info->subdevices_count = pstr->substream_count; in snd_pcm_info()
230 info->subdevices_avail = pstr->substream_count - pstr->substream_opened; in snd_pcm_info()
/linux/fs/crypto/
H A Dhooks.c358 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local
367 pstr.name = READ_ONCE(inode->i_link); in fscrypt_get_symlink()
368 if (pstr.name) in fscrypt_get_symlink()
369 return pstr.name; in fscrypt_get_symlink()
397 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink()
401 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
406 if (pstr.name[0] == '\0') in fscrypt_get_symlink()
409 pstr.name[pstr.len] = '\0'; in fscrypt_get_symlink()
418 cmpxchg_release(&inode->i_link, NULL, pstr.name) != NULL) in fscrypt_get_symlink()
419 set_delayed_call(done, kfree_link, pstr.name); in fscrypt_get_symlink()
[all …]
/linux/drivers/pmdomain/renesas/
H A Drmobile-sysc.c27 #define PSTR 0x80 /* Power Status Register */ macro
59 if (readl(rmobile_pd->base + PSTR) & mask) { in rmobile_pd_power_down()
66 pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", genpd->name, mask, in rmobile_pd_power_down()
67 readl(rmobile_pd->base + PSTR)); in rmobile_pd_power_down()
77 if (readl(rmobile_pd->base + PSTR) & mask) in __rmobile_pd_power_up()
86 pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", in __rmobile_pd_power_up()
88 readl(rmobile_pd->base + PSTR)); in __rmobile_pd_power_up()
/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.c2021 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2950 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2951 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2952 guard(mutex)(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2968 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2972 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2978 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2984 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
2991 guard(mutex)(&pstr in snd_pcm_oss_proc_write()
3060 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_init() local
3083 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.c1063 static int abstime_str_dup(char **pstr) in abstime_str_dup() argument
1073 *pstr = str; in abstime_str_dup()
1077 static int parse_absolute_time(struct data__file *d, char **pstr) in parse_absolute_time() argument
1079 char *p = *pstr; in parse_absolute_time()
1086 p = strchr(*pstr, ':'); in parse_absolute_time()
1088 if (p == *pstr) { in parse_absolute_time()
1101 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1109 *pstr = NULL; in parse_absolute_time()
1111 *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/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/sound/pci/hda/
H A Dpatch_hdmi.c2308 struct hda_pcm_stream *pstr; in generic_hdmi_build_pcms() local
2319 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in generic_hdmi_build_pcms()
2320 pstr->substreams = 1; in generic_hdmi_build_pcms()
2321 pstr->ops = generic_ops; in generic_hdmi_build_pcms()
2324 pstr->channels_min = per_cvt->channels_min; in generic_hdmi_build_pcms()
2325 pstr->channels_max = per_cvt->channels_max; in generic_hdmi_build_pcms()
2330 /* other pstr fields are set in open */ in generic_hdmi_build_pcms()
3218 struct hda_pcm_stream *pstr; in simple_playback_build_pcms() local
3230 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in simple_playback_build_pcms()
3231 *pstr = spec->pcm_playback; in simple_playback_build_pcms()
[all …]
/linux/drivers/staging/greybus/
H A Daudio_codec.h124 char pstr[NAME_SIZE]; member
/linux/include/sound/
H A Drawmidi.h95 struct snd_rawmidi_str *pstr; member
/linux/sound/pci/rme9652/
H A Drme9652.c1856 substream->pstr->stream, in snd_rme9652_playback_copy()
1876 substream->pstr->stream, in snd_rme9652_capture_copy()
1893 substream->pstr->stream, in snd_rme9652_hw_silence()
1937 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_rme9652_hw_params()
H A Dhdsp.c3974 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy()
3992 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_capture_copy()
4007 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_hw_silence()
4056 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdsp_hw_params()
/linux/sound/usb/usx2y/
H A Dusbusx2yaudio.c784 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()

12