Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/Linux-v4.19/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c16 int usb_urb_reconfig(struct usb_data_stream *stream,
21 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local
26 dev_dbg_ratelimited(&stream->udev->dev, in usb_urb_complete()
42 dev_dbg_ratelimited(&stream->udev->dev, in usb_urb_complete()
53 dev_dbg(&stream->udev->dev, in usb_urb_complete()
58 stream->complete(stream, in usb_urb_complete()
68 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
71 dev_err(&stream->udev->dev, in usb_urb_complete()
79 int usb_urb_killv2(struct usb_data_stream *stream) in usb_urb_killv2() argument
82 for (i = 0; i < stream->urbs_submitted; i++) { in usb_urb_killv2()
[all …]
/Linux-v4.19/drivers/media/usb/dvb-usb/
Dusb-urb.c17 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local
48stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); in usb_urb_complete()
57 stream->complete(stream, b, urb->actual_length); in usb_urb_complete()
66 int usb_urb_kill(struct usb_data_stream *stream) in usb_urb_kill() argument
69 for (i = 0; i < stream->urbs_submitted; i++) { in usb_urb_kill()
73 usb_kill_urb(stream->urb_list[i]); in usb_urb_kill()
75 stream->urbs_submitted = 0; in usb_urb_kill()
79 int usb_urb_submit(struct usb_data_stream *stream) in usb_urb_submit() argument
82 for (i = 0; i < stream->urbs_initialized; i++) { in usb_urb_submit()
84 if ((ret = usb_submit_urb(stream->urb_list[i],GFP_ATOMIC))) { in usb_urb_submit()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_stream.c38 void update_stream_signal(struct dc_stream_state *stream) in update_stream_signal() argument
41 struct dc_sink *dc_sink = stream->sink; in update_stream_signal()
44 stream->signal = stream->sink->link->connector_signal; in update_stream_signal()
46 stream->signal = dc_sink->sink_signal; in update_stream_signal()
48 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
49 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
50 stream->timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal()
51 stream->sink->sink_signal != SIGNAL_TYPE_DVI_SINGLE_LINK) in update_stream_signal()
52 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in update_stream_signal()
54 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in update_stream_signal()
[all …]
/Linux-v4.19/sound/soc/au1x/
Ddma.c41 struct audio_stream stream[2]; /* playback & capture */ member
44 static void au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
49 stream->period_size = 0; in au1000_release_dma_link()
50 stream->periods = 0; in au1000_release_dma_link()
51 pointer = stream->buffer; in au1000_release_dma_link()
58 } while (pointer != stream->buffer); in au1000_release_dma_link()
59 stream->buffer = NULL; in au1000_release_dma_link()
62 static int au1000_setup_dma_link(struct audio_stream *stream, in au1000_setup_dma_link() argument
66 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
74 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
[all …]
/Linux-v4.19/drivers/media/usb/uvc/
Duvc_video.c129 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument
136 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl()
137 if (stream->format[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl()
138 format = &stream->format[i]; in uvc_fixup_video_ctrl()
158 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl()
171 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl()
172 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl()
189 if (stream->dev->udev->speed == USB_SPEED_HIGH) in uvc_fixup_video_ctrl()
206 static size_t uvc_video_ctrl_size(struct uvc_streaming *stream) in uvc_video_ctrl_size() argument
212 if (stream->dev->uvc_version < 0x0110) in uvc_video_ctrl_size()
[all …]
Duvc_v4l2.c155 static int uvc_v4l2_try_format(struct uvc_streaming *stream, in uvc_v4l2_try_format() argument
168 if (fmt->type != stream->type) in uvc_v4l2_try_format()
180 for (i = 0; i < stream->nformats; ++i) { in uvc_v4l2_try_format()
181 format = &stream->format[i]; in uvc_v4l2_try_format()
186 if (i == stream->nformats) { in uvc_v4l2_try_format()
187 format = stream->def_format; in uvc_v4l2_try_format()
244 mutex_lock(&stream->mutex); in uvc_v4l2_try_format()
245 if (stream->dev->quirks & UVC_QUIRK_PROBE_EXTRAFIELDS) in uvc_v4l2_try_format()
247 stream->ctrl.dwMaxVideoFrameSize; in uvc_v4l2_try_format()
250 ret = uvc_probe_video(stream, probe); in uvc_v4l2_try_format()
[all …]
/Linux-v4.19/fs/squashfs/
Ddecompressor_multi.c50 void *stream; member
56 struct squashfs_stream *stream) in put_decomp_stream() argument
58 mutex_lock(&stream->mutex); in put_decomp_stream()
59 list_add(&decomp_strm->list, &stream->strm_list); in put_decomp_stream()
60 mutex_unlock(&stream->mutex); in put_decomp_stream()
61 wake_up(&stream->wait); in put_decomp_stream()
67 struct squashfs_stream *stream; in squashfs_decompressor_create() local
71 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
72 if (!stream) in squashfs_decompressor_create()
75 stream->comp_opts = comp_opts; in squashfs_decompressor_create()
[all …]
Ddecompressor_single.c25 void *stream; member
32 struct squashfs_stream *stream; in squashfs_decompressor_create() local
35 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
36 if (stream == NULL) in squashfs_decompressor_create()
39 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
40 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
41 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
46 mutex_init(&stream->mutex); in squashfs_decompressor_create()
47 return stream; in squashfs_decompressor_create()
50 kfree(stream); in squashfs_decompressor_create()
[all …]
Dxz_wrapper.c97 struct squashfs_xz *stream; in squashfs_xz_init() local
100 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_xz_init()
101 if (stream == NULL) { in squashfs_xz_init()
106 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init()
107 if (stream->state == NULL) { in squashfs_xz_init()
108 kfree(stream); in squashfs_xz_init()
113 return stream; in squashfs_xz_init()
123 struct squashfs_xz *stream = strm; in squashfs_xz_free() local
125 if (stream) { in squashfs_xz_free()
126 xz_dec_end(stream->state); in squashfs_xz_free()
[all …]
Ddecompressor_multi_percpu.c25 void *stream; member
31 struct squashfs_stream *stream; in squashfs_decompressor_create() local
40 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
41 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
42 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
43 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
53 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
54 if (!IS_ERR_OR_NULL(stream->stream)) in squashfs_decompressor_create()
55 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
64 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompressor_destroy()
[all …]
Dzlib_wrapper.c39 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL); in zlib_init() local
40 if (stream == NULL) in zlib_init()
42 stream->workspace = vmalloc(zlib_inflate_workspacesize()); in zlib_init()
43 if (stream->workspace == NULL) in zlib_init()
46 return stream; in zlib_init()
50 kfree(stream); in zlib_init()
57 z_stream *stream = strm; in zlib_free() local
59 if (stream) in zlib_free()
60 vfree(stream->workspace); in zlib_free()
61 kfree(stream); in zlib_free()
[all …]
/Linux-v4.19/sound/core/
Dcompress_offload.c67 struct snd_compr_stream stream; member
129 INIT_DELAYED_WORK(&data->stream.error_work, error_delayed_work); in snd_compr_open()
131 data->stream.ops = compr->ops; in snd_compr_open()
132 data->stream.direction = dirn; in snd_compr_open()
133 data->stream.private_data = compr->private_data; in snd_compr_open()
134 data->stream.device = compr; in snd_compr_open()
143 data->stream.runtime = runtime; in snd_compr_open()
146 ret = compr->ops->open(&data->stream); in snd_compr_open()
159 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free()
161 cancel_delayed_work_sync(&data->stream.error_work); in snd_compr_free()
[all …]
/Linux-v4.19/sound/hda/ext/
Dhdac_ext_stream.c38 struct hdac_ext_stream *stream, in snd_hdac_ext_stream_init() argument
42 stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init()
45 stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init()
51 stream->spib_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
55 stream->fifo_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
61 stream->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE + in snd_hdac_ext_stream_init()
64 stream->decoupled = false; in snd_hdac_ext_stream_init()
65 snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init()
84 struct hdac_ext_stream *stream = in snd_hdac_ext_stream_init_all() local
85 kzalloc(sizeof(*stream), GFP_KERNEL); in snd_hdac_ext_stream_init_all()
[all …]
/Linux-v4.19/net/sctp/
Dstream_sched_rr.c40 static void sctp_sched_rr_unsched_all(struct sctp_stream *stream);
42 static void sctp_sched_rr_next_stream(struct sctp_stream *stream) in sctp_sched_rr_next_stream() argument
46 pos = stream->rr_next->rr_list.next; in sctp_sched_rr_next_stream()
47 if (pos == &stream->rr_list) in sctp_sched_rr_next_stream()
49 stream->rr_next = list_entry(pos, struct sctp_stream_out_ext, rr_list); in sctp_sched_rr_next_stream()
52 static void sctp_sched_rr_unsched(struct sctp_stream *stream, in sctp_sched_rr_unsched() argument
55 if (stream->rr_next == soute) in sctp_sched_rr_unsched()
57 sctp_sched_rr_next_stream(stream); in sctp_sched_rr_unsched()
62 if (list_empty(&stream->rr_list)) in sctp_sched_rr_unsched()
63 stream->rr_next = NULL; in sctp_sched_rr_unsched()
[all …]
Dstream.c91 static void sctp_stream_outq_migrate(struct sctp_stream *stream, in sctp_stream_outq_migrate() argument
99 asoc = container_of(stream, struct sctp_association, stream); in sctp_stream_outq_migrate()
129 SCTP_SO(new, i)->ext = SCTP_SO(stream, i)->ext; in sctp_stream_outq_migrate()
130 SCTP_SO(stream, i)->ext = NULL; in sctp_stream_outq_migrate()
134 for (i = outcnt; i < stream->outcnt; i++) in sctp_stream_outq_migrate()
135 kfree(SCTP_SO(stream, i)->ext); in sctp_stream_outq_migrate()
138 static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt, in sctp_stream_alloc_out() argument
148 if (stream->out) { in sctp_stream_alloc_out()
149 fa_copy(out, stream->out, 0, min(outcnt, stream->outcnt)); in sctp_stream_alloc_out()
150 fa_free(stream->out); in sctp_stream_alloc_out()
[all …]
Dstream_sched_prio.c41 static void sctp_sched_prio_unsched_all(struct sctp_stream *stream);
44 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument
61 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument
69 list_for_each_entry(p, &stream->prio_list, prio_sched) { in sctp_sched_prio_get_head()
77 for (i = 0; i < stream->outcnt; i++) { in sctp_sched_prio_get_head()
78 if (!SCTP_SO(stream, i)->ext) in sctp_sched_prio_get_head()
81 p = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_get_head()
92 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head()
132 static void sctp_sched_prio_sched(struct sctp_stream *stream, in sctp_sched_prio_sched() argument
155 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched()
[all …]
Dstream_sched.c40 static int sctp_sched_fcfs_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_set() argument
46 static int sctp_sched_fcfs_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_get() argument
53 static int sctp_sched_fcfs_init(struct sctp_stream *stream) in sctp_sched_fcfs_init() argument
58 static int sctp_sched_fcfs_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_init_sid() argument
64 static void sctp_sched_fcfs_free(struct sctp_stream *stream) in sctp_sched_fcfs_free() argument
75 struct sctp_stream *stream = &q->asoc->stream; in sctp_sched_fcfs_dequeue() local
82 if (stream->out_curr) { in sctp_sched_fcfs_dequeue()
83 ch = list_entry(stream->out_curr->ext->outq.next, in sctp_sched_fcfs_dequeue()
101 static void sctp_sched_fcfs_sched_all(struct sctp_stream *stream) in sctp_sched_fcfs_sched_all() argument
105 static void sctp_sched_fcfs_unsched_all(struct sctp_stream *stream) in sctp_sched_fcfs_unsched_all() argument
[all …]
/Linux-v4.19/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c55 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
57 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
58 if (!stream) in sst_platform_compr_open()
61 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
69 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
70 stream->id = 0; in sst_platform_compr_open()
75 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
76 runtime->private_data = stream; in sst_platform_compr_open()
79 kfree(stream); in sst_platform_compr_open()
85 struct sst_runtime_stream *stream; in sst_platform_compr_free() local
[all …]
/Linux-v4.19/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_parse.c33 static int read_byte(struct mtk_jpeg_stream *stream) in read_byte() argument
35 if (stream->curr >= stream->size) in read_byte()
37 return stream->addr[stream->curr++]; in read_byte()
40 static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word) in read_word_be() argument
45 byte = read_byte(stream); in read_word_be()
49 byte = read_byte(stream); in read_word_be()
57 static void read_skip(struct mtk_jpeg_stream *stream, long len) in read_skip() argument
62 read_byte(stream); in read_skip()
69 struct mtk_jpeg_stream stream; in mtk_jpeg_do_parse() local
71 stream.addr = src_addr_va; in mtk_jpeg_do_parse()
[all …]
/Linux-v4.19/drivers/slimbus/
Dstream.c123 static int slim_connect_port_channel(struct slim_stream_runtime *stream, in slim_connect_port_channel() argument
126 struct slim_device *sdev = stream->dev; in slim_connect_port_channel()
130 DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); in slim_connect_port_channel()
143 static int slim_disconnect_port(struct slim_stream_runtime *stream, in slim_disconnect_port() argument
146 struct slim_device *sdev = stream->dev; in slim_disconnect_port()
150 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_disconnect_port()
159 static int slim_deactivate_remove_channel(struct slim_stream_runtime *stream, in slim_deactivate_remove_channel() argument
162 struct slim_device *sdev = stream->dev; in slim_deactivate_remove_channel()
166 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_deactivate_remove_channel()
263 static int slim_define_channel_content(struct slim_stream_runtime *stream, in slim_define_channel_content() argument
[all …]
/Linux-v4.19/fs/cramfs/
Duncompress.c27 static z_stream stream; variable
35 stream.next_in = src; in cramfs_uncompress_block()
36 stream.avail_in = srclen; in cramfs_uncompress_block()
38 stream.next_out = dst; in cramfs_uncompress_block()
39 stream.avail_out = dstlen; in cramfs_uncompress_block()
41 err = zlib_inflateReset(&stream); in cramfs_uncompress_block()
44 zlib_inflateEnd(&stream); in cramfs_uncompress_block()
45 zlib_inflateInit(&stream); in cramfs_uncompress_block()
48 err = zlib_inflate(&stream, Z_FINISH); in cramfs_uncompress_block()
51 return stream.total_out; in cramfs_uncompress_block()
[all …]
/Linux-v4.19/sound/soc/
Dsoc-pcm.c36 static bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int stream) in snd_soc_dai_stream_valid() argument
40 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_soc_dai_stream_valid()
59 void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_activate() argument
66 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_activate()
94 void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream) in snd_soc_runtime_deactivate() argument
101 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_soc_runtime_deactivate()
344 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in soc_pcm_apply_msb()
385 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw()
403 substream->stream)) in soc_pcm_init_runtime_hw()
407 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in soc_pcm_init_runtime_hw()
[all …]
/Linux-v4.19/include/sound/
Dcompress_driver.h98 int (*open)(struct snd_compr_stream *stream);
99 int (*free)(struct snd_compr_stream *stream);
100 int (*set_params)(struct snd_compr_stream *stream,
102 int (*get_params)(struct snd_compr_stream *stream,
104 int (*set_metadata)(struct snd_compr_stream *stream,
106 int (*get_metadata)(struct snd_compr_stream *stream,
108 int (*trigger)(struct snd_compr_stream *stream, int cmd);
109 int (*pointer)(struct snd_compr_stream *stream,
111 int (*copy)(struct snd_compr_stream *stream, char __user *buf,
113 int (*mmap)(struct snd_compr_stream *stream,
[all …]
/Linux-v4.19/sound/soc/intel/baytrail/
Dsst-baytrail-ipc.c163 u32 (*notify_position)(struct sst_byt_stream *stream, void *data);
209 struct sst_byt_stream *stream; in sst_byt_get_stream() local
211 list_for_each_entry(stream, &byt->stream_list, node) { in sst_byt_get_stream()
212 if (stream->str_id == stream_id) in sst_byt_get_stream()
213 return stream; in sst_byt_get_stream()
221 struct sst_byt_stream *stream; in sst_byt_stream_update() local
226 stream = sst_byt_get_stream(byt, stream_id); in sst_byt_stream_update()
227 if (stream == NULL) in sst_byt_stream_update()
234 stream->running = false; in sst_byt_stream_update()
238 stream->running = true; in sst_byt_stream_update()
[all …]
/Linux-v4.19/sound/xen/
Dxen_snd_front_alsa.c210 static void stream_clear(struct xen_snd_front_pcm_stream_info *stream) in stream_clear() argument
212 stream->is_open = false; in stream_clear()
213 stream->be_cur_frame = 0; in stream_clear()
214 stream->out_frames = 0; in stream_clear()
215 atomic_set(&stream->hw_ptr, 0); in stream_clear()
216 xen_snd_front_evtchnl_pair_clear(stream->evt_pair); in stream_clear()
217 xen_snd_front_shbuf_clear(&stream->sh_buf); in stream_clear()
220 static void stream_free(struct xen_snd_front_pcm_stream_info *stream) in stream_free() argument
222 xen_snd_front_shbuf_free(&stream->sh_buf); in stream_free()
223 stream_clear(stream); in stream_free()
[all …]

12345678910>>...33