Lines Matching refs:request
60 struct icm_usb4_switch_op request; member
275 const struct icm_pkg_header *req_hdr = req->request; in icm_match()
298 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()
1016 struct icm_pkg_driver_ready request = { in icm_tr_driver_ready() local
1022 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1043 struct icm_tr_pkg_approve_device request; in icm_tr_approve_switch() local
1047 memset(&request, 0, sizeof(request)); in icm_tr_approve_switch()
1048 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_approve_switch()
1049 request.hdr.code = ICM_APPROVE_DEVICE; in icm_tr_approve_switch()
1050 request.route_lo = sw->config.route_lo; in icm_tr_approve_switch()
1051 request.route_hi = sw->config.route_hi; in icm_tr_approve_switch()
1052 request.connection_id = sw->connection_id; in icm_tr_approve_switch()
1055 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1071 struct icm_tr_pkg_add_device_key request; in icm_tr_add_switch_key() local
1074 memset(&request, 0, sizeof(request)); in icm_tr_add_switch_key()
1075 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_add_switch_key()
1076 request.hdr.code = ICM_ADD_DEVICE_KEY; in icm_tr_add_switch_key()
1077 request.route_lo = sw->config.route_lo; in icm_tr_add_switch_key()
1078 request.route_hi = sw->config.route_hi; in icm_tr_add_switch_key()
1079 request.connection_id = sw->connection_id; in icm_tr_add_switch_key()
1080 memcpy(request.key, sw->key, TB_SWITCH_KEY_SIZE); in icm_tr_add_switch_key()
1083 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1100 struct icm_tr_pkg_challenge_device request; in icm_tr_challenge_switch_key() local
1103 memset(&request, 0, sizeof(request)); in icm_tr_challenge_switch_key()
1104 memcpy(&request.ep_uuid, sw->uuid, sizeof(request.ep_uuid)); in icm_tr_challenge_switch_key()
1105 request.hdr.code = ICM_CHALLENGE_DEVICE; in icm_tr_challenge_switch_key()
1106 request.route_lo = sw->config.route_lo; in icm_tr_challenge_switch_key()
1107 request.route_hi = sw->config.route_hi; in icm_tr_challenge_switch_key()
1108 request.connection_id = sw->connection_id; in icm_tr_challenge_switch_key()
1109 memcpy(request.challenge, challenge, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1112 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1132 struct icm_tr_pkg_approve_xdomain request; in icm_tr_approve_xdomain_paths() local
1135 memset(&request, 0, sizeof(request)); in icm_tr_approve_xdomain_paths()
1136 request.hdr.code = ICM_APPROVE_XDOMAIN; in icm_tr_approve_xdomain_paths()
1137 request.route_hi = upper_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1138 request.route_lo = lower_32_bits(xd->route); in icm_tr_approve_xdomain_paths()
1139 request.transmit_path = transmit_path; in icm_tr_approve_xdomain_paths()
1140 request.transmit_ring = transmit_ring; in icm_tr_approve_xdomain_paths()
1141 request.receive_path = receive_path; in icm_tr_approve_xdomain_paths()
1142 request.receive_ring = receive_ring; in icm_tr_approve_xdomain_paths()
1143 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_approve_xdomain_paths()
1146 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1161 struct icm_tr_pkg_disconnect_xdomain request; in icm_tr_xdomain_tear_down() local
1164 memset(&request, 0, sizeof(request)); in icm_tr_xdomain_tear_down()
1165 request.hdr.code = ICM_DISCONNECT_XDOMAIN; in icm_tr_xdomain_tear_down()
1166 request.stage = stage; in icm_tr_xdomain_tear_down()
1167 request.route_hi = upper_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1168 request.route_lo = lower_32_bits(xd->route); in icm_tr_xdomain_tear_down()
1169 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_tr_xdomain_tear_down()
1172 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1492 struct icm_pkg_driver_ready request = { in icm_ar_driver_ready() local
1498 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1517 struct icm_ar_pkg_get_route request = { in icm_ar_get_route() local
1524 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1539 struct icm_ar_pkg_preboot_acl request = { in icm_ar_get_boot_acl() local
1545 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1577 struct icm_ar_pkg_preboot_acl request = { in icm_ar_set_boot_acl() local
1593 request.acl[i].uuid_lo = 0xffffffff; in icm_ar_set_boot_acl()
1594 request.acl[i].uuid_hi = 0xffffffff; in icm_ar_set_boot_acl()
1600 request.acl[i].uuid_lo = uuid[0]; in icm_ar_set_boot_acl()
1601 request.acl[i].uuid_hi = uuid[1]; in icm_ar_set_boot_acl()
1606 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1622 struct icm_pkg_driver_ready request = { in icm_icl_driver_ready() local
1628 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
2220 auth->request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_nvm_authenticate()
2221 auth->request.route_hi = upper_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2222 auth->request.route_lo = lower_32_bits(route); in icm_usb4_switch_nvm_authenticate()
2223 auth->request.opcode = USB4_SWITCH_OP_NVM_AUTH; in icm_usb4_switch_nvm_authenticate()
2233 req->request = &auth->request; in icm_usb4_switch_nvm_authenticate()
2234 req->request_size = sizeof(auth->request); in icm_usb4_switch_nvm_authenticate()
2263 struct icm_usb4_switch_op request; in icm_usb4_switch_op() local
2283 memset(&request, 0, sizeof(request)); in icm_usb4_switch_op()
2284 request.hdr.code = ICM_USB4_SWITCH_OP; in icm_usb4_switch_op()
2285 request.route_hi = upper_32_bits(route); in icm_usb4_switch_op()
2286 request.route_lo = lower_32_bits(route); in icm_usb4_switch_op()
2287 request.opcode = opcode; in icm_usb4_switch_op()
2289 request.metadata = *metadata; in icm_usb4_switch_op()
2292 request.data_len_valid |= ICM_USB4_SWITCH_DATA_VALID; in icm_usb4_switch_op()
2293 if (tx_data_len < ARRAY_SIZE(request.data)) in icm_usb4_switch_op()
2294 request.data_len_valid = in icm_usb4_switch_op()
2296 memcpy(request.data, tx_data, tx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2300 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()