Lines Matching refs:xe_oa_stream
143 static u32 xe_oa_circ_diff(struct xe_oa_stream *stream, u32 tail, u32 head) in xe_oa_circ_diff()
149 static u32 xe_oa_circ_incr(struct xe_oa_stream *stream, u32 ptr, u32 n) in xe_oa_circ_incr()
198 static const struct xe_oa_regs *__oa_regs(struct xe_oa_stream *stream) in __oa_regs()
203 static u32 xe_oa_hw_tail_read(struct xe_oa_stream *stream) in xe_oa_hw_tail_read()
212 static u64 oa_report_id(struct xe_oa_stream *stream, void *report) in oa_report_id()
217 static void oa_report_id_clear(struct xe_oa_stream *stream, u32 *report) in oa_report_id_clear()
225 static u64 oa_timestamp(struct xe_oa_stream *stream, void *report) in oa_timestamp()
232 static void oa_timestamp_clear(struct xe_oa_stream *stream, u32 *report) in oa_timestamp_clear()
240 static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream) in xe_oa_buffer_check_unlocked()
301 struct xe_oa_stream *stream = in xe_oa_poll_check_timer_cb()
314 static int xe_oa_append_report(struct xe_oa_stream *stream, char __user *buf, in xe_oa_append_report()
346 static int xe_oa_append_reports(struct xe_oa_stream *stream, char __user *buf, in xe_oa_append_reports()
404 static void xe_oa_init_oa_buffer(struct xe_oa_stream *stream) in xe_oa_init_oa_buffer()
441 static u32 __oa_ccs_select(struct xe_oa_stream *stream) in __oa_ccs_select()
454 static void xe_oa_enable(struct xe_oa_stream *stream) in xe_oa_enable()
477 static void xe_oa_disable(struct xe_oa_stream *stream) in xe_oa_disable()
496 static int xe_oa_wait_unlocked(struct xe_oa_stream *stream) in xe_oa_wait_unlocked()
509 static int __xe_oa_read(struct xe_oa_stream *stream, char __user *buf, in __xe_oa_read()
528 struct xe_oa_stream *stream = file->private_data; in xe_oa_read()
568 static __poll_t xe_oa_poll_locked(struct xe_oa_stream *stream, in xe_oa_poll_locked()
589 struct xe_oa_stream *stream = file->private_data; in xe_oa_poll()
599 static struct dma_fence *xe_oa_submit_bb(struct xe_oa_stream *stream, enum xe_oa_submit_deps deps, in xe_oa_submit_bb()
663 static void xe_oa_free_oa_buffer(struct xe_oa_stream *stream) in xe_oa_free_oa_buffer()
668 static void xe_oa_free_configs(struct xe_oa_stream *stream) in xe_oa_free_configs()
678 static void xe_oa_store_flex(struct xe_oa_stream *stream, struct xe_lrc *lrc, in xe_oa_store_flex()
692 static int xe_oa_modify_ctx_image(struct xe_oa_stream *stream, struct xe_lrc *lrc, in xe_oa_modify_ctx_image()
722 static int xe_oa_load_with_lri(struct xe_oa_stream *stream, struct xe_oa_reg *reg_lri) in xe_oa_load_with_lri()
751 static int xe_oa_configure_oar_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oar_context()
784 static int xe_oa_configure_oac_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oac_context()
821 static int xe_oa_configure_oa_context(struct xe_oa_stream *stream, bool enable) in xe_oa_configure_oa_context()
836 static u32 oag_configure_mmio_trigger(const struct xe_oa_stream *stream, bool enable) in oag_configure_mmio_trigger()
843 static void xe_oa_disable_metric_set(struct xe_oa_stream *stream) in xe_oa_disable_metric_set()
876 static void xe_oa_stream_destroy(struct xe_oa_stream *stream) in xe_oa_stream_destroy()
904 static int xe_oa_alloc_oa_buffer(struct xe_oa_stream *stream) in xe_oa_alloc_oa_buffer()
925 __xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config) in __xe_oa_alloc_config_buffer()
955 xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config) in xe_oa_alloc_config_buffer()
972 static void xe_oa_update_last_fence(struct xe_oa_stream *stream, struct dma_fence *fence) in xe_oa_update_last_fence()
1015 static int xe_oa_emit_oa_config(struct xe_oa_stream *stream, struct xe_oa_config *config) in xe_oa_emit_oa_config()
1082 static u32 oag_report_ctx_switches(const struct xe_oa_stream *stream) in oag_report_ctx_switches()
1090 static int xe_oa_enable_metric_set(struct xe_oa_stream *stream) in xe_oa_enable_metric_set()
1406 static void xe_oa_stream_enable(struct xe_oa_stream *stream) in xe_oa_stream_enable()
1418 static void xe_oa_stream_disable(struct xe_oa_stream *stream) in xe_oa_stream_disable()
1426 static int xe_oa_enable_preempt_timeslice(struct xe_oa_stream *stream) in xe_oa_enable_preempt_timeslice()
1442 static int xe_oa_disable_preempt_timeslice(struct xe_oa_stream *stream) in xe_oa_disable_preempt_timeslice()
1463 static int xe_oa_enable_locked(struct xe_oa_stream *stream) in xe_oa_enable_locked()
1481 static int xe_oa_disable_locked(struct xe_oa_stream *stream) in xe_oa_disable_locked()
1497 static long xe_oa_config_locked(struct xe_oa_stream *stream, u64 arg) in xe_oa_config_locked()
1533 static long xe_oa_status_locked(struct xe_oa_stream *stream, unsigned long arg) in xe_oa_status_locked()
1554 static long xe_oa_info_locked(struct xe_oa_stream *stream, unsigned long arg) in xe_oa_info_locked()
1565 static long xe_oa_ioctl_locked(struct xe_oa_stream *stream, in xe_oa_ioctl_locked()
1589 struct xe_oa_stream *stream = file->private_data; in xe_oa_ioctl()
1599 static void xe_oa_destroy_locked(struct xe_oa_stream *stream) in xe_oa_destroy_locked()
1614 struct xe_oa_stream *stream = file->private_data; in xe_oa_release()
1631 struct xe_oa_stream *stream = file->private_data; in xe_oa_mmap()
1707 static u32 xe_oa_context_image_offset(struct xe_oa_stream *stream, u32 reg) in xe_oa_context_image_offset()
1737 static int xe_oa_set_ctx_ctrl_offset(struct xe_oa_stream *stream) in xe_oa_set_ctx_ctrl_offset()
1755 static int xe_oa_stream_init(struct xe_oa_stream *stream, in xe_oa_stream_init()
1885 struct xe_oa_stream *stream; in xe_oa_stream_open_ioctl_locked()