Home
last modified time | relevance | path

Searched full:stream (Results 1 – 25 of 2613) sorted by relevance

12345678910>>...105

/linux/drivers/media/usb/dvb-usb-v2/
H A 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/drivers/media/usb/dvb-usb/
H A 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/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c46 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal() argument
49 stream->signal = stream->link->connector_signal; in update_stream_signal()
51 stream->signal = sink->sink_signal; in update_stream_signal()
53 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
54 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
55 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal()
57 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in update_stream_signal()
59 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in update_stream_signal()
63 bool dc_stream_construct(struct dc_stream_state *stream, in dc_stream_construct() argument
68 stream->sink = dc_sink_data; in dc_stream_construct()
[all …]
/linux/sound/core/
H A Dcompress_offload.c52 struct snd_compr_stream stream; member
58 * a note on stream states used:
60 * SNDRV_PCM_STATE_OPEN: When stream has been opened.
61 * SNDRV_PCM_STATE_SETUP: When stream has been initialized. This is done by
64 * SNDRV_PCM_STATE_PREPARED: When a stream has been written to (for
65 * playback only). User after setting up stream writes the data buffer
66 * before starting the stream.
67 * SNDRV_PCM_STATE_RUNNING: When stream has been started and is
69 * SNDRV_PCM_STATE_DRAINING: When stream is draining current data. This is done
71 * SNDRV_PCM_STATE_PAUSED: When stream i
165 snd_compr_update_tstamp(struct snd_compr_stream * stream,struct snd_compr_tstamp * tstamp) snd_compr_update_tstamp() argument
180 snd_compr_calc_avail(struct snd_compr_stream * stream,struct snd_compr_avail * avail) snd_compr_calc_avail() argument
216 snd_compr_get_avail(struct snd_compr_stream * stream) snd_compr_get_avail() argument
224 snd_compr_ioctl_avail(struct snd_compr_stream * stream,unsigned long arg) snd_compr_ioctl_avail() argument
247 snd_compr_write_data(struct snd_compr_stream * stream,const char __user * buf,size_t count) snd_compr_write_data() argument
282 struct snd_compr_stream *stream; snd_compr_write() local
331 struct snd_compr_stream *stream; snd_compr_read() local
376 snd_compr_get_poll(struct snd_compr_stream * stream) snd_compr_get_poll() argument
387 struct snd_compr_stream *stream; snd_compr_poll() local
433 snd_compr_get_caps(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_caps() argument
453 snd_compr_get_codec_caps(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_codec_caps() argument
474 snd_compr_malloc_pages(struct snd_compr_stream * stream,size_t size) snd_compr_malloc_pages() argument
497 snd_compr_free_pages(struct snd_compr_stream * stream) snd_compr_free_pages() argument
518 snd_compr_allocate_buffer(struct snd_compr_stream * stream,struct snd_compr_params * params) snd_compr_allocate_buffer() argument
572 snd_compr_set_params(struct snd_compr_stream * stream,unsigned long arg) snd_compr_set_params() argument
612 snd_compr_get_params(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_params() argument
632 snd_compr_get_metadata(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_metadata() argument
654 snd_compr_set_metadata(struct snd_compr_stream * stream,unsigned long arg) snd_compr_set_metadata() argument
675 snd_compr_tstamp(struct snd_compr_stream * stream,unsigned long arg) snd_compr_tstamp() argument
687 snd_compr_pause(struct snd_compr_stream * stream) snd_compr_pause() argument
710 snd_compr_resume(struct snd_compr_stream * stream) snd_compr_resume() argument
733 snd_compr_start(struct snd_compr_stream * stream) snd_compr_start() argument
754 snd_compr_stop(struct snd_compr_stream * stream) snd_compr_stop() argument
782 struct snd_compr_stream *stream; error_delayed_work() local
803 snd_compr_stop_error(struct snd_compr_stream * stream,snd_pcm_state_t state) snd_compr_stop_error() argument
819 snd_compress_wait_for_drain(struct snd_compr_stream * stream) snd_compress_wait_for_drain() argument
854 snd_compr_drain(struct snd_compr_stream * stream) snd_compr_drain() argument
880 snd_compr_next_track(struct snd_compr_stream * stream) snd_compr_next_track() argument
906 snd_compr_partial_drain(struct snd_compr_stream * stream) snd_compr_partial_drain() argument
945 struct snd_compr_stream *stream; snd_compr_ioctl() local
[all...]
/linux/sound/soc/au1x/
H A Ddma.c42 struct audio_stream stream[2]; /* playback & capture */ member
45 static void au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
50 stream->period_size = 0; in au1000_release_dma_link()
51 stream->periods = 0; in au1000_release_dma_link()
52 pointer = stream->buffer; in au1000_release_dma_link()
59 } while (pointer != stream->buffer); in au1000_release_dma_link()
60 stream->buffer = NULL; in au1000_release_dma_link()
63 static int au1000_setup_dma_link(struct audio_stream *stream, in au1000_setup_dma_link() argument
67 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
75 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
[all …]
/linux/sound/soc/
H A Dsoc-pcm.c54 static int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream) in snd_soc_dpcm_stream_lock_irq()
56 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_stream_lock_irq()
64 struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_stream_unlock_irq()
66 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) ||
67 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && argument
68 be->dpcm[stream].runtime_update))
75 int stream, in soc_cpu_dai_name()
84 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_state_string()
89 state = dpcm->fe->dpcm[stream].state; in dpcm_state_string()
104 * are not running, paused or suspended for the specified stream directio in dpcm_state_string()
53 snd_soc_dpcm_stream_lock_irq(struct snd_soc_pcm_runtime * rtd,int stream) snd_soc_dpcm_stream_lock_irq() argument
58 snd_soc_dpcm_stream_lock_irqsave_nested(rtd,stream,flags) global() argument
62 snd_soc_dpcm_stream_unlock_irq(struct snd_soc_pcm_runtime * rtd,int stream) snd_soc_dpcm_stream_unlock_irq() argument
111 dpcm_show_state(struct snd_soc_pcm_runtime * fe,int stream,char * buf,size_t size) dpcm_show_state() argument
172 int stream; dpcm_state_read_file() local
220 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
242 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
258 dpcm_set_fe_update_state(struct snd_soc_pcm_runtime * fe,int stream,enum snd_soc_dpcm_update state) dpcm_set_fe_update_state() argument
274 dpcm_set_be_update_state(struct snd_soc_pcm_runtime * be,int stream,enum snd_soc_dpcm_update state) dpcm_set_be_update_state() argument
293 snd_soc_runtime_action(struct snd_soc_pcm_runtime * rtd,int stream,int action) snd_soc_runtime_action() argument
502 int stream = substream->stream; soc_pcm_apply_msb() local
582 snd_soc_runtime_calc_hw(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hardware * hw,int stream) snd_soc_runtime_calc_hw() argument
1241 dpcm_be_connect(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_connect() argument
1291 dpcm_be_reparent(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_reparent() argument
1320 dpcm_be_disconnect(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_disconnect() argument
1359 dpcm_get_be(struct snd_soc_card * card,struct snd_soc_dapm_widget * widget,int stream) dpcm_get_be() argument
1409 int stream; dpcm_end_walk_at_be() local
1426 dpcm_path_get(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list) dpcm_path_get() argument
1457 dpcm_be_is_active(struct snd_soc_dpcm * dpcm,int stream,struct snd_soc_dapm_widget_list * list) dpcm_be_is_active() argument
1478 dpcm_prune_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_prune_paths() argument
1501 dpcm_add_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_add_paths() argument
1572 dpcm_process_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list,int new) dpcm_process_paths() argument
1580 dpcm_clear_pending_state(struct snd_soc_pcm_runtime * fe,int stream) dpcm_clear_pending_state() argument
1588 dpcm_be_dai_stop(struct snd_soc_pcm_runtime * fe,int stream,int do_hw_free,struct snd_soc_dpcm * last) dpcm_be_dai_stop() argument
1632 dpcm_be_dai_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_startup() argument
1705 int stream = substream->stream; dpcm_runtime_setup_fe() local
1741 int stream = substream->stream; dpcm_runtime_setup_be_format() local
1778 int stream = substream->stream; dpcm_runtime_setup_be_chan() local
1826 int stream = substream->stream; dpcm_runtime_setup_be_rate() local
1858 dpcm_apply_symmetry(struct snd_pcm_substream * fe_substream,int stream) dpcm_apply_symmetry() argument
1908 int stream = fe_substream->stream, ret = 0; dpcm_fe_dai_startup() local
1945 int stream = substream->stream; dpcm_fe_dai_shutdown() local
1967 dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_free() argument
2011 int stream = substream->stream; dpcm_fe_dai_hw_free() local
2032 dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_params() argument
2114 int ret, stream = substream->stream; dpcm_fe_dai_hw_params() local
2143 dpcm_be_dai_trigger(struct snd_soc_pcm_runtime * fe,int stream,int cmd) dpcm_be_dai_trigger() argument
2348 int stream = substream->stream; dpcm_fe_dai_do_trigger() local
2435 int stream = substream->stream; dpcm_fe_dai_trigger() local
2449 dpcm_be_dai_prepare(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_prepare() argument
2489 int stream = substream->stream, ret = 0; dpcm_fe_dai_prepare() local
2526 dpcm_run_update_shutdown(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_shutdown() argument
2559 dpcm_run_update_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_startup() argument
2652 int stream; soc_dpcm_fe_runtime_update() local
2741 int stream = fe_substream->stream; dpcm_fe_dai_cleanup() local
2771 int stream = fe_substream->stream; dpcm_fe_dai_open() local
2808 int stream; soc_get_playback_capture() local
3020 snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime * fe,int stream) snd_soc_dpcm_fe_can_update() argument
3030 snd_soc_dpcm_be_can_update(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_be_can_update() argument
3042 snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_get_substream() argument
3050 snd_soc_dpcm_check_state(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream,const enum snd_soc_dpcm_state * states,int num_states) snd_soc_dpcm_check_state() argument
3082 snd_soc_dpcm_can_be_free_stop(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_can_be_free_stop() argument
3099 snd_soc_dpcm_can_be_params(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_can_be_params() argument
3117 snd_soc_dpcm_can_be_prepared(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_can_be_prepared() argument
[all...]
/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_stream_public.h40 IA_CSS_INPUT_MODE_PRBS, /** data from pseudo-random bit stream */
53 stream */
68 enum atomisp_input_format format; /** Format of input stream. This data
83 enum atomisp_input_format format; /** Format of input stream. This data
89 /* Input stream description. This describes how input will flow into the
144 /* Stream info, this struct describes properties of a stream after it has been
152 /* @brief Load default stream configuration
153 * @param[in,out] stream_config The stream configuration.
156 * This function will reset the stream configuration to the default state:
169 /* @brief Creates a stream
[all …]
/linux/drivers/media/usb/uvc/
H A Duvc_video.c137 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument
156 if (usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k) && in uvc_fixup_video_ctrl()
160 uvc_dbg(stream->dev, VIDEO, in uvc_fixup_video_ctrl()
168 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl()
169 if (stream->formats[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl()
170 format = &stream->formats[i]; in uvc_fixup_video_ctrl()
190 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl()
204 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl()
205 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl()
223 if (stream->dev->udev->speed >= USB_SPEED_HIGH) in uvc_fixup_video_ctrl()
[all …]
H A Duvc_v4l2.c211 static int uvc_v4l2_try_format(struct uvc_streaming *stream, in uvc_v4l2_try_format() argument
225 if (fmt->type != stream->type) in uvc_v4l2_try_format()
229 uvc_dbg(stream->dev, FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u\n", in uvc_v4l2_try_format()
238 for (i = 0; i < stream->nformats; ++i) { in uvc_v4l2_try_format()
239 format = &stream->formats[i]; in uvc_v4l2_try_format()
244 if (i == stream->nformats) { in uvc_v4l2_try_format()
245 format = stream->def_format; in uvc_v4l2_try_format()
274 uvc_dbg(stream->dev, FORMAT, "Unsupported size %ux%u\n", in uvc_v4l2_try_format()
281 uvc_dbg(stream->dev, FORMAT, in uvc_v4l2_try_format()
305 mutex_lock(&stream->mutex); in uvc_v4l2_try_format()
[all …]
/linux/fs/squashfs/
H A Ddecompressor_multi.c47 void *stream; member
53 struct squashfs_stream *stream) in put_decomp_stream() argument
55 mutex_lock(&stream->mutex); in put_decomp_stream()
56 list_add(&decomp_strm->list, &stream->strm_list); in put_decomp_stream()
57 mutex_unlock(&stream->mutex); in put_decomp_stream()
58 wake_up(&stream->wait); in put_decomp_stream()
64 struct squashfs_stream *stream; in squashfs_decompressor_create() local
68 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
69 if (!stream) in squashfs_decompressor_create()
72 stream->comp_opts = comp_opts; in squashfs_decompressor_create()
[all …]
/linux/lib/kunit/
H A Dstring-stream.c3 * C++ stream style string builder used in KUnit for building messages.
14 #include "string-stream.h"
41 int string_stream_vadd(struct string_stream *stream, in string_stream_vadd() argument
61 if (stream->append_newlines) in string_stream_vadd()
67 frag_container = alloc_string_stream_fragment(buf_len, stream->gfp); in string_stream_vadd()
71 if (stream->append_newlines) { in string_stream_vadd()
82 spin_lock(&stream->lock); in string_stream_vadd()
83 stream->length += result_len; in string_stream_vadd()
84 list_add_tail(&frag_container->node, &stream->fragments); in string_stream_vadd()
85 spin_unlock(&stream->lock); in string_stream_vadd()
[all …]
H A Dstring-stream-test.c15 #include "string-stream.h"
30 static char *get_concatenated_string(struct kunit *test, struct string_stream *stream) in get_concatenated_string() argument
32 char *str = string_stream_get_string(stream); in get_concatenated_string()
43 struct string_stream *stream; in string_stream_managed_init_test() local
46 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in string_stream_managed_init_test()
47 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream); in string_stream_managed_init_test()
49 KUNIT_EXPECT_EQ(test, stream->length, 0); in string_stream_managed_init_test()
50 KUNIT_EXPECT_TRUE(test, list_empty(&stream->fragments)); in string_stream_managed_init_test()
51 KUNIT_EXPECT_TRUE(test, (stream->gfp == GFP_KERNEL)); in string_stream_managed_init_test()
52 KUNIT_EXPECT_FALSE(test, stream->append_newlines); in string_stream_managed_init_test()
[all …]
H A Dassert_test.c7 #include "string-stream.h"
40 /* this function is used to get a "char *" string from the string stream and defer its cleanup */
41 static char *get_str_from_stream(struct kunit *test, struct string_stream *stream) in get_str_from_stream() argument
43 char *str = string_stream_get_string(stream); in get_str_from_stream()
53 struct string_stream *stream; in kunit_test_assert_prologue() local
60 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_assert_prologue()
61 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream); in kunit_test_assert_prologue()
64 kunit_assert_prologue(&location, KUNIT_EXPECTATION, stream); in kunit_test_assert_prologue()
65 str = get_str_from_stream(test, stream); in kunit_test_assert_prologue()
71 string_stream_clear(stream); in kunit_test_assert_prologue()
[all …]
/linux/net/sctp/
H A Dstream_sched_rr.c7 * These functions manipulate sctp stream queue/scheduling.
25 static void sctp_sched_rr_unsched_all(struct sctp_stream *stream);
27 static void sctp_sched_rr_next_stream(struct sctp_stream *stream) in sctp_sched_rr_next_stream() argument
31 pos = stream->rr_next->rr_list.next; in sctp_sched_rr_next_stream()
32 if (pos == &stream->rr_list) in sctp_sched_rr_next_stream()
34 stream->rr_next = list_entry(pos, struct sctp_stream_out_ext, rr_list); in sctp_sched_rr_next_stream()
37 static void sctp_sched_rr_unsched(struct sctp_stream *stream, in sctp_sched_rr_unsched() argument
40 if (stream->rr_next == soute) in sctp_sched_rr_unsched()
41 /* Try to move to the next stream */ in sctp_sched_rr_unsched()
42 sctp_sched_rr_next_stream(stream); in sctp_sched_rr_unsched()
[all …]
H A Dstream.c10 * This file contains sctp stream maniuplation primitives and helpers.
25 static void sctp_stream_shrink_out(struct sctp_stream *stream, __u16 outcnt) in sctp_stream_shrink_out() argument
31 asoc = container_of(stream, struct sctp_association, stream); in sctp_stream_shrink_out()
55 static void sctp_stream_free_ext(struct sctp_stream *stream, __u16 sid) in sctp_stream_free_ext() argument
59 if (!SCTP_SO(stream, sid)->ext) in sctp_stream_free_ext()
62 sched = sctp_sched_ops_from_stream(stream); in sctp_stream_free_ext()
63 sched->free_sid(stream, sid); in sctp_stream_free_ext()
64 kfree(SCTP_SO(stream, sid)->ext); in sctp_stream_free_ext()
65 SCTP_SO(stream, sid)->ext = NULL; in sctp_stream_free_ext()
68 /* Migrates chunks from stream queues to new stream queues if needed,
[all …]
H A Dstream_sched_fc.c7 * These functions manipulate sctp stream queue/scheduling.
25 static void sctp_sched_fc_unsched_all(struct sctp_stream *stream);
27 static int sctp_sched_wfq_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_wfq_set() argument
30 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_set()
39 static int sctp_sched_wfq_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_wfq_get() argument
42 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_get()
48 static int sctp_sched_fc_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_fc_set() argument
54 static int sctp_sched_fc_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_fc_get() argument
60 static int sctp_sched_fc_init(struct sctp_stream *stream) in sctp_sched_fc_init() argument
62 INIT_LIST_HEAD(&stream->fc_list); in sctp_sched_fc_init()
[all …]
H A Dstream_sched_prio.c7 * These functions manipulate sctp stream queue/scheduling.
26 static void sctp_sched_prio_unsched_all(struct sctp_stream *stream);
41 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument
59 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument
67 list_for_each_entry(p, &stream->prio_list, prio_sched) { in sctp_sched_prio_get_head()
75 for (i = 0; i < stream->outcnt; i++) { in sctp_sched_prio_get_head()
76 if (!SCTP_SO(stream, i)->ext) in sctp_sched_prio_get_head()
79 p = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_get_head()
90 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head()
114 /* Try to move to the next stream */ in sctp_sched_prio_unsched()
[all …]
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-streamer.c40 * vimc_streamer_pipeline_terminate - Disable stream in all ved in stream
42 * @stream: the pointer to the stream structure with the pipeline to be
45 * Calls s_stream to disable the stream in each entity of the pipeline
48 static void vimc_streamer_pipeline_terminate(struct vimc_stream *stream) in vimc_streamer_pipeline_terminate() argument
53 while (stream->pipe_size) { in vimc_streamer_pipeline_terminate()
54 stream->pipe_size--; in vimc_streamer_pipeline_terminate()
55 ved = stream->ved_pipeline[stream->pipe_size]; in vimc_streamer_pipeline_terminate()
56 stream->ved_pipeline[stream->pipe_size] = NULL; in vimc_streamer_pipeline_terminate()
67 * vimc_streamer_pipeline_init - Initializes the stream structure
69 * @stream: the pointer to the stream structure to be initialized
[all …]
/linux/drivers/slimbus/
H A Dstream.c55 * The Presence rate of a constant bitrate stream is mean flow rate of the
56 * stream expressed in occupied Segments of that Data Channel per second.
90 * slim_stream_allocate() - Allocate a new SLIMbus Stream
92 * @name: name of the stream
95 * a new SLIMbus stream and return a valid stream runtime pointer for client
96 * to use it in subsequent stream apis. state of stream is set to ALLOCATED
125 static int slim_connect_port_channel(struct slim_stream_runtime *stream, in slim_connect_port_channel() argument
128 struct slim_device *sdev = stream->dev; in slim_connect_port_channel()
132 DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); in slim_connect_port_channel()
145 static int slim_disconnect_port(struct slim_stream_runtime *stream, in slim_disconnect_port() argument
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c23 /* compress stream operations */
47 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
49 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
50 if (!stream) in sst_platform_compr_open()
53 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
61 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
62 stream->id = 0; in sst_platform_compr_open()
67 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
68 runtime->private_data = stream; in sst_platform_compr_open()
71 kfree(stream); in sst_platform_compr_open()
[all …]
/linux/drivers/soundwire/
H A Dstream.c5 * stream.c - SoundWire Bus stream operations.
264 * @m_rt: Master stream runtime
372 * @m_rt: Master stream runtime
639 * explicitly preparing a stream or handling an in sdw_program_params()
640 * already-prepared stream otherwise. in sdw_program_params()
643 m_rt->stream->state == SDW_STREAM_CONFIGURED) in sdw_program_params()
661 if (m_rt->stream->state != SDW_STREAM_ENABLED) in sdw_program_params()
745 * @multi_link: whether this is a multi-link stream with hardware-based sync
777 static int do_bank_switch(struct sdw_stream_runtime *stream) in do_bank_switch() argument
786 m_rt_count = stream->m_rt_count; in do_bank_switch()
[all …]
/linux/sound/soc/sprd/
H A Dsprd-pcm-compress.c107 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_drain_notify() local
109 memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo)); in sprd_platform_compr_drain_notify()
118 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_complete() local
119 struct sprd_compr_dma *dma = &stream->dma[1]; in sprd_platform_compr_dma_complete()
122 stream->copied_total += dma->trans_len; in sprd_platform_compr_dma_complete()
123 if (stream->copied_total > stream->received_total) in sprd_platform_compr_dma_complete()
124 stream->copied_total = stream->received_total; in sprd_platform_compr_dma_complete()
135 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_config() local
140 struct sprd_compr_dma *dma = &stream->dma[channel]; in sprd_platform_compr_dma_config()
174 src_addr = stream->iram_buffer.addr; in sprd_platform_compr_dma_config()
[all …]
/linux/sound/xen/
H A Dxen_snd_front_alsa.c212 static void stream_clear(struct xen_snd_front_pcm_stream_info *stream) in stream_clear() argument
214 stream->is_open = false; in stream_clear()
215 stream->be_cur_frame = 0; in stream_clear()
216 stream->out_frames = 0; in stream_clear()
217 atomic_set(&stream->hw_ptr, 0); in stream_clear()
218 xen_snd_front_evtchnl_pair_clear(stream->evt_pair); in stream_clear()
219 memset(&stream->shbuf, 0, sizeof(stream->shbuf)); in stream_clear()
220 stream->buffer = NULL; in stream_clear()
221 stream->buffer_sz = 0; in stream_clear()
222 stream->pages = NULL; in stream_clear()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c41 #define SOS 0xffda /* start of stream */
97 * interchange format JPEG stream or an abbreviated format table specification
98 * data stream. Specifies the huffman table used for encoding the luminance DC
110 * interchange format JPEG stream or an abbreviated format table specification
111 * data stream. Specifies the huffman table used for encoding the luminance AC
135 * stream or an abbreviated format table specification data stream.
148 * interchange format JPEG stream or an abbreviated format table specification
149 * data stream. Specifies the huffman table used for encoding the chrominance
172 * struct jpeg_stream - JPEG byte stream
173 * @curr: current position in stream
[all …]
/linux/Documentation/driver-api/soundwire/
H A Dstream.rst2 Audio Stream in SoundWire
5 An audio stream is a logical or virtual connection created between
16 audio stream contains one or more channels of data. All channels within
17 stream must have same sample rate and same sample size.
19 Assume a stream with two channels (Left & Right) is opened using SoundWire
20 interface. Below are some ways a stream can be represented in SoundWire.
22 Stream Sample in memory (System memory, DSP memory or FIFOs) ::
28 Example 1: Stereo Stream with L and R channels is rendered from Master to
41 Example 2: Stereo Stream with L and R channels is captured from Slave to
55 Example 3: Stereo Stream with L and R channels is rendered by Master. Each
[all …]

12345678910>>...105