Lines Matching refs:reply
58 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()
1017 struct icm_tr_pkg_driver_ready_response reply; in icm_tr_driver_ready() local
1023 memset(&reply, 0, sizeof(reply)); in icm_tr_driver_ready()
1024 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
1030 *security_level = reply.info & ICM_TR_INFO_SLEVEL_MASK; in icm_tr_driver_ready()
1032 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_tr_driver_ready()
1035 *nboot_acl = (reply.info & ICM_TR_INFO_BOOT_ACL_MASK) >> in icm_tr_driver_ready()
1038 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready()
1046 struct icm_tr_pkg_approve_device reply; in icm_tr_approve_switch() local
1056 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_switch()
1057 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1062 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_approve_switch()
1072 struct icm_tr_pkg_add_device_key_response reply; in icm_tr_add_switch_key() local
1084 memset(&reply, 0, sizeof(reply)); in icm_tr_add_switch_key()
1085 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1090 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_add_switch_key()
1101 struct icm_tr_pkg_challenge_device_response reply; in icm_tr_challenge_switch_key() local
1113 memset(&reply, 0, sizeof(reply)); in icm_tr_challenge_switch_key()
1114 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1119 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_challenge_switch_key()
1121 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_tr_challenge_switch_key()
1124 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1133 struct icm_tr_pkg_approve_xdomain_response reply; in icm_tr_approve_xdomain_paths() local
1147 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_xdomain_paths()
1148 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1153 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_approve_xdomain_paths()
1162 struct icm_tr_pkg_disconnect_xdomain_response reply; in icm_tr_xdomain_tear_down() local
1173 memset(&reply, 0, sizeof(reply)); in icm_tr_xdomain_tear_down()
1174 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1179 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_xdomain_tear_down()
1493 struct icm_ar_pkg_driver_ready_response reply; in icm_ar_driver_ready() local
1499 memset(&reply, 0, sizeof(reply)); in icm_ar_driver_ready()
1500 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1506 *security_level = reply.info & ICM_AR_INFO_SLEVEL_MASK; in icm_ar_driver_ready()
1507 if (nboot_acl && (reply.info & ICM_AR_INFO_BOOT_ACL_SUPPORTED)) in icm_ar_driver_ready()
1508 *nboot_acl = (reply.info & ICM_AR_INFO_BOOT_ACL_MASK) >> in icm_ar_driver_ready()
1511 *rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3); in icm_ar_driver_ready()
1518 struct icm_ar_pkg_get_route_response reply; in icm_ar_get_route() local
1525 memset(&reply, 0, sizeof(reply)); in icm_ar_get_route()
1526 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1531 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_route()
1534 *route = get_route(reply.route_hi, reply.route_lo); in icm_ar_get_route()
1540 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_get_boot_acl() local
1546 memset(&reply, 0, sizeof(reply)); in icm_ar_get_boot_acl()
1547 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1552 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_boot_acl()
1558 uuid[0] = reply.acl[i].uuid_lo; in icm_ar_get_boot_acl()
1559 uuid[1] = reply.acl[i].uuid_hi; in icm_ar_get_boot_acl()
1578 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_set_boot_acl() local
1607 memset(&reply, 0, sizeof(reply)); in icm_ar_set_boot_acl()
1608 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1613 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_set_boot_acl()
1623 struct icm_tr_pkg_driver_ready_response reply; in icm_icl_driver_ready() local
1629 memset(&reply, 0, sizeof(reply)); in icm_icl_driver_ready()
1630 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()
1636 *proto_version = (reply.info & ICM_TR_INFO_PROTO_VERSION_MASK) >> in icm_icl_driver_ready()
2195 get_route(auth->reply.route_hi, auth->reply.route_lo), in icm_usb4_switch_nvm_auth_complete()
2196 auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_auth_complete()
2233 req->response = &auth->reply; in icm_usb4_switch_nvm_authenticate()
2235 req->response_size = sizeof(auth->reply); in icm_usb4_switch_nvm_authenticate()
2259 struct icm_usb4_switch_op_response reply; in icm_usb4_switch_op() local
2296 memset(&reply, 0, sizeof(reply)); in icm_usb4_switch_op()
2297 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_usb4_switch_op()
2302 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_op()
2306 *status = reply.status; in icm_usb4_switch_op()
2309 *metadata = reply.metadata; in icm_usb4_switch_op()
2312 memcpy(rx_data, reply.data, rx_data_len * sizeof(u32)); in icm_usb4_switch_op()
2331 if (auth && auth->reply.route_hi == sw->config.route_hi && in icm_usb4_switch_nvm_authenticate_status()
2332 auth->reply.route_lo == sw->config.route_lo) { in icm_usb4_switch_nvm_authenticate_status()
2334 tb_route(sw), auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_authenticate_status()
2335 if (auth->reply.hdr.flags & ICM_FLAGS_ERROR) in icm_usb4_switch_nvm_authenticate_status()
2338 *status = auth->reply.status; in icm_usb4_switch_nvm_authenticate_status()