Lines Matching refs:reply
60 struct icm_usb4_switch_op_response reply; member
480 struct icm_fr_pkg_driver_ready_response reply; in icm_fr_driver_ready() local
486 memset(&reply, 0, sizeof(reply)); in icm_fr_driver_ready()
487 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
493 *security_level = reply.security_level & ICM_FR_SLEVEL_MASK; in icm_fr_driver_ready()
501 struct icm_fr_pkg_approve_device reply; in icm_fr_approve_switch() local
510 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_switch()
512 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
517 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_approve_switch()
528 struct icm_fr_pkg_add_device_key_response reply; in icm_fr_add_switch_key() local
538 memset(&reply, 0, sizeof(reply)); in icm_fr_add_switch_key()
539 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
544 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_add_switch_key()
556 struct icm_fr_pkg_challenge_device_response reply; in icm_fr_challenge_switch_key() local
566 memset(&reply, 0, sizeof(reply)); in icm_fr_challenge_switch_key()
567 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
572 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_challenge_switch_key()
574 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_fr_challenge_switch_key()
577 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
586 struct icm_fr_pkg_approve_xdomain_response reply; in icm_fr_approve_xdomain_paths() local
600 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_xdomain_paths()
601 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
606 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_approve_xdomain_paths()
1040 struct icm_tr_pkg_driver_ready_response reply; in icm_tr_driver_ready() local
1046 memset(&reply, 0, sizeof(reply)); in icm_tr_driver_ready()
1047 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1053 *security_level = reply.info & ICM_TR_INFO_SLEVEL_MASK; in icm_tr_driver_ready()
1055 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_tr_driver_ready()
1058 *nboot_acl = (reply.info & ICM_TR_INFO_BOOT_ACL_MASK) >> in icm_tr_driver_ready()
1061 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready()
1069 struct icm_tr_pkg_approve_device reply; in icm_tr_approve_switch() local
1079 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_switch()
1080 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1085 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_approve_switch()
1095 struct icm_tr_pkg_add_device_key_response reply; in icm_tr_add_switch_key() local
1107 memset(&reply, 0, sizeof(reply)); in icm_tr_add_switch_key()
1108 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1113 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_add_switch_key()
1124 struct icm_tr_pkg_challenge_device_response reply; in icm_tr_challenge_switch_key() local
1136 memset(&reply, 0, sizeof(reply)); in icm_tr_challenge_switch_key()
1137 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1142 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_challenge_switch_key()
1144 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_tr_challenge_switch_key()
1147 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1156 struct icm_tr_pkg_approve_xdomain_response reply; in icm_tr_approve_xdomain_paths() local
1170 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_xdomain_paths()
1171 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1176 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_approve_xdomain_paths()
1186 struct icm_tr_pkg_disconnect_xdomain_response reply; in icm_tr_xdomain_tear_down() local
1197 memset(&reply, 0, sizeof(reply)); in icm_tr_xdomain_tear_down()
1198 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1203 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_xdomain_tear_down()
1522 struct icm_ar_pkg_driver_ready_response reply; in icm_ar_driver_ready() local
1528 memset(&reply, 0, sizeof(reply)); in icm_ar_driver_ready()
1529 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1535 *security_level = reply.info & ICM_AR_INFO_SLEVEL_MASK; in icm_ar_driver_ready()
1536 if (nboot_acl && (reply.info & ICM_AR_INFO_BOOT_ACL_SUPPORTED)) in icm_ar_driver_ready()
1537 *nboot_acl = (reply.info & ICM_AR_INFO_BOOT_ACL_MASK) >> in icm_ar_driver_ready()
1540 *rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3); in icm_ar_driver_ready()
1547 struct icm_ar_pkg_get_route_response reply; in icm_ar_get_route() local
1554 memset(&reply, 0, sizeof(reply)); in icm_ar_get_route()
1555 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1560 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_route()
1563 *route = get_route(reply.route_hi, reply.route_lo); in icm_ar_get_route()
1569 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_get_boot_acl() local
1575 memset(&reply, 0, sizeof(reply)); in icm_ar_get_boot_acl()
1576 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1581 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_boot_acl()
1587 uuid[0] = reply.acl[i].uuid_lo; in icm_ar_get_boot_acl()
1588 uuid[1] = reply.acl[i].uuid_hi; in icm_ar_get_boot_acl()
1607 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_set_boot_acl() local
1636 memset(&reply, 0, sizeof(reply)); in icm_ar_set_boot_acl()
1637 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1642 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_set_boot_acl()
1652 struct icm_tr_pkg_driver_ready_response reply; in icm_icl_driver_ready() local
1658 memset(&reply, 0, sizeof(reply)); in icm_icl_driver_ready()
1659 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
1665 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_icl_driver_ready()
2232 get_route(auth->reply.route_hi, auth->reply.route_lo), in icm_usb4_switch_nvm_auth_complete()
2233 auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_auth_complete()
2270 req->response = &auth->reply; in icm_usb4_switch_nvm_authenticate()
2272 req->response_size = sizeof(auth->reply); in icm_usb4_switch_nvm_authenticate()
2296 struct icm_usb4_switch_op_response reply; in icm_usb4_switch_op() local
2333 memset(&reply, 0, sizeof(reply)); in icm_usb4_switch_op()
2334 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()
2339 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_op()
2343 *status = reply.status; in icm_usb4_switch_op()
2346 *metadata = reply.metadata; in icm_usb4_switch_op()
2349 memcpy(rx_data, reply.data, rx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2368 if (auth && auth->reply.route_hi == sw->config.route_hi && in icm_usb4_switch_nvm_authenticate_status()
2369 auth->reply.route_lo == sw->config.route_lo) { in icm_usb4_switch_nvm_authenticate_status()
2371 tb_route(sw), auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_authenticate_status()
2372 if (auth->reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_nvm_authenticate_status()
2375 *status = auth->reply.status; in icm_usb4_switch_nvm_authenticate_status()