Home
last modified time | relevance | path

Searched full:pstr (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/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 …]
/openbmc/linux/sound/core/
H A 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()
492 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
493 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
499 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
502 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
506 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
[all …]
H A 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()
/openbmc/linux/drivers/staging/wlan-ng/
H A Dprism2mib.c325 * Get/set pstr data to/from a byte area.
355 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()
682 * Convert the pstr data in the WLAN message structure into an hfa384x
[all …]
H A 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,
H A Dp80211req.c183 struct p80211pstrd *pstr = (struct p80211pstrd *)mibitem->data; in p80211req_mibset_mibget() local
194 key, pstr->len); in p80211req_mibset_mibget()
H A 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()
/openbmc/linux/fs/crypto/
H A 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 …]
/openbmc/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()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Duser_data_json.cpp282 PyObject* pStr = PyObject_Str(eValue); in getPythonJSON() local
284 if (pStr) in getPythonJSON()
286 pErrStr = PyUnicode_AsUTF8(pStr); in getPythonJSON()
287 Py_XDECREF(pStr); in getPythonJSON()
373 PyObject* pStr = PyObject_Str(eValue); in getPythonJSON() local
375 if (pStr) in getPythonJSON()
377 pErrStr = PyUnicode_AsUTF8(pStr); in getPythonJSON()
378 Py_XDECREF(pStr); in getPythonJSON()
H A Dsrc.cpp150 PyObject* pStr = PyObject_Str(eValue); in getPythonJSON() local
152 if (pStr) in getPythonJSON()
154 pErrStr = PyUnicode_AsUTF8(pStr); in getPythonJSON()
155 Py_XDECREF(pStr); in getPythonJSON()
236 PyObject* pStr = PyObject_Str(eValue); in getPythonJSON() local
238 if (pStr) in getPythonJSON()
240 pErrStr = PyUnicode_AsUTF8(pStr); in getPythonJSON()
241 Py_XDECREF(pStr); in getPythonJSON()
/openbmc/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.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()
H A Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/openbmc/openbmc/poky/meta/lib/patchtest/tests/
H A Dtest_patch.py69 ("Current", pe.pstr),
85 ("Current", pe.pstr),
99 ("Current", pe.pstr),
/openbmc/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()
/openbmc/linux/sound/core/oss/
H A 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 …]
/openbmc/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()
/openbmc/qemu/util/
H A Dqemu-thread-win32.c59 char *pstr; in error_exit() local
62 NULL, err, 0, (LPTSTR)&pstr, 2, NULL); in error_exit()
63 fprintf(stderr, "qemu: %s: %s\n", msg, pstr); in error_exit()
64 LocalFree(pstr); in error_exit()
/openbmc/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()
/openbmc/linux/Documentation/devicetree/bindings/power/
H A Drenesas,apmu.yaml41 CPU cores used by the WUPCR and PSTR registers in the Advanced Power
/openbmc/linux/tools/perf/
H A 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()
/openbmc/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()
/openbmc/linux/drivers/staging/greybus/
H A Daudio_codec.h124 char pstr[NAME_SIZE]; member

12