Home
last modified time | relevance | path

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

12345678910>>...71

/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.c48 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal() argument
51 stream->signal = stream->link->connector_signal; in update_stream_signal()
53 stream->signal = sink->sink_signal; in update_stream_signal()
55 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
56 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
57 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal()
59 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in update_stream_signal()
61 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in update_stream_signal()
65 bool dc_stream_construct(struct dc_stream_state *stream, in dc_stream_construct() argument
70 stream->sink = dc_sink_data; in dc_stream_construct()
[all …]
/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_stream_public.h31 IA_CSS_INPUT_MODE_PRBS, /** data from pseudo-random bit stream */
44 stream */
59 enum atomisp_input_format format; /** Format of input stream. This data
74 enum atomisp_input_format format; /** Format of input stream. This data
80 /* Input stream description. This describes how input will flow into the
135 /* Stream info, this struct describes properties of a stream after it has been
143 /* @brief Load default stream configuration
144 * @param[in,out] stream_config The stream configuration.
147 * This function will reset the stream configuration to the default state:
160 /* @brief Creates a stream
[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 …]
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 …]
H A Dxz_wrapper.c84 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 …]
H A Dzlib_wrapper.c26 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 …]
H A Ddecompressor_multi_percpu.c23 void *stream; member
30 struct squashfs_stream *stream; in squashfs_decompressor_create() local
39 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
40 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
41 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
42 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
45 local_lock_init(&stream->lock); 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()
[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 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 …]
H A Dassert.c12 #include "string-stream.h"
16 struct string_stream *stream) in kunit_assert_prologue() argument
29 string_stream_add(stream, "%s FAILED at %s:%d\n", in kunit_assert_prologue()
36 struct string_stream *stream) in kunit_assert_print_msg() argument
39 string_stream_add(stream, "\n%pV", message); in kunit_assert_print_msg()
44 struct string_stream *stream) in kunit_fail_assert_format() argument
46 string_stream_add(stream, "%pV", message); in kunit_fail_assert_format()
52 struct string_stream *stream) in kunit_unary_assert_format() argument
59 string_stream_add(stream, in kunit_unary_assert_format()
63 string_stream_add(stream, in kunit_unary_assert_format()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_oa.c147 static u32 xe_oa_circ_diff(struct xe_oa_stream *stream, u32 tail, u32 head) in xe_oa_circ_diff() argument
150 tail + stream->oa_buffer.circ_size - head; in xe_oa_circ_diff()
153 static u32 xe_oa_circ_incr(struct xe_oa_stream *stream, u32 ptr, u32 n) in xe_oa_circ_incr() argument
155 return ptr + n >= stream->oa_buffer.circ_size ? in xe_oa_circ_incr()
156 ptr + n - stream->oa_buffer.circ_size : ptr + n; in xe_oa_circ_incr()
202 static const struct xe_oa_regs *__oa_regs(struct xe_oa_stream *stream) in __oa_regs() argument
204 return &stream->oa_unit->regs; in __oa_regs()
207 static u32 xe_oa_hw_tail_read(struct xe_oa_stream *stream) in xe_oa_hw_tail_read() argument
209 return xe_mmio_read32(&stream->gt->mmio, __oa_regs(stream) in xe_oa_hw_tail_read()
216 oa_report_id(struct xe_oa_stream * stream,void * report) oa_report_id() argument
221 oa_report_id_clear(struct xe_oa_stream * stream,u32 * report) oa_report_id_clear() argument
229 oa_timestamp(struct xe_oa_stream * stream,void * report) oa_timestamp() argument
236 oa_timestamp_clear(struct xe_oa_stream * stream,u32 * report) oa_timestamp_clear() argument
244 xe_oa_buffer_check_unlocked(struct xe_oa_stream * stream) xe_oa_buffer_check_unlocked() argument
303 struct xe_oa_stream *stream = xe_oa_poll_check_timer_cb() local
314 xe_oa_append_report(struct xe_oa_stream * stream,char __user * buf,size_t count,size_t * offset,const u8 * report) xe_oa_append_report() argument
346 xe_oa_append_reports(struct xe_oa_stream * stream,char __user * buf,size_t count,size_t * offset) xe_oa_append_reports() argument
404 xe_oa_init_oa_buffer(struct xe_oa_stream * stream) xe_oa_init_oa_buffer() argument
449 __oa_ccs_select(struct xe_oa_stream * stream) __oa_ccs_select() argument
462 __oactrl_used_bits(struct xe_oa_stream * stream) __oactrl_used_bits() argument
468 xe_oa_enable(struct xe_oa_stream * stream) xe_oa_enable() argument
491 xe_oa_disable(struct xe_oa_stream * stream) xe_oa_disable() argument
510 xe_oa_wait_unlocked(struct xe_oa_stream * stream) xe_oa_wait_unlocked() argument
523 __xe_oa_read(struct xe_oa_stream * stream,char __user * buf,size_t count,size_t * offset) __xe_oa_read() argument
542 struct xe_oa_stream *stream = file->private_data; xe_oa_read() local
583 xe_oa_poll_locked(struct xe_oa_stream * stream,struct file * file,poll_table * wait) xe_oa_poll_locked() argument
604 struct xe_oa_stream *stream = file->private_data; xe_oa_poll() local
630 xe_oa_submit_bb(struct xe_oa_stream * stream,enum xe_oa_submit_deps deps,struct xe_bb * bb) xe_oa_submit_bb() argument
700 xe_oa_free_oa_buffer(struct xe_oa_stream * stream) xe_oa_free_oa_buffer() argument
705 xe_oa_free_configs(struct xe_oa_stream * stream) xe_oa_free_configs() argument
715 xe_oa_load_with_lri(struct xe_oa_stream * stream,struct xe_oa_reg * reg_lri,u32 count) xe_oa_load_with_lri() argument
744 xe_oa_configure_oar_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oar_context() argument
769 xe_oa_configure_oac_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oac_context() argument
798 xe_oa_configure_oa_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oa_context() argument
813 oag_configure_mmio_trigger(const struct xe_oa_stream * stream,bool enable) oag_configure_mmio_trigger() argument
820 xe_oa_disable_metric_set(struct xe_oa_stream * stream) xe_oa_disable_metric_set() argument
855 xe_oa_stream_destroy(struct xe_oa_stream * stream) xe_oa_stream_destroy() argument
883 xe_oa_alloc_oa_buffer(struct xe_oa_stream * stream,size_t size) xe_oa_alloc_oa_buffer() argument
901 __xe_oa_alloc_config_buffer(struct xe_oa_stream * stream,struct xe_oa_config * oa_config) __xe_oa_alloc_config_buffer() argument
931 xe_oa_alloc_config_buffer(struct xe_oa_stream * stream,struct xe_oa_config * oa_config) xe_oa_alloc_config_buffer() argument
948 xe_oa_update_last_fence(struct xe_oa_stream * stream,struct dma_fence * fence) xe_oa_update_last_fence() argument
991 xe_oa_emit_oa_config(struct xe_oa_stream * stream,struct xe_oa_config * config) xe_oa_emit_oa_config() argument
1058 oag_report_ctx_switches(const struct xe_oa_stream * stream) oag_report_ctx_switches() argument
1066 oag_buf_size_select(const struct xe_oa_stream * stream) oag_buf_size_select() argument
1073 xe_oa_enable_metric_set(struct xe_oa_stream * stream) xe_oa_enable_metric_set() argument
1394 xe_oa_parse_syncs(struct xe_oa * oa,struct xe_oa_stream * stream,struct xe_oa_open_param * param) xe_oa_parse_syncs() argument
1440 xe_oa_stream_enable(struct xe_oa_stream * stream) xe_oa_stream_enable() argument
1452 xe_oa_stream_disable(struct xe_oa_stream * stream) xe_oa_stream_disable() argument
1460 xe_oa_enable_preempt_timeslice(struct xe_oa_stream * stream) xe_oa_enable_preempt_timeslice() argument
1476 xe_oa_disable_preempt_timeslice(struct xe_oa_stream * stream) xe_oa_disable_preempt_timeslice() argument
1497 xe_oa_enable_locked(struct xe_oa_stream * stream) xe_oa_enable_locked() argument
1515 xe_oa_disable_locked(struct xe_oa_stream * stream) xe_oa_disable_locked() argument
1531 xe_oa_config_locked(struct xe_oa_stream * stream,u64 arg) xe_oa_config_locked() argument
1567 xe_oa_status_locked(struct xe_oa_stream * stream,unsigned long arg) xe_oa_status_locked() argument
1588 xe_oa_info_locked(struct xe_oa_stream * stream,unsigned long arg) xe_oa_info_locked() argument
1599 xe_oa_ioctl_locked(struct xe_oa_stream * stream,unsigned int cmd,unsigned long arg) xe_oa_ioctl_locked() argument
1623 struct xe_oa_stream *stream = file->private_data; xe_oa_ioctl() local
1633 xe_oa_destroy_locked(struct xe_oa_stream * stream) xe_oa_destroy_locked() argument
1649 struct xe_oa_stream *stream = file->private_data; xe_oa_release() local
1666 struct xe_oa_stream *stream = file->private_data; xe_oa_mmap() local
1715 xe_oa_stream_init(struct xe_oa_stream * stream,struct xe_oa_open_param * param) xe_oa_stream_init() argument
1834 struct xe_oa_stream *stream; xe_oa_stream_open_ioctl_locked() local
[all...]
/linux/sound/soc/
H A Dsoc-pcm.c39 static int snd_soc_dpcm_can_fe_update(struct snd_soc_pcm_runtime *fe, int stream)
41 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE)
49 struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_can_be_update() argument
51 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_can_be_update()
52 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_can_be_update()
53 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_can_be_update()
60 int stream, in snd_soc_dpcm_check_state() argument
69 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
74 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()
89 * are not running, paused or suspended for the specified stream directio
92 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
108 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
125 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
177 dpcm_show_state(struct snd_soc_pcm_runtime * fe,int stream,char * buf,size_t size) dpcm_show_state() argument
238 int stream; dpcm_state_read_file() local
284 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
306 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
322 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
338 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
357 snd_soc_runtime_action(struct snd_soc_pcm_runtime * rtd,int stream,int action) snd_soc_runtime_action() argument
545 int stream = substream->stream; soc_pcm_apply_msb() local
620 snd_soc_runtime_calc_hw(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hardware * hw,int stream) snd_soc_runtime_calc_hw() argument
1288 dpcm_be_connect(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_connect() argument
1337 dpcm_be_reparent(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_reparent() argument
1366 dpcm_be_disconnect(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_disconnect() argument
1406 dpcm_get_be(struct snd_soc_card * card,struct snd_soc_dapm_widget * widget,int stream) dpcm_get_be() argument
1456 int stream; dpcm_end_walk_at_be() local
1473 dpcm_path_get(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list) dpcm_path_get() argument
1502 dpcm_be_is_active(struct snd_soc_dpcm * dpcm,int stream,struct snd_soc_dapm_widget_list * list) dpcm_be_is_active() argument
1523 dpcm_prune_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_prune_paths() argument
1546 dpcm_add_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_add_paths() argument
1615 dpcm_clear_pending_state(struct snd_soc_pcm_runtime * fe,int stream) dpcm_clear_pending_state() argument
1623 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
1667 dpcm_be_dai_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_startup() argument
1740 int stream = substream->stream; dpcm_runtime_setup_fe() local
1775 int stream = substream->stream; dpcm_runtime_setup_be_format() local
1811 int stream = substream->stream; dpcm_runtime_setup_be_chan() local
1859 int stream = substream->stream; dpcm_runtime_setup_be_rate() local
1891 dpcm_apply_symmetry(struct snd_pcm_substream * fe_substream,int stream) dpcm_apply_symmetry() argument
1941 int stream = fe_substream->stream, ret = 0; dpcm_fe_dai_startup() local
1978 int stream = substream->stream; dpcm_fe_dai_shutdown() local
2000 dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_free() argument
2044 int stream = substream->stream; dpcm_fe_dai_hw_free() local
2065 dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_params() argument
2147 int ret, stream = substream->stream; dpcm_fe_dai_hw_params() local
2176 dpcm_be_dai_trigger(struct snd_soc_pcm_runtime * fe,int stream,int cmd) dpcm_be_dai_trigger() argument
2381 int stream = substream->stream; dpcm_fe_dai_do_trigger() local
2445 int stream = substream->stream; dpcm_fe_dai_trigger() local
2459 dpcm_be_dai_prepare(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_prepare() argument
2505 int stream = substream->stream, ret = 0; dpcm_fe_dai_prepare() local
2537 dpcm_run_update_shutdown(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_shutdown() argument
2556 dpcm_run_update_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_startup() argument
2632 int stream; soc_dpcm_fe_runtime_update() local
2727 int stream = fe_substream->stream; dpcm_fe_dai_cleanup() local
2757 int stream = fe_substream->stream; dpcm_fe_dai_open() local
2992 snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime * be,int stream) snd_soc_dpcm_get_substream() argument
[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()
51 sctp_sched_rr_sched(struct sctp_stream * stream,struct sctp_stream_out_ext * soute) sctp_sched_rr_sched() argument
65 sctp_sched_rr_set(struct sctp_stream * stream,__u16 sid,__u16 prio,gfp_t gfp) sctp_sched_rr_set() argument
71 sctp_sched_rr_get(struct sctp_stream * stream,__u16 sid,__u16 * value) sctp_sched_rr_get() argument
77 sctp_sched_rr_init(struct sctp_stream * stream) sctp_sched_rr_init() argument
85 sctp_sched_rr_init_sid(struct sctp_stream * stream,__u16 sid,gfp_t gfp) sctp_sched_rr_init_sid() argument
93 sctp_sched_rr_free_sid(struct sctp_stream * stream,__u16 sid) sctp_sched_rr_free_sid() argument
100 struct sctp_stream *stream; sctp_sched_rr_enqueue() local
112 struct sctp_stream *stream = &q->asoc->stream; sctp_sched_rr_dequeue() local
149 sctp_sched_rr_sched_all(struct sctp_stream * stream) sctp_sched_rr_sched_all() argument
166 sctp_sched_rr_unsched_all(struct sctp_stream * stream) sctp_sched_rr_unsched_all() argument
[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, si in sctp_stream_free_ext()
72 sctp_stream_outq_migrate(struct sctp_stream * stream,struct sctp_stream * new,__u16 outcnt) sctp_stream_outq_migrate() argument
96 sctp_stream_alloc_out(struct sctp_stream * stream,__u16 outcnt,gfp_t gfp) sctp_stream_alloc_out() argument
113 sctp_stream_alloc_in(struct sctp_stream * stream,__u16 incnt,gfp_t gfp) sctp_stream_alloc_in() argument
130 sctp_stream_init(struct sctp_stream * stream,__u16 outcnt,__u16 incnt,gfp_t gfp) sctp_stream_init() argument
164 sctp_stream_init_ext(struct sctp_stream * stream,__u16 sid) sctp_stream_init_ext() argument
183 sctp_stream_free(struct sctp_stream * stream) sctp_stream_free() argument
195 sctp_stream_clear(struct sctp_stream * stream) sctp_stream_clear() argument
208 sctp_stream_update(struct sctp_stream * stream,struct sctp_stream * new) sctp_stream_update() argument
241 sctp_stream_outq_is_empty(struct sctp_stream * stream,__u16 str_nums,__be16 * str_list) sctp_stream_outq_is_empty() argument
268 struct sctp_stream *stream = &asoc->stream; sctp_send_reset_streams() local
382 struct sctp_stream *stream = &asoc->stream; sctp_send_reset_assoc() local
427 struct sctp_stream *stream = &asoc->stream; sctp_send_add_streams() local
522 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_outreq() local
611 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_inreq() local
689 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_tsnreq() local
785 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_addstrm_out() local
855 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_addstrm_in() local
919 struct sctp_stream *stream = &asoc->stream; sctp_process_strreset_resp() local
[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 in sctp_sched_fc_init()
67 sctp_sched_fc_init_sid(struct sctp_stream * stream,__u16 sid,gfp_t gfp) sctp_sched_fc_init_sid() argument
79 sctp_sched_fc_free_sid(struct sctp_stream * stream,__u16 sid) sctp_sched_fc_free_sid() argument
83 sctp_sched_fc_sched(struct sctp_stream * stream,struct sctp_stream_out_ext * soute) sctp_sched_fc_sched() argument
101 struct sctp_stream *stream; sctp_sched_fc_enqueue() local
113 struct sctp_stream *stream = &q->asoc->stream; sctp_sched_fc_dequeue() local
135 struct sctp_stream *stream = &q->asoc->stream; sctp_sched_fc_dequeue_done() local
169 sctp_sched_fc_sched_all(struct sctp_stream * stream) sctp_sched_fc_sched_all() argument
183 sctp_sched_fc_unsched_all(struct sctp_stream * stream) sctp_sched_fc_unsched_all() argument
[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()
130 sctp_sched_prio_sched(struct sctp_stream * stream,struct sctp_stream_out_ext * soute) sctp_sched_prio_sched() argument
163 sctp_sched_prio_set(struct sctp_stream * stream,__u16 sid,__u16 prio,gfp_t gfp) sctp_sched_prio_set() argument
188 sctp_sched_prio_get(struct sctp_stream * stream,__u16 sid,__u16 * value) sctp_sched_prio_get() argument
195 sctp_sched_prio_init(struct sctp_stream * stream) sctp_sched_prio_init() argument
202 sctp_sched_prio_init_sid(struct sctp_stream * stream,__u16 sid,gfp_t gfp) sctp_sched_prio_init_sid() argument
209 sctp_sched_prio_free_sid(struct sctp_stream * stream,__u16 sid) sctp_sched_prio_free_sid() argument
218 struct sctp_stream *stream; sctp_sched_prio_enqueue() local
230 struct sctp_stream *stream = &q->asoc->stream; sctp_sched_prio_dequeue() local
276 sctp_sched_prio_sched_all(struct sctp_stream * stream) sctp_sched_prio_sched_all() argument
293 sctp_sched_prio_unsched_all(struct sctp_stream * stream) sctp_sched_prio_unsched_all() argument
[all...]
H A Dstream_sched.c7 * These functions manipulate sctp stream queue/scheduling.
25 static int sctp_sched_fcfs_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_set() argument
31 static int sctp_sched_fcfs_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_get() argument
38 static int sctp_sched_fcfs_init(struct sctp_stream *stream) in sctp_sched_fcfs_init() argument
43 static int sctp_sched_fcfs_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_init_sid() argument
49 static void sctp_sched_fcfs_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_fcfs_free_sid() argument
60 struct sctp_stream *stream = &q->asoc->stream; in sctp_sched_fcfs_dequeue() local
67 if (stream->out_curr) { in sctp_sched_fcfs_dequeue()
68 ch = list_entry(stream in sctp_sched_fcfs_dequeue()
86 sctp_sched_fcfs_sched_all(struct sctp_stream * stream) sctp_sched_fcfs_sched_all() argument
90 sctp_sched_fcfs_unsched_all(struct sctp_stream * stream) sctp_sched_fcfs_unsched_all() argument
131 sctp_sched_free_sched(struct sctp_stream * stream) sctp_sched_free_sched() argument
264 sctp_sched_init_sid(struct sctp_stream * stream,__u16 sid,gfp_t gfp) sctp_sched_init_sid() argument
273 sctp_sched_ops_from_stream(struct sctp_stream * stream) sctp_sched_ops_from_stream() argument
[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/drivers/soundwire/
H A Dstream.c5 * stream.c - SoundWire Bus stream operations.
278 * @m_rt: Master stream runtime
386 * @m_rt: Master stream runtime
707 * explicitly preparing a stream or handling an in sdw_program_params()
708 * already-prepared stream otherwise. in sdw_program_params()
711 m_rt->stream->state == SDW_STREAM_CONFIGURED) in sdw_program_params()
729 if (m_rt->stream->state != SDW_STREAM_ENABLED) in sdw_program_params()
813 * @multi_link: whether this is a multi-link stream with hardware-based sync
845 static int do_bank_switch(struct sdw_stream_runtime *stream) in do_bank_switch() argument
854 m_rt_count = stream->m_rt_count; in do_bank_switch()
[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/gpu/drm/i915/
H A Di915_perf.c36 * descriptor representing a stream of GPU metrics which can then be read() as
37 * a stream of sample records.
56 * i915 perf file descriptors represent a "stream" instead of an "event"; where
57 * a perf event primarily corresponds to a single 64bit value, while a stream
61 * of related counters. Samples for an i915 perf stream capturing OA metrics
64 * selected by the user opening the stream. Perf has support for grouping
68 * i915 perf stream configurations are provided as an array of u64 (key,value)
344 * struct perf_open_properties - for validated properties given to open a stream
363 * to open a stream of metrics the configuration is built up in the structure
432 struct i915_perf_regs *__oa_regs(struct i915_perf_stream *stream) in __oa_regs()
431 __oa_regs(struct i915_perf_stream * stream) __oa_regs() argument
436 gen12_oa_hw_tail_read(struct i915_perf_stream * stream) gen12_oa_hw_tail_read() argument
444 gen8_oa_hw_tail_read(struct i915_perf_stream * stream) gen8_oa_hw_tail_read() argument
451 gen7_oa_hw_tail_read(struct i915_perf_stream * stream) gen7_oa_hw_tail_read() argument
462 oa_report_id(struct i915_perf_stream * stream,void * report) oa_report_id() argument
467 oa_report_reason(struct i915_perf_stream * stream,void * report) oa_report_reason() argument
475 oa_report_id_clear(struct i915_perf_stream * stream,u32 * report) oa_report_id_clear() argument
483 oa_report_ctx_invalid(struct i915_perf_stream * stream,void * report) oa_report_ctx_invalid() argument
489 oa_timestamp(struct i915_perf_stream * stream,void * report) oa_timestamp() argument
496 oa_timestamp_clear(struct i915_perf_stream * stream,u32 * report) oa_timestamp_clear() argument
504 oa_context_id(struct i915_perf_stream * stream,u32 * report) oa_context_id() argument
511 oa_context_id_squash(struct i915_perf_stream * stream,u32 * report) oa_context_id_squash() argument
542 oa_buffer_check_unlocked(struct i915_perf_stream * stream) oa_buffer_check_unlocked() argument
627 append_oa_status(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset,enum drm_i915_perf_record_type type) append_oa_status() argument
663 append_oa_sample(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset,const u8 * report) append_oa_sample() argument
727 gen8_append_oa_reports(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen8_append_oa_reports() argument
946 gen8_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen8_oa_read() argument
1037 gen7_append_oa_reports(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen7_append_oa_reports() argument
1151 gen7_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen7_oa_read() argument
1234 i915_oa_wait_unlocked(struct i915_perf_stream * stream) i915_oa_wait_unlocked() argument
1254 i915_oa_poll_wait(struct i915_perf_stream * stream,struct file * file,poll_table * wait) i915_oa_poll_wait() argument
1273 i915_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) i915_oa_read() argument
1281 oa_pin_context(struct i915_perf_stream * stream) oa_pin_context() argument
1413 gen12_get_render_context_id(struct i915_perf_stream * stream) gen12_get_render_context_id() argument
1525 oa_get_render_ctx_id(struct i915_perf_stream * stream) oa_get_render_ctx_id() argument
1615 oa_put_render_ctx_id(struct i915_perf_stream * stream) oa_put_render_ctx_id() argument
1630 free_oa_buffer(struct i915_perf_stream * stream) free_oa_buffer() argument
1639 free_oa_configs(struct i915_perf_stream * stream) free_oa_configs() argument
1649 free_noa_wait(struct i915_perf_stream * stream) free_noa_wait() argument
1664 i915_oa_stream_destroy(struct i915_perf_stream * stream) i915_oa_stream_destroy() argument
1699 gen7_init_oa_buffer(struct i915_perf_stream * stream) gen7_init_oa_buffer() argument
1744 gen8_init_oa_buffer(struct i915_perf_stream * stream) gen8_init_oa_buffer() argument
1797 gen12_init_oa_buffer(struct i915_perf_stream * stream) gen12_init_oa_buffer() argument
1851 alloc_oa_buffer(struct i915_perf_stream * stream) alloc_oa_buffer() argument
1913 save_restore_register(struct i915_perf_stream * stream,u32 * cs,bool save,i915_reg_t reg,u32 offset,u32 dword_count) save_restore_register() argument
1935 alloc_noa_wait(struct i915_perf_stream * stream) alloc_noa_wait() argument
2192 alloc_oa_config_buffer(struct i915_perf_stream * stream,struct i915_oa_config * oa_config) alloc_oa_config_buffer() argument
2280 get_oa_vma(struct i915_perf_stream * stream,struct i915_oa_config * oa_config) get_oa_vma() argument
2305 emit_oa_config(struct i915_perf_stream * stream,struct i915_oa_config * oa_config,struct intel_context * ce,struct i915_active * active) emit_oa_config() argument
2375 oa_context(struct i915_perf_stream * stream) oa_context() argument
2381 hsw_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) hsw_enable_metric_set() argument
2406 hsw_disable_metric_set(struct i915_perf_stream * stream) hsw_disable_metric_set() argument
2448 gen8_update_reg_state_unlocked(const struct intel_context * ce,const struct i915_perf_stream * stream) gen8_update_reg_state_unlocked() argument
2579 gen8_configure_context(struct i915_perf_stream * stream,struct i915_gem_context * ctx,struct flex * flex,unsigned int count) gen8_configure_context() argument
2609 gen12_configure_oar_context(struct i915_perf_stream * stream,struct i915_active * active) gen12_configure_oar_context() argument
2685 oa_configure_all_contexts(struct i915_perf_stream * stream,struct flex * regs,size_t num_regs,struct i915_active * active) oa_configure_all_contexts() argument
2755 lrc_configure_all_contexts(struct i915_perf_stream * stream,const struct i915_oa_config * oa_config,struct i915_active * active) lrc_configure_all_contexts() argument
2797 gen8_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) gen8_enable_metric_set() argument
2847 oag_report_ctx_switches(const struct i915_perf_stream * stream) oag_report_ctx_switches() argument
2855 gen12_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) gen12_enable_metric_set() argument
2919 gen8_disable_metric_set(struct i915_perf_stream * stream) gen8_disable_metric_set() argument
2929 gen11_disable_metric_set(struct i915_perf_stream * stream) gen11_disable_metric_set() argument
2940 gen12_disable_metric_set(struct i915_perf_stream * stream) gen12_disable_metric_set() argument
2970 gen7_oa_enable(struct i915_perf_stream * stream) gen7_oa_enable() argument
3000 gen8_oa_enable(struct i915_perf_stream * stream) gen8_oa_enable() argument
3026 gen12_oa_enable(struct i915_perf_stream * stream) gen12_oa_enable() argument
3056 i915_oa_stream_enable(struct i915_perf_stream * stream) i915_oa_stream_enable() argument
3068 gen7_oa_disable(struct i915_perf_stream * stream) gen7_oa_disable() argument
3080 gen8_oa_disable(struct i915_perf_stream * stream) gen8_oa_disable() argument
3092 gen12_oa_disable(struct i915_perf_stream * stream) gen12_oa_disable() argument
3121 i915_oa_stream_disable(struct i915_perf_stream * stream) i915_oa_stream_disable() argument
3138 i915_perf_stream_enable_sync(struct i915_perf_stream * stream) i915_perf_stream_enable_sync() argument
3231 i915_oa_stream_init(struct i915_perf_stream * stream,struct drm_i915_perf_open_param * param,struct perf_open_properties * props) i915_oa_stream_init() argument
3398 struct i915_perf_stream *stream; i915_oa_init_reg_state() local
3432 struct i915_perf_stream *stream = file->private_data; i915_perf_read() local
3486 struct i915_perf_stream *stream = oa_poll_check_timer_cb() local
3512 i915_perf_poll_locked(struct i915_perf_stream * stream,struct file * file,poll_table * wait) i915_perf_poll_locked() argument
3547 struct i915_perf_stream *stream = file->private_data; i915_perf_poll() local
3567 i915_perf_enable_locked(struct i915_perf_stream * stream) i915_perf_enable_locked() argument
3596 i915_perf_disable_locked(struct i915_perf_stream * stream) i915_perf_disable_locked() argument
3611 i915_perf_config_locked(struct i915_perf_stream * stream,unsigned long metrics_set) i915_perf_config_locked() argument
3654 i915_perf_ioctl_locked(struct i915_perf_stream * stream,unsigned int cmd,unsigned long arg) i915_perf_ioctl_locked() argument
3687 struct i915_perf_stream *stream = file->private_data; i915_perf_ioctl() local
3707 i915_perf_destroy_locked(struct i915_perf_stream * stream) i915_perf_destroy_locked() argument
3734 struct i915_perf_stream *stream = file->private_data; i915_perf_release() local
3798 struct i915_perf_stream *stream = NULL; i915_perf_open_ioctl_locked() local
[all...]
/linux/kernel/bpf/
H A Dstream.c25 * Length denotes the amount of data to be written as part of stream element, in bpf_stream_elem_alloc()
60 static int bpf_stream_consume_capacity(struct bpf_stream *stream, int len) in bpf_stream_consume_capacity() argument
62 if (atomic_read(&stream->capacity) >= BPF_STREAM_MAX_CAPACITY) in bpf_stream_consume_capacity()
64 if (atomic_add_return(len, &stream->capacity) >= BPF_STREAM_MAX_CAPACITY) { in bpf_stream_consume_capacity()
65 atomic_sub(len, &stream->capacity); in bpf_stream_consume_capacity()
71 static void bpf_stream_release_capacity(struct bpf_stream *stream, struct bpf_stream_elem *elem) in bpf_stream_release_capacity() argument
75 atomic_sub(len, &stream->capacity); in bpf_stream_release_capacity()
78 static int bpf_stream_push_str(struct bpf_stream *stream, const char *str, int len) in bpf_stream_push_str() argument
80 int ret = bpf_stream_consume_capacity(stream, len); in bpf_stream_push_str()
82 return ret ?: __bpf_stream_push_str(&stream->log, str, len); in bpf_stream_push_str()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c27 * This file owns the programming sequence of stream's dpms state associated
28 * with the link and link's enable/disable sequences as result of the stream's
31 * TODO - The reason link owns stream's dpms programming sequence is
34 * stream state programming sequence. This creates a gray area where the
35 * boundary between link and stream is not clearly defined.
167 * current state results in the stream pointers in the pipe_ctx structs in link_set_all_streams_dpms_off_for_link()
171 streams[i] = pipes[i]->stream; in link_set_all_streams_dpms_off_for_link()
174 stream_update.stream = streams[i]; in link_set_all_streams_dpms_off_for_link()
199 pipe->stream->link == link; in is_master_pipe_for_link()
219 pipe->stream->dpms_off == false) { in link_get_master_pipes_with_dpms_on()
[all …]

12345678910>>...71