Lines Matching defs:relay
39 static struct xe_guc *relay_to_guc(struct xe_guc_relay *relay) in relay_to_guc()
44 static struct xe_guc_ct *relay_to_ct(struct xe_guc_relay *relay) in relay_to_ct()
49 static struct xe_gt *relay_to_gt(struct xe_guc_relay *relay) in relay_to_gt()
54 static struct xe_device *relay_to_xe(struct xe_guc_relay *relay) in relay_to_xe()
59 #define relay_assert(relay, condition) xe_gt_assert(relay_to_gt(relay), condition) argument
60 #define relay_notice(relay, msg...) xe_gt_sriov_notice(relay_to_gt(relay), "relay: " msg) argument
61 #define relay_debug(relay, msg...) xe_gt_sriov_dbg_verbose(relay_to_gt(relay), "relay: " msg) argument
63 static int relay_get_totalvfs(struct xe_guc_relay *relay) in relay_get_totalvfs()
72 static bool relay_is_ready(struct xe_guc_relay *relay) in relay_is_ready()
77 static u32 relay_get_next_rid(struct xe_guc_relay *relay) in relay_get_next_rid()
209 __relay_get_transaction(struct xe_guc_relay *relay, bool incoming, u32 remote, u32 rid, in __relay_get_transaction()
257 relay_new_transaction(struct xe_guc_relay *relay, u32 target, const u32 *action, u32 len, in relay_new_transaction()
266 relay_new_incoming_transaction(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_new_incoming_transaction()
272 static void relay_release_transaction(struct xe_guc_relay *relay, struct relay_transaction *txn) in relay_release_transaction()
282 static int relay_send_transaction(struct xe_guc_relay *relay, struct relay_transaction *txn) in relay_send_transaction()
319 struct xe_guc_relay *relay = arg; in __fini_relay() local
333 int xe_guc_relay_init(struct xe_guc_relay *relay) in xe_guc_relay_init()
402 static void relay_testonly_nop(struct xe_guc_relay *relay) in relay_testonly_nop()
407 static int relay_send_message_and_wait(struct xe_guc_relay *relay, in relay_send_message_and_wait()
480 static int relay_send_to(struct xe_guc_relay *relay, u32 target, in relay_send_to()
532 int xe_guc_relay_send_to_vf(struct xe_guc_relay *relay, u32 target, in xe_guc_relay_send_to_vf()
554 int xe_guc_relay_send_to_pf(struct xe_guc_relay *relay, in xe_guc_relay_send_to_pf()
562 static int relay_handle_reply(struct xe_guc_relay *relay, u32 origin, in relay_handle_reply()
594 static int relay_handle_failure(struct xe_guc_relay *relay, u32 origin, in relay_handle_failure()
607 static int relay_testloop_action_handler(struct xe_guc_relay *relay, u32 origin, in relay_testloop_action_handler()
667 static int relay_action_handler(struct xe_guc_relay *relay, u32 origin, in relay_action_handler()
692 static struct relay_transaction *relay_dequeue_transaction(struct xe_guc_relay *relay) in relay_dequeue_transaction()
705 static void relay_process_incoming_action(struct xe_guc_relay *relay) in relay_process_incoming_action()
764 static bool relay_needs_worker(struct xe_guc_relay *relay) in relay_needs_worker()
776 static void relay_kick_worker(struct xe_guc_relay *relay) in relay_kick_worker()
784 struct xe_guc_relay *relay = container_of(w, struct xe_guc_relay, worker); in relays_worker_fn() local
792 static int relay_queue_action_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_queue_action_msg()
809 static int relay_process_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_process_msg()
867 int xe_guc_relay_process_guc2vf(struct xe_guc_relay *relay, const u32 *msg, u32 len) in xe_guc_relay_process_guc2vf()
912 int xe_guc_relay_process_guc2pf(struct xe_guc_relay *relay, const u32 *msg, u32 len) in xe_guc_relay_process_guc2pf()