/linux-5.19.10/drivers/media/usb/dvb-usb-v2/ |
D | usb_urb.c | 16 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-5.19.10/drivers/media/usb/dvb-usb/ |
D | usb-urb.c | 17 struct usb_data_stream *stream = urb->context; in usb_urb_complete() local 48 … stream->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-5.19.10/sound/core/ |
D | compress_offload.c | 52 struct snd_compr_stream stream; member 114 INIT_DELAYED_WORK(&data->stream.error_work, error_delayed_work); in snd_compr_open() 116 data->stream.ops = compr->ops; in snd_compr_open() 117 data->stream.direction = dirn; in snd_compr_open() 118 data->stream.private_data = compr->private_data; in snd_compr_open() 119 data->stream.device = compr; in snd_compr_open() 128 data->stream.runtime = runtime; in snd_compr_open() 131 ret = compr->ops->open(&data->stream); in snd_compr_open() 144 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() 146 cancel_delayed_work_sync(&data->stream.error_work); in snd_compr_free() [all …]
|
/linux-5.19.10/drivers/media/usb/uvc/ |
D | uvc_video.c | 132 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument 154 if (usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k) && in uvc_fixup_video_ctrl() 158 uvc_dbg(stream->dev, VIDEO, in uvc_fixup_video_ctrl() 166 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl() 167 if (stream->format[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl() 168 format = &stream->format[i]; in uvc_fixup_video_ctrl() 188 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl() 201 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl() 202 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl() 219 if (stream->dev->udev->speed == USB_SPEED_HIGH) in uvc_fixup_video_ctrl() [all …]
|
D | uvc_v4l2.c | 158 static int uvc_v4l2_try_format(struct uvc_streaming *stream, in uvc_v4l2_try_format() argument 171 if (fmt->type != stream->type) in uvc_v4l2_try_format() 175 uvc_dbg(stream->dev, FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u\n", in uvc_v4l2_try_format() 183 for (i = 0; i < stream->nformats; ++i) { in uvc_v4l2_try_format() 184 format = &stream->format[i]; in uvc_v4l2_try_format() 189 if (i == stream->nformats) { in uvc_v4l2_try_format() 190 format = stream->def_format; in uvc_v4l2_try_format() 218 uvc_dbg(stream->dev, FORMAT, "Unsupported size %ux%u\n", in uvc_v4l2_try_format() 225 uvc_dbg(stream->dev, FORMAT, in uvc_v4l2_try_format() 248 mutex_lock(&stream->mutex); in uvc_v4l2_try_format() [all …]
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_stream.c | 42 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 …]
|
/linux-5.19.10/sound/soc/au1x/ |
D | dma.c | 42 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-5.19.10/fs/squashfs/ |
D | decompressor_multi.c | 48 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 …]
|
D | decompressor_single.c | 23 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 …]
|
D | decompressor_multi_percpu.c | 24 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() 46 local_lock_init(&stream->lock); in squashfs_decompressor_create() 54 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create() 55 if (!IS_ERR_OR_NULL(stream->stream)) in squashfs_decompressor_create() 56 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create() [all …]
|
D | xz_wrapper.c | 84 struct squashfs_xz *stream; in squashfs_xz_init() local 87 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_xz_init() 88 if (stream == NULL) { in squashfs_xz_init() 93 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init() 94 if (stream->state == NULL) { in squashfs_xz_init() 95 kfree(stream); in squashfs_xz_init() 100 return stream; in squashfs_xz_init() 110 struct squashfs_xz *stream = strm; in squashfs_xz_free() local 112 if (stream) { in squashfs_xz_free() 113 xz_dec_end(stream->state); in squashfs_xz_free() [all …]
|
D | zlib_wrapper.c | 26 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL); in zlib_init() local 27 if (stream == NULL) in zlib_init() 29 stream->workspace = vmalloc(zlib_inflate_workspacesize()); in zlib_init() 30 if (stream->workspace == NULL) in zlib_init() 33 return stream; in zlib_init() 37 kfree(stream); in zlib_init() 44 z_stream *stream = strm; in zlib_free() local 46 if (stream) in zlib_free() 47 vfree(stream->workspace); in zlib_free() 48 kfree(stream); in zlib_free() [all …]
|
/linux-5.19.10/drivers/media/v4l2-core/ |
D | v4l2-jpeg.c | 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() 88 static int jpeg_skip(struct jpeg_stream *stream, size_t len) in jpeg_skip() argument 90 if (stream->curr + len > stream->end) in jpeg_skip() 93 stream->curr += len; in jpeg_skip() [all …]
|
/linux-5.19.10/net/sctp/ |
D | stream_sched_rr.c | 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() 42 sctp_sched_rr_next_stream(stream); in sctp_sched_rr_unsched() 47 if (list_empty(&stream->rr_list)) in sctp_sched_rr_unsched() 48 stream->rr_next = NULL; in sctp_sched_rr_unsched() [all …]
|
D | stream.c | 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() 59 static void sctp_stream_outq_migrate(struct sctp_stream *stream, in sctp_stream_outq_migrate() argument 64 if (stream->outcnt > outcnt) in sctp_stream_outq_migrate() 65 sctp_stream_shrink_out(stream, outcnt); in sctp_stream_outq_migrate() 74 SCTP_SO(new, i)->ext = SCTP_SO(stream, i)->ext; in sctp_stream_outq_migrate() 75 SCTP_SO(stream, i)->ext = NULL; in sctp_stream_outq_migrate() 79 for (i = outcnt; i < stream->outcnt; i++) { in sctp_stream_outq_migrate() 80 kfree(SCTP_SO(stream, i)->ext); in sctp_stream_outq_migrate() 81 SCTP_SO(stream, i)->ext = NULL; in sctp_stream_outq_migrate() [all …]
|
D | stream_sched_prio.c | 26 static void sctp_sched_prio_unsched_all(struct sctp_stream *stream); 29 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument 46 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument 54 list_for_each_entry(p, &stream->prio_list, prio_sched) { in sctp_sched_prio_get_head() 62 for (i = 0; i < stream->outcnt; i++) { in sctp_sched_prio_get_head() 63 if (!SCTP_SO(stream, i)->ext) in sctp_sched_prio_get_head() 66 p = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_get_head() 77 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head() 117 static void sctp_sched_prio_sched(struct sctp_stream *stream, in sctp_sched_prio_sched() argument 140 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched() [all …]
|
/linux-5.19.10/drivers/gpu/drm/i915/ |
D | i915_perf.c | 415 static u32 gen12_oa_hw_tail_read(struct i915_perf_stream *stream) in gen12_oa_hw_tail_read() argument 417 struct intel_uncore *uncore = stream->uncore; in gen12_oa_hw_tail_read() 423 static u32 gen8_oa_hw_tail_read(struct i915_perf_stream *stream) in gen8_oa_hw_tail_read() argument 425 struct intel_uncore *uncore = stream->uncore; in gen8_oa_hw_tail_read() 430 static u32 gen7_oa_hw_tail_read(struct i915_perf_stream *stream) in gen7_oa_hw_tail_read() argument 432 struct intel_uncore *uncore = stream->uncore; in gen7_oa_hw_tail_read() 462 static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream) in oa_buffer_check_unlocked() argument 464 u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma); in oa_buffer_check_unlocked() 465 int report_size = stream->oa_buffer.format_size; in oa_buffer_check_unlocked() 475 spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); in oa_buffer_check_unlocked() [all …]
|
/linux-5.19.10/sound/soc/ |
D | soc-pcm.c | 44 int stream) in snd_soc_dpcm_stream_lock_irq() argument 46 snd_pcm_stream_lock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_lock_irq() 49 #define snd_soc_dpcm_stream_lock_irqsave_nested(rtd, stream, flags) \ argument 50 snd_pcm_stream_lock_irqsave_nested(snd_soc_dpcm_get_substream(rtd, stream), flags) 53 int stream) in snd_soc_dpcm_stream_unlock_irq() argument 55 snd_pcm_stream_unlock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_unlock_irq() 58 #define snd_soc_dpcm_stream_unlock_irqrestore(rtd, stream, flags) \ argument 59 snd_pcm_stream_unlock_irqrestore(snd_soc_dpcm_get_substream(rtd, stream), flags) 102 int stream, char *buf, size_t size) in dpcm_show_state() argument 104 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state() [all …]
|
/linux-5.19.10/sound/soc/intel/atom/ |
D | sst-mfld-platform-compress.c | 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() 78 struct sst_runtime_stream *stream; in sst_platform_compr_free() local [all …]
|
/linux-5.19.10/sound/soc/sprd/ |
D | sprd-pcm-compress.c | 107 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-5.19.10/drivers/media/test-drivers/vimc/ |
D | vimc-streamer.c | 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() 79 static int vimc_streamer_pipeline_init(struct vimc_stream *stream, in vimc_streamer_pipeline_init() argument 87 stream->pipe_size = 0; in vimc_streamer_pipeline_init() 88 while (stream->pipe_size < VIMC_STREAMER_PIPELINE_MAX_SIZE) { in vimc_streamer_pipeline_init() 90 vimc_streamer_pipeline_terminate(stream); in vimc_streamer_pipeline_init() 93 stream->ved_pipeline[stream->pipe_size++] = ved; in vimc_streamer_pipeline_init() [all …]
|
/linux-5.19.10/lib/kunit/ |
D | string-stream.c | 73 int string_stream_vadd(struct string_stream *stream, in string_stream_vadd() argument 89 frag_container = alloc_string_stream_fragment(stream->test, in string_stream_vadd() 91 stream->gfp); in string_stream_vadd() 96 spin_lock(&stream->lock); in string_stream_vadd() 97 stream->length += len; in string_stream_vadd() 98 list_add_tail(&frag_container->node, &stream->fragments); in string_stream_vadd() 99 spin_unlock(&stream->lock); in string_stream_vadd() 104 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add() argument 110 result = string_stream_vadd(stream, fmt, args); in string_stream_add() 116 static void string_stream_clear(struct string_stream *stream) in string_stream_clear() argument [all …]
|
/linux-5.19.10/sound/xen/ |
D | xen_snd_front_alsa.c | 217 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 …]
|
/linux-5.19.10/drivers/staging/media/atomisp/pci/ |
D | ia_css_stream_public.h | 181 struct ia_css_stream **stream); 190 ia_css_stream_destroy(struct ia_css_stream *stream); 200 ia_css_stream_get_info(const struct ia_css_stream *stream, 215 ia_css_stream_start(struct ia_css_stream *stream); 225 ia_css_stream_stop(struct ia_css_stream *stream); 234 ia_css_stream_has_stopped(struct ia_css_stream *stream); 243 ia_css_stream_unload(struct ia_css_stream *stream); 252 ia_css_stream_get_format(const struct ia_css_stream *stream); 262 ia_css_stream_get_two_pixels_per_clock(const struct ia_css_stream *stream); 272 ia_css_stream_set_output_padded_width(struct ia_css_stream *stream, [all …]
|
/linux-5.19.10/drivers/media/platform/mediatek/jpeg/ |
D | mtk_jpeg_dec_parse.c | 25 static int read_byte(struct mtk_jpeg_stream *stream) in read_byte() argument 27 if (stream->curr >= stream->size) in read_byte() 29 return stream->addr[stream->curr++]; in read_byte() 32 static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word) in read_word_be() argument 37 byte = read_byte(stream); in read_word_be() 41 byte = read_byte(stream); in read_word_be() 49 static void read_skip(struct mtk_jpeg_stream *stream, long len) in read_skip() argument 54 read_byte(stream); in read_skip() 61 struct mtk_jpeg_stream stream; in mtk_jpeg_do_parse() local 63 stream.addr = src_addr_va; in mtk_jpeg_do_parse() [all …]
|