Lines Matching refs:cparams
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()
231 (VbSharedDataHeader *)cparams->shared_data_blob; in VbBootDeveloper()
248 VbDisplayScreen(cparams, VB_SCREEN_DEVELOPER_WARNING, 0, &vnc); in VbBootDeveloper()
251 audio = VbAudioOpen(cparams); in VbBootDeveloper()
294 VbDisplayScreen(cparams, in VbBootDeveloper()
298 switch (VbUserConfirms(cparams, 0)) { in VbBootDeveloper()
305 cparams, in VbBootDeveloper()
319 cparams, in VbBootDeveloper()
323 audio = VbAudioOpen(cparams); in VbBootDeveloper()
388 VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, in VbBootDeveloper()
391 VbTryLoadKernel(cparams, p, in VbBootDeveloper()
412 cparams, in VbBootDeveloper()
420 VbCheckDisplayKey(cparams, key, &vnc); in VbBootDeveloper()
442 return VbTryLoadKernel(cparams, p, VB_DISK_FLAG_FIXED); in VbBootDeveloper()
450 VbError_t VbBootRecovery(VbCommonParams *cparams, LoadKernelParams *p) in VbBootRecovery() argument
453 (VbSharedDataHeader *)cparams->shared_data_blob; in VbBootRecovery()
492 VbDisplayScreen(cparams, VB_SCREEN_BLANK, in VbBootRecovery()
501 VbDisplayScreen(cparams, VB_SCREEN_RECOVERY_REMOVE, in VbBootRecovery()
509 VbCheckDisplayKey(cparams, VbExKeyboardRead(), in VbBootRecovery()
511 if (VbWantShutdown(cparams->gbb->flags)) in VbBootRecovery()
521 retval = VbTryLoadKernel(cparams, p, VB_DISK_FLAG_REMOVABLE); in VbBootRecovery()
534 VbDisplayScreen(cparams, VBERROR_NO_DISK_FOUND == retval ? in VbBootRecovery()
575 VbDisplayScreen(cparams, in VbBootRecovery()
582 switch (VbUserConfirms(cparams, vbc_flags)) { in VbBootRecovery()
606 VbCheckDisplayKey(cparams, key, &vnc); in VbBootRecovery()
608 if (VbWantShutdown(cparams->gbb->flags)) in VbBootRecovery()
633 VbError_t VbEcSoftwareSync(int devidx, VbCommonParams *cparams) in VbEcSoftwareSync() argument
636 (VbSharedDataHeader *)cparams->shared_data_blob; in VbEcSoftwareSync()
867 VbDisplayScreen(cparams, VB_SCREEN_WAIT, 0, &vnc); in VbEcSoftwareSync()
954 void VbApiKernelFree(VbCommonParams *cparams) in VbApiKernelFree() argument
957 if (cparams->gbb) { in VbApiKernelFree()
958 VbExFree(cparams->gbb); in VbApiKernelFree()
959 cparams->gbb = NULL; in VbApiKernelFree()
961 if (cparams->bmp) { in VbApiKernelFree()
962 VbExFree(cparams->bmp); in VbApiKernelFree()
963 cparams->bmp = NULL; in VbApiKernelFree()
967 VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams, in VbSelectAndLoadKernel() argument
971 (VbSharedDataHeader *)cparams->shared_data_blob; in VbSelectAndLoadKernel()
990 cparams->bmp = NULL; in VbSelectAndLoadKernel()
991 cparams->gbb = VbExMalloc(sizeof(*cparams->gbb)); in VbSelectAndLoadKernel()
992 retval = VbGbbReadHeader_static(cparams, cparams->gbb); in VbSelectAndLoadKernel()
998 !(cparams->gbb->flags & GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC)) { in VbSelectAndLoadKernel()
1001 retval = VbEcSoftwareSync(0, cparams); in VbSelectAndLoadKernel()
1009 if (!(cparams->gbb->flags & in VbSelectAndLoadKernel()
1011 retval = VbEcSoftwareSync(1, cparams); in VbSelectAndLoadKernel()
1040 p.shared_data_blob = cparams->shared_data_blob; in VbSelectAndLoadKernel()
1041 p.shared_data_size = cparams->shared_data_size; in VbSelectAndLoadKernel()
1042 p.gbb_data = cparams->gbb_data; in VbSelectAndLoadKernel()
1043 p.gbb_size = cparams->gbb_size; in VbSelectAndLoadKernel()
1084 retval = VbBootRecovery(cparams, &p); in VbSelectAndLoadKernel()
1086 VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, &vnc); in VbSelectAndLoadKernel()
1090 retval = VbBootDeveloper(cparams, &p); in VbSelectAndLoadKernel()
1092 VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, &vnc); in VbSelectAndLoadKernel()
1097 retval = VbBootNormal(cparams, &p); in VbSelectAndLoadKernel()
1173 VbApiKernelFree(cparams); in VbSelectAndLoadKernel()