Home
last modified time | relevance | path

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

12

/Linux-v6.6/sound/usb/line6/
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-v6.6/sound/core/
Dpcm.c107 struct snd_pcm_str *pstr; in snd_pcm_control_ioctl() local
127 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
128 if (pstr->substream_count == 0) { in snd_pcm_control_ioctl()
132 if (subdevice >= pstr->substream_count) { in snd_pcm_control_ioctl()
136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
491 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
492 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
498 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
501 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
505 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
[all …]
Drawmidi.c651 info->subdevices_count = substream->pstr->substream_count; in snd_rawmidi_info()
652 info->subdevices_avail = (substream->pstr->substream_count - in snd_rawmidi_info()
653 substream->pstr->substream_opened); in snd_rawmidi_info()
675 struct snd_rawmidi_str *pstr; in __snd_rawmidi_info_select() local
684 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
685 if (pstr->substream_count == 0) in __snd_rawmidi_info_select()
687 if (info->subdevice >= pstr->substream_count) in __snd_rawmidi_info_select()
689 list_for_each_entry(substream, &pstr->substreams, list) { in __snd_rawmidi_info_select()
1872 substream->pstr = stream; in snd_rawmidi_alloc_substreams()
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-v6.6/drivers/staging/wlan-ng/
Dprism2mib.c355 struct p80211pstrd *pstr = data; in prism2mib_bytearea2pstr() local
361 prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); in prism2mib_bytearea2pstr()
364 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_bytearea2pstr()
509 struct p80211pstrd *pstr = data; in prism2mib_wepdefaultkey() local
516 len = (pstr->len > 5) ? HFA384x_RID_CNFWEP128DEFAULTKEY_LEN : in prism2mib_wepdefaultkey()
519 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_wepdefaultkey()
646 struct p80211pstrd *pstr = data; in prism2mib_priv() local
661 pstr->len = 0; in prism2mib_priv()
695 struct p80211pstrd *pstr) in prism2mgmt_pstr2bytestr() argument
697 bytestr->len = cpu_to_le16((u16)(pstr->len)); in prism2mgmt_pstr2bytestr()
[all …]
Dprism2mgmt.h73 void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
77 struct p80211pstrd *pstr);
79 struct p80211pstrd *pstr);
82 void prism2mgmt_get_grpaddr(u32 did, struct p80211pstrd *pstr,
85 u8 *prism2buf, struct p80211pstrd *pstr,
Dp80211req.c183 struct p80211pstrd *pstr = (struct p80211pstrd *)mibitem->data; in p80211req_mibset_mibget() local
194 key, pstr->len); in p80211req_mibset_mibget()
Dprism2mgmt.c509 struct p80211pstrd *pstr; in prism2mgmt_start() local
536 pstr = (struct p80211pstrd *)&msg->ssid.data; in prism2mgmt_start()
537 prism2mgmt_pstr2bytestr(p2bytestr, pstr); in prism2mgmt_start()
1011 struct p80211pstrd *pstr; in prism2mgmt_autojoin() local
1037 pstr = (struct p80211pstrd *)&msg->ssid.data; in prism2mgmt_autojoin()
1038 prism2mgmt_pstr2bytestr(p2bytestr, pstr); in prism2mgmt_autojoin()
/Linux-v6.6/fs/crypto/
Dhooks.c343 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local
352 pstr.name = READ_ONCE(inode->i_link); in fscrypt_get_symlink()
353 if (pstr.name) in fscrypt_get_symlink()
354 return pstr.name; in fscrypt_get_symlink()
382 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink()
386 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
391 if (pstr.name[0] == '\0') in fscrypt_get_symlink()
394 pstr.name[pstr.len] = '\0'; in fscrypt_get_symlink()
403 cmpxchg_release(&inode->i_link, NULL, pstr.name) != NULL) in fscrypt_get_symlink()
404 set_delayed_call(done, kfree_link, pstr.name); in fscrypt_get_symlink()
[all …]
/Linux-v6.6/sound/soc/fsl/
Dmpc5200_dma.c122 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
137 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
155 substream->pstr->stream, s->period_count); in psc_dma_trigger()
160 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
170 substream->pstr->stream, cmd); in psc_dma_trigger()
219 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
246 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
271 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
Dmpc5200_psc_ac97.c155 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) in psc_ac97_hw_analog_params()
185 substream->pstr->stream); in psc_ac97_trigger()
194 substream->pstr->stream); in psc_ac97_trigger()
Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/Linux-v6.6/sound/soc/google/
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-v6.6/sound/core/oss/
Dpcm_oss.c2035 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2965 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2966 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2967 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2981 mutex_unlock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2984 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2988 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2994 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
3000 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
3007 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_write()
[all …]
/Linux-v6.6/tools/perf/
Dbuiltin-diff.c1077 static int abstime_str_dup(char **pstr) in abstime_str_dup() argument
1087 *pstr = str; in abstime_str_dup()
1091 static int parse_absolute_time(struct data__file *d, char **pstr) in parse_absolute_time() argument
1093 char *p = *pstr; in parse_absolute_time()
1100 p = strchr(*pstr, ':'); in parse_absolute_time()
1102 if (p == *pstr) { in parse_absolute_time()
1115 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1123 *pstr = NULL; in parse_absolute_time()
1125 *pstr = p; in parse_absolute_time()
/Linux-v6.6/drivers/media/pci/solo6x10/
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-v6.6/include/sound/
Drawmidi.h95 struct snd_rawmidi_str *pstr; member
Dpcm.h449 struct snd_pcm_str *pstr; member
/Linux-v6.6/drivers/staging/greybus/
Daudio_codec.h124 char pstr[NAME_SIZE]; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/
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-v6.6/sound/pci/hda/
Dpatch_hdmi.c2302 struct hda_pcm_stream *pstr; in generic_hdmi_build_pcms() local
2313 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in generic_hdmi_build_pcms()
2314 pstr->substreams = 1; in generic_hdmi_build_pcms()
2315 pstr->ops = generic_ops; in generic_hdmi_build_pcms()
3215 struct hda_pcm_stream *pstr; in simple_playback_build_pcms() local
3227 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in simple_playback_build_pcms()
3228 *pstr = spec->pcm_playback; in simple_playback_build_pcms()
3229 pstr->nid = per_cvt->cvt_nid; in simple_playback_build_pcms()
3230 if (pstr->channels_max <= 2 && chans && chans <= 16) in simple_playback_build_pcms()
3231 pstr->channels_max = chans; in simple_playback_build_pcms()
/Linux-v6.6/sound/pci/rme9652/
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()
Dhdsp.c3972 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy()
3990 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_capture_copy()
4005 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_hw_silence()
4054 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdsp_hw_params()
/Linux-v6.6/sound/usb/usx2y/
Dusbusx2yaudio.c774 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()
/Linux-v6.6/sound/drivers/
Daloop.c189 int device = dpcm->substream->pstr->pcm->device; in get_setup()

12