Home
last modified time | relevance | path

Searched refs:valid_entries (Results 1 – 16 of 16) sorted by relevance

/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c247 gpt->valid_entries = 0; in GptSanityCheck()
277 gpt->valid_entries |= MASK_PRIMARY; in GptSanityCheck()
279 gpt->valid_entries |= MASK_SECONDARY; in GptSanityCheck()
285 if (MASK_BOTH == gpt->valid_headers && !gpt->valid_entries) { in GptSanityCheck()
287 gpt->valid_entries |= MASK_PRIMARY; in GptSanityCheck()
289 gpt->valid_entries |= MASK_SECONDARY; in GptSanityCheck()
290 if (gpt->valid_entries) { in GptSanityCheck()
301 if (!gpt->valid_entries) in GptSanityCheck()
324 if (MASK_NONE == gpt->valid_headers || MASK_NONE == gpt->valid_entries) in GptRepair()
352 if (MASK_PRIMARY == gpt->valid_entries) { in GptRepair()
[all …]
/external/vboot_reference/tests/
Dcgptlib_test.c157 gpt->valid_entries = MASK_BOTH; in BuildTestGptData()
825 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
830 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
844 EXPECT(0 == gpt->valid_entries); in SanityCheckTest()
849 EXPECT(0 == gpt->valid_entries); in SanityCheckTest()
856 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
860 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
867 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
871 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
883 EXPECT(MASK_BOTH == gpt->valid_entries); in SanityCheckTest()
[all …]
Dvboot_kernel_tests.c300 g.valid_headers = g.valid_entries = MASK_BOTH; in ReadWriteGptTest()
386 g.valid_headers = g.valid_entries = MASK_SECONDARY; in ReadWriteGptTest()
411 g.valid_headers = g.valid_entries = MASK_PRIMARY; in ReadWriteGptTest()
/external/pdfium/third_party/freetype/src/sfnt/
Dttload.c175 FT_UShort nn, valid_entries = 0; in check_table_dir() local
227 valid_entries++; in check_table_dir()
235 valid_entries++; in check_table_dir()
281 *valid = valid_entries; in check_table_dir()
283 if ( !valid_entries ) in check_table_dir()
341 FT_UShort nn, valid_entries; in tt_face_load_font_dir() local
382 error = check_table_dir( &sfnt, stream, &valid_entries ); in tt_face_load_font_dir()
391 valid_entries = sfnt.num_tables; in tt_face_load_font_dir()
393 face->num_tables = valid_entries; in tt_face_load_font_dir()
407 valid_entries = 0; in tt_face_load_font_dir()
[all …]
/external/vboot_reference/cgpt/
Dcgpt_show.c275 drive->gpt.valid_entries & MASK_PRIMARY ? "" : "INVALID", in GptShow()
279 (drive->gpt.valid_entries & MASK_PRIMARY)) in GptShow()
286 drive->gpt.valid_entries & MASK_SECONDARY ? "" : "INVALID", in GptShow()
294 ((drive->gpt.valid_entries & MASK_SECONDARY) && in GptShow()
295 (!(drive->gpt.valid_entries & MASK_PRIMARY) || in GptShow()
Dcgpt_common.c56 (drive->gpt.valid_entries != MASK_BOTH)) { in CheckValid()
718 if (gpt->valid_entries & MASK_PRIMARY) { in GetEntry()
721 require(gpt->valid_entries & MASK_SECONDARY); in GetEntry()
880 uint8_t RepairEntries(GptData *gpt, const uint32_t valid_entries) { in RepairEntries() argument
899 if (valid_entries == MASK_BOTH) { in RepairEntries()
904 } else if (valid_entries == MASK_PRIMARY) { in RepairEntries()
907 } else if (valid_entries == MASK_SECONDARY) { in RepairEntries()
Dcgpt.h168 uint8_t RepairEntries(GptData *gpt, const uint32_t valid_entries);
Dcgpt_add.c138 ((drive->gpt.valid_entries & MASK_BOTH) != MASK_BOTH)) { in CgptCheckAddValidity()
/external/vboot_reference/firmware/include/
Dgpt_misc.h111 uint32_t valid_headers, valid_entries; member
/external/freetype/src/sfnt/
Dttload.c173 FT_UShort nn, valid_entries = 0; in check_table_dir() local
222 valid_entries++; in check_table_dir()
230 valid_entries++; in check_table_dir()
276 sfnt->num_tables = valid_entries; in check_table_dir()
/external/mesa3d/src/gallium/drivers/trace/
Dtr_dump_state.c372 unsigned valid_entries = 1; in trace_dump_blend_state() local
393 valid_entries = PIPE_MAX_COLOR_BUFS; in trace_dump_blend_state()
394 trace_dump_struct_array(rt_blend_state, state->rt, valid_entries); in trace_dump_blend_state()
/external/v8/src/
Dobjects-debug.cc1155 bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) { in IsSortedNoDuplicates() argument
1156 if (valid_entries == -1) valid_entries = number_of_descriptors(); in IsSortedNoDuplicates()
1177 bool TransitionArray::IsSortedNoDuplicates(int valid_entries) { in IsSortedNoDuplicates() argument
1178 DCHECK(valid_entries == -1); in IsSortedNoDuplicates()
Dtransitions.h193 bool IsSortedNoDuplicates(int valid_entries = -1);
Dobjects-inl.h2714 int BinarySearch(T* array, Name* name, int low, int high, int valid_entries, in BinarySearch() argument
2745 if (search_mode == ALL_ENTRIES || sort_index < valid_entries) { in BinarySearch()
2760 int LinearSearch(T* array, Name* name, int len, int valid_entries, in LinearSearch() argument
2777 DCHECK(len >= valid_entries); in LinearSearch()
2779 for (int number = 0; number < valid_entries; number++) { in LinearSearch()
2790 int Search(T* array, Name* name, int valid_entries, int* out_insertion_index) { in Search() argument
2792 SLOW_DCHECK(array->IsSortedNoDuplicates(valid_entries)); in Search()
2808 valid_entries <= (kMaxElementsForLinearSearch * 3))) { in Search()
2809 return LinearSearch<search_mode>(array, name, nof, valid_entries, in Search()
2814 return BinarySearch<search_mode>(array, name, 0, nof - 1, valid_entries, in Search()
Dobjects.h3033 inline int Search(T* array, Name* name, int valid_entries = 0,
/external/mesa3d/src/gallium/auxiliary/util/
Du_dump_state.c547 unsigned valid_entries = 1; in util_dump_blend_state() local
567 valid_entries = PIPE_MAX_COLOR_BUFS; in util_dump_blend_state()
568 util_dump_struct_array(stream, rt_blend_state, state->rt, valid_entries); in util_dump_blend_state()