Home
last modified time | relevance | path

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

12345678910>>...124

/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c40 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal() argument
43 stream->signal = stream->link->connector_signal; in update_stream_signal()
45 stream->signal = sink->sink_signal; in update_stream_signal()
47 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
48 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
49 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal()
51 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in update_stream_signal()
53 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in update_stream_signal()
57 static bool dc_stream_construct(struct dc_stream_state *stream, in dc_stream_construct() argument
62 stream->sink = dc_sink_data; in dc_stream_construct()
[all …]
/openbmc/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 is paused. This is done by calling
[all …]
/openbmc/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 …]
/openbmc/u-boot/fs/jffs2/
H A Dmini_inflate.c24 /* associate a stream with a block of data and reset the stream */
25 static void init_stream(struct bitstream *stream, unsigned char *data, in init_stream() argument
28 stream->error = NO_ERROR; in init_stream()
29 stream->memcpy = inflate_memcpy; in init_stream()
30 stream->decoded = 0; in init_stream()
31 stream->data = data; in init_stream()
32 stream->bit = 0; /* The first bit of the stream is the lsb of the in init_stream()
37 stream->codes.bits = 8; in init_stream()
38 stream->codes.num_symbols = 19; in init_stream()
39 stream->codes.lengths = stream->code_lengths; in init_stream()
[all …]
/openbmc/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 …]
H A Ddecompressor_single.c23 void *stream; member
30 struct squashfs_stream *stream; in squashfs_decompressor_create() local
33 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
34 if (stream == NULL) in squashfs_decompressor_create()
37 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
38 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
39 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
44 mutex_init(&stream->mutex); in squashfs_decompressor_create()
45 return stream; in squashfs_decompressor_create()
48 kfree(stream); in squashfs_decompressor_create()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dstream_test.cpp16 #include "extensions/openpower-pels/stream.hpp"
29 Stream stream{data}; in TEST() local
33 stream >> v; in TEST()
38 stream >> v; in TEST()
43 stream >> v; in TEST()
48 stream >> v; in TEST()
53 stream.read(v, 5); in TEST()
57 EXPECT_EQ(stream.remaining(), 0); in TEST()
61 EXPECT_THROW(stream >> v, std::out_of_range); in TEST()
67 Stream stream(data); in TEST() local
[all …]
/openbmc/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 …]
/openbmc/linux/sound/soc/
H A Dsoc-pcm.c53 int stream) in snd_soc_dpcm_stream_lock_irq() argument
55 snd_pcm_stream_lock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_lock_irq()
58 #define snd_soc_dpcm_stream_lock_irqsave_nested(rtd, stream, flags) \ argument
59 snd_pcm_stream_lock_irqsave_nested(snd_soc_dpcm_get_substream(rtd, stream), flags)
62 int stream) in snd_soc_dpcm_stream_unlock_irq() argument
64 snd_pcm_stream_unlock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_unlock_irq()
67 #define snd_soc_dpcm_stream_unlock_irqrestore(rtd, stream, flags) \ argument
68 snd_pcm_stream_unlock_irqrestore(snd_soc_dpcm_get_substream(rtd, stream), flags)
111 int stream, char *buf, size_t size) in dpcm_show_state() argument
113 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_stream_public.h38 IA_CSS_INPUT_MODE_PRBS, /** data from pseudo-random bit stream */
51 stream */
66 enum atomisp_input_format format; /** Format of input stream. This data
81 enum atomisp_input_format format; /** Format of input stream. This data
87 /* Input stream description. This describes how input will flow into the
143 /* Stream info, this struct describes properties of a stream after it has been
151 /* @brief Load default stream configuration
152 * @param[in,out] stream_config The stream configuration.
155 * This function will reset the stream configuration to the default state:
168 /* @brief Creates a stream
[all …]
/openbmc/linux/lib/kunit/
H A Dstring-stream.c3 * C++ stream style string builder used in KUnit for building messages.
13 #include "string-stream.h"
42 int string_stream_vadd(struct string_stream *stream, in string_stream_vadd() argument
58 frag_container = alloc_string_stream_fragment(stream->test, in string_stream_vadd()
60 stream->gfp); in string_stream_vadd()
65 spin_lock(&stream->lock); in string_stream_vadd()
66 stream->length += len; in string_stream_vadd()
67 list_add_tail(&frag_container->node, &stream->fragments); in string_stream_vadd()
68 spin_unlock(&stream->lock); in string_stream_vadd()
73 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add() argument
[all …]
H A Dassert.c11 #include "string-stream.h"
15 struct string_stream *stream) in kunit_assert_prologue() argument
28 string_stream_add(stream, "%s FAILED at %s:%d\n", in kunit_assert_prologue()
34 struct string_stream *stream) in kunit_assert_print_msg() argument
37 string_stream_add(stream, "\n%pV", message); in kunit_assert_print_msg()
42 struct string_stream *stream) in kunit_fail_assert_format() argument
44 string_stream_add(stream, "%pV", message); in kunit_fail_assert_format()
50 struct string_stream *stream) in kunit_unary_assert_format() argument
57 string_stream_add(stream, in kunit_unary_assert_format()
61 string_stream_add(stream, in kunit_unary_assert_format()
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c41 #define SOS 0xffda /* start of stream */
56 * struct jpeg_stream - JPEG byte stream
57 * @curr: current position in stream
66 static int jpeg_get_byte(struct jpeg_stream *stream) in jpeg_get_byte() argument
68 if (stream->curr >= stream->end) in jpeg_get_byte()
71 return *stream->curr++; in jpeg_get_byte()
75 static int jpeg_get_word_be(struct jpeg_stream *stream) in jpeg_get_word_be() argument
79 if (stream->curr + sizeof(__be16) > stream->end) in jpeg_get_word_be()
82 word = get_unaligned_be16(stream->curr); in jpeg_get_word_be()
83 stream->curr += sizeof(__be16); in jpeg_get_word_be()
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/slimbus/
H A Dstream.c53 * The Presence rate of a constant bitrate stream is mean flow rate of the
54 * stream expressed in occupied Segments of that Data Channel per second.
88 * slim_stream_allocate() - Allocate a new SLIMbus Stream
90 * @name: name of the stream
93 * a new SLIMbus stream and return a valid stream runtime pointer for client
94 * to use it in subsequent stream apis. state of stream is set to ALLOCATED
123 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
[all …]
/openbmc/openpower-hw-diags/attn/pel/
H A Dstream.hpp44 * @class Stream
49 class Stream class
52 Stream() = delete;
53 ~Stream() = default;
54 Stream(const Stream&) = default;
55 Stream& operator=(const Stream&) = default;
56 Stream(Stream&&) = default;
57 Stream& operator=(Stream&&) = default;
64 explicit Stream(std::vector<uint8_t>& data) : _data(data), _offset(0) {} in Stream() function in attn::pel::Stream
72 Stream(std::vector<uint8_t>& data, std::size_t offset) : in Stream() function in attn::pel::Stream
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dstream.hpp44 * @class Stream
49 class Stream class
52 Stream() = delete;
53 ~Stream() = default;
54 Stream(const Stream&) = default;
55 Stream& operator=(const Stream&) = default;
56 Stream(Stream&&) = default;
57 Stream& operator=(Stream&&) = default;
64 explicit Stream(std::vector<uint8_t>& data) : _data(data), _offset(0) {} in Stream() function in openpower::pels::Stream
72 Stream(std::vector<uint8_t>& data, std::size_t offset) : in Stream() function in openpower::pels::Stream
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/sound/xen/
H A Dxen_snd_front_alsa.c217 static void stream_clear(struct xen_snd_front_pcm_stream_info *stream) in stream_clear() argument
219 stream->is_open = false; in stream_clear()
220 stream->be_cur_frame = 0; in stream_clear()
221 stream->out_frames = 0; in stream_clear()
222 atomic_set(&stream->hw_ptr, 0); in stream_clear()
223 xen_snd_front_evtchnl_pair_clear(stream->evt_pair); in stream_clear()
224 memset(&stream->shbuf, 0, sizeof(stream->shbuf)); in stream_clear()
225 stream->buffer = NULL; in stream_clear()
226 stream->buffer_sz = 0; in stream_clear()
227 stream->pages = NULL; in stream_clear()
[all …]

12345678910>>...124