Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 906) sorted by relevance

12345678910>>...37

/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.c55 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal()
58 stream->signal = stream->link->connector_signal; in update_stream_signal()
60 stream->signal = sink->sink_signal; in update_stream_signal()
62 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal()
63 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal()
64 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK &&
66 stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; in dc_stream_construct()
68 stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; in dc_stream_construct()
72 bool dc_stream_construct(struct dc_stream_state *stream, in dc_stream_construct()
48 update_stream_signal(struct dc_stream_state * stream,struct dc_sink * sink) update_stream_signal() argument
65 dc_stream_construct(struct dc_stream_state * stream,struct dc_sink * dc_sink_data) dc_stream_construct() argument
132 dc_stream_destruct(struct dc_stream_state * stream) dc_stream_destruct() argument
137 dc_stream_assign_stream_id(struct dc_stream_state * stream) dc_stream_assign_stream_id() argument
144 dc_stream_retain(struct dc_stream_state * stream) dc_stream_retain() argument
151 struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount); dc_stream_free() local
158 dc_stream_release(struct dc_stream_state * stream) dc_stream_release() argument
168 struct dc_stream_state *stream = NULL; dc_create_stream_for_sink() local
197 dc_copy_stream(const struct dc_stream_state * stream) dc_copy_stream() argument
238 dc_stream_get_status(struct dc_stream_state * stream) dc_stream_get_status() argument
245 dc_stream_get_status_const(const struct dc_stream_state * stream) dc_stream_get_status_const() argument
254 program_cursor_attributes(struct dc * dc,struct dc_stream_state * stream) program_cursor_attributes() argument
308 dc_stream_check_cursor_attributes(const struct dc_stream_state * stream,struct dc_state * state,const struct dc_cursor_attributes * attributes) dc_stream_check_cursor_attributes() argument
351 dc_stream_set_cursor_attributes(struct dc_stream_state * stream,const struct dc_cursor_attributes * attributes) dc_stream_set_cursor_attributes() argument
368 dc_stream_program_cursor_attributes(struct dc_stream_state * stream,const struct dc_cursor_attributes * attributes) dc_stream_program_cursor_attributes() argument
401 program_cursor_position(struct dc * dc,struct dc_stream_state * stream) program_cursor_position() argument
449 dc_stream_set_cursor_position(struct dc_stream_state * stream,const struct dc_cursor_position * position) dc_stream_set_cursor_position() argument
469 dc_stream_program_cursor_position(struct dc_stream_state * stream,const struct dc_cursor_position * position) dc_stream_program_cursor_position() argument
540 dc_stream_add_writeback(struct dc * dc,struct dc_stream_state * stream,struct dc_writeback_info * wb_info) dc_stream_add_writeback() argument
614 dc_stream_fc_disable_writeback(struct dc * dc,struct dc_stream_state * stream,uint32_t dwb_pipe_inst) dc_stream_fc_disable_writeback() argument
651 dc_stream_remove_writeback(struct dc * dc,struct dc_stream_state * stream,uint32_t dwb_pipe_inst) dc_stream_remove_writeback() argument
706 dc_stream_get_vblank_counter(const struct dc_stream_state * stream) dc_stream_get_vblank_counter() argument
727 dc_stream_send_dp_sdp(const struct dc_stream_state * stream,const uint8_t * custom_sdp_message,unsigned int sdp_message_size) dc_stream_send_dp_sdp() argument
764 dc_stream_get_scanoutpos(const struct dc_stream_state * stream,uint32_t * v_blank_start,uint32_t * v_blank_end,uint32_t * h_position,uint32_t * v_position) dc_stream_get_scanoutpos() argument
802 dc_stream_dmdata_status_done(struct dc * dc,struct dc_stream_state * stream) dc_stream_dmdata_status_done() argument
825 dc_stream_set_dynamic_metadata(struct dc * dc,struct dc_stream_state * stream,struct dc_dmdata_attributes * attr) dc_stream_set_dynamic_metadata() argument
869 dc_stream_add_dsc_to_resource(struct dc * dc,struct dc_state * state,struct dc_stream_state * stream) dc_stream_add_dsc_to_resource() argument
878 dc_stream_get_pipe_ctx(struct dc_stream_state * stream) dc_stream_get_pipe_ctx() argument
892 dc_stream_log(const struct dc * dc,const struct dc_stream_state * stream) dc_stream_log() argument
947 dc_stream_get_3dlut_for_stream(const struct dc * dc,const struct dc_stream_state * stream,bool allocate_one) dc_stream_get_3dlut_for_stream() argument
979 dc_stream_release_3dlut_for_stream(const struct dc * dc,const struct dc_stream_state * stream) dc_stream_release_3dlut_for_stream() argument
1006 dc_stream_get_nearest_smallest_index(struct dc_stream_state * stream,int refresh) dc_stream_get_nearest_smallest_index() argument
1019 dc_stream_get_brightness_millinits_linear_interpolation(struct dc_stream_state * stream,int index1,int index2,int refresh_hz) dc_stream_get_brightness_millinits_linear_interpolation() argument
1038 dc_stream_get_refresh_hz_linear_interpolation(struct dc_stream_state * stream,int index1,int index2,int brightness_millinits) dc_stream_get_refresh_hz_linear_interpolation() argument
1057 dc_stream_get_brightness_millinits_from_refresh(struct dc_stream_state * stream,int refresh_hz) dc_stream_get_brightness_millinits_from_refresh() argument
1079 dc_stream_calculate_flickerless_refresh_rate(struct dc_stream_state * stream,int current_brightness,int starting_refresh_hz,bool is_gaming,bool search_for_max_increase) dc_stream_calculate_flickerless_refresh_rate() argument
1142 dc_stream_get_max_delta_lumin_millinits(struct dc_stream_state * stream,int hz1,int hz2,bool isGaming) dc_stream_get_max_delta_lumin_millinits() argument
1178 dc_stream_get_max_flickerless_instant_vtotal_delta(struct dc_stream_state * stream,bool is_gaming,bool increase) dc_stream_get_max_flickerless_instant_vtotal_delta() argument
1203 dc_stream_calculate_max_flickerless_refresh_rate(struct dc_stream_state * stream,int starting_refresh_hz,bool is_gaming) dc_stream_calculate_max_flickerless_refresh_rate() argument
1221 dc_stream_calculate_min_flickerless_refresh_rate(struct dc_stream_state * stream,int starting_refresh_hz,bool is_gaming) dc_stream_calculate_min_flickerless_refresh_rate() argument
1238 dc_stream_is_refresh_rate_range_flickerless(struct dc_stream_state * stream,int hz1,int hz2,bool is_gaming) dc_stream_is_refresh_rate_range_flickerless() argument
1260 dc_stream_get_max_flickerless_instant_vtotal_decrease(struct dc_stream_state * stream,bool is_gaming) dc_stream_get_max_flickerless_instant_vtotal_decrease() argument
1273 dc_stream_get_max_flickerless_instant_vtotal_increase(struct dc_stream_state * stream,bool is_gaming) dc_stream_get_max_flickerless_instant_vtotal_increase() argument
1282 dc_stream_is_cursor_limit_pending(struct dc * dc,struct dc_stream_state * stream) dc_stream_is_cursor_limit_pending() argument
1292 dc_stream_can_clear_cursor_limit(struct dc * dc,struct dc_stream_state * stream) dc_stream_can_clear_cursor_limit() argument
[all...]
/linux/sound/core/
H A Dcompress_offload.c46 struct snd_compr_stream stream;
52 static void snd_compr_task_free_all(struct snd_compr_stream *stream);
54 static inline void snd_compr_task_free_all(struct snd_compr_stream *stream) { }
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 in snd_compr_task_free_all() argument
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 ha
53 struct snd_compr_stream stream; global() member
190 snd_compr_update_tstamp(struct snd_compr_stream * stream,struct snd_compr_tstamp64 * tstamp) snd_compr_update_tstamp() argument
205 snd_compr_calc_avail(struct snd_compr_stream * stream,struct snd_compr_avail64 * avail) snd_compr_calc_avail() argument
241 snd_compr_get_avail(struct snd_compr_stream * stream) snd_compr_get_avail() argument
255 snd_compr_ioctl_avail(struct snd_compr_stream * stream,unsigned long arg,bool is_32bit) snd_compr_ioctl_avail() argument
289 snd_compr_write_data(struct snd_compr_stream * stream,const char __user * buf,size_t count) snd_compr_write_data() argument
323 struct snd_compr_stream *stream; snd_compr_write() local
374 struct snd_compr_stream *stream; snd_compr_read() local
421 snd_compr_get_poll(struct snd_compr_stream * stream) snd_compr_get_poll() argument
432 struct snd_compr_stream *stream; snd_compr_poll() local
494 snd_compr_get_caps(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_caps() argument
514 snd_compr_get_codec_caps(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_codec_caps() argument
535 snd_compr_malloc_pages(struct snd_compr_stream * stream,size_t size) snd_compr_malloc_pages() argument
558 snd_compr_free_pages(struct snd_compr_stream * stream) snd_compr_free_pages() argument
579 snd_compr_allocate_buffer(struct snd_compr_stream * stream,struct snd_compr_params * params) snd_compr_allocate_buffer() argument
620 snd_compress_check_input(struct snd_compr_stream * stream,struct snd_compr_params * params) snd_compress_check_input() argument
648 snd_compr_set_params(struct snd_compr_stream * stream,unsigned long arg) snd_compr_set_params() argument
689 snd_compr_get_params(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_params() argument
709 snd_compr_get_metadata(struct snd_compr_stream * stream,unsigned long arg) snd_compr_get_metadata() argument
731 snd_compr_set_metadata(struct snd_compr_stream * stream,unsigned long arg) snd_compr_set_metadata() argument
751 snd_compr_tstamp(struct snd_compr_stream * stream,unsigned long arg,bool is_32bit) snd_compr_tstamp() argument
774 snd_compr_pause(struct snd_compr_stream * stream) snd_compr_pause() argument
797 snd_compr_resume(struct snd_compr_stream * stream) snd_compr_resume() argument
820 snd_compr_start(struct snd_compr_stream * stream) snd_compr_start() argument
841 snd_compr_stop(struct snd_compr_stream * stream) snd_compr_stop() argument
869 struct snd_compr_stream *stream; error_delayed_work() local
890 snd_compr_stop_error(struct snd_compr_stream * stream,snd_pcm_state_t state) snd_compr_stop_error() argument
906 snd_compress_wait_for_drain(struct snd_compr_stream * stream) snd_compress_wait_for_drain() argument
941 snd_compr_drain(struct snd_compr_stream * stream) snd_compr_drain() argument
967 snd_compr_next_track(struct snd_compr_stream * stream) snd_compr_next_track() argument
993 snd_compr_partial_drain(struct snd_compr_stream * stream) snd_compr_partial_drain() argument
1032 snd_compr_find_task(struct snd_compr_stream * stream,__u64 seqno) snd_compr_find_task() argument
1052 snd_compr_seqno_next(struct snd_compr_stream * stream) snd_compr_seqno_next() argument
1060 snd_compr_task_new(struct snd_compr_stream * stream,struct snd_compr_task * utask) snd_compr_task_new() argument
1106 snd_compr_task_create(struct snd_compr_stream * stream,unsigned long arg) snd_compr_task_create() argument
1139 snd_compr_task_start(struct snd_compr_stream * stream,struct snd_compr_task * utask) snd_compr_task_start() argument
1168 snd_compr_task_start_ioctl(struct snd_compr_stream * stream,unsigned long arg) snd_compr_task_start_ioctl() argument
1186 snd_compr_task_stop_one(struct snd_compr_stream * stream,struct snd_compr_task_runtime * task) snd_compr_task_stop_one() argument
1198 snd_compr_task_free_one(struct snd_compr_stream * stream,struct snd_compr_task_runtime * task) snd_compr_task_free_one() argument
1208 snd_compr_task_free_all(struct snd_compr_stream * stream) snd_compr_task_free_all() argument
1219 snd_compr_task_seq(struct snd_compr_stream * stream,unsigned long arg,snd_compr_seq_func_t fcn) snd_compr_task_seq() argument
1246 snd_compr_task_status(struct snd_compr_stream * stream,struct snd_compr_task_status * status) snd_compr_task_status() argument
1260 snd_compr_task_status_ioctl(struct snd_compr_stream * stream,unsigned long arg) snd_compr_task_status_ioctl() argument
1285 snd_compr_task_finished(struct snd_compr_stream * stream,struct snd_compr_task_runtime * task) snd_compr_task_finished() argument
1302 struct snd_compr_stream *stream; snd_compr_ioctl() local
[all...]
/linux/drivers/media/usb/uvc/
H A Duvc_video.c163 static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, in uvc_fixup_video_ctrl() argument
182 if (usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k) && in uvc_fixup_video_ctrl()
186 uvc_dbg(stream->dev, VIDEO, in uvc_fixup_video_ctrl()
194 for (i = 0; i < stream->nformats; ++i) { in uvc_fixup_video_ctrl()
195 if (stream->formats[i].index == ctrl->bFormatIndex) { in uvc_fixup_video_ctrl()
196 format = &stream->formats[i]; in uvc_fixup_video_ctrl()
216 stream->dev->uvc_version < 0x0110)) in uvc_fixup_video_ctrl()
230 stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && in uvc_fixup_video_ctrl()
231 stream->intf->num_altsetting > 1) { in uvc_fixup_video_ctrl()
249 if (stream->dev->udev->speed >= USB_SPEED_HIGH) in uvc_fixup_video_ctrl()
[all …]
/linux/sound/soc/au1x/
H A Ddma.c42 struct audio_stream stream[2]; /* playback & capture */ member
45 static void au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
50 stream->period_size = 0; in au1000_release_dma_link()
51 stream->periods = 0; in au1000_release_dma_link()
52 pointer = stream->buffer; in au1000_release_dma_link()
59 } while (pointer != stream->buffer); in au1000_release_dma_link()
60 stream->buffer = NULL; in au1000_release_dma_link()
63 static int au1000_setup_dma_link(struct audio_stream *stream, in au1000_setup_dma_link() argument
67 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
75 if (stream in au1000_setup_dma_link()
104 au1000_dma_stop(struct audio_stream * stream) au1000_dma_stop() argument
110 au1000_dma_start(struct audio_stream * stream) au1000_dma_start() argument
135 struct audio_stream *stream = (struct audio_stream *)ptr; au1000_dma_interrupt() local
232 struct audio_stream *stream = ss_to_as(substream, component); alchemy_pcm_hw_params() local
242 struct audio_stream *stream = ss_to_as(substream, component); alchemy_pcm_hw_free() local
250 struct audio_stream *stream = ss_to_as(substream, component); alchemy_pcm_trigger() local
270 struct audio_stream *stream = ss_to_as(ss, component); alchemy_pcm_pointer() local
[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_obj(*stream); 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_obj(*stream); 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_obj(*stream); 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_obj(z_stream); 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/lib/kunit/
H A Dstring-stream.c41 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()
90 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add() argument
96 result = string_stream_vadd(stream, fmt, args); in string_stream_add()
[all …]
H A Dassert_test.c41 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()
72 kunit_assert_prologue(&location, KUNIT_ASSERTION, stream); in kunit_test_assert_prologue()
73 str = get_str_from_stream(test, 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()
72 kunit_ptr_not_err_assert_format(const struct kunit_assert * assert,const struct va_format * message,struct string_stream * stream) kunit_ptr_not_err_assert_format() argument
118 kunit_binary_assert_format(const struct kunit_assert * assert,const struct va_format * message,struct string_stream * stream) kunit_binary_assert_format() argument
146 kunit_binary_ptr_assert_format(const struct kunit_assert * assert,const struct va_format * message,struct string_stream * stream) kunit_binary_ptr_assert_format() argument
186 kunit_binary_str_assert_format(const struct kunit_assert * assert,const struct va_format * message,struct string_stream * stream) kunit_binary_str_assert_format() argument
214 kunit_assert_hexdump(struct string_stream * stream,const void * buf,const void * compared_buf,const size_t len) kunit_assert_hexdump() argument
238 kunit_mem_assert_format(const struct kunit_assert * assert,const struct va_format * message,struct string_stream * stream) kunit_mem_assert_format() argument
[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
582 xe_oa_poll_locked(struct xe_oa_stream * stream,struct file * file,poll_table * wait) xe_oa_poll_locked() argument
603 struct xe_oa_stream *stream = file->private_data; xe_oa_poll() local
629 xe_oa_submit_bb(struct xe_oa_stream * stream,enum xe_oa_submit_deps deps,struct xe_bb * bb) xe_oa_submit_bb() argument
699 xe_oa_free_oa_buffer(struct xe_oa_stream * stream) xe_oa_free_oa_buffer() argument
704 xe_oa_free_configs(struct xe_oa_stream * stream) xe_oa_free_configs() argument
714 xe_oa_load_with_lri(struct xe_oa_stream * stream,struct xe_oa_reg * reg_lri,u32 count) xe_oa_load_with_lri() argument
743 xe_oa_configure_oar_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oar_context() argument
768 xe_oa_configure_oac_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oac_context() argument
797 xe_oa_configure_oa_context(struct xe_oa_stream * stream,bool enable) xe_oa_configure_oa_context() argument
812 oag_configure_mmio_trigger(const struct xe_oa_stream * stream,bool enable) oag_configure_mmio_trigger() argument
819 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
1398 xe_oa_parse_syncs(struct xe_oa * oa,struct xe_oa_stream * stream,struct xe_oa_open_param * param) xe_oa_parse_syncs() argument
1444 xe_oa_stream_enable(struct xe_oa_stream * stream) xe_oa_stream_enable() argument
1456 xe_oa_stream_disable(struct xe_oa_stream * stream) xe_oa_stream_disable() argument
1468 xe_oa_enable_preempt_timeslice(struct xe_oa_stream * stream) xe_oa_enable_preempt_timeslice() argument
1484 xe_oa_disable_preempt_timeslice(struct xe_oa_stream * stream) xe_oa_disable_preempt_timeslice() argument
1505 xe_oa_enable_locked(struct xe_oa_stream * stream) xe_oa_enable_locked() argument
1523 xe_oa_disable_locked(struct xe_oa_stream * stream) xe_oa_disable_locked() argument
1539 xe_oa_config_locked(struct xe_oa_stream * stream,u64 arg) xe_oa_config_locked() argument
1575 xe_oa_status_locked(struct xe_oa_stream * stream,unsigned long arg) xe_oa_status_locked() argument
1596 xe_oa_info_locked(struct xe_oa_stream * stream,unsigned long arg) xe_oa_info_locked() argument
1607 xe_oa_ioctl_locked(struct xe_oa_stream * stream,unsigned int cmd,unsigned long arg) xe_oa_ioctl_locked() argument
1631 struct xe_oa_stream *stream = file->private_data; xe_oa_ioctl() local
1641 xe_oa_destroy_locked(struct xe_oa_stream * stream) xe_oa_destroy_locked() argument
1657 struct xe_oa_stream *stream = file->private_data; xe_oa_release() local
1674 struct xe_oa_stream *stream = file->private_data; xe_oa_mmap() local
1723 xe_oa_stream_init(struct xe_oa_stream * stream,struct xe_oa_open_param * param) xe_oa_stream_init() argument
1841 struct xe_oa_stream *stream; xe_oa_stream_open_ioctl_locked() local
[all...]
H A Dxe_eu_stall.c67 /* Lock to protect stream */
69 /* EU stall data stream */
70 struct xe_eu_stall_data_stream *stream; member
398 * @stream: xe EU stall data stream instance
403 static bool eu_stall_data_buf_poll(struct xe_eu_stall_data_stream *stream) in eu_stall_data_buf_poll() argument
406 u32 buf_size = stream->per_xecore_buf_size; in eu_stall_data_buf_poll()
408 struct xe_gt *gt = stream->gt; in eu_stall_data_buf_poll()
413 mutex_lock(&stream->xecore_buf_lock); in eu_stall_data_buf_poll()
415 xecore_buf = &stream in eu_stall_data_buf_poll()
452 xe_eu_stall_data_buf_read(struct xe_eu_stall_data_stream * stream,char __user * buf,size_t count,size_t * total_data_size,struct xe_gt * gt,u16 group,u16 instance,unsigned int xecore) xe_eu_stall_data_buf_read() argument
536 xe_eu_stall_stream_read_locked(struct xe_eu_stall_data_stream * stream,struct file * file,char __user * buf,size_t count) xe_eu_stall_stream_read_locked() argument
578 struct xe_eu_stall_data_stream *stream = file->private_data; xe_eu_stall_stream_read() local
617 xe_eu_stall_stream_free(struct xe_eu_stall_data_stream * stream) xe_eu_stall_stream_free() argument
626 xe_eu_stall_data_buf_destroy(struct xe_eu_stall_data_stream * stream) xe_eu_stall_data_buf_destroy() argument
632 xe_eu_stall_data_buf_alloc(struct xe_eu_stall_data_stream * stream,u16 last_xecore) xe_eu_stall_data_buf_alloc() argument
658 xe_eu_stall_stream_enable(struct xe_eu_stall_data_stream * stream) xe_eu_stall_stream_enable() argument
716 struct xe_eu_stall_data_stream *stream = eu_stall_data_buf_poll_work_fn() local
729 xe_eu_stall_stream_init(struct xe_eu_stall_data_stream * stream,struct eu_stall_open_properties * props) xe_eu_stall_stream_init() argument
774 xe_eu_stall_stream_poll_locked(struct xe_eu_stall_data_stream * stream,struct file * file,poll_table * wait) xe_eu_stall_stream_poll_locked() argument
789 struct xe_eu_stall_data_stream *stream = file->private_data; xe_eu_stall_stream_poll() local
800 xe_eu_stall_enable_locked(struct xe_eu_stall_data_stream * stream) xe_eu_stall_enable_locked() argument
818 xe_eu_stall_disable_locked(struct xe_eu_stall_data_stream * stream) xe_eu_stall_disable_locked() argument
841 xe_eu_stall_stream_ioctl_locked(struct xe_eu_stall_data_stream * stream,unsigned int cmd,unsigned long arg) xe_eu_stall_stream_ioctl_locked() argument
856 struct xe_eu_stall_data_stream *stream = file->private_data; xe_eu_stall_stream_ioctl() local
869 struct xe_eu_stall_data_stream *stream = file->private_data; xe_eu_stall_stream_close() local
897 struct xe_eu_stall_data_stream *stream; xe_eu_stall_stream_open_locked() local
[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() argument
437 gen12_oa_hw_tail_read(struct i915_perf_stream * stream) gen12_oa_hw_tail_read() argument
445 gen8_oa_hw_tail_read(struct i915_perf_stream * stream) gen8_oa_hw_tail_read() argument
452 gen7_oa_hw_tail_read(struct i915_perf_stream * stream) gen7_oa_hw_tail_read() argument
463 oa_report_id(struct i915_perf_stream * stream,void * report) oa_report_id() argument
468 oa_report_reason(struct i915_perf_stream * stream,void * report) oa_report_reason() argument
476 oa_report_id_clear(struct i915_perf_stream * stream,u32 * report) oa_report_id_clear() argument
484 oa_report_ctx_invalid(struct i915_perf_stream * stream,void * report) oa_report_ctx_invalid() argument
490 oa_timestamp(struct i915_perf_stream * stream,void * report) oa_timestamp() argument
497 oa_timestamp_clear(struct i915_perf_stream * stream,u32 * report) oa_timestamp_clear() argument
505 oa_context_id(struct i915_perf_stream * stream,u32 * report) oa_context_id() argument
512 oa_context_id_squash(struct i915_perf_stream * stream,u32 * report) oa_context_id_squash() argument
543 oa_buffer_check_unlocked(struct i915_perf_stream * stream) oa_buffer_check_unlocked() argument
628 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
664 append_oa_sample(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset,const u8 * report) append_oa_sample() argument
728 gen8_append_oa_reports(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen8_append_oa_reports() argument
947 gen8_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen8_oa_read() argument
1038 gen7_append_oa_reports(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen7_append_oa_reports() argument
1152 gen7_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) gen7_oa_read() argument
1235 i915_oa_wait_unlocked(struct i915_perf_stream * stream) i915_oa_wait_unlocked() argument
1255 i915_oa_poll_wait(struct i915_perf_stream * stream,struct file * file,poll_table * wait) i915_oa_poll_wait() argument
1274 i915_oa_read(struct i915_perf_stream * stream,char __user * buf,size_t count,size_t * offset) i915_oa_read() argument
1282 oa_pin_context(struct i915_perf_stream * stream) oa_pin_context() argument
1414 gen12_get_render_context_id(struct i915_perf_stream * stream) gen12_get_render_context_id() argument
1526 oa_get_render_ctx_id(struct i915_perf_stream * stream) oa_get_render_ctx_id() argument
1616 oa_put_render_ctx_id(struct i915_perf_stream * stream) oa_put_render_ctx_id() argument
1631 free_oa_buffer(struct i915_perf_stream * stream) free_oa_buffer() argument
1640 free_oa_configs(struct i915_perf_stream * stream) free_oa_configs() argument
1650 free_noa_wait(struct i915_perf_stream * stream) free_noa_wait() argument
1665 i915_oa_stream_destroy(struct i915_perf_stream * stream) i915_oa_stream_destroy() argument
1700 gen7_init_oa_buffer(struct i915_perf_stream * stream) gen7_init_oa_buffer() argument
1745 gen8_init_oa_buffer(struct i915_perf_stream * stream) gen8_init_oa_buffer() argument
1798 gen12_init_oa_buffer(struct i915_perf_stream * stream) gen12_init_oa_buffer() argument
1852 alloc_oa_buffer(struct i915_perf_stream * stream) alloc_oa_buffer() argument
1914 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
1936 alloc_noa_wait(struct i915_perf_stream * stream) alloc_noa_wait() argument
2193 alloc_oa_config_buffer(struct i915_perf_stream * stream,struct i915_oa_config * oa_config) alloc_oa_config_buffer() argument
2281 get_oa_vma(struct i915_perf_stream * stream,struct i915_oa_config * oa_config) get_oa_vma() argument
2306 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
2376 oa_context(struct i915_perf_stream * stream) oa_context() argument
2382 hsw_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) hsw_enable_metric_set() argument
2407 hsw_disable_metric_set(struct i915_perf_stream * stream) hsw_disable_metric_set() argument
2449 gen8_update_reg_state_unlocked(const struct intel_context * ce,const struct i915_perf_stream * stream) gen8_update_reg_state_unlocked() argument
2580 gen8_configure_context(struct i915_perf_stream * stream,struct i915_gem_context * ctx,struct flex * flex,unsigned int count) gen8_configure_context() argument
2610 gen12_configure_oar_context(struct i915_perf_stream * stream,struct i915_active * active) gen12_configure_oar_context() argument
2686 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
2756 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
2798 gen8_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) gen8_enable_metric_set() argument
2848 oag_report_ctx_switches(const struct i915_perf_stream * stream) oag_report_ctx_switches() argument
2856 gen12_enable_metric_set(struct i915_perf_stream * stream,struct i915_active * active) gen12_enable_metric_set() argument
2920 gen8_disable_metric_set(struct i915_perf_stream * stream) gen8_disable_metric_set() argument
2930 gen11_disable_metric_set(struct i915_perf_stream * stream) gen11_disable_metric_set() argument
2941 gen12_disable_metric_set(struct i915_perf_stream * stream) gen12_disable_metric_set() argument
2971 gen7_oa_enable(struct i915_perf_stream * stream) gen7_oa_enable() argument
3001 gen8_oa_enable(struct i915_perf_stream * stream) gen8_oa_enable() argument
3027 gen12_oa_enable(struct i915_perf_stream * stream) gen12_oa_enable() argument
3057 i915_oa_stream_enable(struct i915_perf_stream * stream) i915_oa_stream_enable() argument
3069 gen7_oa_disable(struct i915_perf_stream * stream) gen7_oa_disable() argument
3081 gen8_oa_disable(struct i915_perf_stream * stream) gen8_oa_disable() argument
3093 gen12_oa_disable(struct i915_perf_stream * stream) gen12_oa_disable() argument
3122 i915_oa_stream_disable(struct i915_perf_stream * stream) i915_oa_stream_disable() argument
3139 i915_perf_stream_enable_sync(struct i915_perf_stream * stream) i915_perf_stream_enable_sync() argument
3232 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
3399 struct i915_perf_stream *stream; i915_oa_init_reg_state() local
3433 struct i915_perf_stream *stream = file->private_data; i915_perf_read() local
3487 struct i915_perf_stream *stream = oa_poll_check_timer_cb() local
3513 i915_perf_poll_locked(struct i915_perf_stream * stream,struct file * file,poll_table * wait) i915_perf_poll_locked() argument
3548 struct i915_perf_stream *stream = file->private_data; i915_perf_poll() local
3568 i915_perf_enable_locked(struct i915_perf_stream * stream) i915_perf_enable_locked() argument
3597 i915_perf_disable_locked(struct i915_perf_stream * stream) i915_perf_disable_locked() argument
3612 i915_perf_config_locked(struct i915_perf_stream * stream,unsigned long metrics_set) i915_perf_config_locked() argument
3655 i915_perf_ioctl_locked(struct i915_perf_stream * stream,unsigned int cmd,unsigned long arg) i915_perf_ioctl_locked() argument
3688 struct i915_perf_stream *stream = file->private_data; i915_perf_ioctl() local
3708 i915_perf_destroy_locked(struct i915_perf_stream * stream) i915_perf_destroy_locked() argument
3735 struct i915_perf_stream *stream = file->private_data; i915_perf_release() local
3799 struct i915_perf_stream *stream = NULL; i915_perf_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
632 snd_soc_runtime_calc_hw(struct snd_soc_pcm_runtime * rtd,struct snd_pcm_hardware * hw,int stream) snd_soc_runtime_calc_hw() argument
1300 dpcm_be_connect(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_connect() argument
1349 dpcm_be_reparent(struct snd_soc_pcm_runtime * fe,struct snd_soc_pcm_runtime * be,int stream) dpcm_be_reparent() argument
1378 dpcm_be_disconnect(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_disconnect() argument
1418 dpcm_get_be(struct snd_soc_card * card,struct snd_soc_dapm_widget * widget,int stream) dpcm_get_be() argument
1468 int stream; dpcm_end_walk_at_be() local
1485 dpcm_path_get(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list) dpcm_path_get() argument
1514 dpcm_be_is_active(struct snd_soc_dpcm * dpcm,int stream,struct snd_soc_dapm_widget_list * list) dpcm_be_is_active() argument
1535 dpcm_prune_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_prune_paths() argument
1558 dpcm_add_paths(struct snd_soc_pcm_runtime * fe,int stream,struct snd_soc_dapm_widget_list ** list_) dpcm_add_paths() argument
1627 dpcm_clear_pending_state(struct snd_soc_pcm_runtime * fe,int stream) dpcm_clear_pending_state() argument
1635 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
1679 dpcm_be_dai_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_startup() argument
1752 int stream = substream->stream; dpcm_runtime_setup_fe() local
1783 int stream = substream->stream; dpcm_runtime_setup_be_format() local
1819 int stream = substream->stream; dpcm_runtime_setup_be_chan() local
1867 int stream = substream->stream; dpcm_runtime_setup_be_rate() local
1899 dpcm_apply_symmetry(struct snd_pcm_substream * fe_substream,int stream) dpcm_apply_symmetry() argument
1949 int stream = fe_substream->stream, ret = 0; dpcm_fe_dai_startup() local
1986 int stream = substream->stream; dpcm_fe_dai_shutdown() local
2008 dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_free() argument
2052 int stream = substream->stream; dpcm_fe_dai_hw_free() local
2073 dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_hw_params() argument
2155 int ret, stream = substream->stream; dpcm_fe_dai_hw_params() local
2184 dpcm_be_dai_trigger(struct snd_soc_pcm_runtime * fe,int stream,int cmd) dpcm_be_dai_trigger() argument
2389 int stream = substream->stream; dpcm_fe_dai_do_trigger() local
2453 int stream = substream->stream; dpcm_fe_dai_trigger() local
2467 dpcm_be_dai_prepare(struct snd_soc_pcm_runtime * fe,int stream) dpcm_be_dai_prepare() argument
2513 int stream = substream->stream, ret = 0; dpcm_fe_dai_prepare() local
2545 dpcm_run_update_shutdown(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_shutdown() argument
2564 dpcm_run_update_startup(struct snd_soc_pcm_runtime * fe,int stream) dpcm_run_update_startup() argument
2640 int stream; soc_dpcm_fe_runtime_update() local
2735 int stream = fe_substream->stream; dpcm_fe_dai_cleanup() local
2765 int stream = fe_substream->stream; dpcm_fe_dai_open() local
3000 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.c25 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()
72 static void sctp_stream_outq_migrate(struct sctp_stream *stream, in sctp_stream_outq_migrate() argument
77 if (stream->outcnt > outcnt) in sctp_stream_outq_migrate()
[all …]
/linux/sound/soc/sprd/
H A Dsprd-pcm-compress.c107 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_drain_notify() local
109 memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo)); in sprd_platform_compr_drain_notify()
118 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_complete() local
119 struct sprd_compr_dma *dma = &stream->dma[1]; in sprd_platform_compr_dma_complete()
122 stream->copied_total += dma->trans_len; in sprd_platform_compr_dma_complete()
123 if (stream->copied_total > stream->received_total) in sprd_platform_compr_dma_complete()
124 stream->copied_total = stream->received_total; in sprd_platform_compr_dma_complete()
135 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_config() local
140 struct sprd_compr_dma *dma = &stream->dma[channel]; in sprd_platform_compr_dma_config()
174 src_addr = stream->iram_buffer.addr; in sprd_platform_compr_dma_config()
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c48 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
50 stream = kzalloc_obj(*stream); in sst_platform_compr_open()
51 if (!stream) in sst_platform_compr_open()
54 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
62 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
63 stream->id = 0; in sst_platform_compr_open()
68 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
69 runtime->private_data = stream; in sst_platform_compr_open()
72 kfree(stream); in sst_platform_compr_open()
79 struct sst_runtime_stream *stream; in sst_platform_compr_free() 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 in bpf_stream_push_str()
105 bpf_stream_backlog_peek(struct bpf_stream * stream) bpf_stream_backlog_peek() argument
110 bpf_stream_backlog_pop(struct bpf_stream * stream) bpf_stream_backlog_pop() argument
122 bpf_stream_backlog_fill(struct bpf_stream * stream) bpf_stream_backlog_fill() argument
155 bpf_stream_read(struct bpf_stream * stream,void __user * buf,int len) bpf_stream_read() argument
201 struct bpf_stream *stream; bpf_prog_stream_read() local
224 struct bpf_stream *stream; bpf_stream_vprintk_impl() local
315 struct bpf_stream *stream; bpf_stream_stage_commit() local
[all...]
/linux/drivers/slimbus/
H A Dstream.c125 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
148 struct slim_device *sdev = stream->dev; in slim_disconnect_port()
152 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_disconnect_port()
161 static int slim_deactivate_remove_channel(struct slim_stream_runtime *stream, in slim_deactivate_remove_channel() argument
164 struct slim_device *sdev = stream->dev; in slim_deactivate_remove_channel()
168 DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); in slim_deactivate_remove_channel()
272 static int slim_define_channel_content(struct slim_stream_runtime *stream, in slim_define_channel_content() argument
[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/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.
168 * current state results in the stream pointers in the pipe_ctx structs in link_set_all_streams_dpms_off_for_link()
172 streams[i] = pipes[i]->stream; in link_set_all_streams_dpms_off_for_link()
175 stream_update.stream = streams[i]; in link_set_all_streams_dpms_off_for_link()
200 pipe->stream->link == link; in is_master_pipe_for_link()
220 pipe->stream in link_get_master_pipes_with_dpms_on()
776 struct dc_stream_state *stream = pipe_ctx->stream; dp_set_dsc_on_rx() local
789 struct dc_stream_state *stream = pipe_ctx->stream; dp_set_hblank_reduction_on_rx() local
810 struct dc_stream_state *stream = pipe_ctx->stream; link_set_dsc_on_stream() local
952 struct dc_stream_state *stream = pipe_ctx->stream; link_set_dsc_pps_packet() local
1054 struct dc_stream_state *stream = pipe_ctx->stream; enable_stream_features() local
1121 get_pbn_per_slot(struct dc_stream_state * stream) get_pbn_per_slot() argument
1358 struct dc_stream_state *stream = pipe_ctx->stream; deallocate_mst_payload() local
1436 struct dc_stream_state *stream = pipe_ctx->stream; allocate_mst_payload() local
1513 link_calculate_sst_avg_time_slots_per_mtp(const struct dc_stream_state * stream,const struct dc_link * link) link_calculate_sst_avg_time_slots_per_mtp() argument
1533 write_128b_132b_sst_payload_allocation_table(const struct dc_stream_state * stream,struct dc_link * link,struct link_mst_stream_allocation_table * proposed_table,bool allocate) write_128b_132b_sst_payload_allocation_table() argument
1643 struct dc_stream_state *stream = pipe_ctx->stream; update_sst_payload() local
1725 struct dc_stream_state *stream = pipe_ctx->stream; link_reduce_mst_payload() local
1792 struct dc_stream_state *stream = pipe_ctx->stream; link_increase_mst_payload() local
1909 struct dc_stream_state *stream = pipe_ctx->stream; enable_link_hdmi() local
1983 struct dc_stream_state *stream = pipe_ctx->stream; enable_link_dp() local
2112 struct dc_stream_state *stream = pipe_ctx->stream; enable_link_lvds() local
2187 struct dc_stream_state *stream = pipe_ctx->stream; enable_link() local
2241 allocate_usb4_bandwidth_for_stream(struct dc_stream_state * stream,int bw) allocate_usb4_bandwidth_for_stream() argument
2288 allocate_usb4_bandwidth(struct dc_stream_state * stream) allocate_usb4_bandwidth() argument
2300 deallocate_usb4_bandwidth(struct dc_stream_state * stream) deallocate_usb4_bandwidth() argument
2312 struct dc_stream_state *stream = pipe_ctx->stream; link_set_dpms_off() local
2423 struct dc_stream_state *stream = pipe_ctx->stream; link_set_dpms_on() local
[all...]

12345678910>>...37