Lines Matching refs:relay
20 static int replacement_relay_get_totalvfs(struct xe_guc_relay *relay)
32 struct xe_guc_relay *relay;
41 relay = &xe_device_get_gt(xe, 0)->uc.guc.relay;
45 KUNIT_ASSERT_EQ(test, xe_guc_relay_init(relay), 0);
46 KUNIT_EXPECT_TRUE(test, relay_is_ready(relay));
47 relay->last_rid = TEST_RID - 1;
49 test->priv = relay;
123 struct xe_guc_relay *relay = test->priv;
126 KUNIT_ASSERT_EQ(test, -EPROTO, xe_guc_relay_process_guc2pf(relay, msg, len));
132 struct xe_guc_relay *relay = test->priv;
135 KUNIT_ASSERT_EQ(test, -EMSGSIZE, xe_guc_relay_process_guc2pf(relay, msg, len));
141 struct xe_guc_relay *relay = test->priv;
144 KUNIT_ASSERT_EQ(test, -EPROTO, xe_guc_relay_process_guc2pf(relay, msg, len));
149 struct xe_guc_relay *relay = test->priv;
152 KUNIT_ASSERT_EQ(test, -EPROTO, relay_process_msg(relay, TEST_VFID, TEST_RID, &msg, 0));
157 struct xe_guc_relay *relay = test->priv;
164 KUNIT_ASSERT_EQ(test, -EPROTO, relay_process_msg(relay, TEST_VFID, TEST_RID, msg, len));
169 struct xe_guc_relay *relay = test->priv;
176 KUNIT_ASSERT_EQ(test, -EBADRQC, relay_process_msg(relay, TEST_VFID, TEST_RID, msg, len));
181 struct xe_guc_relay *relay = test->priv;
184 txn = __relay_get_transaction(relay, false, TEST_VFID, TEST_RID,
190 KUNIT_EXPECT_EQ(test, -ECOMM, relay_send_transaction(relay, txn));
192 relay_release_transaction(relay, txn);
197 struct xe_guc_relay *relay = test->priv;
200 txn = __relay_get_transaction(relay, false, TEST_VFID, TEST_RID,
206 KUNIT_ASSERT_EQ(test, 0, relay_send_transaction(relay, txn));
208 relay_release_transaction(relay, txn);
213 struct xe_guc_relay *relay = test->priv;
218 xe_guc_relay_send_to_vf(relay, TEST_VFID,
227 struct xe_guc_relay *relay = test->priv;
262 err = guc2relay(relay, reply, len);
271 * The debug relay action GUC_RELAY_ACTION_VFXPF_TESTLOOP is available
281 struct xe_guc_relay *relay = test->priv;
296 ret = xe_guc_relay_send_to_vf(relay, TEST_VFID,
309 struct xe_guc_relay *relay = test->priv;
326 ret = xe_guc_relay_send_to_vf(relay, TEST_VFID,
342 struct xe_guc_relay *relay = test->priv;
357 ret = xe_guc_relay_send_to_vf(relay, TEST_VFID,
365 struct xe_guc_relay *relay = test->priv;
382 ret = xe_guc_relay_send_to_vf(relay, TEST_VFID,
390 struct xe_guc_relay *relay = test->priv;
406 ret = xe_guc_relay_send_to_vf(relay, TEST_VFID,
439 struct xe_guc_relay *relay = test->priv;
442 KUNIT_ASSERT_EQ(test, -EPROTO, xe_guc_relay_process_guc2vf(relay, msg, len));
448 struct xe_guc_relay *relay = test->priv;
451 KUNIT_ASSERT_EQ(test, -EMSGSIZE, xe_guc_relay_process_guc2vf(relay, msg, len));
457 struct xe_guc_relay *relay = test->priv;
460 KUNIT_ASSERT_EQ(test, -EPROTO, xe_guc_relay_process_guc2vf(relay, msg, len));
479 struct xe_guc_relay *relay = &xe_device_get_gt(xe, 0)->uc.guc.relay;
483 KUNIT_ASSERT_EQ(test, -ENODEV, xe_guc_relay_process_guc2pf(relay, msg, len));
489 struct xe_guc_relay *relay = &xe_device_get_gt(xe, 0)->uc.guc.relay;
493 KUNIT_ASSERT_EQ(test, -ENODEV, xe_guc_relay_process_guc2vf(relay, msg, len));
499 struct xe_guc_relay *relay = &xe_device_get_gt(xe, 0)->uc.guc.relay;
503 KUNIT_ASSERT_EQ(test, -ENODEV, xe_guc_relay_send_to_pf(relay, msg, len, NULL, 0));
504 KUNIT_ASSERT_EQ(test, -ENODEV, relay_send_to(relay, TEST_VFID, msg, len, NULL, 0));