Lines Matching full:rid

78 	u32 rid;  in relay_get_next_rid()  local
81 rid = ++relay->last_rid; in relay_get_next_rid()
84 return rid; in relay_get_next_rid()
126 /** @rid: identifier of the VF/PF relay message. */
127 u32 rid; member
186 static u32 prepare_pf2guc(u32 *msg, u32 target, u32 rid) in prepare_pf2guc() argument
192 msg[2] = FIELD_PREP(PF2GUC_RELAY_TO_VF_REQUEST_MSG_2_RELAY_ID, rid); in prepare_pf2guc()
197 static u32 prepare_vf2guc(u32 *msg, u32 rid) in prepare_vf2guc() argument
202 msg[1] = FIELD_PREP(VF2GUC_RELAY_TO_PF_REQUEST_MSG_1_RELAY_ID, rid); in prepare_vf2guc()
208 __relay_get_transaction(struct xe_guc_relay *relay, bool incoming, u32 remote, u32 rid, in __relay_get_transaction() argument
233 txn->rid = rid; in __relay_get_transaction()
235 prepare_pf2guc(incoming ? txn->response_buf : txn->request_buf, remote, rid) : in __relay_get_transaction()
236 prepare_vf2guc(incoming ? txn->response_buf : txn->request_buf, rid); in __relay_get_transaction()
259 u32 rid = relay_get_next_rid(relay); in relay_new_transaction() local
261 return __relay_get_transaction(relay, false, target, rid, action, len, resp, resp_size); in relay_new_transaction()
265 relay_new_incoming_transaction(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_new_incoming_transaction() argument
268 return __relay_get_transaction(relay, true, origin, rid, action, len, NULL, 0); in relay_new_incoming_transaction()
295 txn->rid, txn->remote, (int)sizeof(u32) * len, msg); in relay_send_transaction()
310 txn->rid, txn->remote, ERR_PTR(ret), (int)sizeof(u32) * len, msg); in relay_send_transaction()
422 txn->rid, txn->remote, action, data0); in relay_send_message_and_wait()
424 /* list ordering does not need to match RID ordering */ in relay_send_message_and_wait()
442 txn->remote, txn->rid, txn->reply, jiffies_to_msecs(timeout - n)); in relay_send_message_and_wait()
458 relay_debug(relay, "%u.%u response %*ph\n", txn->remote, txn->rid, in relay_send_message_and_wait()
470 guc_hxg_type_to_string(type), txn->rid, in relay_send_message_and_wait()
561 u32 rid, int reply, const u32 *msg, u32 len) in relay_handle_reply() argument
568 if (pending->remote != origin || pending->rid != rid) { in relay_handle_reply()
570 pending->remote, pending->rid); in relay_handle_reply()
593 u32 rid, const u32 *msg, u32 len) in relay_handle_failure() argument
600 origin, rid, error, ERR_PTR(-error), hint, 4 * (len - 1), msg + 1); in relay_handle_failure()
602 return relay_handle_reply(relay, origin, rid, error ?: -EREMOTEIO, NULL, 0); in relay_handle_failure()
735 guc_hxg_type_to_string(type), txn->rid, txn->remote, in relay_process_incoming_action()
756 txn->rid, ERR_PTR(ret), 4 * txn->request_len, in relay_process_incoming_action()
790 static int relay_queue_action_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_queue_action_msg() argument
795 txn = relay_new_incoming_transaction(relay, origin, rid, msg, len); in relay_queue_action_msg()
807 static int relay_process_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_process_msg() argument
821 guc_hxg_type_to_string(type), rid, origin, 4 * len, msg); in relay_process_msg()
827 err = relay_queue_action_msg(relay, origin, rid, msg, len); in relay_process_msg()
830 err = relay_handle_reply(relay, origin, rid, 0, msg, len); in relay_process_msg()
833 err = relay_handle_reply(relay, origin, rid, -EBUSY, NULL, 0); in relay_process_msg()
836 err = relay_handle_reply(relay, origin, rid, -EAGAIN, NULL, 0); in relay_process_msg()
839 err = relay_handle_failure(relay, origin, rid, msg, len); in relay_process_msg()
847 guc_hxg_type_to_string(type), rid, origin, in relay_process_msg()
867 u32 rid; in xe_guc_relay_process_guc2vf() local
890 rid = FIELD_GET(GUC2VF_RELAY_FROM_PF_EVENT_MSG_1_RELAY_ID, msg[1]); in xe_guc_relay_process_guc2vf()
892 return relay_process_msg(relay, PFID, rid, in xe_guc_relay_process_guc2vf()
912 u32 origin, rid; in xe_guc_relay_process_guc2pf() local
937 rid = FIELD_GET(GUC2PF_RELAY_FROM_VF_EVENT_MSG_2_RELAY_ID, msg[2]); in xe_guc_relay_process_guc2pf()
942 err = relay_process_msg(relay, origin, rid, in xe_guc_relay_process_guc2pf()