Home
last modified time | relevance | path

Searched refs:cparams (Results 1 – 25 of 35) sorted by relevance

12

/external/vboot_reference/tests/
Dvboot_display_tests.c24 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 …]
Dvboot_api_kernel2_tests.c24 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 …]
Dvboot_kernel_tests.c64 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 …]
Dvboot_audio_tests.c32 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 …]
Dvboot_region_tests.c23 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 …]
Dvboot_api_kernel4_tests.c24 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 …]
Dvboot_api_firmware_tests.c25 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()
Dvboot_api_devmode_tests.c133 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()
Dvboot_firmware_tests.c22 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 …]
Dvboot_api_kernel3_tests.c24 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()
Dvboot_api_init_tests.c21 static VbCommonParams cparams; variable
42 Memset(&cparams, 0, sizeof(cparams)); in ResetMocks()
43 cparams.shared_data_size = sizeof(shared_data); in ResetMocks()
44 cparams.shared_data_blob = shared_data; in ResetMocks()
45 cparams.gbb_data = &gbb; in ResetMocks()
46 cparams.gbb_size = sizeof(gbb); in ResetMocks()
147 TEST_EQ(VbInit(&cparams, &iparams), expected_retval, desc); in TestVbInit()
160 cparams.shared_data_size = VB_SHARED_DATA_MIN_SIZE - 1; in VbInitTest()
/external/vboot_reference/firmware/lib/
Dvboot_api_kernel.c71 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 …]
Dvboot_api_firmware.c20 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 …]
Dregion-kernel.c20 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 …]
Dregion-fw.c20 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()
Dregion-init.c20 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()
Dvboot_display.c23 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 …]
Dvboot_firmware.c31 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/
Dvboot_kernel.h26 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);
Dvboot_display.h15 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/vboot_reference/firmware/include/
Dgbb_access.h27 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,
Dregion.h30 VbError_t VbRegionReadData(VbCommonParams *cparams,
39 void VbRegionCheckVersion(VbCommonParams *cparams);
52 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid,
Dvboot_api.h354 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/
DClientParamsStack.java110 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/vboot_reference/utility/
Dload_kernel_test.c30 static VbCommonParams cparams; variable
98 Memset(&cparams, 0, sizeof(VbCommonParams)); in main()
162 cparams.gbb = gbb; in main()
221 rv = LoadKernel(&lkp, &cparams); in main()

12