Lines Matching refs:reply

59 	struct icm_usb4_switch_op_response reply;  member
458 struct icm_fr_pkg_driver_ready_response reply; in icm_fr_driver_ready() local
464 memset(&reply, 0, sizeof(reply)); in icm_fr_driver_ready()
465 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
471 *security_level = reply.security_level & ICM_FR_SLEVEL_MASK; in icm_fr_driver_ready()
479 struct icm_fr_pkg_approve_device reply; in icm_fr_approve_switch() local
488 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_switch()
490 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
495 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_approve_switch()
506 struct icm_fr_pkg_add_device_key_response reply; in icm_fr_add_switch_key() local
516 memset(&reply, 0, sizeof(reply)); in icm_fr_add_switch_key()
517 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
522 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_add_switch_key()
534 struct icm_fr_pkg_challenge_device_response reply; in icm_fr_challenge_switch_key() local
544 memset(&reply, 0, sizeof(reply)); in icm_fr_challenge_switch_key()
545 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
550 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_challenge_switch_key()
552 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_fr_challenge_switch_key()
555 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
564 struct icm_fr_pkg_approve_xdomain_response reply; in icm_fr_approve_xdomain_paths() local
578 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_xdomain_paths()
579 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
584 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_approve_xdomain_paths()
1015 struct icm_tr_pkg_driver_ready_response reply; in icm_tr_driver_ready() local
1021 memset(&reply, 0, sizeof(reply)); in icm_tr_driver_ready()
1022 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1028 *security_level = reply.info & ICM_TR_INFO_SLEVEL_MASK; in icm_tr_driver_ready()
1030 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_tr_driver_ready()
1033 *nboot_acl = (reply.info & ICM_TR_INFO_BOOT_ACL_MASK) >> in icm_tr_driver_ready()
1036 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready()
1044 struct icm_tr_pkg_approve_device reply; in icm_tr_approve_switch() local
1054 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_switch()
1055 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1060 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_approve_switch()
1070 struct icm_tr_pkg_add_device_key_response reply; in icm_tr_add_switch_key() local
1082 memset(&reply, 0, sizeof(reply)); in icm_tr_add_switch_key()
1083 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1088 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_add_switch_key()
1099 struct icm_tr_pkg_challenge_device_response reply; in icm_tr_challenge_switch_key() local
1111 memset(&reply, 0, sizeof(reply)); in icm_tr_challenge_switch_key()
1112 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1117 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_challenge_switch_key()
1119 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_tr_challenge_switch_key()
1122 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1131 struct icm_tr_pkg_approve_xdomain_response reply; in icm_tr_approve_xdomain_paths() local
1145 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_xdomain_paths()
1146 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1151 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_approve_xdomain_paths()
1160 struct icm_tr_pkg_disconnect_xdomain_response reply; in icm_tr_xdomain_tear_down() local
1171 memset(&reply, 0, sizeof(reply)); in icm_tr_xdomain_tear_down()
1172 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1177 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_xdomain_tear_down()
1491 struct icm_ar_pkg_driver_ready_response reply; in icm_ar_driver_ready() local
1497 memset(&reply, 0, sizeof(reply)); in icm_ar_driver_ready()
1498 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1504 *security_level = reply.info & ICM_AR_INFO_SLEVEL_MASK; in icm_ar_driver_ready()
1505 if (nboot_acl && (reply.info & ICM_AR_INFO_BOOT_ACL_SUPPORTED)) in icm_ar_driver_ready()
1506 *nboot_acl = (reply.info & ICM_AR_INFO_BOOT_ACL_MASK) >> in icm_ar_driver_ready()
1509 *rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3); in icm_ar_driver_ready()
1516 struct icm_ar_pkg_get_route_response reply; in icm_ar_get_route() local
1523 memset(&reply, 0, sizeof(reply)); in icm_ar_get_route()
1524 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1529 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_route()
1532 *route = get_route(reply.route_hi, reply.route_lo); in icm_ar_get_route()
1538 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_get_boot_acl() local
1544 memset(&reply, 0, sizeof(reply)); in icm_ar_get_boot_acl()
1545 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1550 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_boot_acl()
1556 uuid[0] = reply.acl[i].uuid_lo; in icm_ar_get_boot_acl()
1557 uuid[1] = reply.acl[i].uuid_hi; in icm_ar_get_boot_acl()
1576 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_set_boot_acl() local
1605 memset(&reply, 0, sizeof(reply)); in icm_ar_set_boot_acl()
1606 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1611 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_set_boot_acl()
1621 struct icm_tr_pkg_driver_ready_response reply; in icm_icl_driver_ready() local
1627 memset(&reply, 0, sizeof(reply)); in icm_icl_driver_ready()
1628 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
1634 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_icl_driver_ready()
2198 get_route(auth->reply.route_hi, auth->reply.route_lo), in icm_usb4_switch_nvm_auth_complete()
2199 auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_auth_complete()
2236 req->response = &auth->reply; in icm_usb4_switch_nvm_authenticate()
2238 req->response_size = sizeof(auth->reply); in icm_usb4_switch_nvm_authenticate()
2262 struct icm_usb4_switch_op_response reply; in icm_usb4_switch_op() local
2299 memset(&reply, 0, sizeof(reply)); in icm_usb4_switch_op()
2300 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()
2305 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_op()
2309 *status = reply.status; in icm_usb4_switch_op()
2312 *metadata = reply.metadata; in icm_usb4_switch_op()
2315 memcpy(rx_data, reply.data, rx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2334 if (auth && auth->reply.route_hi == sw->config.route_hi && in icm_usb4_switch_nvm_authenticate_status()
2335 auth->reply.route_lo == sw->config.route_lo) { in icm_usb4_switch_nvm_authenticate_status()
2337 tb_route(sw), auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_authenticate_status()
2338 if (auth->reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_nvm_authenticate_status()
2341 *status = auth->reply.status; in icm_usb4_switch_nvm_authenticate_status()