Lines Matching refs:request

177 	const struct icm_pkg_header *req_hdr = req->request;  in icm_match()
200 static int icm_request(struct tb *tb, const void *request, size_t request_size, in icm_request() argument
217 req->request = request; in icm_request()
259 struct icm_fr_pkg_get_topology request = { in icm_fr_get_route() local
270 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
317 struct icm_pkg_driver_ready request = { in icm_fr_driver_ready() local
323 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
336 struct icm_fr_pkg_approve_device request; in icm_fr_approve_switch() local
340 memset(&request, 0, sizeof(request)); in icm_fr_approve_switch()
341 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch()
342 request.hdr.code = ICM_APPROVE_DEVICE; in icm_fr_approve_switch()
343 request.connection_id = sw->connection_id; in icm_fr_approve_switch()
344 request.connection_key = sw->connection_key; in icm_fr_approve_switch()
348 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
363 struct icm_fr_pkg_add_device_key request; in icm_fr_add_switch_key() local
367 memset(&request, 0, sizeof(request)); in icm_fr_add_switch_key()
368 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key()
369 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_fr_add_switch_key()
370 request.connection_id = sw->connection_id; in icm_fr_add_switch_key()
371 request.connection_key = sw->connection_key; in icm_fr_add_switch_key()
372 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_fr_add_switch_key()
375 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
391 struct icm_fr_pkg_challenge_device request; in icm_fr_challenge_switch_key() local
395 memset(&request, 0, sizeof(request)); in icm_fr_challenge_switch_key()
396 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key()
397 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_fr_challenge_switch_key()
398 request.connection_id = sw->connection_id; in icm_fr_challenge_switch_key()
399 request.connection_key = sw->connection_key; in icm_fr_challenge_switch_key()
400 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
403 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
421 struct icm_fr_pkg_approve_xdomain request; in icm_fr_approve_xdomain_paths() local
424 memset(&request, 0, sizeof(request)); in icm_fr_approve_xdomain_paths()
425 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_fr_approve_xdomain_paths()
426 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
427 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
429 request.transmit_path = xd->transmit_path; in icm_fr_approve_xdomain_paths()
430 request.transmit_ring = xd->transmit_ring; in icm_fr_approve_xdomain_paths()
431 request.receive_path = xd->receive_path; in icm_fr_approve_xdomain_paths()
432 request.receive_ring = xd->receive_ring; in icm_fr_approve_xdomain_paths()
435 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
839 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
845 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
863 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
867 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
868 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
869 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
870 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
871 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
872 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
875 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
891 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
894 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
895 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
896 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
897 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
898 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
899 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
900 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
903 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
920 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
923 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
924 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
925 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
926 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
927 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
928 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
929 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
932 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
950 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
953 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
954 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
955 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
956 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
957 request.transmit_path = xd->transmit_path; in icm_tr_approve_xdomain_paths()
958 request.transmit_ring = xd->transmit_ring; in icm_tr_approve_xdomain_paths()
959 request.receive_path = xd->receive_path; in icm_tr_approve_xdomain_paths()
960 request.receive_ring = xd->receive_ring; in icm_tr_approve_xdomain_paths()
961 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
964 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
979 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
982 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
983 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
984 request.stage = stage; in icm_tr_xdomain_tear_down()
985 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
986 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
987 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
990 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1262 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1268 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1287 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1294 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1309 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1315 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1347 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1363 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1364 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1370 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1371 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1376 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()