Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 200 of 535) sorted by relevance

123

/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c15 int usb_urb_reconfig(struct usb_data_stream *stream,
20 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local
25 dev_dbg_ratelimited(&stream->udev->dev, in usb_urb_complete()
41 dev_dbg_ratelimited(&stream->udev->dev, in usb_urb_complete()
52 dev_dbg(&stream->udev->dev, in usb_urb_complete()
57 stream->complete(stream, in usb_urb_complete()
67 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
70 dev_err(&stream->udev->dev, in usb_urb_complete()
78 int usb_urb_killv2(struct usb_data_stream *stream) in usb_urb_killv2() argument
81 for (i = 0; i < stream->urbs_submitted; i++) { in usb_urb_killv2()
[all …]
Dmxl111sf.c1009 static void mxl111sf_stream_config_bulk(struct usb_data_stream_properties *stream, u8 endpoint) in mxl111sf_stream_config_bulk() argument
1012 stream->type = USB_BULK; in mxl111sf_stream_config_bulk()
1013 stream->count = 5; in mxl111sf_stream_config_bulk()
1014 stream->endpoint = endpoint; in mxl111sf_stream_config_bulk()
1015 stream->u.bulk.buffersize = 8192; in mxl111sf_stream_config_bulk()
1018 static void mxl111sf_stream_config_isoc(struct usb_data_stream_properties *stream, in mxl111sf_stream_config_isoc() argument
1023 stream->type = USB_ISOC; in mxl111sf_stream_config_isoc()
1024 stream->count = 5; in mxl111sf_stream_config_isoc()
1025 stream->endpoint = endpoint; in mxl111sf_stream_config_isoc()
1026 stream->u.isoc.framesperurb = framesperurb; in mxl111sf_stream_config_isoc()
[all …]
Ddvb_usb_common.h28 extern int usb_urb_initv2(struct usb_data_stream *stream,
30 extern int usb_urb_exitv2(struct usb_data_stream *stream);
31 extern int usb_urb_submitv2(struct usb_data_stream *stream,
33 extern int usb_urb_killv2(struct usb_data_stream *stream);
Ddvb_usb_core.c215 static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf, in dvb_usb_data_complete() argument
218 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete()
222 static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buf, in dvb_usb_data_complete_204() argument
225 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_204()
229 static void dvb_usb_data_complete_raw(struct usb_data_stream *stream, u8 *buf, in dvb_usb_data_complete_raw() argument
232 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_raw()
241 adap->stream.udev = adap_to_d(adap)->udev; in dvb_usbv2_adapter_stream_init()
242 adap->stream.user_priv = adap; in dvb_usbv2_adapter_stream_init()
243 adap->stream.complete = dvb_usb_data_complete; in dvb_usbv2_adapter_stream_init()
245 return usb_urb_initv2(&adap->stream, &adap->props->stream); in dvb_usbv2_adapter_stream_init()
[all …]
/linux-4.1.27/drivers/media/usb/dvb-usb/
Dusb-urb.c16 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local
47stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); in usb_urb_complete()
56 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
65 int usb_urb_kill(struct usb_data_stream *stream) in usb_urb_kill() argument
68 for (i = 0; i < stream->urbs_submitted; i++) { in usb_urb_kill()
72 usb_kill_urb(stream->urb_list[i]); in usb_urb_kill()
74 stream->urbs_submitted = 0; in usb_urb_kill()
78 int usb_urb_submit(struct usb_data_stream *stream) in usb_urb_submit() argument
81 for (i = 0; i < stream->urbs_initialized; i++) { in usb_urb_submit()
83 if ((ret = usb_submit_urb(stream->urb_list[i],GFP_ATOMIC))) { in usb_urb_submit()
[all …]
Ddvb-usb-urb.c69 static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buffer, size_t length) in dvb_usb_data_complete() argument
71 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete()
76 static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buffer, size_t length) in dvb_usb_data_complete_204() argument
78 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_204()
83 static void dvb_usb_data_complete_raw(struct usb_data_stream *stream, in dvb_usb_data_complete_raw() argument
86 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_raw()
96 adap->fe_adap[i].stream.udev = adap->dev->udev; in dvb_usb_adapter_stream_init()
98 adap->fe_adap[i].stream.complete = in dvb_usb_adapter_stream_init()
102 adap->fe_adap[i].stream.complete = in dvb_usb_adapter_stream_init()
105 adap->fe_adap[i].stream.complete = dvb_usb_data_complete; in dvb_usb_adapter_stream_init()
[all …]
Ddvb-usb-common.h32 extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
33 extern int usb_urb_exit(struct usb_data_stream *stream);
34 extern int usb_urb_submit(struct usb_data_stream *stream);
35 extern int usb_urb_kill(struct usb_data_stream *stream);
Ddtt200u.c152 .stream = {
202 .stream = {
252 .stream = {
302 .stream = {
Ddib0700_core.c533 dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 188*nb_packet_buffer_size; in dib0700_download_firmware()
537 …dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = ((188*nb_packet_buffer_size+… in dib0700_download_firmware()
538 if (dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize < 512) in dib0700_download_firmware()
539 dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 512; in dib0700_download_firmware()
581 if ((adap->fe_adap[0].stream.props.endpoint != 2) in dib0700_streaming_ctrl()
582 && (adap->fe_adap[0].stream.props.endpoint != 3)) { in dib0700_streaming_ctrl()
583 …t number (%i) is not correct, use the adapter id instead", adap->fe_adap[0].stream.props.endpoint); in dib0700_streaming_ctrl()
590 st->channel_state |= 1 << (adap->fe_adap[0].stream.props.endpoint-2); in dib0700_streaming_ctrl()
592 st->channel_state |= 1 << (3-adap->fe_adap[0].stream.props.endpoint); in dib0700_streaming_ctrl()
Ddibusb-mb.c201 .stream = {
291 .stream = {
360 .stream = {
422 .stream = {
Dcxusb.c396 struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream; in cxusb_d680_dmb_drain_video()
1225 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); in cxusb_d680_dmb_frontend_attach()
1282 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); in cxusb_mygica_d689_frontend_attach()
1327 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); in cxusb_mygica_t230_frontend_attach()
1628 .stream = {
1677 .stream = {
1733 .stream = {
1798 .stream = {
1853 .stream = {
1904 .stream = {
[all …]
Dm920x.c105 epi = d->adapter[i].props.fe[0].stream.endpoint - 0x81; in m920x_init()
350 int ep = adap->props.fe[0].stream.endpoint; in m920x_update_filters()
948 .stream = {
996 .stream = {
1059 .stream = {
1083 .stream = {
1125 .stream = {
1179 .stream = {
1236 .stream = {
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_video.c89 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument
96 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl()
97 if (stream->format[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl()
98 format = &stream->format[i]; in uvc_fixup_video_ctrl()
118 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl()
123 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl()
124 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl()
141 if (stream->dev->udev->speed == USB_SPEED_HIGH) in uvc_fixup_video_ctrl()
158 static int uvc_get_video_ctrl(struct uvc_streaming *stream, in uvc_get_video_ctrl() argument
165 size = stream->dev->uvc_version >= 0x0110 ? 34 : 26; in uvc_get_video_ctrl()
[all …]
Duvc_v4l2.c145 static int uvc_v4l2_try_format(struct uvc_streaming *stream, in uvc_v4l2_try_format() argument
158 if (fmt->type != stream->type) in uvc_v4l2_try_format()
170 for (i = 0; i < stream->nformats; ++i) { in uvc_v4l2_try_format()
171 format = &stream->format[i]; in uvc_v4l2_try_format()
176 if (i == stream->nformats) { in uvc_v4l2_try_format()
177 format = stream->def_format; in uvc_v4l2_try_format()
234 mutex_lock(&stream->mutex); in uvc_v4l2_try_format()
235 if (stream->dev->quirks & UVC_QUIRK_PROBE_EXTRAFIELDS) in uvc_v4l2_try_format()
237 stream->ctrl.dwMaxVideoFrameSize; in uvc_v4l2_try_format()
240 ret = uvc_probe_video(stream, probe); in uvc_v4l2_try_format()
[all …]
Duvc_debugfs.c34 struct uvc_streaming *stream = inode->i_private; in uvc_debugfs_stats_open() local
41 buf->count = uvc_video_stats_dump(stream, buf->data, sizeof(buf->data)); in uvc_debugfs_stats_open()
78 int uvc_debugfs_init_stream(struct uvc_streaming *stream) in uvc_debugfs_init_stream() argument
80 struct usb_device *udev = stream->dev->udev; in uvc_debugfs_init_stream()
96 stream->debugfs_dir = dent; in uvc_debugfs_init_stream()
98 dent = debugfs_create_file("stats", 0444, stream->debugfs_dir, in uvc_debugfs_init_stream()
99 stream, &uvc_debugfs_stats_fops); in uvc_debugfs_init_stream()
102 uvc_debugfs_cleanup_stream(stream); in uvc_debugfs_init_stream()
109 void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream) in uvc_debugfs_cleanup_stream() argument
111 if (stream->debugfs_dir == NULL) in uvc_debugfs_cleanup_stream()
[all …]
Duvcvideo.h497 struct uvc_stats_stream stream; member
568 struct uvc_streaming *stream; member
670 extern int uvc_video_init(struct uvc_streaming *stream);
671 extern int uvc_video_suspend(struct uvc_streaming *stream);
672 extern int uvc_video_resume(struct uvc_streaming *stream, int reset);
673 extern int uvc_video_enable(struct uvc_streaming *stream, int enable);
674 extern int uvc_probe_video(struct uvc_streaming *stream,
678 void uvc_video_clock_update(struct uvc_streaming *stream,
734 void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream,
740 int uvc_debugfs_init_stream(struct uvc_streaming *stream);
[all …]
Duvc_queue.c76 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_queue_setup() local
79 if (fmt && fmt->fmt.pix.sizeimage < stream->ctrl.dwMaxVideoFrameSize) in uvc_queue_setup()
85 : stream->ctrl.dwMaxVideoFrameSize; in uvc_queue_setup()
139 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_buffer_finish() local
143 uvc_video_clock_update(stream, &vb->v4l2_buf, buf); in uvc_buffer_finish()
149 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_start_streaming() local
155 ret = uvc_video_enable(stream, 1); in uvc_start_streaming()
169 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_stop_streaming() local
172 uvc_video_enable(stream, 0); in uvc_stop_streaming()
Duvc_driver.c316 struct uvc_streaming *stream; in uvc_stream_by_id() local
318 list_for_each_entry(stream, &dev->streams, list) { in uvc_stream_by_id()
319 if (stream->header.bTerminalLink == id) in uvc_stream_by_id()
320 return stream; in uvc_stream_by_id()
1691 struct uvc_streaming *stream = video_get_drvdata(vdev); in uvc_release() local
1692 struct uvc_device *dev = stream->dev; in uvc_release()
1706 struct uvc_streaming *stream; in uvc_unregister_video() local
1715 list_for_each_entry(stream, &dev->streams, list) { in uvc_unregister_video()
1716 if (!video_is_registered(&stream->vdev)) in uvc_unregister_video()
1719 video_unregister_device(&stream->vdev); in uvc_unregister_video()
[all …]
Duvc_isight.c102 void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream, in uvc_video_decode_isight() argument
123 ret = isight_decode(&stream->queue, buf, in uvc_video_decode_isight()
133 buf = uvc_queue_next_buffer(&stream->queue, in uvc_video_decode_isight()
/linux-4.1.27/sound/core/
Dcompress_offload.c65 struct snd_compr_stream stream; member
121 data->stream.ops = compr->ops; in snd_compr_open()
122 data->stream.direction = dirn; in snd_compr_open()
123 data->stream.private_data = compr->private_data; in snd_compr_open()
124 data->stream.device = compr; in snd_compr_open()
133 data->stream.runtime = runtime; in snd_compr_open()
136 ret = compr->ops->open(&data->stream); in snd_compr_open()
149 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free()
155 data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_free()
161 data->stream.ops->free(&data->stream); in snd_compr_free()
[all …]
Drawmidi_compat.c26 s32 stream; member
41 if (get_user(params.stream, &src->stream) || in snd_rawmidi_ioctl_params_compat()
47 switch (params.stream) { in snd_rawmidi_ioctl_params_compat()
57 s32 stream; member
72 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat()
75 switch (status.stream) { in snd_rawmidi_ioctl_status_compat()
100 s32 stream; member
118 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_x32()
121 switch (status.stream) { in snd_rawmidi_ioctl_status_x32()
Dpcm_trace.h18 __field( unsigned int, stream )
30 __entry->stream = (substream)->stream;
39 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c',
56 __field( unsigned int, stream )
66 __entry->stream = (substream)->stream;
74 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c',
89 __field( unsigned int, stream )
96 __entry->stream = (substream)->stream;
101 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c',
Dpcm_memory.c69 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages()
116 int stream; in snd_pcm_lib_preallocate_free_for_all() local
118 for (stream = 0; stream < 2; stream++) in snd_pcm_lib_preallocate_free_for_all()
119 for (substream = pcm->streams[stream].substream; substream; substream = substream->next) in snd_pcm_lib_preallocate_free_for_all()
287 int stream, err; in snd_pcm_lib_preallocate_pages_for_all() local
289 for (stream = 0; stream < 2; stream++) in snd_pcm_lib_preallocate_pages_for_all()
290 for (substream = pcm->streams[stream].substream; substream; substream = substream->next) in snd_pcm_lib_preallocate_pages_for_all()
Drawmidi.c123 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT) in snd_rawmidi_runtime_create()
228 int stream, int mode, in assign_substream() argument
232 struct snd_rawmidi_str *s = &rmidi->streams[stream]; in assign_substream()
238 if (!(rmidi->info_flags & info_flags[stream])) in assign_substream()
245 if (stream == SNDRV_RAWMIDI_STREAM_INPUT || in assign_substream()
279 rmidi->streams[substream->stream].substream_opened++; in open_substream()
472 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT) in close_substream()
494 rmidi->streams[substream->stream].substream_opened--; in close_substream()
559 info->stream = substream->stream; in snd_rawmidi_info()
593 if (info->stream < 0 || info->stream > 1) in snd_rawmidi_info_select()
[all …]
Dpcm.c114 int stream; in snd_pcm_control_ioctl() local
123 if (get_user(stream, &info->stream)) in snd_pcm_control_ioctl()
125 if (stream < 0 || stream > 1) in snd_pcm_control_ioctl()
135 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
279 static const char *snd_pcm_stream_name(int stream) in snd_pcm_stream_name() argument
281 return snd_pcm_stream_names[stream]; in snd_pcm_stream_name()
358 snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream)); in snd_pcm_proc_info_read()
521 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); in snd_pcm_stream_proc_init()
687 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) in snd_pcm_new_stream() argument
690 struct snd_pcm_str *pstr = &pcm->streams[stream]; in snd_pcm_new_stream()
[all …]
Dpcm_timer.c120 tid.subdevice = (substream->number << 1) | (substream->stream & 1); in snd_pcm_timer_init()
124 substream->stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_pcm_timer_init()
Dpcm_native.c68 static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream);
206 info->stream = substream->stream; in snd_pcm_info()
694 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_sw_params()
767 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_status()
1025 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_pre_start()
1054 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_post_start()
1331 int stream, err = 0; in snd_pcm_suspend_all() local
1336 for (stream = 0; stream < 2; stream++) { in snd_pcm_suspend_all()
1337 for (substream = pcm->streams[stream].substream; in snd_pcm_suspend_all()
1371 substream->stream != SNDRV_PCM_STREAM_PLAYBACK)) in snd_pcm_do_resume()
[all …]
/linux-4.1.27/sound/soc/au1x/
Ddma.c39 struct audio_stream stream[2]; /* playback & capture */ member
42 static void au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
47 stream->period_size = 0; in au1000_release_dma_link()
48 stream->periods = 0; in au1000_release_dma_link()
49 pointer = stream->buffer; in au1000_release_dma_link()
56 } while (pointer != stream->buffer); in au1000_release_dma_link()
57 stream->buffer = NULL; in au1000_release_dma_link()
60 static int au1000_setup_dma_link(struct audio_stream *stream, in au1000_setup_dma_link() argument
64 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
72 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
[all …]
Ddbdma2.c192 return &pcd[ss->stream]; in to_dmadata()
206 stype = substream->stream; in au1xpsc_pcm_hw_params()
249 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in au1xpsc_pcm_prepare()
289 int stype = substream->stream, *dmaids; in au1xpsc_pcm_open()
/linux-4.1.27/fs/squashfs/
Ddecompressor_multi.c50 void *stream; member
56 struct squashfs_stream *stream) in put_decomp_stream() argument
58 mutex_lock(&stream->mutex); in put_decomp_stream()
59 list_add(&decomp_strm->list, &stream->strm_list); in put_decomp_stream()
60 mutex_unlock(&stream->mutex); in put_decomp_stream()
61 wake_up(&stream->wait); in put_decomp_stream()
67 struct squashfs_stream *stream; in squashfs_decompressor_create() local
71 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
72 if (!stream) in squashfs_decompressor_create()
75 stream->comp_opts = comp_opts; in squashfs_decompressor_create()
[all …]
Ddecompressor_single.c25 void *stream; member
32 struct squashfs_stream *stream; in squashfs_decompressor_create() local
35 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
36 if (stream == NULL) in squashfs_decompressor_create()
39 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
40 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
41 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
46 mutex_init(&stream->mutex); in squashfs_decompressor_create()
47 return stream; in squashfs_decompressor_create()
50 kfree(stream); in squashfs_decompressor_create()
[all …]
Ddecompressor_multi_percpu.c25 void *stream; member
31 struct squashfs_stream *stream; in squashfs_decompressor_create() local
40 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
41 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
42 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
43 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
53 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
54 if (!IS_ERR_OR_NULL(stream->stream)) in squashfs_decompressor_create()
55 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
64 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompressor_destroy()
[all …]
Dxz_wrapper.c97 struct squashfs_xz *stream; in squashfs_xz_init() local
100 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_xz_init()
101 if (stream == NULL) { in squashfs_xz_init()
106 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init()
107 if (stream->state == NULL) { in squashfs_xz_init()
108 kfree(stream); in squashfs_xz_init()
113 return stream; in squashfs_xz_init()
123 struct squashfs_xz *stream = strm; in squashfs_xz_free() local
125 if (stream) { in squashfs_xz_free()
126 xz_dec_end(stream->state); in squashfs_xz_free()
[all …]
Dzlib_wrapper.c39 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL); in zlib_init() local
40 if (stream == NULL) in zlib_init()
42 stream->workspace = vmalloc(zlib_inflate_workspacesize()); in zlib_init()
43 if (stream->workspace == NULL) in zlib_init()
46 return stream; in zlib_init()
50 kfree(stream); in zlib_init()
57 z_stream *stream = strm; in zlib_free() local
59 if (stream) in zlib_free()
60 vfree(stream->workspace); in zlib_free()
61 kfree(stream); in zlib_free()
[all …]
Dlz4_wrapper.c57 struct squashfs_lz4 *stream; in lz4_init() local
59 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in lz4_init()
60 if (stream == NULL) in lz4_init()
62 stream->input = vmalloc(block_size); in lz4_init()
63 if (stream->input == NULL) in lz4_init()
65 stream->output = vmalloc(block_size); in lz4_init()
66 if (stream->output == NULL) in lz4_init()
69 return stream; in lz4_init()
72 vfree(stream->input); in lz4_init()
74 kfree(stream); in lz4_init()
[all …]
Dlzo_wrapper.c45 struct squashfs_lzo *stream = kzalloc(sizeof(*stream), GFP_KERNEL); in lzo_init() local
46 if (stream == NULL) in lzo_init()
48 stream->input = vmalloc(block_size); in lzo_init()
49 if (stream->input == NULL) in lzo_init()
51 stream->output = vmalloc(block_size); in lzo_init()
52 if (stream->output == NULL) in lzo_init()
55 return stream; in lzo_init()
58 vfree(stream->input); in lzo_init()
61 kfree(stream); in lzo_init()
68 struct squashfs_lzo *stream = strm; in lzo_free() local
[all …]
Ddecompressor.c138 void *stream, *comp_opts = get_comp_opts(sb, flags); in squashfs_decompressor_setup() local
143 stream = squashfs_decompressor_create(msblk, comp_opts); in squashfs_decompressor_setup()
144 if (IS_ERR(stream)) in squashfs_decompressor_setup()
147 return stream; in squashfs_decompressor_setup()
Dsuper.c217 msblk->stream = squashfs_decompressor_setup(sb, flags); in squashfs_fill_super()
218 if (IS_ERR(msblk->stream)) { in squashfs_fill_super()
219 err = PTR_ERR(msblk->stream); in squashfs_fill_super()
220 msblk->stream = NULL; in squashfs_fill_super()
/linux-4.1.27/crypto/
Dzlib.c47 struct z_stream_s *stream = &ctx->comp_stream; in zlib_comp_exit() local
49 if (stream->workspace) { in zlib_comp_exit()
50 zlib_deflateEnd(stream); in zlib_comp_exit()
51 vfree(stream->workspace); in zlib_comp_exit()
52 stream->workspace = NULL; in zlib_comp_exit()
58 struct z_stream_s *stream = &ctx->decomp_stream; in zlib_decomp_exit() local
60 if (stream->workspace) { in zlib_decomp_exit()
61 zlib_inflateEnd(stream); in zlib_decomp_exit()
62 vfree(stream->workspace); in zlib_decomp_exit()
63 stream->workspace = NULL; in zlib_decomp_exit()
[all …]
Ddeflate.c48 struct z_stream_s *stream = &ctx->comp_stream; in deflate_comp_init() local
50 stream->workspace = vzalloc(zlib_deflate_workspacesize( in deflate_comp_init()
52 if (!stream->workspace) { in deflate_comp_init()
56 ret = zlib_deflateInit2(stream, DEFLATE_DEF_LEVEL, Z_DEFLATED, in deflate_comp_init()
66 vfree(stream->workspace); in deflate_comp_init()
73 struct z_stream_s *stream = &ctx->decomp_stream; in deflate_decomp_init() local
75 stream->workspace = vzalloc(zlib_inflate_workspacesize()); in deflate_decomp_init()
76 if (!stream->workspace) { in deflate_decomp_init()
80 ret = zlib_inflateInit2(stream, -DEFLATE_DEF_WINBITS); in deflate_decomp_init()
88 vfree(stream->workspace); in deflate_decomp_init()
[all …]
/linux-4.1.27/sound/mips/
Dau1x00.c101 struct audio_stream *stream[2]; /* playback & capture */ member
134 au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
139 stream->period_size = 0; in au1000_release_dma_link()
140 stream->periods = 0; in au1000_release_dma_link()
141 pointer = stream->buffer; in au1000_release_dma_link()
148 } while (pointer != stream->buffer); in au1000_release_dma_link()
149 stream->buffer = NULL; in au1000_release_dma_link()
153 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, in au1000_setup_dma_link() argument
156 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
164 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
[all …]
/linux-4.1.27/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c55 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
57 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
58 if (!stream) in sst_platform_compr_open()
61 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
69 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
70 stream->id = 0; in sst_platform_compr_open()
75 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
76 runtime->private_data = stream; in sst_platform_compr_open()
79 kfree(stream); in sst_platform_compr_open()
85 struct sst_runtime_stream *stream; in sst_platform_compr_free() local
[all …]
Dsst-mfld-platform-pcm.c104 static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream) in sst_media_digital_mute() argument
107 return sst_send_pipe_gains(dai, stream, mute); in sst_media_digital_mute()
111 void sst_set_stream_status(struct sst_runtime_stream *stream, in sst_set_stream_status() argument
115 spin_lock_irqsave(&stream->status_lock, flags); in sst_set_stream_status()
116 stream->stream_status = state; in sst_set_stream_status()
117 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_set_stream_status()
120 static inline int sst_get_stream_status(struct sst_runtime_stream *stream) in sst_get_stream_status() argument
125 spin_lock_irqsave(&stream->status_lock, flags); in sst_get_stream_status()
126 state = stream->stream_status; in sst_get_stream_status()
127 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_get_stream_status()
[all …]
Dsst-mfld-platform.h157 int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute);
161 void sst_set_stream_status(struct sst_runtime_stream *stream, int state);
/linux-4.1.27/fs/logfs/
Dcompr.c15 static struct z_stream_s stream; variable
23 err = zlib_deflateInit(&stream, COMPR_LEVEL); in logfs_compress()
27 stream.next_in = in; in logfs_compress()
28 stream.avail_in = inlen; in logfs_compress()
29 stream.total_in = 0; in logfs_compress()
30 stream.next_out = out; in logfs_compress()
31 stream.avail_out = outlen; in logfs_compress()
32 stream.total_out = 0; in logfs_compress()
34 err = zlib_deflate(&stream, Z_FINISH); in logfs_compress()
38 err = zlib_deflateEnd(&stream); in logfs_compress()
[all …]
/linux-4.1.27/fs/cramfs/
Duncompress.c26 static z_stream stream; variable
34 stream.next_in = src; in cramfs_uncompress_block()
35 stream.avail_in = srclen; in cramfs_uncompress_block()
37 stream.next_out = dst; in cramfs_uncompress_block()
38 stream.avail_out = dstlen; in cramfs_uncompress_block()
40 err = zlib_inflateReset(&stream); in cramfs_uncompress_block()
43 zlib_inflateEnd(&stream); in cramfs_uncompress_block()
44 zlib_inflateInit(&stream); in cramfs_uncompress_block()
47 err = zlib_inflate(&stream, Z_FINISH); in cramfs_uncompress_block()
50 return stream.total_out; in cramfs_uncompress_block()
[all …]
/linux-4.1.27/sound/soc/
Dsoc-pcm.c47 void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_activate() argument
54 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_activate()
82 void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_deactivate() argument
89 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_deactivate()
326 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in soc_pcm_apply_msb()
367 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw()
375 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw()
470 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_open()
544 snd_soc_runtime_activate(rtd, substream->stream); in soc_pcm_open()
629 snd_soc_runtime_deactivate(rtd, substream->stream); in soc_pcm_close()
[all …]
Dsoc-compress.c75 int stream; in soc_compr_open_fe() local
79 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_open_fe()
81 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_open_fe()
102 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
104 ret = dpcm_path_get(fe, stream, &list); in soc_compr_open_fe()
109 fe->dai_link->name, stream ? "capture" : "playback"); in soc_compr_open_fe()
112 dpcm_process_paths(fe, stream, &list, 1); in soc_compr_open_fe()
114 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
116 ret = dpcm_be_dai_startup(fe, stream); in soc_compr_open_fe()
119 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in soc_compr_open_fe()
[all …]
Dsoc-generic-dmaengine-pcm.c42 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
45 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
118 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_set_runtime_hwparams()
153 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in dmaengine_pcm_set_runtime_hwparams()
193 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_open()
/linux-4.1.27/include/sound/
Dcompress_driver.h111 int (*open)(struct snd_compr_stream *stream);
112 int (*free)(struct snd_compr_stream *stream);
113 int (*set_params)(struct snd_compr_stream *stream,
115 int (*get_params)(struct snd_compr_stream *stream,
117 int (*set_metadata)(struct snd_compr_stream *stream,
119 int (*get_metadata)(struct snd_compr_stream *stream,
121 int (*trigger)(struct snd_compr_stream *stream, int cmd);
122 int (*pointer)(struct snd_compr_stream *stream,
124 int (*copy)(struct snd_compr_stream *stream, char __user *buf,
126 int (*mmap)(struct snd_compr_stream *stream,
[all …]
Dsoc-dpcm.h111 struct snd_soc_pcm_runtime *be, int stream);
115 struct snd_soc_pcm_runtime *be, int stream);
118 int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream);
122 struct snd_soc_pcm_runtime *be, int stream);
126 snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream);
130 snd_soc_dpcm_be_get_state(struct snd_soc_pcm_runtime *be, int stream);
133 void snd_soc_dpcm_be_set_state(struct snd_soc_pcm_runtime *be, int stream,
142 int stream, struct snd_soc_dapm_widget_list **list_);
144 int stream, struct snd_soc_dapm_widget_list **list, int new);
145 int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream);
[all …]
Dsoc-dai.h160 int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream);
284 return (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in snd_soc_dai_get_dma_data()
292 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_soc_dai_set_dma_data()
Dpcm.h451 int stream; /* stream (direction) */ member
500 int stream; /* stream (direction) */ member
562 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
584 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
587 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
665 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in snd_pcm_running()
1323 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_stream_str()
1341 int stream; /* PLAYBACK or CAPTURE */ member
1358 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()
1374 int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
Drawmidi.h93 int stream; /* direction */ member
157 void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
/linux-4.1.27/sound/soc/intel/baytrail/
Dsst-baytrail-ipc.c164 u32 (*notify_position)(struct sst_byt_stream *stream, void *data);
216 struct sst_byt_stream *stream; in sst_byt_get_stream() local
218 list_for_each_entry(stream, &byt->stream_list, node) { in sst_byt_get_stream()
219 if (stream->str_id == stream_id) in sst_byt_get_stream()
220 return stream; in sst_byt_get_stream()
228 struct sst_byt_stream *stream; in sst_byt_stream_update() local
233 stream = sst_byt_get_stream(byt, stream_id); in sst_byt_stream_update()
234 if (stream == NULL) in sst_byt_stream_update()
241 stream->running = false; in sst_byt_stream_update()
245 stream->running = true; in sst_byt_stream_update()
[all …]
Dsst-baytrail-ipc.h37 uint32_t (*get_write_position)(struct sst_byt_stream *stream,
42 int sst_byt_stream_set_bits(struct sst_byt *byt, struct sst_byt_stream *stream,
45 struct sst_byt_stream *stream, u8 channels);
46 int sst_byt_stream_set_rate(struct sst_byt *byt, struct sst_byt_stream *stream,
48 int sst_byt_stream_type(struct sst_byt *byt, struct sst_byt_stream *stream,
50 int sst_byt_stream_buffer(struct sst_byt *byt, struct sst_byt_stream *stream,
52 int sst_byt_stream_commit(struct sst_byt *byt, struct sst_byt_stream *stream);
53 int sst_byt_stream_free(struct sst_byt *byt, struct sst_byt_stream *stream);
56 int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream,
58 int sst_byt_stream_stop(struct sst_byt *byt, struct sst_byt_stream *stream);
[all …]
Dsst-baytrail-pcm.c45 struct sst_byt_stream *stream; member
74 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_hw_params()
78 int ret, playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in sst_byt_pcm_hw_params()
82 ret = sst_byt_stream_type(byt, pcm_data->stream, in sst_byt_pcm_hw_params()
90 ret = sst_byt_stream_set_rate(byt, pcm_data->stream, rate); in sst_byt_pcm_hw_params()
97 ret = sst_byt_stream_set_bits(byt, pcm_data->stream, bits); in sst_byt_pcm_hw_params()
105 ret = sst_byt_stream_set_channels(byt, pcm_data->stream, channels); in sst_byt_pcm_hw_params()
114 ret = sst_byt_stream_buffer(byt, pcm_data->stream, in sst_byt_pcm_hw_params()
122 ret = sst_byt_stream_commit(byt, pcm_data->stream); in sst_byt_pcm_hw_params()
146 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_restore_stream_context()
[all …]
/linux-4.1.27/drivers/usb/host/
Dehci-sched.c1027 struct ehci_iso_stream *stream; in iso_stream_alloc() local
1029 stream = kzalloc(sizeof *stream, mem_flags); in iso_stream_alloc()
1030 if (likely (stream != NULL)) { in iso_stream_alloc()
1031 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
1032 INIT_LIST_HEAD(&stream->free_list); in iso_stream_alloc()
1033 stream->next_uframe = NO_FRAME; in iso_stream_alloc()
1034 stream->ps.phase = NO_FRAME; in iso_stream_alloc()
1036 return stream; in iso_stream_alloc()
1042 struct ehci_iso_stream *stream, in iso_stream_init() argument
1071 stream->highspeed = 1; in iso_stream_init()
[all …]
Dfusbh200-hcd.c3463 usecs += q->itd->stream->usecs; in periodic_usecs()
4020 struct fusbh200_iso_stream *stream; in iso_stream_alloc() local
4022 stream = kzalloc(sizeof *stream, mem_flags); in iso_stream_alloc()
4023 if (likely (stream != NULL)) { in iso_stream_alloc()
4024 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
4025 INIT_LIST_HEAD(&stream->free_list); in iso_stream_alloc()
4026 stream->next_uframe = -1; in iso_stream_alloc()
4028 return stream; in iso_stream_alloc()
4034 struct fusbh200_iso_stream *stream, in iso_stream_init() argument
4064 stream->buf0 = cpu_to_hc32(fusbh200, (epnum << 8) | dev->devnum); in iso_stream_init()
[all …]
Dfotg210-hcd.c3521 usecs += q->itd->stream->usecs; in periodic_usecs()
4087 struct fotg210_iso_stream *stream; in iso_stream_alloc() local
4089 stream = kzalloc(sizeof(*stream), mem_flags); in iso_stream_alloc()
4090 if (likely(stream != NULL)) { in iso_stream_alloc()
4091 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
4092 INIT_LIST_HEAD(&stream->free_list); in iso_stream_alloc()
4093 stream->next_uframe = -1; in iso_stream_alloc()
4095 return stream; in iso_stream_alloc()
4101 struct fotg210_iso_stream *stream, in iso_stream_init() argument
4130 stream->buf0 = cpu_to_hc32(fotg210, (epnum << 8) | dev->devnum); in iso_stream_init()
[all …]
/linux-4.1.27/sound/soc/intel/atom/sst/
Dsst_drv_interface.c53 struct stream_info *stream; in free_stream_context() local
56 stream = get_stream_info(ctx, str_id); in free_stream_context()
57 if (stream) { in free_stream_context()
203 struct stream_info *stream; in sst_cdev_open() local
213 stream = &ctx->streams[str_id]; in sst_cdev_open()
214 stream->compr_cb = cb->compr_cb; in sst_cdev_open()
215 stream->compr_cb_param = cb->param; in sst_cdev_open()
216 stream->drain_notify = cb->drain_notify; in sst_cdev_open()
217 stream->drain_cb_param = cb->drain_cb_param; in sst_cdev_open()
229 struct stream_info *stream; in sst_cdev_close() local
[all …]
Dsst_ipc.c251 struct stream_info *stream; in process_fw_async_msg() local
269 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg()
270 if (stream->period_elapsed) in process_fw_async_msg()
271 stream->period_elapsed(stream->pcm_substream); in process_fw_async_msg()
272 if (stream->compr_cb) in process_fw_async_msg()
273 stream->compr_cb(stream->compr_cb_param); in process_fw_async_msg()
281 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg()
282 if (stream->drain_notify) in process_fw_async_msg()
283 stream->drain_notify(stream->drain_cb_param); in process_fw_async_msg()
Dsst_pvt.c220 void sst_clean_stream(struct stream_info *stream) in sst_clean_stream() argument
222 stream->status = STREAM_UN_INIT; in sst_clean_stream()
223 stream->prev = STREAM_UN_INIT; in sst_clean_stream()
224 mutex_lock(&stream->lock); in sst_clean_stream()
225 stream->cumm_bytes = 0; in sst_clean_stream()
226 mutex_unlock(&stream->lock); in sst_clean_stream()
365 void sst_init_stream(struct stream_info *stream, in sst_init_stream() argument
368 stream->status = STREAM_INIT; in sst_init_stream()
369 stream->prev = STREAM_UN_INIT; in sst_init_stream()
370 stream->ops = ops; in sst_init_stream()
Dsst.c282 struct stream_info *stream = &ctx->streams[i]; in sst_context_init() local
284 memset(stream, 0, sizeof(*stream)); in sst_context_init()
285 stream->pipe_id = PIPE_RSVD; in sst_context_init()
286 mutex_init(&stream->lock); in sst_context_init()
441 struct stream_info *stream = &ctx->streams[i]; in intel_sst_suspend() local
443 if (stream->status == STREAM_RUNNING) { in intel_sst_suspend()
/linux-4.1.27/sound/soc/intel/haswell/
Dsst-haswell-ipc.c247 u32 (*notify_position)(struct sst_hsw_stream *stream, void *data);
425 struct sst_hsw_stream *stream; in get_stream_by_id() local
427 list_for_each_entry(stream, &hsw->stream_list, node) { in get_stream_by_id()
428 if (stream->reply.stream_hw_id == stream_id) in get_stream_by_id()
429 return stream; in get_stream_by_id()
479 struct sst_hsw_stream *stream = container_of(work, in hsw_notification_work() local
481 struct sst_hsw_ipc_stream_glitch_position *glitch = &stream->glitch; in hsw_notification_work()
482 struct sst_hsw_ipc_stream_get_position *pos = &stream->rpos; in hsw_notification_work()
483 struct sst_hsw *hsw = stream->hsw; in hsw_notification_work()
486 reason = msg_get_notify_reason(stream->header); in hsw_notification_work()
[all …]
Dsst-haswell-ipc.h412 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume);
414 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 *volume);
424 u32 (*get_write_position)(struct sst_hsw_stream *stream, void *data),
427 int sst_hsw_stream_free(struct sst_hsw *hsw, struct sst_hsw_stream *stream);
430 int sst_hsw_stream_format(struct sst_hsw *hsw, struct sst_hsw_stream *stream,
435 int sst_hsw_stream_buffer(struct sst_hsw *hsw, struct sst_hsw_stream *stream,
439 int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream);
441 int sst_hsw_stream_set_valid(struct sst_hsw *hsw, struct sst_hsw_stream *stream,
443 int sst_hsw_stream_set_rate(struct sst_hsw *hsw, struct sst_hsw_stream *stream,
445 int sst_hsw_stream_set_bits(struct sst_hsw *hsw, struct sst_hsw_stream *stream,
[all …]
Dsst-haswell-pcm.c107 int stream; member
114 struct sst_hsw_stream *stream; member
159 static u32 hsw_notify_pointer(struct sst_hsw_stream *stream, void *data);
192 int dai, stream; in hsw_stream_volume_put() local
195 stream = mod_map[mc->reg].stream; in hsw_stream_volume_put()
196 pcm_data = &pdata->pcm[dai][stream]; in hsw_stream_volume_put()
201 if (!pcm_data->stream) { in hsw_stream_volume_put()
216 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, SST_HSW_CHANNELS_ALL, volume); in hsw_stream_volume_put()
219 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 0, volume); in hsw_stream_volume_put()
221 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 1, volume); in hsw_stream_volume_put()
[all …]
/linux-4.1.27/sound/usb/caiaq/
Daudio.c43 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument
44 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
69 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream()
84 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in deactivate_substream()
215 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_caiaq_pcm_prepare()
328 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_usb_caiaq_pcm_pointer()
357 int stream, pb, *cnt; in check_for_elapsed_periods() local
360 for (stream = 0; stream < cdev->n_streams; stream++) { in check_for_elapsed_periods()
361 sub = subs[stream]; in check_for_elapsed_periods()
366 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in check_for_elapsed_periods()
[all …]
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-dvb.c136 static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream, in yuan_mpc718_mt352_reqfw() argument
139 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw()
170 struct cx18_stream *stream = dvb->stream; in yuan_mpc718_mt352_init() local
176 ret = yuan_mpc718_mt352_reqfw(stream, &fw); in yuan_mpc718_mt352_init()
244 static int dvb_register(struct cx18_stream *stream);
253 struct cx18_stream *stream = (struct cx18_stream *) demux->priv; in cx18_dvb_start_feed() local
258 if (!stream) in cx18_dvb_start_feed()
261 cx = stream->cx; in cx18_dvb_start_feed()
300 mutex_lock(&stream->dvb->feedlock); in cx18_dvb_start_feed()
301 if (stream->dvb->feeding++ == 0) { in cx18_dvb_start_feed()
[all …]
Dcx18-dvb.h24 int cx18_dvb_register(struct cx18_stream *stream);
25 void cx18_dvb_unregister(struct cx18_stream *stream);
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_overlay.c55 struct vmw_stream stream[VMW_MAX_NUM_STREAMS]; member
257 struct vmw_stream *stream = &overlay->stream[stream_id]; in vmw_overlay_stop() local
261 if (!stream->buf) in vmw_overlay_stop()
265 if (!stream->paused) { in vmw_overlay_stop()
272 ret = vmw_overlay_move_buffer(dev_priv, stream->buf, false, in vmw_overlay_stop()
281 vmw_dmabuf_unreference(&stream->buf); in vmw_overlay_stop()
282 stream->paused = false; in vmw_overlay_stop()
284 stream->paused = true; in vmw_overlay_stop()
305 struct vmw_stream *stream = &overlay->stream[arg->stream_id]; in vmw_overlay_update_stream() local
312 stream->buf, buf, stream->paused ? "" : "not "); in vmw_overlay_update_stream()
[all …]
Dvmwgfx_resource.c54 struct vmw_stream stream; member
790 struct vmw_stream *stream; in vmw_stream_destroy() local
794 stream = container_of(res, struct vmw_stream, res); in vmw_stream_destroy()
796 ret = vmw_overlay_unref(dev_priv, stream->stream_id); in vmw_stream_destroy()
801 struct vmw_stream *stream, in vmw_stream_init() argument
804 struct vmw_resource *res = &stream->res; in vmw_stream_init()
812 kfree(stream); in vmw_stream_init()
814 res_free(&stream->res); in vmw_stream_init()
818 ret = vmw_overlay_claim(dev_priv, &stream->stream_id); in vmw_stream_init()
826 vmw_resource_activate(&stream->res, vmw_stream_destroy); in vmw_stream_init()
[all …]
/linux-4.1.27/include/net/
Diw_handler.h509 iwe_stream_add_event(struct iw_request_info *info, char *stream, char *ends, in iwe_stream_add_event() argument
517 if(likely((stream + event_len) < ends)) { in iwe_stream_add_event()
520 memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN); in iwe_stream_add_event()
521 memcpy(stream + lcp_len, &iwe->u, in iwe_stream_add_event()
523 stream += event_len; in iwe_stream_add_event()
525 return stream; in iwe_stream_add_event()
529 iwe_stream_add_event_check(struct iw_request_info *info, char *stream, in iwe_stream_add_event_check() argument
532 char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len); in iwe_stream_add_event_check()
534 if (res == stream) in iwe_stream_add_event_check()
545 iwe_stream_add_point(struct iw_request_info *info, char *stream, char *ends, in iwe_stream_add_point() argument
[all …]
/linux-4.1.27/sound/firewire/oxfw/
Doxfw-stream.c104 static void stop_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream) in stop_stream() argument
106 amdtp_stream_pcm_abort(stream); in stop_stream()
107 amdtp_stream_stop(stream); in stop_stream()
109 if (stream == &oxfw->tx_stream) in stop_stream()
115 static int start_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream, in start_stream() argument
124 if (stream == &oxfw->rx_stream) { in start_stream()
158 amdtp_stream_set_parameters(stream, rate, pcm_channels, midi_ports); in start_stream()
161 amdtp_stream_get_max_payload(stream)); in start_stream()
165 err = amdtp_stream_start(stream, in start_stream()
174 if (!amdtp_stream_wait_callback(stream, CALLBACK_TIMEOUT)) { in start_stream()
[all …]
Doxfw.h110 struct amdtp_stream *stream);
112 struct amdtp_stream *stream,
115 struct amdtp_stream *stream);
117 struct amdtp_stream *stream);
119 struct amdtp_stream *stream);
Doxfw-pcm.c126 struct amdtp_stream *stream; in init_hw_params() local
136 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in init_hw_params()
138 stream = &oxfw->tx_stream; in init_hw_params()
142 stream = &oxfw->rx_stream; in init_hw_params()
161 err = amdtp_stream_add_pcm_hw_constraints(stream, runtime); in init_hw_params()
173 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in limit_to_current_params()
DMakefile1 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-control.o oxfw-pcm.o \
/linux-4.1.27/sound/firewire/
Dscs1x.c57 static int scs_output_open(struct snd_rawmidi_substream *stream) in scs_output_open() argument
59 struct scs *scs = stream->rmidi->private_data; in scs_output_open()
68 static int scs_output_close(struct snd_rawmidi_substream *stream) in scs_output_close() argument
73 static void scs_output_trigger(struct snd_rawmidi_substream *stream, int up) in scs_output_trigger() argument
75 struct scs *scs = stream->rmidi->private_data; in scs_output_trigger()
77 ACCESS_ONCE(scs->output) = up ? stream : NULL; in scs_output_trigger()
133 struct snd_rawmidi_substream *stream; in scs_output_tasklet() local
142 stream = ACCESS_ONCE(scs->output); in scs_output_tasklet()
143 if (!stream) { in scs_output_tasklet()
151 if (snd_rawmidi_transmit(stream, &byte, 1) != 1) { in scs_output_tasklet()
[all …]
/linux-4.1.27/include/trace/events/
Dhswadsp.h154 TP_PROTO(struct sst_hsw_stream *stream),
156 TP_ARGS(stream),
168 __entry->id = stream->host_id;
169 __entry->pt_addr = stream->request.ringinfo.ring_pt_address;
170 __entry->num_pages = stream->request.ringinfo.num_pages;
171 __entry->ring_size = stream->request.ringinfo.ring_size;
172 __entry->ring_offset = stream->request.ringinfo.ring_offset;
173 __entry->first_pfn = stream->request.ringinfo.ring_first_pfn;
184 TP_PROTO(struct sst_hsw_stream *stream),
186 TP_ARGS(stream),
[all …]
Dasoc.h215 TP_PROTO(int paths, int stream),
217 TP_ARGS(paths, stream),
221 __field( int, stream )
226 __entry->stream = stream;
230 __entry->stream ? "capture" : "playback", __entry->paths)
/linux-4.1.27/fs/pstore/
Dplatform.c75 static struct z_stream_s stream; variable
139 err = zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS, in pstore_compress()
144 stream.next_in = in; in pstore_compress()
145 stream.avail_in = inlen; in pstore_compress()
146 stream.total_in = 0; in pstore_compress()
147 stream.next_out = out; in pstore_compress()
148 stream.avail_out = outlen; in pstore_compress()
149 stream.total_out = 0; in pstore_compress()
151 err = zlib_deflate(&stream, Z_FINISH); in pstore_compress()
155 err = zlib_deflateEnd(&stream); in pstore_compress()
[all …]
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr.c505 struct pcxhr_stream *stream) in pcxhr_set_stream_state() argument
511 if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN) in pcxhr_set_stream_state()
514 if (stream->status != PCXHR_STREAM_STATUS_SCHEDULE_STOP) { in pcxhr_set_stream_state()
521 if (!stream->substream) in pcxhr_set_stream_state()
524 stream->timer_abs_periods = 0; in pcxhr_set_stream_state()
525 stream->timer_period_frag = 0; /* reset theoretical stream pos */ in pcxhr_set_stream_state()
526 stream->timer_buf_periods = 0; in pcxhr_set_stream_state()
527 stream->timer_is_synced = 0; in pcxhr_set_stream_state()
530 stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_set_stream_state()
533 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_set_stream_state()
[all …]
Dpcxhr_core.c1129 struct pcxhr_stream *stream) in pcxhr_stream_read_position() argument
1135 stream_mask = stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_stream_read_position()
1139 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_stream_read_position()
1140 stream->pipe->first_audio, 0, stream_mask); in pcxhr_stream_read_position()
1152 stream->pipe->is_capture ? 'C' : 'P', in pcxhr_stream_read_position()
1153 stream->substream->number, in pcxhr_stream_read_position()
1155 stream->timer_abs_periods + stream->timer_period_frag + in pcxhr_stream_read_position()
1161 struct pcxhr_stream *stream, in pcxhr_update_timer_pos() argument
1164 if (stream->substream && in pcxhr_update_timer_pos()
1165 (stream->status == PCXHR_STREAM_STATUS_RUNNING)) { in pcxhr_update_timer_pos()
[all …]
/linux-4.1.27/fs/isofs/
Dcompress.c53 z_stream stream = { .total_out = 0, in zisofs_uncompress_block() local
104 stream.workspace = zisofs_zlib_workspace; in zisofs_uncompress_block()
107 zerr = zlib_inflateInit(&stream); in zisofs_uncompress_block()
120 if (!stream.avail_out) { in zisofs_uncompress_block()
122 stream.next_out = page_address(pages[curpage]) in zisofs_uncompress_block()
124 stream.avail_out = PAGE_CACHE_SIZE - poffset; in zisofs_uncompress_block()
127 stream.next_out = (void *)&zisofs_sink_page; in zisofs_uncompress_block()
128 stream.avail_out = PAGE_CACHE_SIZE; in zisofs_uncompress_block()
131 if (!stream.avail_in) { in zisofs_uncompress_block()
137 stream.next_in = bhs[curbh]->b_data + in zisofs_uncompress_block()
[all …]
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-dvb.c39 struct pvr2_stream *stream; in pvr2_dvb_feed_func() local
44 stream = adap->channel.stream->stream; in pvr2_dvb_feed_func()
52 bp = pvr2_stream_get_ready_buffer(stream); in pvr2_dvb_feed_func()
80 (pvr2_stream_get_ready_count(stream) > 0) || in pvr2_dvb_feed_func()
112 struct pvr2_stream *stream; in pvr2_dvb_stream_end() local
119 if (adap->channel.stream) { in pvr2_dvb_stream_end()
120 stream = adap->channel.stream->stream; in pvr2_dvb_stream_end()
122 stream = NULL; in pvr2_dvb_stream_end()
124 if (stream) { in pvr2_dvb_stream_end()
126 pvr2_stream_set_callback(stream, NULL, NULL); in pvr2_dvb_stream_end()
[all …]
Dpvrusb2-ioread.c34 struct pvr2_stream *stream; member
57 cp->stream = NULL; in pvr2_ioread_init()
145 pvr2_stream_kill(cp->stream); in pvr2_ioread_stop()
165 if (!(cp->stream)) return 0; in pvr2_ioread_start()
168 while ((bp = pvr2_stream_get_idle_buffer(cp->stream)) != NULL) { in pvr2_ioread_start()
199 return cp->stream; in pvr2_ioread_get_stream()
209 if (cp->stream) { in pvr2_ioread_setup()
214 pvr2_stream_kill(cp->stream); in pvr2_ioread_setup()
215 if (pvr2_stream_get_buffer_count(cp->stream)) { in pvr2_ioread_setup()
216 pvr2_stream_set_buffer_count(cp->stream,0); in pvr2_ioread_setup()
[all …]
Dpvrusb2-io.c96 struct pvr2_stream *stream; member
124 (bp ? bp->stream : NULL), in pvr2_buffer_describe()
135 struct pvr2_stream *sp = bp->stream; in pvr2_buffer_remove()
170 sp = bp->stream; in pvr2_buffer_set_none()
187 sp = bp->stream; in pvr2_buffer_set_ready()
214 sp = bp->stream; in pvr2_buffer_set_idle()
239 sp = bp->stream; in pvr2_buffer_set_queued()
275 bp->stream = sp; in pvr2_buffer_init()
294 bp->stream = NULL; in pvr2_buffer_done()
441 sp = bp->stream; in buffer_complete()
[all …]
Dpvrusb2-context.c125 mp->video_stream.stream = in pvr2_context_check()
307 if (!cp->stream) return; in pvr2_channel_disclaim_stream()
308 pvr2_stream_kill(cp->stream->stream); in pvr2_channel_disclaim_stream()
309 cp->stream->user = NULL; in pvr2_channel_disclaim_stream()
310 cp->stream = NULL; in pvr2_channel_disclaim_stream()
392 if (sp == cp->stream) break; in pvr2_channel_claim_stream()
400 cp->stream = sp; in pvr2_channel_claim_stream()
417 pvr2_ioread_setup(cp,sp->stream); in pvr2_channel_create_mpeg_stream()
Dpvrusb2-context.h36 struct pvr2_stream *stream; member
62 struct pvr2_context_stream *stream; member
Dpvrusb2-v4l2.c45 struct pvr2_context_stream *stream; member
503 if (!fh->pdi->stream) { in pvr2_streamon()
520 if (!fh->pdi->stream) { in pvr2_streamoff()
836 dip->stream = NULL; in pvr2_v4l2_dev_destroy()
1072 if (!fh->pdi->stream) { in pvr2_v4l2_iosetup()
1081 fh->pdi->stream)) != 0) { in pvr2_v4l2_iosetup()
1086 fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); in pvr2_v4l2_iosetup()
1093 sp = fh->pdi->stream->stream; in pvr2_v4l2_iosetup()
1218 dip->stream = &vp->channel.mc_head->video_stream; in pvr2_v4l2_dev_init()
1222 if (!dip->stream) { in pvr2_v4l2_dev_init()
[all …]
/linux-4.1.27/sound/pci/mixart/
Dmixart.c393 static int mixart_set_stream_state(struct mixart_stream *stream, int start) in mixart_set_stream_state() argument
399 if(!stream->substream) in mixart_set_stream_state()
404 stream_state_req.stream_info.stream_desc.uid_pipe = stream->pipe->group_uid; in mixart_set_stream_state()
405 stream_state_req.stream_info.stream_desc.stream_idx = stream->substream->number; in mixart_set_stream_state()
407 if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mixart_set_stream_state()
416 stream->abs_period_elapsed = 0; /* reset stream pos */ in mixart_set_stream_state()
417 stream->buf_periods = 0; in mixart_set_stream_state()
418 stream->buf_period_frag = 0; in mixart_set_stream_state()
420 chip = snd_pcm_substream_chip(stream->substream); in mixart_set_stream_state()
431 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger() local
[all …]
Dmixart_core.c470 struct mixart_stream *stream; in snd_mixart_threaded_irq() local
480 stream = &chip->capture_stream[pcm_number]; in snd_mixart_threaded_irq()
482 stream = &chip->playback_stream[pcm_number][sub_number]; in snd_mixart_threaded_irq()
484 if (stream->substream && (stream->status == MIXART_STREAM_STATUS_RUNNING)) { in snd_mixart_threaded_irq()
485 struct snd_pcm_runtime *runtime = stream->substream->runtime; in snd_mixart_threaded_irq()
491 u64 new_elapse_pos = stream->abs_period_elapsed + runtime->period_size; in snd_mixart_threaded_irq()
498 stream->buf_periods++; in snd_mixart_threaded_irq()
499 if (stream->buf_periods >= runtime->periods) in snd_mixart_threaded_irq()
500 stream->buf_periods = 0; in snd_mixart_threaded_irq()
502 stream->abs_period_elapsed = new_elapse_pos; in snd_mixart_threaded_irq()
[all …]
/linux-4.1.27/sound/soc/pxa/
Dmmp-pcm.c108 r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream); in mmp_pcm_open()
113 &mmp_pcm_hardware[substream->stream]); in mmp_pcm_open()
148 int stream; in mmp_pcm_free_dma_buffers() local
155 for (stream = 0; stream < 2; stream++) { in mmp_pcm_free_dma_buffers()
156 size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; in mmp_pcm_free_dma_buffers()
158 substream = pcm->streams[stream].substream; in mmp_pcm_free_dma_buffers()
173 int stream) in mmp_pcm_preallocate_dma_buffer() argument
176 size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; in mmp_pcm_preallocate_dma_buffer()
198 int ret = 0, stream; in mmp_pcm_new() local
200 for (stream = 0; stream < 2; stream++) { in mmp_pcm_new()
[all …]
Dmmp-sspa.c275 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_hw_params()
306 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in mmp_sspa_hw_params()
314 dma_params = &sspa_priv->dma_params[substream->stream]; in mmp_sspa_hw_params()
315 dma_params->addr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in mmp_sspa_hw_params()
342 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_trigger()
353 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_trigger()
Dpxa2xx-i2s.c174 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
190 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
229 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_trigger()
251 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in pxa2xx_i2s_shutdown()
Dpxa2xx-ac97.c98 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_hw_params()
114 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_hw_aux_params()
128 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_hw_mic_params()
/linux-4.1.27/sound/usb/misc/
Dua101.c221 static bool copy_playback_data(struct ua101_stream *stream, struct urb *urb, in copy_playback_data() argument
228 runtime = stream->substream->runtime; in copy_playback_data()
229 frame_bytes = stream->frame_bytes; in copy_playback_data()
230 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data()
231 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
235 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_playback_data()
241 stream->buffer_pos += frames; in copy_playback_data()
242 if (stream->buffer_pos >= runtime->buffer_size) in copy_playback_data()
243 stream->buffer_pos -= runtime->buffer_size; in copy_playback_data()
244 stream->period_pos += frames; in copy_playback_data()
[all …]
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_pcm.c182 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open()
206 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_close() local
209 if (stream != NULL) { in snd_vortex_pcm_close()
210 stream->substream = NULL; in snd_vortex_pcm_close()
211 stream->nr_ch = 0; in snd_vortex_pcm_close()
223 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_params() local
242 if (stream != NULL) in snd_vortex_pcm_hw_params()
243 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
244 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_params()
245 stream->type, in snd_vortex_pcm_hw_params()
[all …]
Dau88x0_core.c2119 stream_t *stream; in vortex_adb_allocroute() local
2136 stream = &vortex->dma_adb[dma]; in vortex_adb_allocroute()
2137 stream->dma = dma; in vortex_adb_allocroute()
2138 stream->dir = dir; in vortex_adb_allocroute()
2139 stream->type = type; in vortex_adb_allocroute()
2148 if (stream->type != VORTEX_PCM_SPDIF) { in vortex_adb_allocroute()
2151 stream->resources, en, in vortex_adb_allocroute()
2153 memset(stream->resources, 0, in vortex_adb_allocroute()
2158 if (stream->type != VORTEX_PCM_A3D) { in vortex_adb_allocroute()
2160 stream->resources, in vortex_adb_allocroute()
[all …]
/linux-4.1.27/sound/firewire/dice/
Ddice-stream.c87 static void stop_stream(struct snd_dice *dice, struct amdtp_stream *stream) in stop_stream() argument
89 amdtp_stream_pcm_abort(stream); in stop_stream()
90 amdtp_stream_stop(stream); in stop_stream()
92 if (stream == &dice->tx_stream) in stop_stream()
98 static int start_stream(struct snd_dice *dice, struct amdtp_stream *stream, in start_stream() argument
108 if (stream == &dice->tx_stream) { in start_stream()
131 stream->double_pcm_frames = true; in start_stream()
133 stream->double_pcm_frames = false; in start_stream()
136 amdtp_stream_set_parameters(stream, rate, pcm_chs, midi_ports); in start_stream()
141 stream->pcm_positions[i] = i * 2; in start_stream()
[all …]
Ddice-proc.c116 unsigned int quadlets, stream, i; in dice_proc_read() local
174 for (stream = 0; stream < tx_rx_header.number; ++stream) { in dice_proc_read()
176 stream * tx_rx_header.size, in dice_proc_read()
179 snd_iprintf(buffer, "tx %u:\n", stream); in dice_proc_read()
200 for (stream = 0; stream < tx_rx_header.number; ++stream) { in dice_proc_read()
202 stream * tx_rx_header.size, in dice_proc_read()
205 snd_iprintf(buffer, "rx %u:\n", stream); in dice_proc_read()
Ddice-pcm.c27 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_rate_constraint()
62 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_channels_constraint()
124 struct amdtp_stream *stream; in init_hw_info() local
135 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in init_hw_info()
137 stream = &dice->tx_stream; in init_hw_info()
141 stream = &dice->rx_stream; in init_hw_info()
159 err = amdtp_stream_add_pcm_hw_constraints(stream, runtime); in init_hw_info()
DMakefile1 snd-dice-objs := dice-transaction.o dice-stream.o dice-proc.o dice-midi.o \
/linux-4.1.27/sound/usb/
Dproc.c152 struct snd_usb_stream *stream = entry->private_data; in proc_pcm_format_read() local
154 snd_iprintf(buffer, "%s : %s\n", stream->chip->card->longname, stream->pcm->name); in proc_pcm_format_read()
156 if (stream->substream[SNDRV_PCM_STREAM_PLAYBACK].num_formats) { in proc_pcm_format_read()
158 proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); in proc_pcm_format_read()
159 proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); in proc_pcm_format_read()
161 if (stream->substream[SNDRV_PCM_STREAM_CAPTURE].num_formats) { in proc_pcm_format_read()
163 proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); in proc_pcm_format_read()
164 proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); in proc_pcm_format_read()
168 void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream) in snd_usb_proc_pcm_format_add() argument
172 struct snd_card *card = stream->chip->card; in snd_usb_proc_pcm_format_add()
[all …]
Dstream.c61 static void snd_usb_audio_stream_free(struct snd_usb_stream *stream) in snd_usb_audio_stream_free() argument
63 free_substream(&stream->substream[0]); in snd_usb_audio_stream_free()
64 free_substream(&stream->substream[1]); in snd_usb_audio_stream_free()
65 list_del(&stream->list); in snd_usb_audio_stream_free()
66 kfree(stream); in snd_usb_audio_stream_free()
71 struct snd_usb_stream *stream = pcm->private_data; in snd_usb_audio_pcm_free() local
72 if (stream) { in snd_usb_audio_pcm_free()
73 stream->pcm = NULL; in snd_usb_audio_pcm_free()
74 snd_usb_audio_stream_free(stream); in snd_usb_audio_pcm_free()
83 int stream, in snd_usb_init_substream() argument
[all …]
Dpcm.c83 if (atomic_read(&subs->stream->chip->shutdown)) in snd_usb_pcm_pointer()
329 switch (subs->stream->chip->usb_id) { in set_sync_ep_implicit_fb_quirk()
356 USB_ID_VENDOR(subs->stream->chip->usb_id) == 0x0582 /* Roland */ && in set_sync_ep_implicit_fb_quirk()
367 subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip, in set_sync_ep_implicit_fb_quirk()
436 subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip, in set_sync_endpoint()
507 subs->data_endpoint = snd_usb_add_endpoint(subs->stream->chip, in set_format()
518 err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt); in set_format()
590 &subs->stream->substream[subs->direction ^ 1]; in configure_sync_endpoint()
593 !subs->stream) in configure_sync_endpoint()
712 ret = snd_usb_lock_shutdown(subs->stream->chip); in snd_usb_hw_params()
[all …]
Dquirks.c142 int stream, err; in create_fixed_stream_quirk() local
164 stream = (fp->endpoint & USB_DIR_IN) in create_fixed_stream_quirk()
166 err = snd_usb_add_audio_stream(chip, stream, fp); in create_fixed_stream_quirk()
424 int stream, err; in create_uaxx_quirk() local
487 stream = (fp->endpoint & USB_DIR_IN) in create_uaxx_quirk()
489 err = snd_usb_add_audio_stream(chip, stream, fp); in create_uaxx_quirk()
1080 if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1) in set_format_emu_quirk()
1104 snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id); in set_format_emu_quirk()
1111 switch (subs->stream->chip->usb_id) { in snd_usb_set_format_quirk()
1165 if (is_marantz_denon_dac(subs->stream->chip->usb_id)) { in snd_usb_select_mode_quirk()
Dproc.h5 void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream);
Dformat.h7 int stream);
Dstream.h8 int stream,
Dpcm.h7 void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
/linux-4.1.27/sound/firewire/fireworks/
Dfireworks_stream.c13 init_stream(struct snd_efw *efw, struct amdtp_stream *stream) in init_stream() argument
20 if (stream == &efw->tx_stream) { in init_stream()
34 err = amdtp_stream_init(stream, efw->unit, s_dir, CIP_BLOCKING); in init_stream()
36 amdtp_stream_destroy(stream); in init_stream()
44 stop_stream(struct snd_efw *efw, struct amdtp_stream *stream) in stop_stream() argument
46 amdtp_stream_pcm_abort(stream); in stop_stream()
47 amdtp_stream_stop(stream); in stop_stream()
49 if (stream == &efw->tx_stream) in stop_stream()
56 start_stream(struct snd_efw *efw, struct amdtp_stream *stream, in start_stream() argument
66 if (stream == &efw->tx_stream) { in start_stream()
[all …]
/linux-4.1.27/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_mmap_copy()
87 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_dma_irq()
135 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_hw_free()
158 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_prepare()
168 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_prepare()
190 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_trigger()
202 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_trigger()
227 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_pointer()
233 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_pointer()
289 substream->stream ? "Capture" : "Playback", pos, count); in bf5xx_pcm_copy()
[all …]
Dbf5xx-i2s-pcm.c99 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_prepare()
121 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_trigger()
129 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_trigger()
153 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_pointer()
200 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_open()
241 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_copy()
269 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_copy()
/linux-4.1.27/Documentation/usb/
Dbulk-streams.txt17 Once a buffer has been queued to a stream ring, the device is notified (through
18 an out-of-band mechanism on another endpoint) that data is ready for that stream
19 ID. The device then tells the host which "stream" it wants to start. The host
20 can also initiate a transfer on a stream without the device asking, but the
33 allocate memory so the driver can use up to num_streams stream IDs. They must
34 pass an array of usb_host_endpoints that need to be setup with similar stream
35 IDs. This is to ensure that a UASP driver will be able to use the same stream
41 declares how many stream IDs it can support, and each bulk endpoint on a
42 SuperSpeed device will say how many stream IDs it can handle. Therefore,
43 drivers should be able to deal with being allocated less stream IDs than they
[all …]
/linux-4.1.27/sound/arm/
Dpxa2xx-pcm.c47 rtd->params = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in pxa2xx_pcm_open()
109 int stream = SNDRV_PCM_STREAM_PLAYBACK; in pxa2xx_pcm_new() local
110 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
111 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
116 int stream = SNDRV_PCM_STREAM_CAPTURE; in pxa2xx_pcm_new() local
117 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
118 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
Dpxa2xx-pcm-lib.c87 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in __pxa2xx_pcm_hw_params()
159 dma_addr_t ptr = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in pxa2xx_pcm_pointer()
280 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument
282 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
301 int stream; in pxa2xx_pcm_free_dma_buffers() local
303 for (stream = 0; stream < 2; stream++) { in pxa2xx_pcm_free_dma_buffers()
304 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c481 static void uasp_cleanup_one_stream(struct f_uas *fu, struct uas_stream *stream) in uasp_cleanup_one_stream() argument
484 if (!stream->req_in) in uasp_cleanup_one_stream()
487 usb_ep_free_request(fu->ep_in, stream->req_in); in uasp_cleanup_one_stream()
488 usb_ep_free_request(fu->ep_out, stream->req_out); in uasp_cleanup_one_stream()
489 usb_ep_free_request(fu->ep_status, stream->req_status); in uasp_cleanup_one_stream()
491 stream->req_in = NULL; in uasp_cleanup_one_stream()
492 stream->req_out = NULL; in uasp_cleanup_one_stream()
493 stream->req_status = NULL; in uasp_cleanup_one_stream()
517 uasp_cleanup_one_stream(fu, &fu->stream[i]); in uasp_cleanup_old_alt()
528 struct uas_stream *stream = cmd->stream; in uasp_prepare_r_request() local
[all …]
Dtcm_usb_gadget.h91 struct uas_stream *stream; member
135 struct uas_stream stream[UASP_SS_EP_COMP_NUM_STREAMS]; member
/linux-4.1.27/tools/testing/selftests/mqueue/
Dmq_open_tests.c57 static inline void __set(FILE *stream, int value, char *err_msg);
59 static inline int get(FILE *stream);
60 static inline void set(FILE *stream, int value);
67 static inline void __set(FILE *stream, int value, char *err_msg) in __set() argument
69 rewind(stream); in __set()
70 if (fprintf(stream, "%d", value) < 0) in __set()
114 static inline int get(FILE *stream) in get() argument
117 rewind(stream); in get()
118 if (fscanf(stream, "%d", &value) != 1) in get()
123 static inline void set(FILE *stream, int value) in set() argument
[all …]
Dmq_perf_tests.c150 static inline void __set(FILE *stream, int value, char *err_msg);
154 static inline int get(FILE *stream);
155 static inline void set(FILE *stream, int value);
156 static inline int try_set(FILE *stream, int value);
162 static inline void __set(FILE *stream, int value, char *err_msg) in __set() argument
164 rewind(stream); in __set()
165 if (fprintf(stream, "%d", value) < 0) in __set()
232 static inline int get(FILE *stream) in get() argument
235 rewind(stream); in get()
236 if (fscanf(stream, "%d", &value) != 1) in get()
[all …]
/linux-4.1.27/tools/perf/Documentation/
Dperf-inject.txt6 perf-inject - Filter to augment the events stream with additional information
15 perf-inject reads a perf-record event stream and repipes it to stdout. At any
16 point the processing code can inject other events into the event stream - in
18 stream.
21 needs userspace processing to augment the events stream with additional
28 Inject build-ids into the output stream
/linux-4.1.27/sound/soc/kirkwood/
Dkirkwood-dma.c150 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_open()
170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_close()
211 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_prepare()
231 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_pointer()
252 int stream) in kirkwood_dma_preallocate_dma_buffer() argument
254 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in kirkwood_dma_preallocate_dma_buffer()
301 int stream; in kirkwood_dma_free_dma_buffers() local
303 for (stream = 0; stream < 2; stream++) { in kirkwood_dma_free_dma_buffers()
304 substream = pcm->streams[stream].substream; in kirkwood_dma_free_dma_buffers()
/linux-4.1.27/sound/soc/fsl/
Dmpc5200_dma.c94 snd_pcm_period_elapsed(s->stream); in psc_dma_bcom_irq()
125 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()
221 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
235 s->stream = substream; in psc_dma_open()
247 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
259 s->stream = NULL; in psc_dma_close()
[all …]
Dimx-pcm-fiq.c61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback()
100 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
121 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
133 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
241 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument
243 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
322 int stream; in imx_pcm_free() local
324 for (stream = 0; stream < 2; stream++) { in imx_pcm_free()
325 substream = pcm->streams[stream].substream; in imx_pcm_free()
Dmpc5200_dma.h27 struct snd_pcm_substream *stream; member
79 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
Dfsl_asrc_dma.c63 u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; in fsl_asrc_dma_prepare_and_submit()
137 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_asrc_dma_hw_params()
146 int stream = substream->stream; in fsl_asrc_dma_hw_params() local
156 list_for_each_entry(dpcm, &rtd->dpcm[stream].be_clients, list_be) { in fsl_asrc_dma_hw_params()
164 substream_be = snd_soc_dpcm_get_substream(be, stream); in fsl_asrc_dma_hw_params()
Dfsl_ssi.c597 baudclk_is_used = ssi_private->baudclk_streams & ~(BIT(substream->stream)); in fsl_ssi_set_bclk()
658 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || synchronous) in fsl_ssi_set_bclk()
726 if (!(ssi_private->baudclk_streams & BIT(substream->stream))) { in fsl_ssi_hw_params()
731 ssi_private->baudclk_streams |= BIT(substream->stream); in fsl_ssi_hw_params()
763 if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK) || in fsl_ssi_hw_params()
782 ssi_private->baudclk_streams & BIT(substream->stream)) { in fsl_ssi_hw_free()
784 ssi_private->baudclk_streams &= ~BIT(substream->stream); in fsl_ssi_hw_free()
1026 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger()
1035 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger()
1046 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger()
Dfsl_dma.c172 if (dma_private->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_dma_update_pointers()
413 channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1; in fsl_dma_open()
426 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_dma_open()
505 mr |= (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in fsl_dma_open()
665 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_dma_hw_params()
715 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_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()
/linux-4.1.27/Documentation/video4linux/cx2341x/
Dfw-encoder-api.txt20 Capture stream type:
55 Assigns the transport stream ID of the encoded audio stream
64 Set video transport stream ID
66 Video stream ID
73 Assigns the transport stream ID for PCR packets
92 Select video stream encoding resolution.
103 Assign average video stream bitrate. Note on the last three params:
241 Assign stream type
242 Note: Transport stream is not working in recent firmwares.
246 0=Program stream
[all …]
DREADME.vbi6 embedded in an MPEG-2 program stream. This format is in part dictated by some
9 off when the MPEG stream is played back through the cx23415.
14 The stream ID of the VBI data is 0xBD. The maximum size of the embedded data is
Dfw-decoder-api.txt49 Playback stream at speed other than normal. There are two modes of
51 Smooth: host transfers entire stream and firmware drops unused
62 '1' during 1.5 times play, stream is unchanged (bitrate
116 This API call may be used to detect an end of stream condition.
197 Select decoder stream input port
/linux-4.1.27/sound/soc/omap/
Domap-mcpdm.c296 int stream = substream->stream; in omap_mcpdm_dai_hw_params() local
305 if (stream == SNDRV_PCM_STREAM_CAPTURE) in omap_mcpdm_dai_hw_params()
310 if (stream == SNDRV_PCM_STREAM_CAPTURE) in omap_mcpdm_dai_hw_params()
328 threshold = mcpdm->config[stream].threshold; in omap_mcpdm_dai_hw_params()
330 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in omap_mcpdm_dai_hw_params()
334 if (!mcpdm->config[!stream].link_mask) in omap_mcpdm_dai_hw_params()
335 mcpdm->config[!stream].link_mask = 0x3; in omap_mcpdm_dai_hw_params()
341 if (!mcpdm->config[!stream].link_mask) in omap_mcpdm_dai_hw_params()
342 mcpdm->config[!stream].link_mask = (0x3 << 3); in omap_mcpdm_dai_hw_params()
348 if (mcpdm->config[stream].link_mask && in omap_mcpdm_dai_hw_params()
[all …]
Domap-pcm.c177 int stream) in omap_pcm_preallocate_dma_buffer() argument
179 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in omap_pcm_preallocate_dma_buffer()
199 int stream; in omap_pcm_free_dma_buffers() local
201 for (stream = 0; stream < 2; stream++) { in omap_pcm_free_dma_buffers()
202 substream = pcm->streams[stream].substream; in omap_pcm_free_dma_buffers()
/linux-4.1.27/fs/nfs/filelayout/
Dfilelayoutdev.c73 struct xdr_stream stream; in nfs4_fl_alloc_deviceid_node() local
84 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_fl_alloc_deviceid_node()
85 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in nfs4_fl_alloc_deviceid_node()
88 p = xdr_inline_decode(&stream, 4); in nfs4_fl_alloc_deviceid_node()
106 p = xdr_inline_decode(&stream, cnt << 2); in nfs4_fl_alloc_deviceid_node()
119 p = xdr_inline_decode(&stream, 4); in nfs4_fl_alloc_deviceid_node()
157 p = xdr_inline_decode(&stream, 4); in nfs4_fl_alloc_deviceid_node()
164 &stream, gfp_flags); in nfs4_fl_alloc_deviceid_node()
/linux-4.1.27/Documentation/networking/
Dtcp-thin.txt4 protocols display what we call thin-stream properties. This means
23 for thin streams. In short, if the kernel detects a thin stream,
26 1) If the stream is thin, fast retransmit on the first dupACK.
27 2) If the stream is thin, do not apply exponential backoff.
29 These enhancements are applied only if the stream is detected as
32 fast retransmissions can not be triggered, and the stream is prone
45 "Improving latency for interactive, thin-stream applications over
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Drenesas,fsi.txt14 - fsia,stream-mode-support : FSI supports 16bit stream mode.
18 - fsib,stream-mode-support : same as fsia
29 fsia,stream-mode-support;
/linux-4.1.27/drivers/block/zram/
Dzcomp.c102 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_find()
140 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_release()
158 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_set_max_streams()
180 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_destroy()
205 comp->stream = zs; in zcomp_strm_multi_create()
223 struct zcomp_strm_single *zs = comp->stream; in zcomp_strm_single_find()
231 struct zcomp_strm_single *zs = comp->stream; in zcomp_strm_single_release()
243 struct zcomp_strm_single *zs = comp->stream; in zcomp_strm_single_destroy()
260 comp->stream = zs; in zcomp_strm_single_create()
/linux-4.1.27/sound/pci/ac97/
Dac97_pcm.c168 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg()
488 rpcm->stream = pcm->stream; in snd_ac97_pcm_assign()
499 if (pcm->spdif && pcm->stream == 0) in snd_ac97_pcm_assign()
502 tmp = avail_slots[pcm->stream][j]; in snd_ac97_pcm_assign()
507 if (rpcm->stream == rpcms[k].stream) in snd_ac97_pcm_assign()
517 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign()
523 avail_slots[pcm->stream][j] &= ~tmp; in snd_ac97_pcm_assign()
530 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_ac97_pcm_assign()
532 rate_table[pcm->stream][0] == 0) { in snd_ac97_pcm_assign()
541 avail_slots[pcm->stream][0] &= ~tmp; in snd_ac97_pcm_assign()
[all …]
/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf-core.c180 INIT_LIST_HEAD(&q->stream); in videobuf_queue_core_init()
291 INIT_LIST_HEAD(&q->stream); in videobuf_queue_cancel()
465 if (!list_empty(&q->stream)) { in videobuf_reqbufs()
611 list_add_tail(&buf->stream, &q->stream); in videobuf_qbuf()
643 if (list_empty(&q->stream)) { in stream_next_buffer_check_queue()
658 !list_empty(&q->stream) || !q->streaming); in stream_next_buffer_check_queue()
685 buf = list_entry(q->stream.next, struct videobuf_buffer, stream); in stream_next_buffer()
726 list_del(&buf->stream); in videobuf_dqbuf()
750 list_for_each_entry(buf, &q->stream, stream) in videobuf_streamon()
986 list_add_tail(&q->bufs[i]->stream, &q->stream); in __videobuf_read_start()
[all …]
Dvideobuf-dvb.c56 buf = list_entry(dvb->dvbq.stream.next, in videobuf_dvb_thread()
57 struct videobuf_buffer, stream); in videobuf_dvb_thread()
58 list_del(&buf->stream); in videobuf_dvb_thread()
76 list_add_tail(&buf->stream,&dvb->dvbq.stream); in videobuf_dvb_thread()
/linux-4.1.27/fs/hostfs/
Dhostfs.h69 extern void seek_dir(void *stream, unsigned long long pos);
70 extern char *read_dir(void *stream, unsigned long long *pos_out,
73 extern void close_file(void *stream);
75 extern void close_dir(void *stream);
Dhostfs_user.c100 void seek_dir(void *stream, unsigned long long pos) in seek_dir() argument
102 DIR *dir = stream; in seek_dir()
107 char *read_dir(void *stream, unsigned long long *pos_out, in read_dir() argument
111 DIR *dir = stream; in read_dir()
174 void close_file(void *stream) in close_file() argument
176 close(*((int *) stream)); in close_file()
179 void close_dir(void *stream) in close_dir() argument
181 closedir(stream); in close_dir()
/linux-4.1.27/sound/drivers/
Daloop.c153 if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_setup()
198 static int loopback_check_format(struct loopback_cable *cable, int stream) in loopback_check_format() argument
206 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_check_format()
219 if (stream == SNDRV_PCM_STREAM_CAPTURE) { in loopback_check_format()
260 int err, stream = 1 << substream->stream; in loopback_trigger() local
264 err = loopback_check_format(cable, substream->stream); in loopback_trigger()
271 cable->running |= stream; in loopback_trigger()
272 cable->pause &= ~stream; in loopback_trigger()
275 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_trigger()
280 cable->running &= ~stream; in loopback_trigger()
[all …]
/linux-4.1.27/sound/soc/dwc/
Ddesignware_i2s.c115 static inline void i2s_disable_channels(struct dw_i2s_dev *dev, u32 stream) in i2s_disable_channels() argument
119 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_disable_channels()
128 static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream) in i2s_clear_irqs() argument
132 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_clear_irqs()
147 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in i2s_start()
160 i2s_clear_irqs(dev, substream->stream); in i2s_stop()
161 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_stop()
190 (substream->stream == SNDRV_PCM_STREAM_CAPTURE)) in dw_i2s_startup()
194 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)) in dw_i2s_startup()
197 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in dw_i2s_startup()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Dt613.c103 const u8 stream[4]; member
168 .stream =
190 .stream =
212 .stream =
229 .stream = {0x0b, 0x04, 0x0a, 0x28},
668 reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); in sd_init()
805 reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); in sd_start()
806 reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); in sd_start()
818 reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream, in sd_stopN()
819 sizeof sensor_data[sd->sensor].stream); in sd_stopN()
[all …]
/linux-4.1.27/drivers/block/rsxx/
Dcregs.c44 unsigned int stream; member
64 unsigned int stream) in copy_to_creg_data() argument
77 if (LITTLE_ENDIAN && stream) in copy_to_creg_data()
90 unsigned int stream) in copy_from_creg_data() argument
103 if (LITTLE_ENDIAN && stream) in copy_from_creg_data()
125 cmd->buf, cmd->stream); in creg_issue_cmd()
166 int stream, in creg_queue_cmd() argument
192 cmd->stream = stream; in creg_queue_cmd()
296 st = copy_from_creg_data(card, cnt8, cmd->buf, cmd->stream); in creg_cmd_done()
390 int stream, in __issue_creg_rw() argument
[all …]
Drsxx.h36 __u32 stream; member
/linux-4.1.27/sound/core/oss/
Dpcm_plugin.c57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc()
165 plugin->stream = snd_pcm_plug_stream(plug); in snd_pcm_plugin_build()
173 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_plugin_build()
202 int stream; in snd_pcm_plug_client_size() local
208 stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_client_size()
209 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_client_size()
217 } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { in snd_pcm_plug_client_size()
234 int stream; in snd_pcm_plug_slave_size() local
241 stream = snd_pcm_plug_stream(plug); in snd_pcm_plug_slave_size()
242 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_slave_size()
[all …]
Dpcm_oss.c961 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_oss_change_params()
1002 substream->stream == SNDRV_PCM_STREAM_CAPTURE) in snd_pcm_oss_change_params()
1008 sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pcm_oss_change_params()
1939 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_oss_get_caps1()
2084 static int snd_pcm_oss_get_ptr(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct count_info… in snd_pcm_oss_get_ptr() argument
2095 substream = pcm_oss_file->streams[stream]; in snd_pcm_oss_get_ptr()
2107 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_oss_get_ptr()
2131 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_oss_get_ptr()
2136 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_oss_get_ptr()
2153 static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct audio_bu… in snd_pcm_oss_get_space() argument
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Dnvram_64.c127 static struct z_stream_s stream; variable
338 err = zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS, in nvram_compress()
343 stream.next_in = in; in nvram_compress()
344 stream.avail_in = inlen; in nvram_compress()
345 stream.total_in = 0; in nvram_compress()
346 stream.next_out = out; in nvram_compress()
347 stream.avail_out = outlen; in nvram_compress()
348 stream.total_out = 0; in nvram_compress()
350 err = zlib_deflate(&stream, Z_FINISH); in nvram_compress()
354 err = zlib_deflateEnd(&stream); in nvram_compress()
[all …]
/linux-4.1.27/drivers/uwb/
Drsv.c152 int stream; in uwb_rsv_get_stream() local
165 stream = find_first_zero_bit(streams_bm, UWB_NUM_STREAMS); in uwb_rsv_get_stream()
166 if (stream >= UWB_NUM_STREAMS) { in uwb_rsv_get_stream()
171 rsv->stream = stream; in uwb_rsv_get_stream()
172 set_bit(stream, streams_bm); in uwb_rsv_get_stream()
174 dev_dbg(dev, "get stream %d\n", rsv->stream); in uwb_rsv_get_stream()
196 clear_bit(rsv->stream, streams_bm); in uwb_rsv_put_stream()
198 dev_dbg(dev, "put stream %d\n", rsv->stream); in uwb_rsv_put_stream()
725 int stream; in uwb_rsv_match() local
727 stream = uwb_ie_drp_stream_index(drp_ie); in uwb_rsv_match()
[all …]
/linux-4.1.27/sound/soc/txx9/
Dtxx9aclc.c72 substream->stream); in txx9aclc_pcm_hw_params()
132 dmadata->substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_submit()
153 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_tasklet()
213 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_pcm_trigger()
249 struct txx9aclc_dmadata *dmadata = &dev->dmadata[substream->stream]; in txx9aclc_pcm_open()
299 dev->dmadata[0].stream = SNDRV_PCM_STREAM_PLAYBACK; in txx9aclc_pcm_new()
300 dev->dmadata[1].stream = SNDRV_PCM_STREAM_CAPTURE; in txx9aclc_pcm_new()
350 if (dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK) { in txx9aclc_dma_init()
365 dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_init()
/linux-4.1.27/sound/soc/cirrus/
Dep93xx-i2s.c96 static void ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream) in ep93xx_i2s_enable() argument
113 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_enable()
121 static void ep93xx_i2s_disable(struct ep93xx_i2s_info *info, int stream) in ep93xx_i2s_disable() argument
127 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_disable()
166 ep93xx_i2s_disable(info, substream->stream); in ep93xx_i2s_shutdown()
270 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_hw_params()
301 ep93xx_i2s_enable(info, substream->stream); in ep93xx_i2s_hw_params()
/linux-4.1.27/sound/soc/sh/
Ddma-sh7760.c124 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_open()
157 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_close()
178 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_hw_params()
210 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in camelot_prepare()
253 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_trigger()
280 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pos()
Dsiu_pcm.c228 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in siu_io_tasklet()
319 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_hw_free()
357 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) { in siu_pcm_open()
390 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_close()
412 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_prepare()
461 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_trigger()
472 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_trigger()
501 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_pointer_dma()
/linux-4.1.27/drivers/staging/ozwpan/
Dozeltbuf.c183 ei->stream = st; in oz_queue_elt_info()
231 if (ei->stream) { in oz_select_elts_for_tx()
232 ei->stream->buf_count -= ei->length; in oz_select_elts_for_tx()
234 ei->stream->buf_count, ei->length); in oz_select_elts_for_tx()
235 oz_elt_stream_put(ei->stream); in oz_select_elts_for_tx()
236 ei->stream = NULL; in oz_select_elts_for_tx()
/linux-4.1.27/sound/pci/hda/
Dpatch_si3054.c159 val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)); in si3054_pcm_prepare()
160 val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in si3054_pcm_prepare()
206 info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; in si3054_build_pcms()
207 info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm; in si3054_build_pcms()
208 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; in si3054_build_pcms()
209 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; in si3054_build_pcms()
Dhda_controller.c176 (substream->stream + 1); in azx_assign_device()
178 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in azx_assign_device()
264 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
281 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in azx_adjust_codec_delay()
539 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in azx_pcm_prepare()
705 int stream = substream->stream; in azx_get_position() local
708 if (chip->get_position[stream]) in azx_get_position()
709 pos = chip->get_position[stream](chip, azx_dev); in azx_get_position()
720 if (chip->get_delay[stream]) in azx_get_position()
721 delay += chip->get_delay[stream](chip, azx_dev, pos); in azx_get_position()
[all …]
/linux-4.1.27/sound/soc/atmel/
Datmel-pcm-pdc.c51 int stream) in atmel_pcm_preallocate_dma_buffer() argument
53 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in atmel_pcm_preallocate_dma_buffer()
113 int stream; in atmel_pcm_free() local
115 for (stream = 0; stream < 2; stream++) { in atmel_pcm_free()
116 substream = pcm->streams[stream].substream; in atmel_pcm_free()
174 substream->stream == SNDRV_PCM_STREAM_PLAYBACK in atmel_pcm_dma_irq()
/linux-4.1.27/drivers/usb/wusbcore/
Dreservation.c31 static int wusbhc_bwa_set(struct wusbhc *wusbhc, u8 stream, in wusbhc_bwa_set() argument
36 return wusbhc->bwa_set(wusbhc, stream, mas); in wusbhc_bwa_set()
59 wusbhc_bwa_set(wusbhc, rsv->stream, &mas); in wusbhc_rsv_complete_cb()
/linux-4.1.27/Documentation/sound/alsa/
DProcfile.txt66 stream. The number after 'pcm' is the PCM device number from 0, and
121 The general information of this PCM sub-stream.
124 The current status of this PCM sub-stream, elapsed time,
128 The hardware parameters set for this sub-stream.
131 The soft parameters set for this sub-stream.
137 Triggers an XRUN to the running stream when any value is
161 card*/stream*
162 Shows the assignment and the current status of each audio stream
220 sub-stream directory
229 - stream* files in card directory
DChannel-Mapping-API.txt10 of the current stream.
13 Typically, a stereo PCM stream has a channel map of
15 while a 4.0 surround PCM stream has a channel map of
81 SNDRV_CHMAP_MONO, /* mono stream */
112 When a PCM stream can provide more than one channel map, you can
138 the given stream. The control element returns an integer array
DHD-Audio-Controls.txt38 won't hear any PCM stream.
67 from an individual stream (the third PCM such as hw:0,2) instead of
68 the primary stream. In the case the headphone DAC is shared with a
115 from an individual stream (the third PCM such as hw:0,2) instead of
116 the primary stream.
/linux-4.1.27/sound/pci/lx6464es/
Dlx6464es.c111 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_open()
137 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_start()
168 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_stop()
199 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_close()
282 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_stream_pointer()
301 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_prepare()
365 chip->capture_stream.stream = substream; in lx_pcm_hw_params()
367 chip->playback_stream.stream = substream; in lx_pcm_hw_params()
389 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_hw_free()
415 chip->capture_stream.stream = 0; in lx_pcm_hw_free()
[all …]
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c1777 struct mwl8k_ampdu_stream *stream; in mwl8k_add_stream() local
1782 stream = &priv->ampdu[i]; in mwl8k_add_stream()
1783 if (stream->state == AMPDU_NO_STREAM) { in mwl8k_add_stream()
1784 stream->sta = sta; in mwl8k_add_stream()
1785 stream->state = AMPDU_STREAM_NEW; in mwl8k_add_stream()
1786 stream->tid = tid; in mwl8k_add_stream()
1787 stream->idx = i; in mwl8k_add_stream()
1790 return stream; in mwl8k_add_stream()
1797 mwl8k_start_stream(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream) in mwl8k_start_stream() argument
1802 if (stream->state != AMPDU_STREAM_NEW) in mwl8k_start_stream()
[all …]
/linux-4.1.27/sound/usb/line6/
Dpcm.c239 err = line6_stream_start(line6pcm, s->stream, in snd_line6_trigger()
247 line6_stream_stop(line6pcm, s->stream, in snd_line6_trigger()
252 if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) in snd_line6_trigger()
258 if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) in snd_line6_trigger()
275 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); in snd_line6_pointer()
333 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); in snd_line6_hw_params()
357 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); in snd_line6_hw_free()
565 struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); in snd_line6_prepare()
Dpcm.h42 #define get_substream(line6pcm, stream) \ argument
43 (line6pcm->pcm->streams[stream].substream)
/linux-4.1.27/Documentation/sound/alsa/soc/
Ddapm.txt15 switching decisions based upon any audio stream (capture/playback)
26 can be set at stream time if power is not needed for sidetone, etc.
38 Enabled and disabled when stream playback/capture is started and
84 parameters for stream name and kcontrols.
90 Stream Widgets relate to the stream power domain and only consist of ADCs
96 SND_SOC_DAPM_DAC(name, stream name, reg, shift, invert),
97 SND_SOC_DAPM_AIF_IN(name, stream, slot, reg, shift, invert)
99 NOTE: the stream name must match the corresponding stream name in your codec
102 e.g. stream widgets for HiFi playback and capture
107 e.g. stream widgets for AIF
[all …]
/linux-4.1.27/Documentation/video4linux/
DREADME.ivtv31 this into the captured MPEG stream.
101 Reading from this device gets you the MPEG1/2 program stream.
111 An mpeg2 stream sent to this device will appear on the selected video
122 The raw audio PCM stereo stream from the currently selected
146 Writes a YUV stream to the decoder of the card.
155 device to tune the radio, use /dev/video24 to read the raw pcm stream
156 or /dev/video0 to get an mpeg2 stream with black video.
173 The sliced VBI data embedded in an MPEG stream is reproduced on this
/linux-4.1.27/sound/usb/usx2y/
Dusx2yhwdeppcm.c364 if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) { in snd_usX2Y_usbpcm_hw_free()
406 stream = subs->pcm_substream->stream; in usX2Y_usbpcm_urbs_start() local
409 if (SNDRV_PCM_STREAM_CAPTURE == stream) { in usX2Y_usbpcm_urbs_start()
414 for (p = 0; 3 >= (stream + p); p += 2) { in usX2Y_usbpcm_urbs_start()
415 struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; in usX2Y_usbpcm_urbs_start()
432 for (p = 0; 3 >= (stream + p); p += 2) { in usX2Y_usbpcm_urbs_start()
433 struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; in usX2Y_usbpcm_urbs_start()
565 snd_pcm_substream_chip(substream))[substream->stream]; in snd_usX2Y_usbpcm_open()
571 runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c : in snd_usX2Y_usbpcm_open()
/linux-4.1.27/scripts/
Dcheckkconfigsymbols.py211 with open(sfile, "r") as stream:
212 lines = stream.readlines()
236 with open(kfile, "r") as stream:
237 lines = stream.readlines()
/linux-4.1.27/tools/perf/util/
Ddata-convert-bt.c44 struct bt_ctf_stream *stream; member
427 bt_ctf_stream_append_event(cw->stream, event); in process_sample_event()
716 bt_ctf_stream_put(cw->stream); in ctf_writer__cleanup()
728 struct bt_ctf_stream *stream; in ctf_writer__init() local
771 stream = bt_ctf_writer_create_stream(writer, stream_class); in ctf_writer__init()
772 if (!stream) { in ctf_writer__init()
777 cw->stream = stream; in ctf_writer__init()
839 err = bt_ctf_stream_flush(cw->stream); in bt_convert__perf2ctf()
/linux-4.1.27/arch/alpha/kernel/
Derr_ev6.c100 int source = -1, stream = -1, bits = -1; in ev6_parse_cbox() local
136 stream = EXTRACT(c_stat, EV6__C_STAT__ISTREAM); in ev6_parse_cbox()
159 streamname[stream], bitsname[bits], sourcename[source]); in ev6_parse_cbox()
/linux-4.1.27/drivers/media/usb/as102/
Das102_usb_drv.c247 dev->stream, in as102_free_usb_stream_buffer()
255 dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev, in as102_alloc_usb_stream_buffer()
259 if (!dev->stream) { in as102_alloc_usb_stream_buffer()
265 memset(dev->stream, 0, MAX_STREAM_URB * AS102_USB_BUF_SIZE); in as102_alloc_usb_stream_buffer()
279 urb->transfer_buffer = dev->stream + (i * AS102_USB_BUF_SIZE); in as102_alloc_usb_stream_buffer()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
Dtrx.c378 int stream; in rtl92d_loop_over_streams() local
380 for (stream = 0; stream < 2; stream++) { in rtl92d_loop_over_streams()
381 if (pstats->rx_mimo_sig_qual[stream] != -1) { in rtl92d_loop_over_streams()
382 if (rtlpriv->stats.rx_evm_percentage[stream] == 0) { in rtl92d_loop_over_streams()
383 rtlpriv->stats.rx_evm_percentage[stream] = in rtl92d_loop_over_streams()
384 pstats->rx_mimo_sig_qual[stream]; in rtl92d_loop_over_streams()
386 rtlpriv->stats.rx_evm_percentage[stream] = in rtl92d_loop_over_streams()
387 ((rtlpriv->stats.rx_evm_percentage[stream] in rtl92d_loop_over_streams()
389 (pstats->rx_mimo_sig_qual[stream] * 1)) / in rtl92d_loop_over_streams()
/linux-4.1.27/sound/soc/davinci/
Ddavinci-mcasp.c238 static void davinci_mcasp_start(struct davinci_mcasp *mcasp, int stream) in davinci_mcasp_start() argument
242 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_start()
296 static void davinci_mcasp_stop(struct davinci_mcasp *mcasp, int stream) in davinci_mcasp_stop() argument
300 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_stop()
656 static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream, in mcasp_common_hw_param() argument
659 struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream]; in mcasp_common_hw_param()
674 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in mcasp_common_hw_param()
699 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in mcasp_common_hw_param()
764 static int mcasp_i2s_hw_param(struct davinci_mcasp *mcasp, int stream, in mcasp_i2s_hw_param() argument
935 ret = mcasp_common_hw_param(mcasp, substream->stream, in davinci_mcasp_hw_params()
[all …]
Ddavinci-i2s.c188 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_mcbsp_start()
433 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in davinci_i2s_hw_params()
557 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_i2s_hw_params()
572 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_prepare()
582 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_trigger()
605 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_shutdown()
/linux-4.1.27/sound/soc/nuc900/
Dnuc900-pcm.c54 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in nuc900_update_dma_register()
160 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in nuc900_dma_prepare()
170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in nuc900_dma_prepare()
229 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in nuc900_dma_pointer()
/linux-4.1.27/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c41 struct xdr_stream stream; in nfs4_ff_alloc_deviceid_node() local
67 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_ff_alloc_deviceid_node()
68 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in nfs4_ff_alloc_deviceid_node()
71 p = xdr_inline_decode(&stream, 4); in nfs4_ff_alloc_deviceid_node()
80 &stream, gfp_flags); in nfs4_ff_alloc_deviceid_node()
92 p = xdr_inline_decode(&stream, 4); in nfs4_ff_alloc_deviceid_node()
106 p = xdr_inline_decode(&stream, 20); in nfs4_ff_alloc_deviceid_node()
Dflexfilelayout.c206 struct xdr_stream stream; in ff_layout_alloc_lseg() local
219 xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages, in ff_layout_alloc_lseg()
221 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in ff_layout_alloc_lseg()
225 p = xdr_inline_decode(&stream, 8 + 4); in ff_layout_alloc_lseg()
258 p = xdr_inline_decode(&stream, 4); in ff_layout_alloc_lseg()
279 rc = decode_deviceid(&stream, &devid); in ff_layout_alloc_lseg()
299 p = xdr_inline_decode(&stream, 4); in ff_layout_alloc_lseg()
305 rc = decode_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg()
310 p = xdr_inline_decode(&stream, 4); in ff_layout_alloc_lseg()
324 rc = decode_nfs_fh(&stream, in ff_layout_alloc_lseg()
[all …]
/linux-4.1.27/sound/soc/spear/
Dspdif_out.c66 if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) in spdif_out_startup()
84 if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) in spdif_out_shutdown()
112 if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) in spdif_out_hw_params()
158 if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) in spdif_out_trigger()
Dspdif_in.c71 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_shutdown()
101 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_hw_params()
117 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_trigger()
/linux-4.1.27/drivers/staging/gdm72xx/
Dgdm_qos.c142 static int chk_ipv4_rule(struct gdm_wimax_csr_s *csr, u8 *stream, u8 *port) in chk_ipv4_rule() argument
147 if (((stream[1] & csr->ip2s_mask) < csr->ip2s_lo) || in chk_ipv4_rule()
148 ((stream[1] & csr->ip2s_mask) > csr->ip2s_hi)) in chk_ipv4_rule()
153 if (stream[9] != csr->protocol) in chk_ipv4_rule()
159 if ((stream[12 + i] & csr->ipsrc_addrmask[i]) != in chk_ipv4_rule()
167 if ((stream[16 + i] & csr->ipdst_addrmask[i]) != in chk_ipv4_rule()
/linux-4.1.27/sound/soc/codecs/
Dadau17x1.c161 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_put() local
171 adau->dsp_bypass[stream] = false; in adau17x1_dsp_mux_enum_put()
174 val = (adau->tdm_slot[stream] * 2) + 1; in adau17x1_dsp_mux_enum_put()
175 adau->dsp_bypass[stream] = true; in adau17x1_dsp_mux_enum_put()
179 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_put()
204 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_get() local
208 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_get()
Dwl1273.c317 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in wl1273_startup()
323 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in wl1273_startup()
368 substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in wl1273_hw_params()
374 substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in wl1273_hw_params()
Dcs4271.c361 if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in cs4271_hw_params()
363 (substream->stream == SNDRV_PCM_STREAM_CAPTURE && in cs4271_hw_params()
410 static int cs4271_mute_stream(struct snd_soc_dai *dai, int mute, int stream) in cs4271_mute_stream() argument
418 if (stream != SNDRV_PCM_STREAM_PLAYBACK) in cs4271_mute_stream()
/linux-4.1.27/Documentation/devicetree/bindings/hsi/
Dclient-devices.txt9 - hsi-rx-mode: Receiver Bit transmission mode ("stream" or "frame")
10 - hsi-tx-mode: Transmitter Bit transmission mode ("stream" or "frame")
/linux-4.1.27/drivers/net/can/softing/
Dsofting_main.c483 static const uint8_t stream[] = { in softing_card_boot() local
485 unsigned char back[sizeof(stream)]; in softing_card_boot()
500 for (j = 0; (j + sizeof(stream)) < card->dpram_size; in softing_card_boot()
501 j += sizeof(stream)) { in softing_card_boot()
503 memcpy_toio(&card->dpram[j], stream, sizeof(stream)); in softing_card_boot()
506 memcpy_fromio(back, &card->dpram[j], sizeof(stream)); in softing_card_boot()
508 if (!memcmp(back, stream, sizeof(stream))) in softing_card_boot()
/linux-4.1.27/sound/soc/ux500/
Dux500_pcm.c76 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in ux500_pcm_request_chan()
118 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in ux500_pcm_prepare_slave_config()
/linux-4.1.27/Documentation/device-mapper/
Dcache-policies.txt50 required before a stream is treated as sequential. Once a stream is
53 before the stream is treated as random again.
65 stream detection.
/linux-4.1.27/net/sctp/
Dulpqueue.c763 sid = event->stream; in sctp_ulpq_retrieve_ordered()
771 csid = cevent->stream; in sctp_ulpq_retrieve_ordered()
810 sid = event->stream; in sctp_ulpq_store_ordered()
814 csid = cevent->stream; in sctp_ulpq_store_ordered()
831 csid = cevent->stream; in sctp_ulpq_store_ordered()
856 sid = event->stream; in sctp_ulpq_order()
900 csid = cevent->stream; in sctp_ulpq_reap_ordered()
929 csid = cevent->stream; in sctp_ulpq_reap_ordered()
Dulpevent.c704 event->stream = ntohs(chunk->subh.data_hdr->stream); in sctp_ulpevent_make_rcvmsg()
873 sinfo.sinfo_stream = event->stream; in sctp_ulpevent_read_sndrcvinfo()
901 rinfo.rcv_sid = event->stream; in sctp_ulpevent_read_rcvinfo()
924 nxtinfo.nxt_sid = event->stream; in __sctp_ulpevent_read_nxtinfo()
/linux-4.1.27/sound/ppc/
Dpmac.c118 static inline int another_stream(int stream) in another_stream() argument
120 return (stream == SNDRV_PCM_STREAM_PLAYBACK) ? in another_stream()
145 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
147 switch (stream) { in snd_pmac_get_stream()
227 astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); in snd_pmac_pcm_prepare()
286 command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pmac_pcm_trigger()
622 snd_pmac_hw_rule_rate, chip, rec->stream, -1); in snd_pmac_pcm_open()
624 snd_pmac_hw_rule_format, chip, rec->stream, -1); in snd_pmac_pcm_open()
641 astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); in snd_pmac_pcm_close()
1198 chip->playback.stream = SNDRV_PCM_STREAM_PLAYBACK; in snd_pmac_new()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/dma/xilinx/
Dxilinx_dma.txt1 Xilinx AXI DMA engine, it does transfers between memory and AXI4 stream
22 - xlnx,datawidth: Should contain the stream data width, take values
/linux-4.1.27/Documentation/blockdev/
Dzram.txt27 By default, compression backend uses single compression stream.
37 In order to enable compression backend's multi stream support max_comp_streams
39 initialisation. Once the device initialised as a single stream compression
41 the value of max_comp_streams because single stream compression backend
43 dynamic max_comp_streams. Only multi stream backend supports dynamic
/linux-4.1.27/drivers/media/usb/pwc/
Dpwc-dec23.h42 const unsigned char *stream; member
/linux-4.1.27/include/media/
Dvideobuf-core.h77 struct list_head stream; /* QBUF/DQBUF list */ member
155 struct list_head stream; member
/linux-4.1.27/sound/core/seq/
Dseq_midi.c297 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe()
301 info->stream = SNDRV_RAWMIDI_STREAM_INPUT; in snd_seq_midisynth_probe()
356 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe()
358 info->stream = SNDRV_RAWMIDI_STREAM_INPUT; in snd_seq_midisynth_probe()

123