Lines Matching refs:relay_assert
59 #define relay_assert(relay, condition) xe_gt_assert(relay_to_gt(relay), condition) macro
214 relay_assert(relay, action_len >= GUC_RELAY_MSG_MIN_LEN); in __relay_get_transaction()
215 relay_assert(relay, action_len <= GUC_RELAY_MSG_MAX_LEN); in __relay_get_transaction()
216 relay_assert(relay, !(!!resp ^ !!resp_size)); in __relay_get_transaction()
217 relay_assert(relay, resp_size <= GUC_RELAY_MSG_MAX_LEN); in __relay_get_transaction()
218 relay_assert(relay, resp_size == 0 || resp_size >= GUC_RELAY_MSG_MIN_LEN); in __relay_get_transaction()
239 relay_assert(relay, txn->offset); in __relay_get_transaction()
240 relay_assert(relay, txn->offset + GUC_RELAY_MSG_MAX_LEN <= ARRAY_SIZE(txn->request_buf)); in __relay_get_transaction()
241 relay_assert(relay, txn->offset + GUC_RELAY_MSG_MAX_LEN <= ARRAY_SIZE(txn->response_buf)); in __relay_get_transaction()
274 relay_assert(relay, list_empty(&txn->link)); in relay_release_transaction()
289 relay_assert(relay, txn->offset); in relay_send_transaction()
290 relay_assert(relay, txn->offset + len <= GUC_CTB_MAX_DWORDS); in relay_send_transaction()
291 relay_assert(relay, len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_transaction()
292 relay_assert(relay, len <= GUC_RELAY_MSG_MAX_LEN); in relay_send_transaction()
339 relay_assert(relay, !relay_is_ready(relay)); in xe_guc_relay_init()
462 relay_assert(relay, txn->response_len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_message_and_wait()
486 relay_assert(relay, len >= GUC_RELAY_MSG_MIN_LEN); in relay_send_to()
487 relay_assert(relay, len <= GUC_RELAY_MSG_MAX_LEN); in relay_send_to()
488 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_HOST); in relay_send_to()
489 relay_assert(relay, guc_hxg_type_is_action(FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]))); in relay_send_to()
503 relay_assert(relay, !GUC_HXG_TYPE_FAST_REQUEST); in relay_send_to()
535 relay_assert(relay, IS_SRIOV_PF(relay_to_xe(relay))); in xe_guc_relay_send_to_vf()
557 relay_assert(relay, IS_SRIOV_VF(relay_to_xe(relay))); in xe_guc_relay_send_to_pf()
600 relay_assert(relay, len); in relay_handle_failure()
618 relay_assert(relay, guc_hxg_type_is_action(type)); in relay_testloop_action_handler()
619 relay_assert(relay, action == GUC_RELAY_ACTION_VFXPF_TESTLOOP); in relay_testloop_action_handler()
674 relay_assert(relay, len >= GUC_HXG_MSG_MIN_LEN); in relay_action_handler()
687 relay_assert(relay, ret <= 0); in relay_action_handler()
871 relay_assert(relay, len >= GUC_HXG_MSG_MIN_LEN); in xe_guc_relay_process_guc2vf()
872 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_GUC); in xe_guc_relay_process_guc2vf()
873 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]) == GUC_HXG_TYPE_EVENT); in xe_guc_relay_process_guc2vf()
874 relay_assert(relay, FIELD_GET(GUC_HXG_EVENT_MSG_0_ACTION, msg[0]) == in xe_guc_relay_process_guc2vf()
917 relay_assert(relay, len >= GUC_HXG_EVENT_MSG_MIN_LEN); in xe_guc_relay_process_guc2pf()
918 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_ORIGIN, msg[0]) == GUC_HXG_ORIGIN_GUC); in xe_guc_relay_process_guc2pf()
919 relay_assert(relay, FIELD_GET(GUC_HXG_MSG_0_TYPE, msg[0]) == GUC_HXG_TYPE_EVENT); in xe_guc_relay_process_guc2pf()
920 relay_assert(relay, FIELD_GET(GUC_HXG_EVENT_MSG_0_ACTION, msg[0]) == in xe_guc_relay_process_guc2pf()