Lines Matching refs:request

242 	const struct icm_pkg_header *req_hdr = req->request;  in icm_match()
265 static int icm_request(struct tb *tb, const void *request, size_t request_size, in icm_request() argument
282 req->request = request; in icm_request()
361 struct icm_fr_pkg_get_topology request = { in icm_fr_get_route() local
372 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
419 struct icm_pkg_driver_ready request = { in icm_fr_driver_ready() local
425 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
438 struct icm_fr_pkg_approve_device request; in icm_fr_approve_switch() local
442 memset(&request, 0, sizeof(request)); in icm_fr_approve_switch()
443 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch()
444 request.hdr.code = ICM_APPROVE_DEVICE; in icm_fr_approve_switch()
445 request.connection_id = sw->connection_id; in icm_fr_approve_switch()
446 request.connection_key = sw->connection_key; in icm_fr_approve_switch()
450 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
465 struct icm_fr_pkg_add_device_key request; in icm_fr_add_switch_key() local
469 memset(&request, 0, sizeof(request)); in icm_fr_add_switch_key()
470 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key()
471 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_fr_add_switch_key()
472 request.connection_id = sw->connection_id; in icm_fr_add_switch_key()
473 request.connection_key = sw->connection_key; in icm_fr_add_switch_key()
474 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_fr_add_switch_key()
477 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
493 struct icm_fr_pkg_challenge_device request; in icm_fr_challenge_switch_key() local
497 memset(&request, 0, sizeof(request)); in icm_fr_challenge_switch_key()
498 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key()
499 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_fr_challenge_switch_key()
500 request.connection_id = sw->connection_id; in icm_fr_challenge_switch_key()
501 request.connection_key = sw->connection_key; in icm_fr_challenge_switch_key()
502 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
505 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
523 struct icm_fr_pkg_approve_xdomain request; in icm_fr_approve_xdomain_paths() local
526 memset(&request, 0, sizeof(request)); in icm_fr_approve_xdomain_paths()
527 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_fr_approve_xdomain_paths()
528 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
529 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
531 request.transmit_path = xd->transmit_path; in icm_fr_approve_xdomain_paths()
532 request.transmit_ring = xd->transmit_ring; in icm_fr_approve_xdomain_paths()
533 request.receive_path = xd->receive_path; in icm_fr_approve_xdomain_paths()
534 request.receive_ring = xd->receive_ring; in icm_fr_approve_xdomain_paths()
537 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
965 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
971 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
989 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
993 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
994 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
995 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
996 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
997 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
998 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
1001 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1017 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
1020 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
1021 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
1022 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
1023 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
1024 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
1025 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
1026 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
1029 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1046 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
1049 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
1050 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
1051 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
1052 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
1053 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
1054 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
1055 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1058 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1076 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
1079 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
1080 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
1081 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1082 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1083 request.transmit_path = xd->transmit_path; in icm_tr_approve_xdomain_paths()
1084 request.transmit_ring = xd->transmit_ring; in icm_tr_approve_xdomain_paths()
1085 request.receive_path = xd->receive_path; in icm_tr_approve_xdomain_paths()
1086 request.receive_ring = xd->receive_ring; in icm_tr_approve_xdomain_paths()
1087 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
1090 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1105 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
1108 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
1109 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
1110 request.stage = stage; in icm_tr_xdomain_tear_down()
1111 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1112 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1113 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
1116 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1408 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1414 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1433 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1440 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1455 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1461 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1493 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1509 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1510 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1516 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1517 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1522 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1538 struct icm_pkg_driver_ready request = { in icm_icl_driver_ready() local
1544 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()