Lines Matching defs:ct

63 #define CT_DEAD(ct, ctb, reason_code)		ct_dead_capture((ct), (ctb), CT_DEAD_##reason_code)  argument
65 #define CT_DEAD(ct, ctb, reason) \ argument
104 ct_to_guc(struct xe_guc_ct *ct) in ct_to_guc()
110 ct_to_gt(struct xe_guc_ct *ct) in ct_to_gt()
116 ct_to_xe(struct xe_guc_ct *ct) in ct_to_xe()
173 long xe_guc_ct_queue_proc_time_jiffies(struct xe_guc_ct *ct) in xe_guc_ct_queue_proc_time_jiffies()
187 struct xe_guc_ct *ct = arg; in guc_ct_fini() local
197 static void primelockdep(struct xe_guc_ct *ct) in primelockdep()
207 int xe_guc_ct_init(struct xe_guc_ct *ct) in xe_guc_ct_init()
302 static int guc_ct_ctb_h2g_register(struct xe_guc_ct *ct) in guc_ct_ctb_h2g_register()
329 static int guc_ct_ctb_g2h_register(struct xe_guc_ct *ct) in guc_ct_ctb_g2h_register()
357 static int guc_ct_control_toggle(struct xe_guc_ct *ct, bool enable) in guc_ct_control_toggle()
373 static void xe_guc_ct_set_state(struct xe_guc_ct *ct, in xe_guc_ct_set_state()
398 static bool ct_needs_safe_mode(struct xe_guc_ct *ct) in ct_needs_safe_mode()
403 static bool ct_restart_safe_mode_worker(struct xe_guc_ct *ct) in ct_restart_safe_mode_worker()
414 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, safe_mode_worker.work); in safe_mode_worker_func() local
422 static void ct_enter_safe_mode(struct xe_guc_ct *ct) in ct_enter_safe_mode()
428 static void ct_exit_safe_mode(struct xe_guc_ct *ct) in ct_exit_safe_mode()
434 int xe_guc_ct_enable(struct xe_guc_ct *ct) in xe_guc_ct_enable()
489 static void stop_g2h_handler(struct xe_guc_ct *ct) in stop_g2h_handler()
501 void xe_guc_ct_disable(struct xe_guc_ct *ct) in xe_guc_ct_disable()
514 void xe_guc_ct_stop(struct xe_guc_ct *ct) in xe_guc_ct_stop()
520 static bool h2g_has_room(struct xe_guc_ct *ct, u32 cmd_len) in h2g_has_room()
551 static bool g2h_has_room(struct xe_guc_ct *ct, u32 g2h_len) in g2h_has_room()
561 static int has_room(struct xe_guc_ct *ct, u32 cmd_len, u32 g2h_len) in has_room()
571 static void h2g_reserve_space(struct xe_guc_ct *ct, u32 cmd_len) in h2g_reserve_space()
577 static void __g2h_reserve_space(struct xe_guc_ct *ct, u32 g2h_len, u32 num_g2h) in __g2h_reserve_space()
594 static void __g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len) in __g2h_release_space()
620 static void g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len) in g2h_release_space()
629 static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, in h2g_write()
744 static u16 next_ct_seqno(struct xe_guc_ct *ct, bool is_g2h_fence) in next_ct_seqno()
754 static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, in __guc_ct_send_locked()
827 static void kick_reset(struct xe_guc_ct *ct) in kick_reset()
834 static int guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len, in guc_ct_send_locked()
885 #define g2h_avail(ct) \ in guc_ct_send_locked() argument
912 static int guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len, in guc_ct_send()
926 int xe_guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len, in xe_guc_ct_send()
938 int xe_guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len, in xe_guc_ct_send_locked()
950 int xe_guc_ct_send_g2h_handler(struct xe_guc_ct *ct, const u32 *action, u32 len) in xe_guc_ct_send_g2h_handler()
967 static bool retry_failure(struct xe_guc_ct *ct, int ret) in retry_failure()
972 #define ct_alive(ct) \ in retry_failure() argument
982 static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len, in guc_ct_send_recv()
1085 int xe_guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len, in xe_guc_ct_send_recv()
1092 int xe_guc_ct_send_recv_no_fail(struct xe_guc_ct *ct, const u32 *action, in xe_guc_ct_send_recv_no_fail()
1108 static int parse_g2h_event(struct xe_guc_ct *ct, u32 *msg, u32 len) in parse_g2h_event()
1126 static int guc_crash_process_msg(struct xe_guc_ct *ct, u32 action) in guc_crash_process_msg()
1144 static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len) in parse_g2h_response()
1212 static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) in parse_g2h_msg()
1251 static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) in process_g2h_msg()
1335 static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) in g2h_read()
1484 static void g2h_fast_path(struct xe_guc_ct *ct, u32 *msg, u32 len) in g2h_fast_path()
1523 void xe_guc_ct_fast_path(struct xe_guc_ct *ct) in xe_guc_ct_fast_path()
1546 static int dequeue_one_g2h(struct xe_guc_ct *ct) in dequeue_one_g2h()
1570 static void receive_g2h(struct xe_guc_ct *ct) in receive_g2h()
1620 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, g2h_worker); in g2h_worker_func() local
1625 static struct xe_guc_ct_snapshot *guc_ct_snapshot_alloc(struct xe_guc_ct *ct, bool atomic, in guc_ct_snapshot_alloc()
1664 static struct xe_guc_ct_snapshot *guc_ct_snapshot_capture(struct xe_guc_ct *ct, bool atomic, in guc_ct_snapshot_capture()
1699 struct xe_guc_ct_snapshot *xe_guc_ct_snapshot_capture(struct xe_guc_ct *ct) in xe_guc_ct_snapshot_capture()
1761 void xe_guc_ct_print(struct xe_guc_ct *ct, struct drm_printer *p, bool want_ctb) in xe_guc_ct_print()
1771 static void ct_dead_capture(struct xe_guc_ct *ct, struct guc_ctb *ctb, u32 reason_code) in ct_dead_capture()
1819 struct xe_guc_ct *ct = container_of(dead, struct xe_guc_ct, dead); in ct_dead_print() local
1851 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, dead.worker); in ct_dead_worker_func() local