Lines Matching refs:request
61 struct icm_usb4_switch_op request; member
276 const struct icm_pkg_header *req_hdr = req->request; in icm_match()
299 static int icm_request(struct tb *tb, const void *request, size_t request_size, in icm_request() argument
315 req->request = request; in icm_request()
423 struct icm_fr_pkg_get_topology request = { in icm_fr_get_route() local
434 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
481 struct icm_pkg_driver_ready request = { in icm_fr_driver_ready() local
487 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
500 struct icm_fr_pkg_approve_device request; in icm_fr_approve_switch() local
504 memset(&request, 0, sizeof(request)); in icm_fr_approve_switch()
505 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_approve_switch()
506 request.hdr.code = ICM_APPROVE_DEVICE; in icm_fr_approve_switch()
507 request.connection_id = sw->connection_id; in icm_fr_approve_switch()
508 request.connection_key = sw->connection_key; in icm_fr_approve_switch()
512 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
527 struct icm_fr_pkg_add_device_key request; in icm_fr_add_switch_key() local
531 memset(&request, 0, sizeof(request)); in icm_fr_add_switch_key()
532 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_add_switch_key()
533 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_fr_add_switch_key()
534 request.connection_id = sw->connection_id; in icm_fr_add_switch_key()
535 request.connection_key = sw->connection_key; in icm_fr_add_switch_key()
536 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_fr_add_switch_key()
539 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
555 struct icm_fr_pkg_challenge_device request; in icm_fr_challenge_switch_key() local
559 memset(&request, 0, sizeof(request)); in icm_fr_challenge_switch_key()
560 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_fr_challenge_switch_key()
561 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_fr_challenge_switch_key()
562 request.connection_id = sw->connection_id; in icm_fr_challenge_switch_key()
563 request.connection_key = sw->connection_key; in icm_fr_challenge_switch_key()
564 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
567 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
587 struct icm_fr_pkg_approve_xdomain request; in icm_fr_approve_xdomain_paths() local
590 memset(&request, 0, sizeof(request)); in icm_fr_approve_xdomain_paths()
591 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_fr_approve_xdomain_paths()
592 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
593 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
595 request.transmit_path = transmit_path; in icm_fr_approve_xdomain_paths()
596 request.transmit_ring = transmit_ring; in icm_fr_approve_xdomain_paths()
597 request.receive_path = receive_path; in icm_fr_approve_xdomain_paths()
598 request.receive_ring = receive_ring; in icm_fr_approve_xdomain_paths()
601 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
1041 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
1047 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1068 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
1072 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
1073 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
1074 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
1075 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
1076 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
1077 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
1080 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1096 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
1099 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
1100 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
1101 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
1102 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
1103 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
1104 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
1105 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
1108 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1125 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
1128 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
1129 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
1130 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
1131 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
1132 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
1133 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
1134 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1137 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1157 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
1160 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
1161 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
1162 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1163 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1164 request.transmit_path = transmit_path; in icm_tr_approve_xdomain_paths()
1165 request.transmit_ring = transmit_ring; in icm_tr_approve_xdomain_paths()
1166 request.receive_path = receive_path; in icm_tr_approve_xdomain_paths()
1167 request.receive_ring = receive_ring; in icm_tr_approve_xdomain_paths()
1168 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
1171 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1187 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
1190 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
1191 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
1192 request.stage = stage; in icm_tr_xdomain_tear_down()
1193 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1194 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1195 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
1198 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1523 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1529 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1548 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1555 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1570 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1576 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1608 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1624 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1625 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1631 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1632 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1637 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1653 struct icm_pkg_driver_ready request = { in icm_icl_driver_ready() local
1659 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
2254 auth->request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_nvm_authenticate()
2255 auth->request.route_hi = upper_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2256 auth->request.route_lo = lower_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2257 auth->request.opcode = USB4_SWITCH_OP_NVM_AUTH; in icm_usb4_switch_nvm_authenticate()
2267 req->request = &auth->request; in icm_usb4_switch_nvm_authenticate()
2268 req->request_size = sizeof(auth->request); in icm_usb4_switch_nvm_authenticate()
2297 struct icm_usb4_switch_op request; in icm_usb4_switch_op() local
2317 memset(&request, 0, sizeof(request)); in icm_usb4_switch_op()
2318 request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_op()
2319 request.route_hi = upper_32_bits(route); in icm_usb4_switch_op()
2320 request.route_lo = lower_32_bits(route); in icm_usb4_switch_op()
2321 request.opcode = opcode; in icm_usb4_switch_op()
2323 request.metadata = *metadata; in icm_usb4_switch_op()
2326 request.data_len_valid |= ICM_USB4_SWITCH_DATA_VALID; in icm_usb4_switch_op()
2327 if (tx_data_len < ARRAY_SIZE(request.data)) in icm_usb4_switch_op()
2328 request.data_len_valid = in icm_usb4_switch_op()
2330 memcpy(request.data, tx_data, tx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2334 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()