Lines Matching refs:request
59 struct icm_usb4_switch_op request; member
274 const struct icm_pkg_header *req_hdr = req->request; in icm_match()
297 static int icm_request(struct tb *tb, const void *request, size_t request_size, in icm_request() argument
314 req->request = request; in icm_request()
401 struct icm_fr_pkg_get_topology request = { in icm_fr_get_route() local
412 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
459 struct icm_pkg_driver_ready request = { in icm_fr_driver_ready() local
465 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
478 struct icm_fr_pkg_approve_device request; in icm_fr_approve_switch() local
482 memset(&request, 0, sizeof(request)); in icm_fr_approve_switch()
483 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch()
484 request.hdr.code = ICM_APPROVE_DEVICE; in icm_fr_approve_switch()
485 request.connection_id = sw->connection_id; in icm_fr_approve_switch()
486 request.connection_key = sw->connection_key; in icm_fr_approve_switch()
490 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
505 struct icm_fr_pkg_add_device_key request; in icm_fr_add_switch_key() local
509 memset(&request, 0, sizeof(request)); in icm_fr_add_switch_key()
510 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key()
511 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_fr_add_switch_key()
512 request.connection_id = sw->connection_id; in icm_fr_add_switch_key()
513 request.connection_key = sw->connection_key; in icm_fr_add_switch_key()
514 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_fr_add_switch_key()
517 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
533 struct icm_fr_pkg_challenge_device request; in icm_fr_challenge_switch_key() local
537 memset(&request, 0, sizeof(request)); in icm_fr_challenge_switch_key()
538 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key()
539 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_fr_challenge_switch_key()
540 request.connection_id = sw->connection_id; in icm_fr_challenge_switch_key()
541 request.connection_key = sw->connection_key; in icm_fr_challenge_switch_key()
542 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
545 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
565 struct icm_fr_pkg_approve_xdomain request; in icm_fr_approve_xdomain_paths() local
568 memset(&request, 0, sizeof(request)); in icm_fr_approve_xdomain_paths()
569 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_fr_approve_xdomain_paths()
570 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
571 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
573 request.transmit_path = transmit_path; in icm_fr_approve_xdomain_paths()
574 request.transmit_ring = transmit_ring; in icm_fr_approve_xdomain_paths()
575 request.receive_path = receive_path; in icm_fr_approve_xdomain_paths()
576 request.receive_ring = receive_ring; in icm_fr_approve_xdomain_paths()
579 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
1018 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
1024 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1045 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
1049 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
1050 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
1051 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
1052 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
1053 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
1054 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
1057 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1073 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
1076 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
1077 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
1078 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
1079 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
1080 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
1081 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
1082 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
1085 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1102 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
1105 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
1106 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
1107 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
1108 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
1109 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
1110 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
1111 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1114 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1134 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
1137 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
1138 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
1139 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1140 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1141 request.transmit_path = transmit_path; in icm_tr_approve_xdomain_paths()
1142 request.transmit_ring = transmit_ring; in icm_tr_approve_xdomain_paths()
1143 request.receive_path = receive_path; in icm_tr_approve_xdomain_paths()
1144 request.receive_ring = receive_ring; in icm_tr_approve_xdomain_paths()
1145 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
1148 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1163 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
1166 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
1167 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
1168 request.stage = stage; in icm_tr_xdomain_tear_down()
1169 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1170 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1171 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
1174 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1494 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1500 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1519 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1526 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1541 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1547 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1579 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1595 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1596 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1602 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1603 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1608 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1624 struct icm_pkg_driver_ready request = { in icm_icl_driver_ready() local
1630 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
2222 auth->request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_nvm_authenticate()
2223 auth->request.route_hi = upper_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2224 auth->request.route_lo = lower_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2225 auth->request.opcode = USB4_SWITCH_OP_NVM_AUTH; in icm_usb4_switch_nvm_authenticate()
2235 req->request = &auth->request; in icm_usb4_switch_nvm_authenticate()
2236 req->request_size = sizeof(auth->request); in icm_usb4_switch_nvm_authenticate()
2265 struct icm_usb4_switch_op request; in icm_usb4_switch_op() local
2285 memset(&request, 0, sizeof(request)); in icm_usb4_switch_op()
2286 request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_op()
2287 request.route_hi = upper_32_bits(route); in icm_usb4_switch_op()
2288 request.route_lo = lower_32_bits(route); in icm_usb4_switch_op()
2289 request.opcode = opcode; in icm_usb4_switch_op()
2291 request.metadata = *metadata; in icm_usb4_switch_op()
2294 request.data_len_valid |= ICM_USB4_SWITCH_DATA_VALID; in icm_usb4_switch_op()
2295 if (tx_data_len < ARRAY_SIZE(request.data)) in icm_usb4_switch_op()
2296 request.data_len_valid = in icm_usb4_switch_op()
2298 memcpy(request.data, tx_data, tx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2302 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()