Lines Matching defs:stream
137 static u32 xe_oa_circ_diff(struct xe_oa_stream *stream, u32 tail, u32 head) in xe_oa_circ_diff()
143 static u32 xe_oa_circ_incr(struct xe_oa_stream *stream, u32 ptr, u32 n) in xe_oa_circ_incr()
192 static const struct xe_oa_regs *__oa_regs(struct xe_oa_stream *stream) in __oa_regs()
197 static u32 xe_oa_hw_tail_read(struct xe_oa_stream *stream) in xe_oa_hw_tail_read()
206 static u64 oa_report_id(struct xe_oa_stream *stream, void *report) in oa_report_id()
211 static void oa_report_id_clear(struct xe_oa_stream *stream, u32 *report) in oa_report_id_clear()
219 static u64 oa_timestamp(struct xe_oa_stream *stream, void *report) in oa_timestamp()
226 static void oa_timestamp_clear(struct xe_oa_stream *stream, u32 *report) in oa_timestamp_clear()
234 static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream) in xe_oa_buffer_check_unlocked()
293 struct xe_oa_stream *stream = in xe_oa_poll_check_timer_cb() local
304 static int xe_oa_append_report(struct xe_oa_stream *stream, char __user *buf, in xe_oa_append_report()
336 static int xe_oa_append_reports(struct xe_oa_stream *stream, char __user *buf, in xe_oa_append_reports()
394 static void xe_oa_init_oa_buffer(struct xe_oa_stream *stream) in xe_oa_init_oa_buffer()
439 static u32 __oa_ccs_select(struct xe_oa_stream *stream) in __oa_ccs_select()
452 static u32 __oactrl_used_bits(struct xe_oa_stream *stream) in __oactrl_used_bits()
458 static void xe_oa_enable(struct xe_oa_stream *stream) in xe_oa_enable()
481 static void xe_oa_disable(struct xe_oa_stream *stream) in xe_oa_disable()
500 static int xe_oa_wait_unlocked(struct xe_oa_stream *stream) in xe_oa_wait_unlocked()
513 static int __xe_oa_read(struct xe_oa_stream *stream, char __user *buf, in __xe_oa_read()
532 struct xe_oa_stream *stream = file->private_data; in xe_oa_read() local
572 static __poll_t xe_oa_poll_locked(struct xe_oa_stream *stream, in xe_oa_poll_locked()
593 struct xe_oa_stream *stream = file->private_data; in xe_oa_poll() local
619 static struct dma_fence *xe_oa_submit_bb(struct xe_oa_stream *stream, enum xe_oa_submit_deps deps, in xe_oa_submit_bb()
689 static void xe_oa_free_oa_buffer(struct xe_oa_stream *stream) in xe_oa_free_oa_buffer()
694 static void xe_oa_free_configs(struct xe_oa_stream *stream) in xe_oa_free_configs()
704 static int xe_oa_load_with_lri(struct xe_oa_stream *stream, struct xe_oa_reg *reg_lri, u32 count) in xe_oa_load_with_lri()
733 static int xe_oa_configure_oar_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oar_context()
758 static int xe_oa_configure_oac_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oac_context()
787 static int xe_oa_configure_oa_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oa_context()
802 static u32 oag_configure_mmio_trigger(const struct xe_oa_stream *stream, bool enable) in oag_configure_mmio_trigger()
809 static void xe_oa_disable_metric_set(struct xe_oa_stream *stream) in xe_oa_disable_metric_set()
842 static void xe_oa_stream_destroy(struct xe_oa_stream *stream) in xe_oa_stream_destroy()
870 static int xe_oa_alloc_oa_buffer(struct xe_oa_stream *stream, size_t size) in xe_oa_alloc_oa_buffer()
888 __xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config) in __xe_oa_alloc_config_buffer()
918 xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config) in xe_oa_alloc_config_buffer()
935 static void xe_oa_update_last_fence(struct xe_oa_stream *stream, struct dma_fence *fence) in xe_oa_update_last_fence()
978 static int xe_oa_emit_oa_config(struct xe_oa_stream *stream, struct xe_oa_config *config) in xe_oa_emit_oa_config()
1045 static u32 oag_report_ctx_switches(const struct xe_oa_stream *stream) in oag_report_ctx_switches()
1053 static u32 oag_buf_size_select(const struct xe_oa_stream *stream) in oag_buf_size_select()
1060 static int xe_oa_enable_metric_set(struct xe_oa_stream *stream) in xe_oa_enable_metric_set()
1403 static void xe_oa_stream_enable(struct xe_oa_stream *stream) in xe_oa_stream_enable()
1415 static void xe_oa_stream_disable(struct xe_oa_stream *stream) in xe_oa_stream_disable()
1423 static int xe_oa_enable_preempt_timeslice(struct xe_oa_stream *stream) in xe_oa_enable_preempt_timeslice()
1439 static int xe_oa_disable_preempt_timeslice(struct xe_oa_stream *stream) in xe_oa_disable_preempt_timeslice()
1460 static int xe_oa_enable_locked(struct xe_oa_stream *stream) in xe_oa_enable_locked()
1478 static int xe_oa_disable_locked(struct xe_oa_stream *stream) in xe_oa_disable_locked()
1494 static long xe_oa_config_locked(struct xe_oa_stream *stream, u64 arg) in xe_oa_config_locked()
1530 static long xe_oa_status_locked(struct xe_oa_stream *stream, unsigned long arg) in xe_oa_status_locked()
1551 static long xe_oa_info_locked(struct xe_oa_stream *stream, unsigned long arg) in xe_oa_info_locked()
1562 static long xe_oa_ioctl_locked(struct xe_oa_stream *stream, in xe_oa_ioctl_locked()
1586 struct xe_oa_stream *stream = file->private_data; in xe_oa_ioctl() local
1596 static void xe_oa_destroy_locked(struct xe_oa_stream *stream) in xe_oa_destroy_locked()
1611 struct xe_oa_stream *stream = file->private_data; in xe_oa_release() local
1628 struct xe_oa_stream *stream = file->private_data; in xe_oa_mmap() local
1677 static int xe_oa_stream_init(struct xe_oa_stream *stream, in xe_oa_stream_init()
1798 struct xe_oa_stream *stream; in xe_oa_stream_open_ioctl_locked() local