Home
last modified time | relevance | path

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

12345678910>>...139

/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Dcapture_v32.c30 static int mi_frame_end(struct rkisp_stream *stream, u32 state);
31 static int mi_frame_start(struct rkisp_stream *stream, u32 mis);
32 static int rkisp_create_dummy_buf(struct rkisp_stream *stream);
445 static bool bp_is_stream_stopped(struct rkisp_stream *stream) in bp_is_stream_stopped() argument
451 if (!stream->ispdev->hw_dev->is_single) { in bp_is_stream_stopped()
457 return !(rkisp_read(stream->ispdev, reg, is_direct) & en); in bp_is_stream_stopped()
460 static bool bpds_is_stream_stopped(struct rkisp_stream *stream) in bpds_is_stream_stopped() argument
462 struct rkisp_device *dev = stream->ispdev; in bpds_is_stream_stopped()
463 struct rkisp_stream *st = &dev->cap_dev.stream[RKISP_STREAM_BP]; in bpds_is_stream_stopped()
477 static bool mpds_is_stream_stopped(struct rkisp_stream *stream) in mpds_is_stream_stopped() argument
[all …]
H A Dcapture_v30.c18 static int mi_frame_end(struct rkisp_stream *stream, u32 state);
19 static int mi_frame_start(struct rkisp_stream *stream, u32 mis);
273 static inline bool bp_is_stream_stopped(struct rkisp_stream *stream) in bp_is_stream_stopped() argument
278 if (!stream->ispdev->hw_dev->is_single) in bp_is_stream_stopped()
280 ret = rkisp_read(stream->ispdev, ISP3X_MI_BP_WR_CTRL, is_direct); in bp_is_stream_stopped()
285 static bool fbc_is_stream_stopped(struct rkisp_stream *stream) in fbc_is_stream_stopped() argument
290 if (!stream->ispdev->hw_dev->is_single) { in fbc_is_stream_stopped()
295 ret = rkisp_read(stream->ispdev, ISP3X_MPFBC_CTRL, is_direct); in fbc_is_stream_stopped()
300 static int get_stream_irq_mask(struct rkisp_stream *stream) in get_stream_irq_mask() argument
304 switch (stream->id) { in get_stream_irq_mask()
[all …]
H A Dcapture_v1x.c18 static int mi_frame_end(struct rkisp_stream *stream, u32 state);
20 static int rkisp_create_dummy_buf(struct rkisp_stream *stream);
329 static int rkisp_stream_config_dcrop(struct rkisp_stream *stream, bool async) in rkisp_stream_config_dcrop() argument
331 struct rkisp_device *dev = stream->ispdev; in rkisp_stream_config_dcrop()
332 struct v4l2_rect *dcrop = &stream->dcrop; in rkisp_stream_config_dcrop()
341 rkisp_disable_dcrop(stream, async); in rkisp_stream_config_dcrop()
343 "stream %d crop disabled\n", stream->id); in rkisp_stream_config_dcrop()
347 rkisp_config_dcrop(stream, dcrop, async); in rkisp_stream_config_dcrop()
350 "stream %d crop: %dx%d -> %dx%d\n", stream->id, in rkisp_stream_config_dcrop()
358 static int rkisp_stream_config_rsz(struct rkisp_stream *stream, bool async) in rkisp_stream_config_rsz() argument
[all …]
H A Dcapture_v21.c18 static int mi_frame_end(struct rkisp_stream *stream, u32 state);
510 static bool is_rdbk_stream(struct rkisp_stream *stream) in is_rdbk_stream() argument
512 struct rkisp_device *dev = stream->ispdev; in is_rdbk_stream()
516 stream->id == RKISP_STREAM_DMATX2) || in is_rdbk_stream()
518 (stream->id == RKISP_STREAM_DMATX2 || in is_rdbk_stream()
519 stream->id == RKISP_STREAM_DMATX0))) in is_rdbk_stream()
524 static bool is_hdr_stream(struct rkisp_stream *stream) in is_hdr_stream() argument
526 struct rkisp_device *dev = stream->ispdev; in is_hdr_stream()
529 if (stream->id == RKISP_STREAM_DMATX0 && in is_hdr_stream()
537 static int rkisp_stream_config_dcrop(struct rkisp_stream *stream, bool async) in rkisp_stream_config_dcrop() argument
[all …]
H A Dcapture_v20.c18 static int mi_frame_end(struct rkisp_stream *stream, u32 state);
538 static bool is_rdbk_stream(struct rkisp_stream *stream) in is_rdbk_stream() argument
540 struct rkisp_device *dev = stream->ispdev; in is_rdbk_stream()
544 stream->id == RKISP_STREAM_DMATX2) || in is_rdbk_stream()
546 (stream->id == RKISP_STREAM_DMATX2 || in is_rdbk_stream()
547 stream->id == RKISP_STREAM_DMATX0)) || in is_rdbk_stream()
549 (stream->id == RKISP_STREAM_DMATX2 || in is_rdbk_stream()
550 stream->id == RKISP_STREAM_DMATX1 || in is_rdbk_stream()
551 stream->id == RKISP_STREAM_DMATX0))) in is_rdbk_stream()
557 static int rkisp_stream_config_dcrop(struct rkisp_stream *stream, bool async) in rkisp_stream_config_dcrop() argument
[all …]
H A Disp_rockit.c32 struct rkisp_stream *stream = NULL; in rkisp_rockit_get_stream() local
36 pr_err("rockit_cfg is null get stream failed\n"); in rkisp_rockit_get_stream()
40 pr_err("input is null get stream failed\n"); in rkisp_rockit_get_stream()
59 stream = &ispdev->cap_dev.stream[RKISP_STREAM_MP]; in rkisp_rockit_get_stream()
62 stream = &ispdev->cap_dev.stream[RKISP_STREAM_SP]; in rkisp_rockit_get_stream()
65 stream = &ispdev->cap_dev.stream[RKISP_STREAM_BP]; in rkisp_rockit_get_stream()
68 stream = &ispdev->cap_dev.stream[RKISP_STREAM_MPDS]; in rkisp_rockit_get_stream()
71 stream = &ispdev->cap_dev.stream[RKISP_STREAM_BPDS]; in rkisp_rockit_get_stream()
74 stream = &ispdev->cap_dev.stream[RKISP_STREAM_LUMA]; in rkisp_rockit_get_stream()
77 stream = NULL; in rkisp_rockit_get_stream()
[all …]
H A Ddmarx.c248 struct capture_fmt *find_fmt(struct rkisp_stream *stream, in find_fmt() argument
254 for (i = 0; i < stream->config->fmt_size; i++) { in find_fmt()
255 fmt = &stream->config->fmts[i]; in find_fmt()
262 static int dmarx_config_mi(struct rkisp_stream *stream) in dmarx_config_mi() argument
264 struct rkisp_device *dev = stream->ispdev; in dmarx_config_mi()
266 struct capture_fmt *dmarx_in_fmt = &stream->out_isp_fmt; in dmarx_config_mi()
270 stream->out_fmt.width, in dmarx_config_mi()
271 stream->out_fmt.height, in dmarx_config_mi()
272 stream->u.dmarx.y_stride); in dmarx_config_mi()
274 mi_set_y_size(stream, stream->out_fmt.width * in dmarx_config_mi()
[all …]
H A Dcapture.c57 struct rkisp_stream *stream; in rkisp_create_hdr_buf() local
60 stream = &dev->cap_dev.stream[RKISP_STREAM_DMATX0]; in rkisp_create_hdr_buf()
61 size = stream->out_fmt.plane_fmt[0].sizeimage; in rkisp_create_hdr_buf()
167 dmatx = &dev->cap_dev.stream[i]; in hdr_update_dmatx_buf()
222 struct rkisp_stream *stream; in hdr_config_dmatx() local
242 stream = &dev->cap_dev.stream[RKISP_STREAM_DMATX0]; in hdr_config_dmatx()
243 if (stream->ops && stream->ops->config_mi) in hdr_config_dmatx()
244 stream->ops->config_mi(stream); in hdr_config_dmatx()
247 pixm = stream->out_fmt; in hdr_config_dmatx()
248 stream = &dev->dmarx_dev.stream[RKISP_STREAM_RAWRD0]; in hdr_config_dmatx()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/sound/hda/ext/
H A Dhdac_ext_stream.c3 * hdac-ext-stream.c - HD-audio extended stream operations.
19 * snd_hdac_ext_stream_init - initialize each stream (aka device)
21 * @stream: HD-audio ext core stream object to initialize
22 * @idx: stream index number
23 * @direction: stream direction (SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE)
26 * initialize the stream, if ppcap is enabled then init those and then
27 * invoke hdac stream initialization routine
30 struct hdac_ext_stream *stream, in snd_hdac_ext_stream_init() argument
34 stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init()
37 stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcapture.c554 static int rkcif_output_fmt_check(struct rkcif_stream *stream, in rkcif_output_fmt_check() argument
557 const struct cif_input_fmt *input_fmt = stream->cif_fmt_in; in rkcif_output_fmt_check()
558 struct csi_channel_info *channel = &stream->cifdev->channels[stream->id]; in rkcif_output_fmt_check()
674 v4l2_err(&stream->cifdev->v4l2_dev, in rkcif_output_fmt_check()
684 static int rkcif_stop_dma_capture(struct rkcif_stream *stream);
691 static struct v4l2_subdev *get_remote_sensor(struct rkcif_stream *stream, u16 *index) in get_remote_sensor() argument
697 local = &stream->vnode.vdev.entity.pads[0]; in get_remote_sensor()
699 v4l2_err(&stream->cifdev->v4l2_dev, in get_remote_sensor()
706 v4l2_err(&stream->cifdev->v4l2_dev, in get_remote_sensor()
722 static void get_remote_terminal_sensor(struct rkcif_stream *stream, in get_remote_terminal_sensor() argument
[all …]
/OK3568_Linux_fs/kernel/sound/core/
H A Dcompress_offload.c58 struct snd_compr_stream stream; member
64 * a note on stream states used:
66 * SNDRV_PCM_STATE_OPEN: When stream has been opened.
67 * SNDRV_PCM_STATE_SETUP: When stream has been initialized. This is done by
70 * SNDRV_PCM_STATE_PREPARED: When a stream has been written to (for
71 * playback only). User after setting up stream writes the data buffer
72 * before starting the stream.
73 * SNDRV_PCM_STATE_RUNNING: When stream has been started and is
75 * SNDRV_PCM_STATE_DRAINING: When stream is draining current data. This is done
77 * SNDRV_PCM_STATE_PAUSED: When stream is paused. This is done by calling
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c42 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal() argument
45 stream->signal = stream->link->connector_signal; in update_stream_signal()
47 stream->signal = sink->sink_signal; in update_stream_signal()
49 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
50 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
51 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal()
53 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in update_stream_signal()
55 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in update_stream_signal()
59 static bool dc_stream_construct(struct dc_stream_state *stream, in dc_stream_construct() argument
64 stream->sink = dc_sink_data; in dc_stream_construct()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/
H A Dcapture.c50 * 3. Besides describing stream hardware, this file also contain entries
652 struct capture_fmt *find_fmt(struct rkisp1_stream *stream, const u32 pixelfmt) in find_fmt() argument
657 for (i = 0; i < stream->config->fmt_size; i++) { in find_fmt()
658 fmt = &stream->config->fmts[i]; in find_fmt()
666 static int rkisp1_config_dcrop(struct rkisp1_stream *stream, bool async) in rkisp1_config_dcrop() argument
668 struct rkisp1_device *dev = stream->ispdev; in rkisp1_config_dcrop()
669 struct v4l2_rect *dcrop = &stream->dcrop; in rkisp1_config_dcrop()
678 disable_dcrop(stream, async); in rkisp1_config_dcrop()
680 "stream %d crop disabled\n", stream->id); in rkisp1_config_dcrop()
684 config_dcrop(stream, dcrop, async); in rkisp1_config_dcrop()
[all …]
H A Ddmarx.c115 struct capture_fmt *find_fmt(struct rkisp1_stream *stream, in find_fmt() argument
121 for (i = 0; i < stream->config->fmt_size; i++) { in find_fmt()
122 fmt = &stream->config->fmts[i]; in find_fmt()
129 static int dmarx_config_mi(struct rkisp1_stream *stream) in dmarx_config_mi() argument
131 struct rkisp1_device *dev = stream->ispdev; in dmarx_config_mi()
133 struct capture_fmt *dmarx_in_fmt = &stream->out_isp_fmt; in dmarx_config_mi()
137 stream->out_fmt.width, in dmarx_config_mi()
138 stream->out_fmt.height, in dmarx_config_mi()
139 stream->u.dmarx.y_stride); in dmarx_config_mi()
141 mi_set_y_size(stream, stream->out_fmt.width * in dmarx_config_mi()
[all …]
/OK3568_Linux_fs/u-boot/fs/jffs2/
H A Dmini_inflate.c26 /* associate a stream with a block of data and reset the stream */
27 static void init_stream(struct bitstream *stream, unsigned char *data, in init_stream() argument
30 stream->error = NO_ERROR; in init_stream()
31 stream->memcpy = inflate_memcpy; in init_stream()
32 stream->decoded = 0; in init_stream()
33 stream->data = data; in init_stream()
34 stream->bit = 0; /* The first bit of the stream is the lsb of the in init_stream()
39 stream->codes.bits = 8; in init_stream()
40 stream->codes.num_symbols = 19; in init_stream()
41 stream->codes.lengths = stream->code_lengths; in init_stream()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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
145 /* Stream info, this struct describes properties of a stream after it has been
153 /* @brief Load default stream configuration
154 * @param[in,out] stream_config The stream configuration.
157 * This function will reset the stream configuration to the default state:
170 /* @brief Creates a stream
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/uvc/
H A Duvc_video.c129 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument
151 if (usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k) && in uvc_fixup_video_ctrl()
155 /* uvc_dbg(stream->dev, VIDEO, in uvc_fixup_video_ctrl()
163 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl()
164 if (stream->format[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl()
165 format = &stream->format[i]; in uvc_fixup_video_ctrl()
185 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl()
198 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl()
199 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl()
216 if (stream->dev->udev->speed == USB_SPEED_HIGH) in uvc_fixup_video_ctrl()
[all …]
/OK3568_Linux_fs/kernel/fs/squashfs/
H A Ddecompressor_multi.c48 void *stream; member
54 struct squashfs_stream *stream) in put_decomp_stream() argument
56 mutex_lock(&stream->mutex); in put_decomp_stream()
57 list_add(&decomp_strm->list, &stream->strm_list); in put_decomp_stream()
58 mutex_unlock(&stream->mutex); in put_decomp_stream()
59 wake_up(&stream->wait); in put_decomp_stream()
65 struct squashfs_stream *stream; in squashfs_decompressor_create() local
69 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
70 if (!stream) in squashfs_decompressor_create()
73 stream->comp_opts = comp_opts; in squashfs_decompressor_create()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/
H A Dsoc-pcm.c63 int stream, char *buf, size_t size) in dpcm_show_state() argument
65 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
73 stream ? "Capture" : "Playback"); in dpcm_show_state()
76 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
78 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
79 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
90 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
97 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
106 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
108 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/ispp/
H A Dstream.c185 static void set_vir_stride(struct rkispp_stream *stream, u32 val) in set_vir_stride() argument
187 rkispp_write(stream->isppdev, stream->config->reg.cur_vir_stride, val); in set_vir_stride()
190 static void set_scl_factor(struct rkispp_stream *stream, u32 val) in set_scl_factor() argument
192 rkispp_write(stream->isppdev, stream->config->reg.factor, val); in set_scl_factor()
221 struct capture_fmt *find_fmt(struct rkispp_stream *stream, in find_fmt() argument
227 for (i = 0; i < stream->config->fmt_size; i++) { in find_fmt()
228 fmt = &stream->config->fmts[i]; in find_fmt()
239 struct rkispp_stream *vir = cpy->stream; in vir_cpy_image()
325 void get_stream_buf(struct rkispp_stream *stream) in get_stream_buf() argument
329 spin_lock_irqsave(&stream->vbq_lock, lock_flags); in get_stream_buf()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]

12345678910>>...139