Lines Matching refs:reply

316 	struct icm_fr_pkg_driver_ready_response reply;  in icm_fr_driver_ready()  local
322 memset(&reply, 0, sizeof(reply)); in icm_fr_driver_ready()
323 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready()
329 *security_level = reply.security_level & ICM_FR_SLEVEL_MASK; in icm_fr_driver_ready()
337 struct icm_fr_pkg_approve_device reply; in icm_fr_approve_switch() local
346 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_switch()
348 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch()
353 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_approve_switch()
364 struct icm_fr_pkg_add_device_key_response reply; in icm_fr_add_switch_key() local
374 memset(&reply, 0, sizeof(reply)); in icm_fr_add_switch_key()
375 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_add_switch_key()
380 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_add_switch_key()
392 struct icm_fr_pkg_challenge_device_response reply; in icm_fr_challenge_switch_key() local
402 memset(&reply, 0, sizeof(reply)); in icm_fr_challenge_switch_key()
403 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_challenge_switch_key()
408 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_challenge_switch_key()
410 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_fr_challenge_switch_key()
413 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_fr_challenge_switch_key()
420 struct icm_fr_pkg_approve_xdomain_response reply; in icm_fr_approve_xdomain_paths() local
434 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_xdomain_paths()
435 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_xdomain_paths()
440 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_fr_approve_xdomain_paths()
838 struct icm_tr_pkg_driver_ready_response reply; in icm_tr_driver_ready() local
844 memset(&reply, 0, sizeof(reply)); in icm_tr_driver_ready()
845 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_driver_ready()
851 *security_level = reply.info & ICM_TR_INFO_SLEVEL_MASK; in icm_tr_driver_ready()
853 *nboot_acl = (reply.info & ICM_TR_INFO_BOOT_ACL_MASK) >> in icm_tr_driver_ready()
856 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready()
864 struct icm_tr_pkg_approve_device reply; in icm_tr_approve_switch() local
874 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_switch()
875 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_switch()
880 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_approve_switch()
890 struct icm_tr_pkg_add_device_key_response reply; in icm_tr_add_switch_key() local
902 memset(&reply, 0, sizeof(reply)); in icm_tr_add_switch_key()
903 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_add_switch_key()
908 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_tr_add_switch_key()
919 struct icm_tr_pkg_challenge_device_response reply; in icm_tr_challenge_switch_key() local
931 memset(&reply, 0, sizeof(reply)); in icm_tr_challenge_switch_key()
932 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_challenge_switch_key()
937 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_challenge_switch_key()
939 if (reply.hdr.flags & ICM_FLAGS_NO_KEY) in icm_tr_challenge_switch_key()
942 memcpy(response, reply.response, TB_SWITCH_KEY_SIZE); in icm_tr_challenge_switch_key()
949 struct icm_tr_pkg_approve_xdomain_response reply; in icm_tr_approve_xdomain_paths() local
963 memset(&reply, 0, sizeof(reply)); in icm_tr_approve_xdomain_paths()
964 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_approve_xdomain_paths()
969 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_approve_xdomain_paths()
978 struct icm_tr_pkg_disconnect_xdomain_response reply; in icm_tr_xdomain_tear_down() local
989 memset(&reply, 0, sizeof(reply)); in icm_tr_xdomain_tear_down()
990 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_tr_xdomain_tear_down()
995 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_tr_xdomain_tear_down()
1261 struct icm_ar_pkg_driver_ready_response reply; in icm_ar_driver_ready() local
1267 memset(&reply, 0, sizeof(reply)); in icm_ar_driver_ready()
1268 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_driver_ready()
1274 *security_level = reply.info & ICM_AR_INFO_SLEVEL_MASK; in icm_ar_driver_ready()
1275 if (nboot_acl && (reply.info & ICM_AR_INFO_BOOT_ACL_SUPPORTED)) in icm_ar_driver_ready()
1276 *nboot_acl = (reply.info & ICM_AR_INFO_BOOT_ACL_MASK) >> in icm_ar_driver_ready()
1279 *rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3); in icm_ar_driver_ready()
1286 struct icm_ar_pkg_get_route_response reply; in icm_ar_get_route() local
1293 memset(&reply, 0, sizeof(reply)); in icm_ar_get_route()
1294 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_route()
1299 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_route()
1302 *route = get_route(reply.route_hi, reply.route_lo); in icm_ar_get_route()
1308 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_get_boot_acl() local
1314 memset(&reply, 0, sizeof(reply)); in icm_ar_get_boot_acl()
1315 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_get_boot_acl()
1320 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_get_boot_acl()
1326 uuid[0] = reply.acl[i].uuid_lo; in icm_ar_get_boot_acl()
1327 uuid[1] = reply.acl[i].uuid_hi; in icm_ar_get_boot_acl()
1346 struct icm_ar_pkg_preboot_acl_response reply; in icm_ar_set_boot_acl() local
1375 memset(&reply, 0, sizeof(reply)); in icm_ar_set_boot_acl()
1376 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_ar_set_boot_acl()
1381 if (reply.hdr.flags & ICM_FLAGS_ERROR) in icm_ar_set_boot_acl()