Lines Matching refs:reply

418 	struct icm_fr_pkg_driver_ready_response reply;  in icm_fr_driver_ready()  local
424 memset(&reply, 0, sizeof(reply)); in icm_fr_driver_ready()
425 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
431 *security_level = reply.security_level & ICM_FR_SLEVEL_MASK; in icm_fr_driver_ready()
439 struct icm_fr_pkg_approve_device reply; in icm_fr_approve_switch() local
448 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_switch()
450 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
455 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_approve_switch()
466 struct icm_fr_pkg_add_device_key_response reply; in icm_fr_add_switch_key() local
476 memset(&reply, 0, sizeof(reply)); in icm_fr_add_switch_key()
477 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
482 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_add_switch_key()
494 struct icm_fr_pkg_challenge_device_response reply; in icm_fr_challenge_switch_key() local
504 memset(&reply, 0, sizeof(reply)); in icm_fr_challenge_switch_key()
505 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
510 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_challenge_switch_key()
512 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_fr_challenge_switch_key()
515 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
522 struct icm_fr_pkg_approve_xdomain_response reply; in icm_fr_approve_xdomain_paths() local
536 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_xdomain_paths()
537 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
542 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_approve_xdomain_paths()
964 struct icm_tr_pkg_driver_ready_response reply; in icm_tr_driver_ready() local
970 memset(&reply, 0, sizeof(reply)); in icm_tr_driver_ready()
971 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
977 *security_level = reply.info & ICM_TR_INFO_SLEVEL_MASK; in icm_tr_driver_ready()
979 *nboot_acl = (reply.info & ICM_TR_INFO_BOOT_ACL_MASK) >> in icm_tr_driver_ready()
982 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready()
990 struct icm_tr_pkg_approve_device reply; in icm_tr_approve_switch() local
1000 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_switch()
1001 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
1006 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_approve_switch()
1016 struct icm_tr_pkg_add_device_key_response reply; in icm_tr_add_switch_key() local
1028 memset(&reply, 0, sizeof(reply)); in icm_tr_add_switch_key()
1029 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
1034 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_add_switch_key()
1045 struct icm_tr_pkg_challenge_device_response reply; in icm_tr_challenge_switch_key() local
1057 memset(&reply, 0, sizeof(reply)); in icm_tr_challenge_switch_key()
1058 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
1063 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_challenge_switch_key()
1065 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_tr_challenge_switch_key()
1068 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
1075 struct icm_tr_pkg_approve_xdomain_response reply; in icm_tr_approve_xdomain_paths() local
1089 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_xdomain_paths()
1090 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
1095 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_approve_xdomain_paths()
1104 struct icm_tr_pkg_disconnect_xdomain_response reply; in icm_tr_xdomain_tear_down() local
1115 memset(&reply, 0, sizeof(reply)); in icm_tr_xdomain_tear_down()
1116 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
1121 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_xdomain_tear_down()
1407 struct icm_ar_pkg_driver_ready_response reply; in icm_ar_driver_ready() local
1413 memset(&reply, 0, sizeof(reply)); in icm_ar_driver_ready()
1414 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1420 *security_level = reply.info & ICM_AR_INFO_SLEVEL_MASK; in icm_ar_driver_ready()
1421 if (nboot_acl && (reply.info & ICM_AR_INFO_BOOT_ACL_SUPPORTED)) in icm_ar_driver_ready()
1422 *nboot_acl = (reply.info & ICM_AR_INFO_BOOT_ACL_MASK) >> in icm_ar_driver_ready()
1425 *rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3); in icm_ar_driver_ready()
1432 struct icm_ar_pkg_get_route_response reply; in icm_ar_get_route() local
1439 memset(&reply, 0, sizeof(reply)); in icm_ar_get_route()
1440 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1445 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_route()
1448 *route = get_route(reply.route_hi, reply.route_lo); in icm_ar_get_route()
1454 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_get_boot_acl() local
1460 memset(&reply, 0, sizeof(reply)); in icm_ar_get_boot_acl()
1461 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1466 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_boot_acl()
1472 uuid[0] = reply.acl[i].uuid_lo; in icm_ar_get_boot_acl()
1473 uuid[1] = reply.acl[i].uuid_hi; in icm_ar_get_boot_acl()
1492 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_set_boot_acl() local
1521 memset(&reply, 0, sizeof(reply)); in icm_ar_set_boot_acl()
1522 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1527 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_set_boot_acl()
1537 struct icm_tr_pkg_driver_ready_response reply; in icm_icl_driver_ready() local
1543 memset(&reply, 0, sizeof(reply)); in icm_icl_driver_ready()
1544 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_icl_driver_ready()