/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
D | usb_urb.c | 15 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 …]
|
D | mxl111sf.c | 1009 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 …]
|
D | dvb_usb_common.h | 28 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);
|
D | dvb_usb_core.c | 215 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.4.14/drivers/media/usb/dvb-usb/ |
D | usb-urb.c | 16 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local 47 … stream->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 …]
|
D | dvb-usb-urb.c | 69 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 …]
|
D | dvb-usb-common.h | 32 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);
|
D | dtt200u.c | 152 .stream = { 202 .stream = { 252 .stream = { 302 .stream = {
|
D | dib0700_core.c | 533 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()
|
D | dibusb-mb.c | 201 .stream = { 291 .stream = { 360 .stream = { 422 .stream = {
|
D | cxusb.c | 396 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() 1629 .stream = { 1678 .stream = { 1734 .stream = { 1799 .stream = { 1854 .stream = { 1905 .stream = { [all …]
|
D | m920x.c | 105 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.4.14/drivers/media/usb/uvc/ |
D | uvc_video.c | 89 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() 131 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl() 132 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl() 149 if (stream->dev->udev->speed == USB_SPEED_HIGH) in uvc_fixup_video_ctrl() 166 static int uvc_get_video_ctrl(struct uvc_streaming *stream, in uvc_get_video_ctrl() argument 173 size = stream->dev->uvc_version >= 0x0110 ? 34 : 26; in uvc_get_video_ctrl() [all …]
|
D | uvc_v4l2.c | 145 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 …]
|
D | uvc_debugfs.c | 34 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 …]
|
D | uvcvideo.h | 497 struct uvc_stats_stream stream; member 563 struct uvc_streaming *stream; member 668 extern int uvc_video_init(struct uvc_streaming *stream); 669 extern int uvc_video_suspend(struct uvc_streaming *stream); 670 extern int uvc_video_resume(struct uvc_streaming *stream, int reset); 671 extern int uvc_video_enable(struct uvc_streaming *stream, int enable); 672 extern int uvc_probe_video(struct uvc_streaming *stream, 676 void uvc_video_clock_update(struct uvc_streaming *stream, 732 void uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream, 738 int uvc_debugfs_init_stream(struct uvc_streaming *stream); [all …]
|
D | uvc_queue.c | 78 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_queue_setup() local 81 if (fmt && fmt->fmt.pix.sizeimage < stream->ctrl.dwMaxVideoFrameSize) in uvc_queue_setup() 87 : stream->ctrl.dwMaxVideoFrameSize; in uvc_queue_setup() 144 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_buffer_finish() local 148 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish() 154 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_start_streaming() local 160 ret = uvc_video_enable(stream, 1); in uvc_start_streaming() 174 struct uvc_streaming *stream = uvc_queue_to_stream(queue); in uvc_stop_streaming() local 177 uvc_video_enable(stream, 0); in uvc_stop_streaming()
|
D | uvc_driver.c | 317 struct uvc_streaming *stream; in uvc_stream_by_id() local 319 list_for_each_entry(stream, &dev->streams, list) { in uvc_stream_by_id() 320 if (stream->header.bTerminalLink == id) in uvc_stream_by_id() 321 return stream; in uvc_stream_by_id() 1692 struct uvc_streaming *stream = video_get_drvdata(vdev); in uvc_release() local 1693 struct uvc_device *dev = stream->dev; in uvc_release() 1707 struct uvc_streaming *stream; in uvc_unregister_video() local 1716 list_for_each_entry(stream, &dev->streams, list) { in uvc_unregister_video() 1717 if (!video_is_registered(&stream->vdev)) in uvc_unregister_video() 1720 video_unregister_device(&stream->vdev); in uvc_unregister_video() [all …]
|
D | uvc_isight.c | 102 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.4.14/sound/core/ |
D | compress_offload.c | 65 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 …]
|
D | pcm_trace.h | 18 __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',
|
D | rawmidi_compat.c | 26 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()
|
D | pcm_memory.c | 69 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()
|
D | rawmidi.c | 123 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 …]
|
D | pcm.c | 114 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 …]
|
D | pcm_timer.c | 120 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()
|
D | pcm_native.c | 68 static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream); 206 info->stream = substream->stream; in snd_pcm_info() 705 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_sw_params() 778 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_status() 1036 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_pre_start() 1065 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_post_start() 1330 int stream, err = 0; in snd_pcm_suspend_all() local 1335 for (stream = 0; stream < 2; stream++) { in snd_pcm_suspend_all() 1336 for (substream = pcm->streams[stream].substream; in snd_pcm_suspend_all() 1370 substream->stream != SNDRV_PCM_STREAM_PLAYBACK)) in snd_pcm_do_resume() [all …]
|
/linux-4.4.14/sound/soc/au1x/ |
D | dma.c | 39 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 …]
|
D | dbdma2.c | 192 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.4.14/fs/squashfs/ |
D | decompressor_multi.c | 50 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 …]
|
D | decompressor_single.c | 25 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 …]
|
D | decompressor_multi_percpu.c | 25 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 …]
|
D | xz_wrapper.c | 97 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 …]
|
D | zlib_wrapper.c | 39 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 …]
|
D | lz4_wrapper.c | 57 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 …]
|
D | lzo_wrapper.c | 45 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 …]
|
D | decompressor.c | 138 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()
|
/linux-4.4.14/crypto/ |
D | zlib.c | 47 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 …]
|
D | deflate.c | 48 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 …]
|
D | chacha20_generic.c | 28 static void chacha20_block(u32 *state, void *stream) in chacha20_block() argument 30 u32 x[16], *out = stream; in chacha20_block() 87 u8 stream[CHACHA20_BLOCK_SIZE]; in chacha20_docrypt() local 93 chacha20_block(state, stream); in chacha20_docrypt() 94 crypto_xor(dst, stream, CHACHA20_BLOCK_SIZE); in chacha20_docrypt() 99 chacha20_block(state, stream); in chacha20_docrypt() 100 crypto_xor(dst, stream, bytes); in chacha20_docrypt()
|
/linux-4.4.14/sound/hda/ext/ |
D | hdac_ext_stream.c | 38 struct hdac_ext_stream *stream, in snd_hdac_ext_stream_init() argument 44 stream->pphc_addr = ebus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init() 47 stream->pplc_addr = ebus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init() 53 stream->spib_addr = ebus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init() 57 stream->fifo_addr = ebus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init() 62 stream->decoupled = false; in snd_hdac_ext_stream_init() 63 snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init() 82 struct hdac_ext_stream *stream = in snd_hdac_ext_stream_init_all() local 83 kzalloc(sizeof(*stream), GFP_KERNEL); in snd_hdac_ext_stream_init_all() 84 if (!stream) in snd_hdac_ext_stream_init_all() [all …]
|
/linux-4.4.14/sound/mips/ |
D | au1x00.c | 101 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.4.14/sound/soc/intel/atom/ |
D | sst-mfld-platform-compress.c | 55 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 …]
|
D | sst-mfld-platform-pcm.c | 103 static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream) in sst_media_digital_mute() argument 106 return sst_send_pipe_gains(dai, stream, mute); in sst_media_digital_mute() 110 void sst_set_stream_status(struct sst_runtime_stream *stream, in sst_set_stream_status() argument 114 spin_lock_irqsave(&stream->status_lock, flags); in sst_set_stream_status() 115 stream->stream_status = state; in sst_set_stream_status() 116 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_set_stream_status() 119 static inline int sst_get_stream_status(struct sst_runtime_stream *stream) in sst_get_stream_status() argument 124 spin_lock_irqsave(&stream->status_lock, flags); in sst_get_stream_status() 125 state = stream->stream_status; in sst_get_stream_status() 126 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_get_stream_status() [all …]
|
/linux-4.4.14/fs/logfs/ |
D | compr.c | 15 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.4.14/fs/cramfs/ |
D | uncompress.c | 26 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.4.14/sound/soc/ |
D | soc-pcm.c | 42 static bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int stream) in snd_soc_dai_stream_valid() argument 46 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_soc_dai_stream_valid() 65 void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_activate() argument 72 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_activate() 100 void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_deactivate() argument 107 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_deactivate() 342 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in soc_pcm_apply_msb() 383 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw() 401 substream->stream)) in soc_pcm_init_runtime_hw() 405 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw() [all …]
|
D | soc-compress.c | 75 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 …]
|
D | soc-generic-dmaengine-pcm.c | 48 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 51 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 124 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_set_runtime_hwparams() 159 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in dmaengine_pcm_set_runtime_hwparams() 199 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_open()
|
/linux-4.4.14/include/sound/ |
D | compress_driver.h | 111 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 …]
|
D | soc-dpcm.h | 111 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 …]
|
D | hdaudio_ext.h | 101 struct hdac_ext_stream *stream, int idx, 116 struct hdac_ext_stream *stream, u32 value); 118 struct hdac_ext_stream *stream); 123 int snd_hdac_ext_link_stream_setup(struct hdac_ext_stream *stream, int fmt); 138 int stream); 140 int stream);
|
D | hda_register.h | 240 snd_hdac_stream_get_pos_lpib(struct hdac_stream *stream) in snd_hdac_stream_get_pos_lpib() argument 242 return snd_hdac_stream_readl(stream, SD_LPIB); in snd_hdac_stream_get_pos_lpib() 246 snd_hdac_stream_get_pos_posbuf(struct hdac_stream *stream) in snd_hdac_stream_get_pos_posbuf() argument 248 return le32_to_cpu(*stream->posbuf); in snd_hdac_stream_get_pos_posbuf()
|
D | soc-dai.h | 175 int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream); 299 return (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in snd_soc_dai_get_dma_data() 307 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_soc_dai_set_dma_data()
|
D | pcm.h | 442 int stream; /* stream (direction) */ member 491 int stream; /* stream (direction) */ member 553 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count); 575 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file, 578 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, 656 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in snd_pcm_running() 1336 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_stream_str() 1354 int stream; /* PLAYBACK or CAPTURE */ member 1371 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream() 1387 int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
|
D | rawmidi.h | 93 int stream; /* direction */ member 157 void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
|
/linux-4.4.14/sound/soc/intel/baytrail/ |
D | sst-baytrail-ipc.c | 164 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 …]
|
D | sst-baytrail-ipc.h | 37 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 …]
|
D | sst-baytrail-pcm.c | 45 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.4.14/drivers/usb/host/ |
D | ehci-sched.c | 1027 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 …]
|
D | fotg210-hcd.c | 3400 usecs += q->itd->stream->usecs; in periodic_usecs() 3938 struct fotg210_iso_stream *stream; in iso_stream_alloc() local 3940 stream = kzalloc(sizeof(*stream), mem_flags); in iso_stream_alloc() 3941 if (likely(stream != NULL)) { in iso_stream_alloc() 3942 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc() 3943 INIT_LIST_HEAD(&stream->free_list); in iso_stream_alloc() 3944 stream->next_uframe = -1; in iso_stream_alloc() 3946 return stream; in iso_stream_alloc() 3950 struct fotg210_iso_stream *stream, struct usb_device *dev, in iso_stream_init() argument 3976 stream->buf0 = cpu_to_hc32(fotg210, (epnum << 8) | dev->devnum); in iso_stream_init() [all …]
|
/linux-4.4.14/sound/soc/intel/atom/sst/ |
D | sst_drv_interface.c | 53 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() 204 struct stream_info *stream; in sst_cdev_open() local 216 stream = &ctx->streams[str_id]; in sst_cdev_open() 217 stream->compr_cb = cb->compr_cb; in sst_cdev_open() 218 stream->compr_cb_param = cb->param; in sst_cdev_open() 219 stream->drain_notify = cb->drain_notify; in sst_cdev_open() 220 stream->drain_cb_param = cb->drain_cb_param; in sst_cdev_open() 232 struct stream_info *stream; in sst_cdev_close() local [all …]
|
D | sst_ipc.c | 251 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()
|
D | sst_pvt.c | 220 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()
|
D | sst.c | 282 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.4.14/sound/soc/intel/haswell/ |
D | sst-haswell-ipc.c | 247 u32 (*notify_position)(struct sst_hsw_stream *stream, void *data); 429 struct sst_hsw_stream *stream; in get_stream_by_id() local 431 list_for_each_entry(stream, &hsw->stream_list, node) { in get_stream_by_id() 432 if (stream->reply.stream_hw_id == stream_id) in get_stream_by_id() 433 return stream; in get_stream_by_id() 483 struct sst_hsw_stream *stream = container_of(work, in hsw_notification_work() local 485 struct sst_hsw_ipc_stream_glitch_position *glitch = &stream->glitch; in hsw_notification_work() 486 struct sst_hsw_ipc_stream_get_position *pos = &stream->rpos; in hsw_notification_work() 487 struct sst_hsw *hsw = stream->hsw; in hsw_notification_work() 490 reason = msg_get_notify_reason(stream->header); in hsw_notification_work() [all …]
|
D | sst-haswell-ipc.h | 412 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 …]
|
D | sst-haswell-pcm.c | 107 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.4.14/sound/usb/caiaq/ |
D | audio.c | 43 #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.4.14/drivers/media/pci/cx18/ |
D | cx18-dvb.c | 136 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 …]
|
D | cx18-dvb.h | 24 int cx18_dvb_register(struct cx18_stream *stream); 25 void cx18_dvb_unregister(struct cx18_stream *stream);
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_overlay.c | 55 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 …]
|
D | vmwgfx_resource.c | 55 struct vmw_stream stream; member 788 struct vmw_stream *stream; in vmw_stream_destroy() local 792 stream = container_of(res, struct vmw_stream, res); in vmw_stream_destroy() 794 ret = vmw_overlay_unref(dev_priv, stream->stream_id); in vmw_stream_destroy() 799 struct vmw_stream *stream, in vmw_stream_init() argument 802 struct vmw_resource *res = &stream->res; in vmw_stream_init() 810 kfree(stream); in vmw_stream_init() 812 res_free(&stream->res); in vmw_stream_init() 816 ret = vmw_overlay_claim(dev_priv, &stream->stream_id); in vmw_stream_init() 824 vmw_resource_activate(&stream->res, vmw_stream_destroy); in vmw_stream_init() [all …]
|
/linux-4.4.14/include/net/ |
D | iw_handler.h | 509 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.4.14/sound/firewire/ |
D | scs1x.c | 57 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.4.14/include/trace/events/ |
D | hswadsp.h | 154 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 …]
|
D | asoc.h | 192 TP_PROTO(int paths, int stream), 194 TP_ARGS(paths, stream), 198 __field( int, stream ) 203 __entry->stream = stream; 207 __entry->stream ? "capture" : "playback", __entry->paths)
|
/linux-4.4.14/sound/firewire/oxfw/ |
D | oxfw-stream.c | 104 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 err = amdtp_am824_set_parameters(stream, rate, pcm_channels, midi_ports, in start_stream() 164 amdtp_stream_get_max_payload(stream)); in start_stream() 168 err = amdtp_stream_start(stream, in start_stream() 177 if (!amdtp_stream_wait_callback(stream, CALLBACK_TIMEOUT)) { in start_stream() [all …]
|
D | oxfw.h | 111 struct amdtp_stream *stream); 113 struct amdtp_stream *stream, 116 struct amdtp_stream *stream); 118 struct amdtp_stream *stream); 120 struct amdtp_stream *stream);
|
D | oxfw-pcm.c | 126 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_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_params() 173 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in limit_to_current_params()
|
D | Makefile | 1 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-control.o oxfw-pcm.o \
|
/linux-4.4.14/fs/pstore/ |
D | platform.c | 75 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.4.14/sound/pci/pcxhr/ |
D | pcxhr.c | 505 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 …]
|
D | pcxhr_core.c | 1129 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.4.14/fs/isofs/ |
D | compress.c | 53 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.4.14/sound/soc/intel/skylake/ |
D | skl-pcm.c | 64 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); in get_bus_ctx() local 65 struct hdac_stream *hstream = hdac_stream(stream); in get_bus_ctx() 75 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); in skl_substream_alloc_pages() local 77 hdac_stream(stream)->bufsize = 0; in skl_substream_alloc_pages() 78 hdac_stream(stream)->period_bytes = 0; in skl_substream_alloc_pages() 79 hdac_stream(stream)->format_val = 0; in skl_substream_alloc_pages() 112 struct hdac_ext_stream *stream; in skl_pcm_open() local 122 stream = snd_hdac_ext_stream_assign(ebus, substream, in skl_pcm_open() 124 if (stream == NULL) in skl_pcm_open() 133 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in skl_pcm_open() [all …]
|
D | skl-topology.h | 219 int stream; member 290 struct skl_pipe_params *params, int stream); 294 struct snd_soc_dai *dai, int stream);
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
D | pvrusb2-dvb.c | 39 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 …]
|
D | pvrusb2-ioread.c | 34 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() 210 if (cp->stream) { in pvr2_ioread_setup() 215 pvr2_stream_kill(cp->stream); in pvr2_ioread_setup() 216 if (pvr2_stream_get_buffer_count(cp->stream)) { in pvr2_ioread_setup() 217 pvr2_stream_set_buffer_count(cp->stream,0); in pvr2_ioread_setup() [all …]
|
D | pvrusb2-io.c | 96 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 …]
|
D | pvrusb2-context.c | 125 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() 418 pvr2_ioread_setup(cp,sp->stream); in pvr2_channel_create_mpeg_stream()
|
D | pvrusb2-context.h | 36 struct pvr2_stream *stream; member 62 struct pvr2_context_stream *stream; member
|
D | pvrusb2-v4l2.c | 45 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.4.14/sound/pci/mixart/ |
D | mixart.c | 393 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 …]
|
D | mixart_core.c | 470 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.4.14/sound/soc/pxa/ |
D | mmp-pcm.c | 108 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 …]
|
D | mmp-sspa.c | 275 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()
|
D | pxa2xx-i2s.c | 174 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()
|
D | pxa2xx-ac97.c | 115 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_hifi_startup() 130 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_aux_startup() 143 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_mic_startup()
|
/linux-4.4.14/sound/usb/misc/ |
D | ua101.c | 221 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.4.14/sound/pci/au88x0/ |
D | au88x0_pcm.c | 182 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 …]
|
D | au88x0_core.c | 2119 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.4.14/sound/usb/ |
D | proc.c | 152 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 …]
|
D | stream.c | 61 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 …]
|
D | pcm.c | 83 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() 461 subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip, in set_sync_endpoint() 535 subs->data_endpoint = snd_usb_add_endpoint(subs->stream->chip, in set_format() 546 err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt); in set_format() 618 &subs->stream->substream[subs->direction ^ 1]; in configure_sync_endpoint() 621 !subs->stream) in configure_sync_endpoint() 740 ret = snd_usb_lock_shutdown(subs->stream->chip); in snd_usb_hw_params() [all …]
|
D | quirks.c | 145 int stream, err; in create_fixed_stream_quirk() local 168 stream = (fp->endpoint & USB_DIR_IN) in create_fixed_stream_quirk() 170 err = snd_usb_add_audio_stream(chip, stream, fp); in create_fixed_stream_quirk() 429 int stream, err; in create_uaxx_quirk() local 493 stream = (fp->endpoint & USB_DIR_IN) in create_uaxx_quirk() 495 err = snd_usb_add_audio_stream(chip, stream, fp); in create_uaxx_quirk() 1087 if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1) in set_format_emu_quirk() 1111 snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id); in set_format_emu_quirk() 1118 switch (subs->stream->chip->usb_id) { in snd_usb_set_format_quirk() 1172 if (is_marantz_denon_dac(subs->stream->chip->usb_id)) { in snd_usb_select_mode_quirk()
|
D | proc.h | 5 void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream);
|
D | format.h | 7 int stream);
|
D | stream.h | 8 int stream,
|
D | pcm.h | 7 void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
|
/linux-4.4.14/sound/firewire/fireworks/ |
D | fireworks_stream.c | 13 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_am824_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.4.14/sound/firewire/dice/ |
D | dice-stream.c | 87 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 109 if (stream == &dice->tx_stream) { in start_stream() 135 err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports, in start_stream() 144 amdtp_am824_set_pcm_position(stream, i, i * 2); in start_stream() 145 amdtp_am824_set_pcm_position(stream, i + pcm_chs, in start_stream() 151 amdtp_stream_get_max_payload(stream)); in start_stream() [all …]
|
D | dice-proc.c | 116 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()
|
D | dice-pcm.c | 27 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_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_info()
|
D | Makefile | 1 snd-dice-objs := dice-transaction.o dice-stream.o dice-proc.o dice-midi.o \
|
/linux-4.4.14/sound/soc/blackfin/ |
D | bf5xx-ac97-pcm.c | 61 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 …]
|
D | bf5xx-i2s-pcm.c | 99 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.4.14/sound/arm/ |
D | pxa2xx-pcm.c | 47 rtd->params = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in pxa2xx_pcm_open() 103 int stream = SNDRV_PCM_STREAM_PLAYBACK; in pxa2xx_pcm_new() local 104 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new() 105 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new() 110 int stream = SNDRV_PCM_STREAM_CAPTURE; in pxa2xx_pcm_new() local 111 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new() 112 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
|
D | pxa2xx-pcm-lib.c | 151 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument 153 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer() 172 int stream; in pxa2xx_pcm_free_dma_buffers() local 174 for (stream = 0; stream < 2; stream++) { in pxa2xx_pcm_free_dma_buffers() 175 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
|
/linux-4.4.14/Documentation/usb/ |
D | bulk-streams.txt | 17 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.4.14/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 475 static void uasp_cleanup_one_stream(struct f_uas *fu, struct uas_stream *stream) in uasp_cleanup_one_stream() argument 478 if (!stream->req_in) in uasp_cleanup_one_stream() 481 usb_ep_free_request(fu->ep_in, stream->req_in); in uasp_cleanup_one_stream() 482 usb_ep_free_request(fu->ep_out, stream->req_out); in uasp_cleanup_one_stream() 483 usb_ep_free_request(fu->ep_status, stream->req_status); in uasp_cleanup_one_stream() 485 stream->req_in = NULL; in uasp_cleanup_one_stream() 486 stream->req_out = NULL; in uasp_cleanup_one_stream() 487 stream->req_status = NULL; in uasp_cleanup_one_stream() 511 uasp_cleanup_one_stream(fu, &fu->stream[i]); in uasp_cleanup_old_alt() 522 struct uas_stream *stream = cmd->stream; in uasp_prepare_r_request() local [all …]
|
D | tcm_usb_gadget.h | 79 struct uas_stream *stream; member 123 struct uas_stream stream[UASP_SS_EP_COMP_NUM_STREAMS]; member
|
/linux-4.4.14/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 58 static inline void __set(FILE *stream, int value, char *err_msg); 60 static inline int get(FILE *stream); 61 static inline void set(FILE *stream, int value); 68 static inline void __set(FILE *stream, int value, char *err_msg) in __set() argument 70 rewind(stream); in __set() 71 if (fprintf(stream, "%d", value) < 0) in __set() 115 static inline int get(FILE *stream) in get() argument 118 rewind(stream); in get() 119 if (fscanf(stream, "%d", &value) != 1) in get() 124 static inline void set(FILE *stream, int value) in set() argument [all …]
|
D | mq_perf_tests.c | 151 static inline void __set(FILE *stream, int value, char *err_msg); 155 static inline int get(FILE *stream); 156 static inline void set(FILE *stream, int value); 157 static inline int try_set(FILE *stream, int value); 163 static inline void __set(FILE *stream, int value, char *err_msg) in __set() argument 165 rewind(stream); in __set() 166 if (fprintf(stream, "%d", value) < 0) in __set() 233 static inline int get(FILE *stream) in get() argument 236 rewind(stream); in get() 237 if (fscanf(stream, "%d", &value) != 1) in get() [all …]
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-inject.txt | 6 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.4.14/sound/soc/kirkwood/ |
D | kirkwood-dma.c | 150 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_open() 174 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_close() 215 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_prepare() 235 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_pointer() 256 int stream) in kirkwood_dma_preallocate_dma_buffer() argument 258 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in kirkwood_dma_preallocate_dma_buffer() 305 int stream; in kirkwood_dma_free_dma_buffers() local 307 for (stream = 0; stream < 2; stream++) { in kirkwood_dma_free_dma_buffers() 308 substream = pcm->streams[stream].substream; in kirkwood_dma_free_dma_buffers()
|
/linux-4.4.14/sound/soc/fsl/ |
D | mpc5200_dma.c | 94 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 …]
|
D | imx-pcm-fiq.c | 61 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()
|
D | mpc5200_dma.h | 27 struct snd_pcm_substream *stream; member 79 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
|
D | fsl_asrc_dma.c | 63 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()
|
D | fsl_sai.c | 382 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_sai_hw_params() 395 if (!(sai->mclk_streams & BIT(substream->stream))) { in fsl_sai_hw_params() 400 sai->mclk_streams |= BIT(substream->stream); in fsl_sai_hw_params() 433 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_sai_hw_free() 436 sai->mclk_streams & BIT(substream->stream)) { in fsl_sai_hw_free() 438 sai->mclk_streams &= ~BIT(substream->stream); in fsl_sai_hw_free() 449 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_sai_trigger() 539 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_sai_startup() 562 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_sai_shutdown()
|
D | fsl_dma.c | 172 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()
|
D | mpc5200_psc_ac97.c | 159 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()
|
D | fsl_ssi.c | 664 baudclk_is_used = ssi_private->baudclk_streams & ~(BIT(substream->stream)); in fsl_ssi_set_bclk() 725 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || synchronous) in fsl_ssi_set_bclk() 793 if (!(ssi_private->baudclk_streams & BIT(substream->stream))) { in fsl_ssi_hw_params() 798 ssi_private->baudclk_streams |= BIT(substream->stream); in fsl_ssi_hw_params() 830 if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK) || in fsl_ssi_hw_params() 849 ssi_private->baudclk_streams & BIT(substream->stream)) { in fsl_ssi_hw_free() 851 ssi_private->baudclk_streams &= ~BIT(substream->stream); in fsl_ssi_hw_free() 1095 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger() 1104 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger() 1115 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_ssi_trigger()
|
/linux-4.4.14/Documentation/video4linux/cx2341x/ |
D | fw-encoder-api.txt | 20 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 …]
|
D | README.vbi | 6 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
|
D | fw-decoder-api.txt | 49 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.4.14/sound/soc/omap/ |
D | omap-mcpdm.c | 296 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 …]
|
D | omap-pcm.c | 177 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.4.14/sound/soc/sti/ |
D | sti_uniperif.c | 146 struct snd_soc_pcm_stream *stream; in sti_uniperiph_cpu_dai_of() local 187 stream = &dai->playback; in sti_uniperiph_cpu_dai_of() 190 stream = &dai->capture; in sti_uniperiph_cpu_dai_of() 194 stream->stream_name = dai->name; in sti_uniperiph_cpu_dai_of() 195 stream->channels_min = uni->hw->channels_min; in sti_uniperiph_cpu_dai_of() 196 stream->channels_max = uni->hw->channels_max; in sti_uniperiph_cpu_dai_of() 197 stream->rates = uni->hw->rates; in sti_uniperiph_cpu_dai_of() 198 stream->formats = uni->hw->formats; in sti_uniperiph_cpu_dai_of()
|
/linux-4.4.14/tools/perf/util/ |
D | data-convert-bt.c | 45 struct bt_ctf_stream *stream; member 53 struct ctf_stream **stream; member 437 err = bt_ctf_stream_flush(cs->stream); in ctf_stream__flush() 455 struct bt_ctf_stream *stream = NULL; in ctf_stream__create() local 464 stream = bt_ctf_writer_create_stream(cw->writer, cw->stream_class); in ctf_stream__create() 465 if (!stream) { in ctf_stream__create() 470 pkt_ctx = bt_ctf_stream_get_packet_context(stream); in ctf_stream__create() 492 cs->stream = stream; in ctf_stream__create() 498 if (stream) in ctf_stream__create() 499 bt_ctf_stream_put(stream); in ctf_stream__create() [all …]
|
/linux-4.4.14/fs/nfs/filelayout/ |
D | filelayoutdev.c | 73 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.4.14/Documentation/networking/ |
D | tcp-thin.txt | 4 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.4.14/Documentation/devicetree/bindings/sound/ |
D | renesas,fsi.txt | 14 - fsia,stream-mode-support : FSI supports 16bit stream mode. 18 - fsib,stream-mode-support : same as fsia 29 fsia,stream-mode-support;
|
/linux-4.4.14/drivers/block/zram/ |
D | zcomp.c | 102 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.4.14/sound/pci/ac97/ |
D | ac97_pcm.c | 168 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.4.14/sound/firewire/tascam/ |
D | tascam-midi.c | 86 struct snd_rawmidi_str *stream; in snd_tscm_create_midi_devices() local 104 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_tscm_create_midi_devices() 107 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices() 120 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_tscm_create_midi_devices() 123 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices()
|
D | tascam-pcm.c | 41 struct amdtp_stream *stream; in pcm_init_hw_params() local 46 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params() 48 stream = &tscm->tx_stream; in pcm_init_hw_params() 53 stream = &tscm->rx_stream; in pcm_init_hw_params() 65 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); in pcm_init_hw_params()
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | videobuf-core.c | 180 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() 612 list_add_tail(&buf->stream, &q->stream); in videobuf_qbuf() 644 if (list_empty(&q->stream)) { in stream_next_buffer_check_queue() 659 !list_empty(&q->stream) || !q->streaming); in stream_next_buffer_check_queue() 686 buf = list_entry(q->stream.next, struct videobuf_buffer, stream); in stream_next_buffer() 727 list_del(&buf->stream); in videobuf_dqbuf() 751 list_for_each_entry(buf, &q->stream, stream) in videobuf_streamon() 987 list_add_tail(&q->bufs[i]->stream, &q->stream); in __videobuf_read_start() [all …]
|
D | videobuf-dvb.c | 56 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.4.14/fs/hostfs/ |
D | hostfs.h | 69 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);
|
D | hostfs_user.c | 100 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.4.14/sound/drivers/ |
D | aloop.c | 153 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.4.14/drivers/block/rsxx/ |
D | cregs.c | 44 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 …]
|
D | rsxx.h | 36 __u32 stream; member
|
/linux-4.4.14/drivers/media/usb/gspca/ |
D | t613.c | 103 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.4.14/sound/core/oss/ |
D | pcm_plugin.c | 57 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 …]
|
D | pcm_oss.c | 961 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.4.14/arch/powerpc/kernel/ |
D | nvram_64.c | 127 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.4.14/sound/soc/dwc/ |
D | designware_i2s.c | 115 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() 169 i2s_clear_irqs(dev, substream->stream); in i2s_stop() 170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_stop() 199 (substream->stream == SNDRV_PCM_STREAM_CAPTURE)) in dw_i2s_startup() 203 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)) in dw_i2s_startup() 206 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in dw_i2s_startup() [all …]
|
/linux-4.4.14/sound/pci/hda/ |
D | patch_si3054.c | 159 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()
|
D | hda_controller.c | 64 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream() 81 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in azx_adjust_codec_delay() 303 int stream = substream->stream; in azx_get_position() local 306 if (chip->get_position[stream]) in azx_get_position() 307 pos = chip->get_position[stream](chip, azx_dev); in azx_get_position() 318 if (chip->get_delay[stream]) in azx_get_position() 319 delay += chip->get_delay[stream](chip, azx_dev, pos); in azx_get_position() 471 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in azx_pcm_open() 543 cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, in snd_hda_attach_pcm_stream() 544 cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, in snd_hda_attach_pcm_stream() [all …]
|
/linux-4.4.14/drivers/uwb/ |
D | rsv.c | 152 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() 723 int stream; in uwb_rsv_match() local 725 stream = uwb_ie_drp_stream_index(drp_ie); in uwb_rsv_match() [all …]
|
/linux-4.4.14/sound/soc/txx9/ |
D | txx9aclc.c | 72 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.4.14/sound/soc/davinci/ |
D | davinci-mcasp.c | 240 static void davinci_mcasp_start(struct davinci_mcasp *mcasp, int stream) in davinci_mcasp_start() argument 244 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_start() 298 static void davinci_mcasp_stop(struct davinci_mcasp *mcasp, int stream) in davinci_mcasp_stop() argument 302 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_stop() 614 static int davinci_mcasp_ch_constraint(struct davinci_mcasp *mcasp, int stream, in davinci_mcasp_ch_constraint() argument 617 struct snd_pcm_hw_constraint_list *cl = &mcasp->chconstr[stream]; in davinci_mcasp_ch_constraint() 622 if (mcasp->tdm_mask[stream]) in davinci_mcasp_ch_constraint() 623 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint() 746 static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream, in mcasp_common_hw_param() argument 749 struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream]; in mcasp_common_hw_param() [all …]
|
D | davinci-i2s.c | 188 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.4.14/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 96 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.4.14/sound/soc/sh/ |
D | dma-sh7760.c | 124 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()
|
D | siu_pcm.c | 228 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.4.14/sound/soc/atmel/ |
D | atmel-pcm-pdc.c | 51 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.4.14/drivers/usb/wusbcore/ |
D | reservation.c | 31 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.4.14/Documentation/sound/alsa/ |
D | Procfile.txt | 66 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
|
D | Channel-Mapping-API.txt | 10 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
|
D | HD-Audio-Controls.txt | 38 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.4.14/sound/pci/lx6464es/ |
D | lx6464es.c | 111 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 = NULL; in lx_pcm_hw_free() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_main.c | 655 p_hwfn->stream->next_in = input_buf; in qed_unzip_data() 656 p_hwfn->stream->avail_in = input_len; in qed_unzip_data() 657 p_hwfn->stream->next_out = unzip_buf; in qed_unzip_data() 658 p_hwfn->stream->avail_out = max_size; in qed_unzip_data() 660 rc = zlib_inflateInit2(p_hwfn->stream, MAX_WBITS); in qed_unzip_data() 668 rc = zlib_inflate(p_hwfn->stream, Z_FINISH); in qed_unzip_data() 669 zlib_inflateEnd(p_hwfn->stream); in qed_unzip_data() 673 p_hwfn->stream->msg, rc); in qed_unzip_data() 677 return p_hwfn->stream->total_out / 4; in qed_unzip_data() 688 p_hwfn->stream = kzalloc(sizeof(*p_hwfn->stream), GFP_KERNEL); in qed_alloc_stream_mem() [all …]
|
/linux-4.4.14/drivers/net/wireless/ |
D | mwl8k.c | 1777 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.4.14/sound/usb/line6/ |
D | pcm.c | 239 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()
|
D | pcm.h | 42 #define get_substream(line6pcm, stream) \ argument 43 (line6pcm->pcm->streams[stream].substream)
|
/linux-4.4.14/Documentation/sound/alsa/soc/ |
D | dapm.txt | 15 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.4.14/Documentation/video4linux/ |
D | README.ivtv | 31 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.4.14/sound/usb/usx2y/ |
D | usx2yhwdeppcm.c | 364 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.4.14/arch/alpha/kernel/ |
D | err_ev6.c | 100 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.4.14/drivers/media/usb/as102/ |
D | as102_usb_drv.c | 247 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.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | trx.c | 378 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.4.14/sound/soc/nuc900/ |
D | nuc900-pcm.c | 54 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.4.14/scripts/ |
D | checkkconfigsymbols.py | 268 with open(sfile, "r") as stream: 269 lines = stream.readlines() 293 with open(kfile, "r") as stream: 294 lines = stream.readlines()
|
/linux-4.4.14/sound/soc/spear/ |
D | spdif_out.c | 66 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()
|
D | spdif_in.c | 71 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.4.14/drivers/staging/gdm72xx/ |
D | gdm_qos.c | 142 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.4.14/sound/soc/codecs/ |
D | adau17x1.c | 162 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_put() local 172 adau->dsp_bypass[stream] = false; in adau17x1_dsp_mux_enum_put() 175 val = (adau->tdm_slot[stream] * 2) + 1; in adau17x1_dsp_mux_enum_put() 176 adau->dsp_bypass[stream] = true; in adau17x1_dsp_mux_enum_put() 180 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_put() 205 unsigned int stream = e->shift_l; in adau17x1_dsp_mux_enum_get() local 209 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_get()
|
D | wl1273.c | 316 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in wl1273_startup() 322 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in wl1273_startup() 367 substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in wl1273_hw_params() 373 substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in wl1273_hw_params()
|
/linux-4.4.14/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 41 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()
|
/linux-4.4.14/Documentation/devicetree/bindings/hsi/ |
D | client-devices.txt | 9 - hsi-rx-mode: Receiver Bit transmission mode ("stream" or "frame") 10 - hsi-tx-mode: Transmitter Bit transmission mode ("stream" or "frame")
|
/linux-4.4.14/drivers/net/can/softing/ |
D | softing_main.c | 483 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.4.14/sound/soc/ux500/ |
D | ux500_pcm.c | 76 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.4.14/Documentation/DocBook/ |
D | alsa-driver-api.xml.db | 29 API-snd-pcm-new-stream 57 API-snd-pcm-stream-lock 58 API-snd-pcm-stream-unlock 59 API-snd-pcm-stream-lock-irq 60 API-snd-pcm-stream-unlock-irq 61 API-snd-pcm-stream-unlock-irqrestore 68 API-snd-pcm-stream-linked 69 API-snd-pcm-stream-lock-irqsave 107 API-snd-pcm-stream-str 217 API-struct-snd-compr-stream
|
/linux-4.4.14/net/sctp/ |
D | ulpqueue.c | 763 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()
|
/linux-4.4.14/sound/ppc/ |
D | pmac.c | 118 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.4.14/Documentation/devicetree/bindings/dma/xilinx/ |
D | xilinx_dma.txt | 1 Xilinx AXI DMA engine, it does transfers between memory and AXI4 stream 22 - xlnx,datawidth: Should contain the stream data width, take values
|