/linux-4.4.14/drivers/net/wan/lmc/ |
H A D | lmc_debug.c | 15 char str[80], *pstr; lmcConsoleLog() local 18 pstr = str+strlen(str); lmcConsoleLog() 30 sprintf(pstr, "%02x ", *ucData); lmcConsoleLog() 31 pstr+=3; lmcConsoleLog() 35 sprintf(pstr, "\n"); lmcConsoleLog() 38 pstr=str+strlen(str); lmcConsoleLog() 43 sprintf(pstr, "\n"); lmcConsoleLog()
|
/linux-4.4.14/sound/usb/line6/ |
H A D | pcm.c | 153 struct line6_pcm_stream *pstr, int type) line6_buffer_acquire() 156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { line6_buffer_acquire() 157 pstr->buffer = kmalloc(LINE6_ISO_BUFFERS * LINE6_ISO_PACKETS * line6_buffer_acquire() 159 if (!pstr->buffer) line6_buffer_acquire() 169 struct line6_pcm_stream *pstr, int type) line6_buffer_release() 172 clear_bit(type, &pstr->opened); line6_buffer_release() 173 if (!pstr->opened) { line6_buffer_release() 174 line6_wait_clear_audio_urbs(line6pcm, pstr); line6_buffer_release() 175 kfree(pstr->buffer); line6_buffer_release() 176 pstr->buffer = NULL; line6_buffer_release() 185 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); line6_stream_start() local 188 spin_lock_irqsave(&pstr->lock, flags); line6_stream_start() 189 if (!test_and_set_bit(type, &pstr->running) && line6_stream_start() 190 !(pstr->active_urbs || pstr->unlink_urbs)) { line6_stream_start() 191 pstr->count = 0; line6_stream_start() 199 clear_bit(type, &pstr->running); line6_stream_start() 200 spin_unlock_irqrestore(&pstr->lock, flags); line6_stream_start() 209 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); line6_stream_stop() local 211 spin_lock_irqsave(&pstr->lock, flags); line6_stream_stop() 212 clear_bit(type, &pstr->running); line6_stream_stop() 213 if (!pstr->running) { line6_stream_stop() 214 line6_unlink_audio_urbs(line6pcm, pstr); line6_stream_stop() 220 spin_unlock_irqrestore(&pstr->lock, flags); line6_stream_stop() 275 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_pointer() local 277 return pstr->pos_done; snd_line6_pointer() 285 struct line6_pcm_stream *pstr; line6_pcm_acquire() local 290 pstr = get_stream(line6pcm, dir); line6_pcm_acquire() 291 ret = line6_buffer_acquire(line6pcm, pstr, type); line6_pcm_acquire() 294 if (!pstr->running) line6_pcm_acquire() 295 line6_wait_clear_audio_urbs(line6pcm, pstr); line6_pcm_acquire() 313 struct line6_pcm_stream *pstr; line6_pcm_release() local 320 pstr = get_stream(line6pcm, dir); line6_pcm_release() 321 line6_buffer_release(line6pcm, pstr, type); line6_pcm_release() 333 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_hw_params() local 336 ret = line6_buffer_acquire(line6pcm, pstr, LINE6_STREAM_PCM); snd_line6_hw_params() 343 line6_buffer_release(line6pcm, pstr, LINE6_STREAM_PCM); snd_line6_hw_params() 347 pstr->period = params_period_bytes(hw_params); snd_line6_hw_params() 357 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_hw_free() local 360 line6_buffer_release(line6pcm, pstr, LINE6_STREAM_PCM); snd_line6_hw_free() 565 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); snd_line6_prepare() local 568 if (!pstr->running) snd_line6_prepare() 569 line6_wait_clear_audio_urbs(line6pcm, pstr); snd_line6_prepare() 152 line6_buffer_acquire(struct snd_line6_pcm *line6pcm, struct line6_pcm_stream *pstr, int type) line6_buffer_acquire() argument 168 line6_buffer_release(struct snd_line6_pcm *line6pcm, struct line6_pcm_stream *pstr, int type) line6_buffer_release() argument
|
/linux-4.4.14/sound/core/ |
H A D | pcm.c | 116 struct snd_pcm_str *pstr; snd_pcm_control_ioctl() local 135 pstr = &pcm->streams[stream]; snd_pcm_control_ioctl() 136 if (pstr->substream_count == 0) { snd_pcm_control_ioctl() 140 if (subdevice >= pstr->substream_count) { snd_pcm_control_ioctl() 144 for (substream = pstr->substream; substream; snd_pcm_control_ioctl() 500 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_xrun_debug_read() local 501 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); snd_pcm_xrun_debug_read() 507 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_xrun_debug_write() local 510 pstr->xrun_debug = simple_strtoul(line, NULL, 10); snd_pcm_xrun_debug_write() 514 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) snd_pcm_stream_proc_init() argument 516 struct snd_pcm *pcm = pstr->pcm; snd_pcm_stream_proc_init() 521 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); snd_pcm_stream_proc_init() 529 pstr->proc_root = entry; snd_pcm_stream_proc_init() 531 if ((entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root)) != NULL) { snd_pcm_stream_proc_init() 532 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); snd_pcm_stream_proc_init() 538 pstr->proc_info_entry = entry; snd_pcm_stream_proc_init() 542 pstr->proc_root)) != NULL) { snd_pcm_stream_proc_init() 546 entry->private_data = pstr; snd_pcm_stream_proc_init() 552 pstr->proc_xrun_debug_entry = entry; snd_pcm_stream_proc_init() 557 static int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) snd_pcm_stream_proc_done() argument 560 snd_info_free_entry(pstr->proc_xrun_debug_entry); snd_pcm_stream_proc_done() 561 pstr->proc_xrun_debug_entry = NULL; snd_pcm_stream_proc_done() 563 snd_info_free_entry(pstr->proc_info_entry); snd_pcm_stream_proc_done() 564 pstr->proc_info_entry = NULL; snd_pcm_stream_proc_done() 565 snd_info_free_entry(pstr->proc_root); snd_pcm_stream_proc_done() 566 pstr->proc_root = NULL; snd_pcm_stream_proc_done() 579 if ((entry = snd_info_create_card_entry(card, name, substream->pstr->proc_root)) == NULL) snd_pcm_substream_proc_init() 666 static inline int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) { return 0; } snd_pcm_stream_proc_done() argument 667 static inline int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) { return 0; } snd_pcm_substream_proc_init() argument 690 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_new_stream() local 694 mutex_init(&pstr->oss.setup_mutex); snd_pcm_new_stream() 696 pstr->stream = stream; snd_pcm_new_stream() 697 pstr->pcm = pcm; snd_pcm_new_stream() 698 pstr->substream_count = substream_count; snd_pcm_new_stream() 702 snd_device_initialize(&pstr->dev, pcm->card); snd_pcm_new_stream() 703 pstr->dev.groups = pcm_dev_attr_groups; snd_pcm_new_stream() 704 dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, snd_pcm_new_stream() 708 err = snd_pcm_stream_proc_init(pstr); snd_pcm_new_stream() 720 substream->pstr = pstr; snd_pcm_new_stream() 726 pstr->substream = substream; snd_pcm_new_stream() 736 pstr->substream = NULL; snd_pcm_new_stream() 852 static void snd_pcm_free_stream(struct snd_pcm_str * pstr) snd_pcm_free_stream() argument 858 substream = pstr->substream; snd_pcm_free_stream() 866 snd_pcm_stream_proc_done(pstr); snd_pcm_free_stream() 868 for (setup = pstr->oss.setup_list; setup; setup = setupn) { snd_pcm_free_stream() 874 if (pstr->substream_count) snd_pcm_free_stream() 875 put_device(&pstr->dev); snd_pcm_free_stream() 907 struct snd_pcm_str * pstr; snd_pcm_attach_substream() local 920 pstr = &pcm->streams[stream]; snd_pcm_attach_substream() 921 if (pstr->substream == NULL || pstr->substream_count == 0) snd_pcm_attach_substream() 939 if (pstr->substream_count > 1) snd_pcm_attach_substream() 941 substream = pstr->substream; snd_pcm_attach_substream() 943 for (substream = pstr->substream; substream; snd_pcm_attach_substream() 957 for (substream = pstr->substream; substream; substream = substream->next) { snd_pcm_attach_substream() 998 pstr->substream_opened++; snd_pcm_attach_substream() 1021 substream->pstr->substream_opened--; snd_pcm_detach_substream() 1027 struct snd_pcm_str *pstr = container_of(dev, struct snd_pcm_str, dev); show_pcm_class() local 1028 struct snd_pcm *pcm = pstr->pcm; show_pcm_class()
|
H A D | rawmidi.c | 564 info->subdevices_count = substream->pstr->substream_count; snd_rawmidi_info() 565 info->subdevices_avail = (substream->pstr->substream_count - snd_rawmidi_info() 566 substream->pstr->substream_opened); snd_rawmidi_info() 585 struct snd_rawmidi_str *pstr; snd_rawmidi_info_select() local 595 pstr = &rmidi->streams[info->stream]; snd_rawmidi_info_select() 596 if (pstr->substream_count == 0) snd_rawmidi_info_select() 598 if (info->subdevice >= pstr->substream_count) snd_rawmidi_info_select() 600 list_for_each_entry(substream, &pstr->substreams, list) { snd_rawmidi_info_select() 1493 substream->pstr = stream; snd_rawmidi_alloc_substreams()
|
H A D | pcm_native.c | 201 struct snd_pcm_str *pstr = substream->pstr; snd_pcm_info() local 212 info->subdevices_count = pstr->substream_count; snd_pcm_info() 213 info->subdevices_avail = pstr->substream_count - pstr->substream_opened; snd_pcm_info()
|
H A D | pcm_lib.c | 162 ((substream)->pstr->xrun_debug & (mask))
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
H A D | prism2mib.c | 352 * Get/set pstr data to/from a byte area. 382 p80211pstrd_t *pstr = (p80211pstrd_t *) data; prism2mib_bytearea2pstr() local 388 prism2mgmt_bytearea2pstr(bytebuf, pstr, mib->parm2); prism2mib_bytearea2pstr() 391 prism2mgmt_pstr2bytearea(bytebuf, pstr); prism2mib_bytearea2pstr() 536 p80211pstrd_t *pstr = (p80211pstrd_t *) data; prism2mib_wepdefaultkey() local 543 len = (pstr->len > 5) ? HFA384x_RID_CNFWEP128DEFAULTKEY_LEN : prism2mib_wepdefaultkey() 546 prism2mgmt_pstr2bytearea(bytebuf, pstr); prism2mib_wepdefaultkey() 711 p80211pstrd_t *pstr = (p80211pstrd_t *) data; prism2mib_priv() local 722 pstr->len = le16_to_cpu(wpa.datalen); prism2mib_priv() 723 memcpy(pstr->data, wpa.data, pstr->len); prism2mib_priv() 725 wpa.datalen = cpu_to_le16(pstr->len); prism2mib_priv() 726 memcpy(wpa.data, pstr->data, pstr->len); prism2mib_priv() 745 * Convert the pstr data in the WLAN message structure into an hfa384x 750 * pstr wlan message data 758 p80211pstrd_t *pstr) prism2mgmt_pstr2bytestr() 760 bytestr->len = cpu_to_le16((u16) (pstr->len)); prism2mgmt_pstr2bytestr() 761 memcpy(bytestr->data, pstr->data, pstr->len); prism2mgmt_pstr2bytestr() 767 * Convert the pstr data in the WLAN message structure into an hfa384x 772 * pstr wlan message data 779 void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr) prism2mgmt_pstr2bytearea() argument 781 memcpy(bytearea, pstr->data, pstr->len); prism2mgmt_pstr2bytearea() 788 * pstr in the WLAN message. 800 p80211pstrd_t *pstr) prism2mgmt_bytestr2pstr() 802 pstr->len = (u8) (le16_to_cpu((u16) (bytestr->len))); prism2mgmt_bytestr2pstr() 803 memcpy(pstr->data, bytestr->data, pstr->len); prism2mgmt_bytestr2pstr() 809 * Convert the data in an hfa384x byte area format into a pstr 821 void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len) prism2mgmt_bytearea2pstr() argument 823 pstr->len = (u8) len; prism2mgmt_bytearea2pstr() 824 memcpy(pstr->data, bytearea, len); prism2mgmt_bytearea2pstr() 757 prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr, p80211pstrd_t *pstr) prism2mgmt_pstr2bytestr() argument 799 prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr, p80211pstrd_t *pstr) prism2mgmt_bytestr2pstr() argument
|
H A D | prism2mgmt.h | 91 void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr); 92 void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len); 96 p80211pstrd_t *pstr); 98 p80211pstrd_t *pstr); 101 void prism2mgmt_get_grpaddr(u32 did, p80211pstrd_t *pstr, hfa384x_t *priv); 103 u8 *prism2buf, p80211pstrd_t *pstr,
|
H A D | p80211req.c | 184 p80211pstrd_t *pstr = (p80211pstrd_t *) mibitem->data; p80211req_mibset_mibget() local 190 wep_change_key(wlandev, 0, key, pstr->len); p80211req_mibset_mibget() 195 wep_change_key(wlandev, 1, key, pstr->len); p80211req_mibset_mibget() 200 wep_change_key(wlandev, 2, key, pstr->len); p80211req_mibset_mibget() 205 wep_change_key(wlandev, 3, key, pstr->len); p80211req_mibset_mibget()
|
H A D | prism2mgmt.c | 534 p80211pstrd_t *pstr; prism2mgmt_start() local 561 pstr = (p80211pstrd_t *) &(msg->ssid.data); prism2mgmt_start() 562 prism2mgmt_pstr2bytestr(p2bytestr, pstr); prism2mgmt_start() 1031 p80211pstrd_t *pstr; prism2mgmt_autojoin() local 1057 pstr = (p80211pstrd_t *) &(msg->ssid.data); prism2mgmt_autojoin() 1058 prism2mgmt_pstr2bytestr(p2bytestr, pstr); prism2mgmt_autojoin()
|
/linux-4.4.14/fs/ext4/ |
H A D | symlink.c | 30 struct ext4_str cstr, pstr; ext4_encrypted_follow_link() local 70 pstr.name = paddr; ext4_encrypted_follow_link() 71 pstr.len = plen; ext4_encrypted_follow_link() 72 res = _ext4_fname_disk_to_usr(inode, NULL, &cstr, &pstr); ext4_encrypted_follow_link()
|
/linux-4.4.14/sound/soc/fsl/ |
H A D | mpc5200_dma.c | 125 substream->pstr->stream, runtime->frame_bits, psc_dma_trigger() 140 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) psc_dma_trigger() 158 substream->pstr->stream, s->period_count); psc_dma_trigger() 163 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) psc_dma_trigger() 173 substream->pstr->stream, cmd); psc_dma_trigger() 221 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) psc_dma_open() 247 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) psc_dma_close() 271 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) psc_dma_pointer()
|
H A D | mpc5200_dma.h | 79 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) to_psc_dma_stream()
|
H A D | mpc5200_psc_ac97.c | 159 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) psc_ac97_hw_analog_params() 189 substream->pstr->stream); psc_ac97_trigger() 198 substream->pstr->stream); psc_ac97_trigger()
|
/linux-4.4.14/sound/core/oss/ |
H A D | pcm_oss.c | 1940 if (substream->pstr->substream_count > 1) snd_pcm_oss_get_caps1() 2847 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_oss_proc_read() local 2848 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; snd_pcm_oss_proc_read() 2849 mutex_lock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_read() 2863 mutex_unlock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_read() 2866 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) snd_pcm_oss_proc_free_setup_list() argument 2870 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; snd_pcm_oss_proc_free_setup_list() 2876 pstr->oss.setup_list = NULL; snd_pcm_oss_proc_free_setup_list() 2882 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_oss_proc_write() local 2889 mutex_lock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_write() 2893 snd_pcm_oss_proc_free_setup_list(pstr); snd_pcm_oss_proc_write() 2894 mutex_unlock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_write() 2897 for (setup = pstr->oss.setup_list; setup; setup = setup->next) { snd_pcm_oss_proc_write() 2934 mutex_unlock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_write() 2937 if (pstr->oss.setup_list == NULL) snd_pcm_oss_proc_write() 2938 pstr->oss.setup_list = setup; snd_pcm_oss_proc_write() 2940 for (setup1 = pstr->oss.setup_list; snd_pcm_oss_proc_write() 2948 mutex_unlock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_write() 2953 mutex_unlock(&pstr->oss.setup_mutex); snd_pcm_oss_proc_write() 2962 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_init() local 2963 if (pstr->substream_count == 0) snd_pcm_oss_proc_init() 2965 if ((entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root)) != NULL) { snd_pcm_oss_proc_init() 2970 entry->private_data = pstr; snd_pcm_oss_proc_init() 2976 pstr->oss.proc_entry = entry; snd_pcm_oss_proc_init() 2984 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_done() local 2985 snd_info_free_entry(pstr->oss.proc_entry); snd_pcm_oss_proc_done() 2986 pstr->oss.proc_entry = NULL; snd_pcm_oss_proc_done() 2987 snd_pcm_oss_proc_free_setup_list(pstr); snd_pcm_oss_proc_done()
|
/linux-4.4.14/drivers/media/pci/solo6x10/ |
H A D | solo6x10-g723.c | 87 struct snd_pcm_str *pstr = solo_g723_isr() local 92 for (ss = pstr->substream; ss != NULL; ss = ss->next) { solo_g723_isr()
|
/linux-4.4.14/fs/f2fs/ |
H A D | namei.c | 931 struct f2fs_str pstr = FSTR_INIT(NULL, 0); f2fs_encrypted_follow_link() local 970 res = f2fs_fname_crypto_alloc_buffer(inode, cstr.len, &pstr); f2fs_encrypted_follow_link() 974 res = f2fs_fname_disk_to_usr(inode, NULL, &cstr, &pstr); f2fs_encrypted_follow_link() 980 paddr = pstr.name; f2fs_encrypted_follow_link() 990 f2fs_fname_crypto_free_buffer(&pstr); f2fs_encrypted_follow_link()
|
/linux-4.4.14/include/sound/ |
H A D | rawmidi.h | 101 struct snd_rawmidi_str *pstr; member in struct:snd_rawmidi_substream
|
H A D | pcm.h | 438 struct snd_pcm_str *pstr; member in struct:snd_pcm_substream
|
/linux-4.4.14/sound/pci/hda/ |
H A D | patch_hdmi.c | 2077 struct hda_pcm_stream *pstr; generic_hdmi_build_pcms() local 2086 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; generic_hdmi_build_pcms() 2087 pstr->substreams = 1; generic_hdmi_build_pcms() 2088 pstr->ops = generic_ops; generic_hdmi_build_pcms() 2089 /* other pstr fields are set in open */ generic_hdmi_build_pcms() 2434 struct hda_pcm_stream *pstr; simple_playback_build_pcms() local 2446 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; simple_playback_build_pcms() 2447 *pstr = spec->pcm_playback; simple_playback_build_pcms() 2448 pstr->nid = per_cvt->cvt_nid; simple_playback_build_pcms() 2449 if (pstr->channels_max <= 2 && chans && chans <= 16) simple_playback_build_pcms() 2450 pstr->channels_max = chans; simple_playback_build_pcms()
|
/linux-4.4.14/sound/pci/rme9652/ |
H A D | rme9652.c | 1896 substream->pstr->stream, snd_rme9652_playback_copy() 1915 substream->pstr->stream, snd_rme9652_capture_copy() 1931 substream->pstr->stream, snd_rme9652_hw_silence() 1975 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { snd_rme9652_hw_params()
|
H A D | hdsp.c | 3925 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); snd_hdsp_playback_copy() 3942 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); snd_hdsp_capture_copy() 3956 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); snd_hdsp_hw_silence() 4005 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { snd_hdsp_hw_params()
|
H A D | hdspm.c | 5520 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { snd_hdspm_hw_params()
|
/linux-4.4.14/sound/drivers/ |
H A D | aloop.c | 151 int device = dpcm->substream->pstr->pcm->device; get_setup()
|
/linux-4.4.14/sound/usb/usx2y/ |
H A D | usbusx2yaudio.c | 749 struct snd_card *card = substream->pstr->pcm->card; snd_usX2Y_pcm_hw_params()
|
/linux-4.4.14/sound/pci/korg1212/ |
H A D | korg1212.c | 1505 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { snd_korg1212_hw_params()
|