Lines Matching full:rid
79 u32 rid; in relay_get_next_rid() local
82 rid = ++relay->last_rid; in relay_get_next_rid()
85 return rid; in relay_get_next_rid()
127 /** @rid: identifier of the VF/PF relay message. */
128 u32 rid; member
187 static u32 prepare_pf2guc(u32 *msg, u32 target, u32 rid) in prepare_pf2guc() argument
193 msg[2] = FIELD_PREP(PF2GUC_RELAY_TO_VF_REQUEST_MSG_2_RELAY_ID, rid); in prepare_pf2guc()
198 static u32 prepare_vf2guc(u32 *msg, u32 rid) in prepare_vf2guc() argument
203 msg[1] = FIELD_PREP(VF2GUC_RELAY_TO_PF_REQUEST_MSG_1_RELAY_ID, rid); in prepare_vf2guc()
209 __relay_get_transaction(struct xe_guc_relay *relay, bool incoming, u32 remote, u32 rid, in __relay_get_transaction() argument
234 txn->rid = rid; in __relay_get_transaction()
236 prepare_pf2guc(incoming ? txn->response_buf : txn->request_buf, remote, rid) : in __relay_get_transaction()
237 prepare_vf2guc(incoming ? txn->response_buf : txn->request_buf, rid); in __relay_get_transaction()
260 u32 rid = relay_get_next_rid(relay); in relay_new_transaction() local
262 return __relay_get_transaction(relay, false, target, rid, action, len, resp, resp_size); in relay_new_transaction()
266 relay_new_incoming_transaction(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_new_incoming_transaction() argument
269 return __relay_get_transaction(relay, true, origin, rid, action, len, NULL, 0); in relay_new_incoming_transaction()
296 txn->rid, txn->remote, (int)sizeof(u32) * len, msg); in relay_send_transaction()
311 txn->rid, txn->remote, ERR_PTR(ret), (int)sizeof(u32) * len, msg); in relay_send_transaction()
424 txn->rid, txn->remote, action, data0); in relay_send_message_and_wait()
426 /* list ordering does not need to match RID ordering */ in relay_send_message_and_wait()
444 txn->remote, txn->rid, txn->reply, jiffies_to_msecs(timeout - n)); in relay_send_message_and_wait()
460 relay_debug(relay, "%u.%u response %*ph\n", txn->remote, txn->rid, in relay_send_message_and_wait()
472 guc_hxg_type_to_string(type), txn->rid, in relay_send_message_and_wait()
563 u32 rid, int reply, const u32 *msg, u32 len) in relay_handle_reply() argument
570 if (pending->remote != origin || pending->rid != rid) { in relay_handle_reply()
572 pending->remote, pending->rid); in relay_handle_reply()
595 u32 rid, const u32 *msg, u32 len) in relay_handle_failure() argument
602 origin, rid, error, ERR_PTR(-error), hint, 4 * (len - 1), msg + 1); in relay_handle_failure()
604 return relay_handle_reply(relay, origin, rid, error ?: -EREMOTEIO, NULL, 0); in relay_handle_failure()
737 guc_hxg_type_to_string(type), txn->rid, txn->remote, in relay_process_incoming_action()
758 txn->rid, ERR_PTR(ret), 4 * txn->request_len, in relay_process_incoming_action()
792 static int relay_queue_action_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_queue_action_msg() argument
797 txn = relay_new_incoming_transaction(relay, origin, rid, msg, len); in relay_queue_action_msg()
809 static int relay_process_msg(struct xe_guc_relay *relay, u32 origin, u32 rid, in relay_process_msg() argument
823 guc_hxg_type_to_string(type), rid, origin, 4 * len, msg); in relay_process_msg()
829 err = relay_queue_action_msg(relay, origin, rid, msg, len); in relay_process_msg()
832 err = relay_handle_reply(relay, origin, rid, 0, msg, len); in relay_process_msg()
835 err = relay_handle_reply(relay, origin, rid, -EBUSY, NULL, 0); in relay_process_msg()
838 err = relay_handle_reply(relay, origin, rid, -EAGAIN, NULL, 0); in relay_process_msg()
841 err = relay_handle_failure(relay, origin, rid, msg, len); in relay_process_msg()
849 guc_hxg_type_to_string(type), rid, origin, in relay_process_msg()
869 u32 rid; in xe_guc_relay_process_guc2vf() local
892 rid = FIELD_GET(GUC2VF_RELAY_FROM_PF_EVENT_MSG_1_RELAY_ID, msg[1]); in xe_guc_relay_process_guc2vf()
894 return relay_process_msg(relay, PFID, rid, in xe_guc_relay_process_guc2vf()
914 u32 origin, rid; in xe_guc_relay_process_guc2pf() local
939 rid = FIELD_GET(GUC2PF_RELAY_FROM_VF_EVENT_MSG_2_RELAY_ID, msg[2]); in xe_guc_relay_process_guc2pf()
944 err = relay_process_msg(relay, origin, rid, in xe_guc_relay_process_guc2pf()