Home
last modified time | relevance | path

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

123

/kernel/linux/linux-4.19/sound/usb/line6/
Dpcm.c152 struct line6_pcm_stream *pstr, int direction, int type) in line6_buffer_acquire() argument
160 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire()
161 pstr->buffer = in line6_buffer_acquire()
165 if (!pstr->buffer) in line6_buffer_acquire()
175 struct line6_pcm_stream *pstr, int type) in line6_buffer_release() argument
177 clear_bit(type, &pstr->opened); in line6_buffer_release()
178 if (!pstr->opened) { in line6_buffer_release()
179 line6_wait_clear_audio_urbs(line6pcm, pstr); in line6_buffer_release()
180 kfree(pstr->buffer); in line6_buffer_release()
181 pstr->buffer = NULL; in line6_buffer_release()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
489 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
490 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
496 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
499 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
503 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
[all …]
/kernel/linux/linux-4.19/sound/core/
Dpcm.c122 struct snd_pcm_str *pstr; in snd_pcm_control_ioctl() local
142 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
143 if (pstr->substream_count == 0) { in snd_pcm_control_ioctl()
147 if (subdevice >= pstr->substream_count) { in snd_pcm_control_ioctl()
151 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
504 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
505 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
511 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
514 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
518 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/
Dprism2mib.c346 * Get/set pstr data to/from a byte area.
376 struct p80211pstrd *pstr = data; in prism2mib_bytearea2pstr() local
382 prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); in prism2mib_bytearea2pstr()
385 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_bytearea2pstr()
530 struct p80211pstrd *pstr = data; in prism2mib_wepdefaultkey() local
537 len = (pstr->len > 5) ? HFA384x_RID_CNFWEP128DEFAULTKEY_LEN : in prism2mib_wepdefaultkey()
540 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_wepdefaultkey()
667 struct p80211pstrd *pstr = data; in prism2mib_priv() local
678 pstr->len = le16_to_cpu(wpa.datalen); in prism2mib_priv()
679 memcpy(pstr->data, wpa.data, pstr->len); in prism2mib_priv()
[all …]
Dprism2mgmt.h94 void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
98 struct p80211pstrd *pstr);
100 struct p80211pstrd *pstr);
103 void prism2mgmt_get_grpaddr(u32 did, struct p80211pstrd *pstr,
106 u8 *prism2buf, struct p80211pstrd *pstr,
/kernel/linux/linux-4.19/drivers/staging/wlan-ng/
Dprism2mib.c352 * Get/set pstr data to/from a byte area.
382 struct p80211pstrd *pstr = data; in prism2mib_bytearea2pstr() local
388 prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); in prism2mib_bytearea2pstr()
391 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_bytearea2pstr()
536 struct p80211pstrd *pstr = data; in prism2mib_wepdefaultkey() local
543 len = (pstr->len > 5) ? HFA384x_RID_CNFWEP128DEFAULTKEY_LEN : in prism2mib_wepdefaultkey()
546 memcpy(bytebuf, pstr->data, pstr->len); in prism2mib_wepdefaultkey()
707 struct p80211pstrd *pstr = data; in prism2mib_priv() local
718 pstr->len = le16_to_cpu(wpa.datalen); in prism2mib_priv()
719 memcpy(pstr->data, wpa.data, pstr->len); in prism2mib_priv()
[all …]
Dprism2mgmt.h94 void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
98 struct p80211pstrd *pstr);
100 struct p80211pstrd *pstr);
103 void prism2mgmt_get_grpaddr(u32 did, struct p80211pstrd *pstr,
106 u8 *prism2buf, struct p80211pstrd *pstr,
/kernel/linux/linux-5.10/drivers/net/wan/lmc/
Dlmc_debug.c16 char str[80], *pstr; in lmcConsoleLog() local
19 pstr = str+strlen(str); in lmcConsoleLog()
31 sprintf(pstr, "%02x ", *ucData); in lmcConsoleLog()
32 pstr+=3; in lmcConsoleLog()
36 sprintf(pstr, "\n"); in lmcConsoleLog()
39 pstr=str+strlen(str); in lmcConsoleLog()
44 sprintf(pstr, "\n"); in lmcConsoleLog()
/kernel/linux/linux-4.19/drivers/net/wan/lmc/
Dlmc_debug.c16 char str[80], *pstr; in lmcConsoleLog() local
19 pstr = str+strlen(str); in lmcConsoleLog()
31 sprintf(pstr, "%02x ", *ucData); in lmcConsoleLog()
32 pstr+=3; in lmcConsoleLog()
36 sprintf(pstr, "\n"); in lmcConsoleLog()
39 pstr=str+strlen(str); in lmcConsoleLog()
44 sprintf(pstr, "\n"); in lmcConsoleLog()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/
Dhal_btcoex.c1516 u8 *pstr; in hal_btcoex_GetDBG() local
1523 pstr = pStrBuf; in hal_btcoex_GetDBG()
1527 count = rtw_sprintf(pstr, leftSize, "#define DBG\t%d\n", DBG); in hal_btcoex_GetDBG()
1530 pstr += count; in hal_btcoex_GetDBG()
1533 count = rtw_sprintf(pstr, leftSize, "BTCOEX Debug Setting:\n"); in hal_btcoex_GetDBG()
1536 pstr += count; in hal_btcoex_GetDBG()
1539 count = rtw_sprintf(pstr, leftSize, in hal_btcoex_GetDBG()
1545 pstr += count; in hal_btcoex_GetDBG()
1548 count = rtw_sprintf(pstr, leftSize, "INTERFACE Debug Setting Definition:\n"); in hal_btcoex_GetDBG()
1551 pstr += count; in hal_btcoex_GetDBG()
[all …]
/kernel/linux/linux-4.19/drivers/staging/rtl8723bs/hal/
Dhal_btcoex.c1584 u8 *pstr; in hal_btcoex_GetDBG() local
1591 pstr = pStrBuf; in hal_btcoex_GetDBG()
1595 count = rtw_sprintf(pstr, leftSize, "#define DBG\t%d\n", DBG); in hal_btcoex_GetDBG()
1598 pstr += count; in hal_btcoex_GetDBG()
1601 count = rtw_sprintf(pstr, leftSize, "BTCOEX Debug Setting:\n"); in hal_btcoex_GetDBG()
1604 pstr += count; in hal_btcoex_GetDBG()
1607 count = rtw_sprintf(pstr, leftSize, in hal_btcoex_GetDBG()
1613 pstr += count; in hal_btcoex_GetDBG()
1616 count = rtw_sprintf(pstr, leftSize, "INTERFACE Debug Setting Definition:\n"); in hal_btcoex_GetDBG()
1619 pstr += count; in hal_btcoex_GetDBG()
[all …]
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/
Dsys_test_015.cpp39 char *pstr = NULL; in TestCase() local
41 pstr = l64a(a); in TestCase()
42 ICUNIT_GOTO_NOT_EQUAL(pstr, NULL, pstr, EXIT); in TestCase()
44 b = a64l(pstr); in TestCase()
/kernel/linux/linux-4.19/fs/crypto/
Dhooks.c229 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local
261 err = fscrypt_fname_alloc_buffer(inode, cstr.len, &pstr); in fscrypt_get_symlink()
265 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
270 if (pstr.name[0] == '\0') in fscrypt_get_symlink()
273 pstr.name[pstr.len] = '\0'; in fscrypt_get_symlink()
274 set_delayed_call(done, kfree_link, pstr.name); in fscrypt_get_symlink()
275 return pstr.name; in fscrypt_get_symlink()
278 kfree(pstr.name); in fscrypt_get_symlink()
/kernel/linux/linux-5.10/fs/crypto/
Dhooks.c312 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local
321 pstr.name = READ_ONCE(inode->i_link); in fscrypt_get_symlink()
322 if (pstr.name) in fscrypt_get_symlink()
323 return pstr.name; in fscrypt_get_symlink()
351 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink()
355 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
360 if (pstr.name[0] == '\0') in fscrypt_get_symlink()
363 pstr.name[pstr.len] = '\0'; in fscrypt_get_symlink()
372 cmpxchg_release(&inode->i_link, NULL, pstr.name) != NULL) in fscrypt_get_symlink()
373 set_delayed_call(done, kfree_link, pstr.name); in fscrypt_get_symlink()
[all …]
/kernel/linux/linux-4.19/arch/arm/mach-shmobile/
Dpm-rmobile.c33 #define PSTR 0x80 /* Power Status Register */ macro
60 if (__raw_readl(rmobile_pd->base + PSTR) & mask) { in rmobile_pd_power_down()
72 pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", in rmobile_pd_power_down()
74 __raw_readl(rmobile_pd->base + PSTR)); in rmobile_pd_power_down()
90 if (__raw_readl(rmobile_pd->base + PSTR) & mask) in __rmobile_pd_power_up()
107 pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", in __rmobile_pd_power_up()
109 __raw_readl(rmobile_pd->base + PSTR)); in __rmobile_pd_power_up()
Dsmp-sh73a0.c30 #define PSTR IOMEM(0xe6151040) macro
40 if (((__raw_readl(PSTR) >> (4 * lcpu)) & 3) == 3) in sh73a0_boot_secondary()
/kernel/linux/linux-5.10/drivers/soc/renesas/
Drmobile-sysc.c29 #define PSTR 0x80 /* Power Status Register */ macro
60 if (__raw_readl(rmobile_pd->base + PSTR) & mask) { in rmobile_pd_power_down()
71 pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", genpd->name, mask, in rmobile_pd_power_down()
72 __raw_readl(rmobile_pd->base + PSTR)); in rmobile_pd_power_down()
83 if (__raw_readl(rmobile_pd->base + PSTR) & mask) in __rmobile_pd_power_up()
99 pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", in __rmobile_pd_power_up()
101 __raw_readl(rmobile_pd->base + PSTR)); in __rmobile_pd_power_up()
/kernel/linux/linux-5.10/sound/soc/fsl/
Dmpc5200_dma.c129 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
144 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
162 substream->pstr->stream, s->period_count); in psc_dma_trigger()
167 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
177 substream->pstr->stream, cmd); in psc_dma_trigger()
226 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
253 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
278 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()
/kernel/linux/linux-4.19/sound/soc/fsl/
Dmpc5200_dma.c127 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
142 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
160 substream->pstr->stream, s->period_count); in psc_dma_trigger()
165 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
175 substream->pstr->stream, cmd); in psc_dma_trigger()
223 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()
273 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
Dmpc5200_psc_ac97.c159 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) in psc_ac97_hw_analog_params()
189 substream->pstr->stream); in psc_ac97_trigger()
198 substream->pstr->stream); in psc_ac97_trigger()
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
Dsmp-sh73a0.c21 #define PSTR IOMEM(0xe6151040) macro
31 if (((__raw_readl(PSTR) >> (4 * lcpu)) & 3) == 3) in sh73a0_boot_secondary()
/kernel/linux/linux-5.10/sound/core/oss/
Dpcm_oss.c2002 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2929 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2930 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2931 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2945 mutex_unlock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2948 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2952 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2958 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2964 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
2971 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_write()
[all …]
/kernel/linux/linux-4.19/sound/core/oss/
Dpcm_oss.c2005 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2929 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2930 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2931 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2945 mutex_unlock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2948 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2952 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2958 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2964 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
2971 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_write()
[all …]

123