Lines Matching refs:relay_assert

58 #define relay_assert(relay, condition)	xe_gt_assert(relay_to_gt(relay), condition)  macro
213 relay_assert(relay, action_len >= GUC_RELAY_MSG_MIN_LEN); in __relay_get_transaction()
214 relay_assert(relay, action_len <= GUC_RELAY_MSG_MAX_LEN); in __relay_get_transaction()
215 relay_assert(relay, !(!!resp ^ !!resp_size)); in __relay_get_transaction()
216 relay_assert(relay, resp_size <= GUC_RELAY_MSG_MAX_LEN); in __relay_get_transaction()
217 relay_assert(relay, resp_size == 0 || resp_size >= GUC_RELAY_MSG_MIN_LEN); in __relay_get_transaction()
238 relay_assert(relay, txn->offset); in __relay_get_transaction()
239 relay_assert(relay, txn->offset + GUC_RELAY_MSG_MAX_LEN <= ARRAY_SIZE(txn->request_buf)); in __relay_get_transaction()
240 relay_assert(relay, txn->offset + GUC_RELAY_MSG_MAX_LEN <= ARRAY_SIZE(txn->response_buf)); in __relay_get_transaction()
273 relay_assert(relay, list_empty(&txn->link)); in relay_release_transaction()
288 relay_assert(relay, txn->offset); in relay_send_transaction()
289 relay_assert(relay, txn->offset + len <= GUC_CTB_MAX_DWORDS); in relay_send_transaction()
290 relay_assert(relay, len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_transaction()
291 relay_assert(relay, len <= GUC_RELAY_MSG_MAX_LEN); in relay_send_transaction()
338 relay_assert(relay, !relay_is_ready(relay)); in xe_guc_relay_init()
460 relay_assert(relay, txn->response_len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_message_and_wait()
484 relay_assert(relay, len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_to()
485 relay_assert(relay, len <= GUC_RELAY_MSG_MAX_LEN); in relay_send_to()
486 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_HOST); in relay_send_to()
487 relay_assert(relay, guc_hxg_type_is_action(FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]))); in relay_send_to()
501 relay_assert(relay, !GUC_HXG_TYPE_FAST_REQUEST); in relay_send_to()
533 relay_assert(relay, IS_SRIOV_PF(relay_to_xe(relay))); in xe_guc_relay_send_to_vf()
555 relay_assert(relay, IS_SRIOV_VF(relay_to_xe(relay))); in xe_guc_relay_send_to_pf()
598 relay_assert(relay, len); in relay_handle_failure()
616 relay_assert(relay, guc_hxg_type_is_action(type)); in relay_testloop_action_handler()
617 relay_assert(relay, action == GUC_RELAY_ACTION_VFXPF_TESTLOOP); in relay_testloop_action_handler()
672 relay_assert(relay, len >= GUC_HXG_MSG_MIN_LEN); in relay_action_handler()
685 relay_assert(relay, ret <= 0); in relay_action_handler()
869 relay_assert(relay, len >= GUC_HXG_MSG_MIN_LEN); in xe_guc_relay_process_guc2vf()
870 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_GUC); in xe_guc_relay_process_guc2vf()
871 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]) == GUC_HXG_TYPE_EVENT); in xe_guc_relay_process_guc2vf()
872 relay_assert(relay, FIELD_GET(GUC_HXG_EVENT_MSG_0_ACTION, msg[0]) == in xe_guc_relay_process_guc2vf()
915 relay_assert(relay, len >= GUC_HXG_EVENT_MSG_MIN_LEN); in xe_guc_relay_process_guc2pf()
916 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_GUC); in xe_guc_relay_process_guc2pf()
917 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]) == GUC_HXG_TYPE_EVENT); in xe_guc_relay_process_guc2pf()
918 relay_assert(relay, FIELD_GET(GUC_HXG_EVENT_MSG_0_ACTION, msg[0]) == in xe_guc_relay_process_guc2pf()