• Home
  • Raw
  • Download

Lines Matching refs:request

258 	const struct icm_pkg_header *req_hdr = req->request;  in icm_match()
281 static int icm_request(struct tb *tb, const void *request, size_t request_size, in icm_request() argument
298 req->request = request; in icm_request()
385 struct icm_fr_pkg_get_topology request = { in icm_fr_get_route() local
396 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
443 struct icm_pkg_driver_ready request = { in icm_fr_driver_ready() local
449 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
462 struct icm_fr_pkg_approve_device request; in icm_fr_approve_switch() local
466 memset(&request, 0, sizeof(request)); in icm_fr_approve_switch()
467 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch()
468 request.hdr.code = ICM_APPROVE_DEVICE; in icm_fr_approve_switch()
469 request.connection_id = sw->connection_id; in icm_fr_approve_switch()
470 request.connection_key = sw->connection_key; in icm_fr_approve_switch()
474 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
489 struct icm_fr_pkg_add_device_key request; in icm_fr_add_switch_key() local
493 memset(&request, 0, sizeof(request)); in icm_fr_add_switch_key()
494 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key()
495 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_fr_add_switch_key()
496 request.connection_id = sw->connection_id; in icm_fr_add_switch_key()
497 request.connection_key = sw->connection_key; in icm_fr_add_switch_key()
498 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_fr_add_switch_key()
501 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
517 struct icm_fr_pkg_challenge_device request; in icm_fr_challenge_switch_key() local
521 memset(&request, 0, sizeof(request)); in icm_fr_challenge_switch_key()
522 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key()
523 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_fr_challenge_switch_key()
524 request.connection_id = sw->connection_id; in icm_fr_challenge_switch_key()
525 request.connection_key = sw->connection_key; in icm_fr_challenge_switch_key()
526 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
529 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
547 struct icm_fr_pkg_approve_xdomain request; in icm_fr_approve_xdomain_paths() local
550 memset(&request, 0, sizeof(request)); in icm_fr_approve_xdomain_paths()
551 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_fr_approve_xdomain_paths()
552 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
553 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
555 request.transmit_path = xd->transmit_path; in icm_fr_approve_xdomain_paths()
556 request.transmit_ring = xd->transmit_ring; in icm_fr_approve_xdomain_paths()
557 request.receive_path = xd->receive_path; in icm_fr_approve_xdomain_paths()
558 request.receive_ring = xd->receive_ring; in icm_fr_approve_xdomain_paths()
561 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
992 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
998 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1016 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
1020 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
1021 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
1022 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
1023 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
1024 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
1025 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
1028 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1044 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
1047 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
1048 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
1049 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
1050 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
1051 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
1052 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
1053 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
1056 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1073 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
1076 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
1077 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
1078 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
1079 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
1080 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
1081 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
1082 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1085 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1103 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
1106 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
1107 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
1108 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1109 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1110 request.transmit_path = xd->transmit_path; in icm_tr_approve_xdomain_paths()
1111 request.transmit_ring = xd->transmit_ring; in icm_tr_approve_xdomain_paths()
1112 request.receive_path = xd->receive_path; in icm_tr_approve_xdomain_paths()
1113 request.receive_ring = xd->receive_ring; in icm_tr_approve_xdomain_paths()
1114 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
1117 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1132 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
1135 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
1136 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
1137 request.stage = stage; in icm_tr_xdomain_tear_down()
1138 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1139 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1140 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
1143 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1456 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1462 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1481 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1488 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1503 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1509 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1541 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1557 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1558 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1564 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1565 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1570 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1586 struct icm_pkg_driver_ready request = { in icm_icl_driver_ready() local
1592 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()