/external/vboot_reference/tests/ |
D | vboot_display_tests.c | 24 static VbCommonParams cparams; variable 58 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 59 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 60 cparams.shared_data_blob = shared_data; in ResetMocks() 61 cparams.gbb_data = gbb; in ResetMocks() 62 cparams.gbb_size = sizeof(gbb_data); in ResetMocks() 68 cparams.gbb = VbExMalloc(sizeof(*gbb)); in ResetMocks() 76 memcpy(cparams.gbb, gbb, sizeof(*gbb)); in ResetMocks() 109 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest() 111 VbApiKernelFree(&cparams); in DebugInfoTest() [all …]
|
D | vboot_api_kernel2_tests.c | 24 static VbCommonParams cparams; variable 53 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 54 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 55 cparams.shared_data_blob = shared_data; in ResetMocks() 56 cparams.gbb_data = &gbb; in ResetMocks() 57 cparams.gbb = &gbb; in ResetMocks() 178 uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p, in VbTryLoadKernel() argument 184 VbError_t VbDisplayScreen(VbCommonParams *cparams, uint32_t screen, int force, in VbDisplayScreen() argument 207 TEST_EQ(VbUserConfirms(&cparams, 0), -1, "Shutdown requested"); in VbUserConfirmsTest() 211 TEST_EQ(VbUserConfirms(&cparams, 0), 1, "Enter"); in VbUserConfirmsTest() [all …]
|
D | vboot_kernel_tests.c | 64 static VbCommonParams cparams; variable 137 memset(&cparams, '\0', sizeof(cparams)); in ResetMocks() 138 cparams.gbb = gbb; in ResetMocks() 139 cparams.gbb_data = gbb; in ResetMocks() 140 cparams.gbb_size = sizeof(gbb_data); in ResetMocks() 532 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest() 537 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest() 542 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest() 547 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, in InvalidParamsTest() 552 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, in InvalidParamsTest() [all …]
|
D | vboot_audio_tests.c | 32 static VbCommonParams cparams; variable 63 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 64 cparams.gbb_data = &gbb; in ResetMocks() 65 cparams.gbb = &gbb; in ResetMocks() 115 a = VbAudioOpen(&cparams); in VbAudioTest() 125 a = VbAudioOpen(&cparams); in VbAudioTest() 133 a = VbAudioOpen(&cparams); in VbAudioTest() 142 a = VbAudioOpen(&cparams); in VbAudioTest() 152 a = VbAudioOpen(&cparams); in VbAudioTest() 164 a = VbAudioOpen(&cparams); in VbAudioTest() [all …]
|
D | vboot_region_tests.c | 23 static VbCommonParams cparams; variable 52 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 53 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 54 cparams.shared_data_blob = shared_data; in ResetMocks() 134 VbError_t VbExRegionRead(VbCommonParams *cparams, in VbExRegionRead() argument 173 int LoadFirmware(VbCommonParams *cparams, VbSelectFirmwareParams *fparams, in LoadFirmware() argument 176 TEST_PTR_NEQ(cparams->gbb, NULL, " GBB allocated"); in LoadFirmware() 186 TEST_EQ(VbSelectFirmware(&cparams, &fparams), VBERROR_SUCCESS, in VbRegionReadTest() 189 TEST_PTR_EQ(cparams.gbb, NULL, " GBB free"); in VbRegionReadTest() 192 TEST_EQ(VbSelectAndLoadKernel(&cparams, &kparams), in VbRegionReadTest() [all …]
|
D | vboot_api_kernel4_tests.c | 24 static VbCommonParams cparams; variable 40 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 41 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 42 cparams.shared_data_blob = shared_data; in ResetMocks() 43 cparams.gbb_data = &gbb; in ResetMocks() 44 cparams.gbb_size = sizeof(gbb); in ResetMocks() 80 VbError_t VbEcSoftwareSync(int devidx, VbCommonParams *cparams) in VbEcSoftwareSync() argument 103 VbError_t VbBootNormal(VbCommonParams *cparams, LoadKernelParams *p) in VbBootNormal() argument 113 VbError_t VbBootDeveloper(VbCommonParams *cparams, LoadKernelParams *p) in VbBootDeveloper() argument 123 VbError_t VbBootRecovery(VbCommonParams *cparams, LoadKernelParams *p) in VbBootRecovery() argument [all …]
|
D | vboot_api_firmware_tests.c | 25 static VbCommonParams cparams; variable 48 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 49 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 50 cparams.shared_data_blob = shared_data; in ResetMocks() 55 cparams.gbb_data = &gbb; in ResetMocks() 56 cparams.gbb_size = sizeof(gbb); in ResetMocks() 57 cparams.gbb = &gbb; in ResetMocks() 125 int LoadFirmware(VbCommonParams* cparams, VbSelectFirmwareParams* fparams, in LoadFirmware() argument 139 TEST_EQ(VbSelectFirmware(&cparams, &fparams), expected_retval, desc); in TestVbSf()
|
D | vboot_api_devmode_tests.c | 133 static VbCommonParams cparams; variable 152 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 153 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 154 cparams.shared_data_blob = shared_data; in ResetMocks() 155 cparams.gbb_data = &gbb; in ResetMocks() 156 cparams.gbb = &gbb; in ResetMocks() 299 VbError_t VbBootDeveloper(VbCommonParams* cparams, LoadKernelParams* p); 315 (void) VbBootDeveloper(&cparams, &lkparams); in VbBootDeveloperSoundTest()
|
D | vboot_firmware_tests.c | 22 static VbCommonParams cparams; variable 46 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 47 cparams.shared_data_blob = shared_data; in ResetMocks() 48 cparams.gbb_data = gbb_data; in ResetMocks() 49 cparams.gbb_size = sizeof(gbb_data); in ResetMocks() 50 cparams.gbb = gbb; in ResetMocks() 161 VbError_t VbExHashFirmwareBody(VbCommonParams* cparams, in VbExHashFirmwareBody() argument 172 cparams, digest_expect_ptr, in VbExHashFirmwareBody() 174 VbUpdateFirmwareBodyHash(cparams, digest_expect_ptr, 1024); in VbExHashFirmwareBody() 178 VbUpdateFirmwareBodyHash(cparams, digest_expect_ptr, 4); in VbExHashFirmwareBody() [all …]
|
D | vboot_api_kernel3_tests.c | 24 static VbCommonParams cparams; variable 53 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks() 54 cparams.shared_data_size = sizeof(shared_data); in ResetMocks() 55 cparams.shared_data_blob = shared_data; in ResetMocks() 56 cparams.gbb_data = &gbb; in ResetMocks() 183 VbError_t VbDisplayScreen(VbCommonParams *cparams, uint32_t screen, int force, in VbDisplayScreen() argument 196 TEST_EQ(VbEcSoftwareSync(0, &cparams), retval, desc); in test_ssync()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_api_firmware.c | 20 VbError_t VbSelectFirmware(VbCommonParams *cparams, in VbSelectFirmware() argument 24 (VbSharedDataHeader *)cparams->shared_data_blob; in VbSelectFirmware() 31 cparams->gbb = NULL; in VbSelectFirmware() 32 cparams->bmp = NULL; in VbSelectFirmware() 49 cparams->gbb = VbExMalloc(sizeof(*cparams->gbb)); in VbSelectFirmware() 50 retval = VbGbbReadHeader_static(cparams, cparams->gbb); in VbSelectFirmware() 53 VbExFree(cparams->gbb); in VbSelectFirmware() 54 cparams->gbb = NULL; in VbSelectFirmware() 60 cparams->gbb = VbExMalloc(sizeof(*cparams->gbb)); in VbSelectFirmware() 61 retval = VbGbbReadHeader_static(cparams, cparams->gbb); in VbSelectFirmware() [all …]
|
D | vboot_api_kernel.c | 71 uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p, in VbTryLoadKernel() argument 123 retval = LoadKernel(p, cparams); in VbTryLoadKernel() 154 int VbUserConfirms(VbCommonParams *cparams, uint32_t confirm_flags) in VbUserConfirms() argument 157 (VbSharedDataHeader *)cparams->shared_data_blob; in VbUserConfirms() 167 if (VbWantShutdown(cparams->gbb->flags)) in VbUserConfirms() 211 VbCheckDisplayKey(cparams, key, &vnc); in VbUserConfirms() 220 VbError_t VbBootNormal(VbCommonParams *cparams, LoadKernelParams *p) in VbBootNormal() argument 224 return VbTryLoadKernel(cparams, p, VB_DISK_FLAG_FIXED); in VbBootNormal() 227 VbError_t VbBootDeveloper(VbCommonParams *cparams, LoadKernelParams *p) in VbBootDeveloper() argument 229 GoogleBinaryBlockHeader *gbb = cparams->gbb; in VbBootDeveloper() [all …]
|
D | region-kernel.c | 20 static VbError_t VbRegionReadGbb(VbCommonParams *cparams, uint32_t offset, in VbRegionReadGbb() argument 23 return VbRegionReadData(cparams, VB_REGION_GBB, offset, size, buf); in VbRegionReadGbb() 26 VbError_t VbGbbReadBmpHeader(VbCommonParams *cparams, BmpBlockHeader *hdr_ret) in VbGbbReadBmpHeader() argument 31 if (!cparams) in VbGbbReadBmpHeader() 33 if (!cparams->bmp) { in VbGbbReadBmpHeader() 34 GoogleBinaryBlockHeader *gbb = cparams->gbb; in VbGbbReadBmpHeader() 40 ret = VbRegionReadGbb(cparams, gbb->bmpfv_offset, in VbGbbReadBmpHeader() 58 cparams->bmp = hdr; in VbGbbReadBmpHeader() 61 *hdr_ret = *cparams->bmp; in VbGbbReadBmpHeader() 65 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid, in VbRegionReadHWID() argument [all …]
|
D | region-fw.c | 20 static VbError_t VbGbbReadKey(VbCommonParams *cparams, uint32_t offset, in VbGbbReadKey() argument 27 ret = VbRegionReadData(cparams, VB_REGION_GBB, offset, in VbGbbReadKey() 37 ret = VbRegionReadData(cparams, VB_REGION_GBB, offset, size, key); in VbGbbReadKey() 47 VbError_t VbGbbReadRootKey(VbCommonParams *cparams, VbPublicKey **keyp) in VbGbbReadRootKey() argument 49 return VbGbbReadKey(cparams, cparams->gbb->rootkey_offset, keyp); in VbGbbReadRootKey() 52 VbError_t VbGbbReadRecoveryKey(VbCommonParams *cparams, VbPublicKey **keyp) in VbGbbReadRecoveryKey() argument 54 return VbGbbReadKey(cparams, cparams->gbb->recovery_key_offset, keyp); in VbGbbReadRecoveryKey()
|
D | region-init.c | 20 VbError_t VbRegionReadData(VbCommonParams *cparams, in VbRegionReadData() argument 25 if (region == VB_REGION_GBB && cparams->gbb_data) { in VbRegionReadData() 26 if (offset + size > cparams->gbb_size) in VbRegionReadData() 28 Memcpy(buf, cparams->gbb_data + offset, size); in VbRegionReadData() 34 ret = VbExRegionRead(cparams, region, offset, size, buf); in VbRegionReadData() 45 VbError_t VbGbbReadHeader_static(VbCommonParams *cparams, in VbGbbReadHeader_static() argument 48 return VbRegionReadData(cparams, VB_REGION_GBB, 0, in VbGbbReadHeader_static()
|
D | vboot_display.c | 23 VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count) in VbGetLocalizationCount() argument 31 ret = VbGbbReadBmpHeader(cparams, &hdr); in VbGetLocalizationCount() 140 VbError_t VbDisplayScreenFromGBB(VbCommonParams *cparams, uint32_t screen, in VbDisplayScreenFromGBB() argument 155 ret = VbGbbReadBmpHeader(cparams, &hdr); in VbDisplayScreenFromGBB() 223 ret = VbGbbReadImage(cparams, localization, screen_index, in VbDisplayScreenFromGBB() 267 VbRegionReadHWID(cparams, hwid, sizeof(hwid)); in VbDisplayScreenFromGBB() 298 VbRegionCheckVersion(cparams); in VbDisplayScreenFromGBB() 305 VbError_t VbDisplayScreen(VbCommonParams *cparams, uint32_t screen, in VbDisplayScreen() argument 328 if (VBERROR_SUCCESS == VbDisplayScreenFromGBB(cparams, screen, in VbDisplayScreen() 503 VbError_t VbDisplayDebugInfo(VbCommonParams *cparams, VbNvContext *vncptr) in VbDisplayDebugInfo() argument [all …]
|
D | vboot_firmware.c | 31 void VbUpdateFirmwareBodyHash(VbCommonParams *cparams, uint8_t *data, in VbUpdateFirmwareBodyHash() argument 35 (VbLoadFirmwareInternal*)cparams->vboot_context; in VbUpdateFirmwareBodyHash() 41 int LoadFirmware(VbCommonParams *cparams, VbSelectFirmwareParams *fparams, in LoadFirmware() argument 45 (VbSharedDataHeader *)cparams->shared_data_blob; in LoadFirmware() 46 GoogleBinaryBlockHeader *gbb = cparams->gbb; in LoadFirmware() 66 retval = VbGbbReadRootKey(cparams, &root_key); in LoadFirmware() 88 cparams->vboot_context = lfi; in LoadFirmware() 236 cparams, in LoadFirmware() 311 cparams->vboot_context = NULL; in LoadFirmware()
|
/external/vboot_reference/firmware/lib/include/ |
D | vboot_kernel.h | 26 void VbApiKernelFree(VbCommonParams *cparams); 31 uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p, 52 int VbUserConfirms(VbCommonParams *cparams, uint32_t confirm_flags); 57 VbError_t VbBootNormal(VbCommonParams *cparams, LoadKernelParams *p); 62 VbError_t VbBootDeveloper(VbCommonParams *cparams, LoadKernelParams *p); 67 VbError_t VbBootRecovery(VbCommonParams *cparams, LoadKernelParams *p); 72 VbError_t VbEcSoftwareSync(int devidx, VbCommonParams *cparams);
|
D | vboot_display.h | 15 VbError_t VbDisplayScreenFromGBB(VbCommonParams *cparams, uint32_t screen, 17 VbError_t VbDisplayScreen(VbCommonParams *cparams, uint32_t screen, int force, 19 VbError_t VbDisplayDebugInfo(VbCommonParams *cparams, VbNvContext *vncptr); 20 VbError_t VbCheckDisplayKey(VbCommonParams *cparams, uint32_t key, 48 VbError_t VbGetLocalizationCount(VbCommonParams *cparams, uint32_t *count);
|
/external/zstd/tests/ |
D | fullbench.c | 409 int cLevel, ZSTD_compressionParameters cparams) in benchMem() argument 498 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_windowLog, (int)cparams.windowLog); in benchMem() 499 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_hashLog, (int)cparams.hashLog); in benchMem() 500 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_chainLog, (int)cparams.chainLog); in benchMem() 501 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_searchLog, (int)cparams.searchLog); in benchMem() 502 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_minMatch, (int)cparams.minMatch); in benchMem() 503 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_targetLength, (int)cparams.targetLength); in benchMem() 504 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_strategy, cparams.strategy); in benchMem() 508 ZSTD_CCtx_setParameter(g_cstream, ZSTD_c_windowLog, (int)cparams.windowLog); in benchMem() 509 ZSTD_CCtx_setParameter(g_cstream, ZSTD_c_hashLog, (int)cparams.hashLog); in benchMem() [all …]
|
/external/vboot_reference/firmware/include/ |
D | gbb_access.h | 27 VbError_t VbGbbReadHeader_static(VbCommonParams *cparams, 38 VbError_t VbGbbReadRootKey(VbCommonParams *cparams, 49 VbError_t VbGbbReadRecoveryKey(VbCommonParams *cparams, 59 VbError_t VbGbbReadBmpHeader(VbCommonParams *cparams, 77 VbError_t VbGbbReadImage(VbCommonParams *cparams,
|
D | region.h | 30 VbError_t VbRegionReadData(VbCommonParams *cparams, 39 void VbRegionCheckVersion(VbCommonParams *cparams); 52 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid,
|
D | vboot_api.h | 354 VbError_t VbInit(VbCommonParams *cparams, VbInitParams *iparams); 367 VbError_t VbSelectFirmware(VbCommonParams *cparams, 375 void VbUpdateFirmwareBodyHash(VbCommonParams *cparams, 383 VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams, 528 VbError_t VbExHashFirmwareBody(VbCommonParams *cparams, 1000 VbError_t VbExRegionRead(VbCommonParams *cparams,
|
/external/apache-http/src/org/apache/http/impl/client/ |
D | ClientParamsStack.java | 110 public ClientParamsStack(HttpParams aparams, HttpParams cparams, in ClientParamsStack() argument 113 clientParams = cparams; in ClientParamsStack() 148 HttpParams aparams, HttpParams cparams, in ClientParamsStack() argument 151 (cparams != null) ? cparams : stack.getClientParams(), in ClientParamsStack()
|
/external/zstd/contrib/linux-kernel/ |
D | zstd_compress_module.c | 22 offsetof(struct zstd_parameters, cparams)); in zstd_check_structs() 94 const struct zstd_compression_parameters *cparams) in zstd_cctx_workspace_bound() argument 98 ZSTD_memcpy(&p, cparams, sizeof(p)); in zstd_cctx_workspace_bound() 122 const struct zstd_compression_parameters *cparams) in zstd_cstream_workspace_bound() argument 126 ZSTD_memcpy(&p, cparams, sizeof(p)); in zstd_cstream_workspace_bound()
|