/external/vboot_reference/tests/ |
D | cgptlib_test.c | 72 static void RefreshCrc32(GptData *gpt) in RefreshCrc32() argument 77 header = (GptHeader *)gpt->primary_header; in RefreshCrc32() 78 entries = (GptEntry *)gpt->primary_entries; in RefreshCrc32() 79 header2 = (GptHeader *)gpt->secondary_header; in RefreshCrc32() 80 entries2 = (GptEntry *)gpt->secondary_entries; in RefreshCrc32() 94 static void ZeroHeaders(GptData *gpt) in ZeroHeaders() argument 96 Memset(gpt->primary_header, 0, MAX_SECTOR_SIZE); in ZeroHeaders() 97 Memset(gpt->secondary_header, 0, MAX_SECTOR_SIZE); in ZeroHeaders() 100 static void ZeroEntries(GptData *gpt) in ZeroEntries() argument 102 Memset(gpt->primary_entries, 0, PARTITION_ENTRIES_SIZE); in ZeroEntries() [all …]
|
D | vboot_kernel_tests.c | 210 int GptInit(GptData *gpt) in GptInit() argument 215 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size) in GptNextKernelEntry() argument 222 if (gpt->flags & GPT_FLAG_EXTERNAL) in GptNextKernelEntry() 225 gpt->current_kernel = mock_part_next; in GptNextKernelEntry() 232 void GetCurrentKernelUniqueGuid(GptData *gpt, void *dest) in GetCurrentKernelUniqueGuid() argument
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib_internal.c | 23 int CheckParameters(GptData *gpt) in CheckParameters() argument 26 if (gpt->sector_bytes != SECTOR_SIZE) in CheckParameters() 34 if (gpt->gpt_drive_sectors == 0 || in CheckParameters() 35 (!(gpt->flags & GPT_FLAG_EXTERNAL) && in CheckParameters() 36 gpt->gpt_drive_sectors != gpt->streaming_drive_sectors)) { in CheckParameters() 45 if (gpt->gpt_drive_sectors < in CheckParameters() 237 int GptSanityCheck(GptData *gpt) in GptSanityCheck() argument 240 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptSanityCheck() 241 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptSanityCheck() 242 GptEntry *entries1 = (GptEntry *)(gpt->primary_entries); in GptSanityCheck() [all …]
|
D | cgptlib.c | 15 int GptInit(GptData *gpt) in GptInit() argument 19 gpt->modified = 0; in GptInit() 20 gpt->current_kernel = CGPT_KERNEL_ENTRY_NOT_FOUND; in GptInit() 21 gpt->current_priority = 999; in GptInit() 23 retval = GptSanityCheck(gpt); in GptInit() 29 GptRepair(gpt); in GptInit() 33 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size) in GptNextKernelEntry() argument 35 GptHeader *header = (GptHeader *)gpt->primary_header; in GptNextKernelEntry() 36 GptEntry *entries = (GptEntry *)gpt->primary_entries; in GptNextKernelEntry() 47 if (gpt->current_kernel != CGPT_KERNEL_ENTRY_NOT_FOUND) { in GptNextKernelEntry() [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 55 if ((drive->gpt.valid_headers != MASK_BOTH) || in CheckValid() 56 (drive->gpt.valid_entries != MASK_BOTH)) { in CheckValid() 149 drive->gpt.sector_bytes = sector_bytes; in GptLoad() 150 if (drive->size % drive->gpt.sector_bytes) { in GptLoad() 152 (long long unsigned int)drive->size, drive->gpt.sector_bytes); in GptLoad() 155 drive->gpt.streaming_drive_sectors = drive->size / drive->gpt.sector_bytes; in GptLoad() 158 if (!(drive->gpt.flags & GPT_FLAG_EXTERNAL)) { in GptLoad() 159 drive->gpt.gpt_drive_sectors = drive->gpt.streaming_drive_sectors; in GptLoad() 163 if (CGPT_OK != Load(drive, &drive->gpt.primary_header, in GptLoad() 165 drive->gpt.sector_bytes, GPT_HEADER_SECTORS)) { in GptLoad() [all …]
|
D | cgpt_create.c | 28 AllocAndClear(&drive->gpt.primary_header, in GptCreate() 29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate() 30 AllocAndClear(&drive->gpt.secondary_header, in GptCreate() 31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate() 33 drive->gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | in GptCreate() 38 GptHeader *h = (GptHeader *)drive->gpt.primary_header; in GptCreate() 43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS; in GptCreate() 52 if (drive->gpt.flags & GPT_FLAG_EXTERNAL) { in GptCreate() 63 (GPT_PMBR_SECTORS + GPT_HEADER_SECTORS) * drive->gpt.sector_bytes; in GptCreate() 67 (drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes; in GptCreate() [all …]
|
D | cgpt_show.c | 149 entry = GetEntry(&drive->gpt, secondary, i); in EntriesDetails() 160 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive->gpt))) { in GptShow() 174 GptEntry *entry = GetEntry(&drive->gpt, ANY_VALID, index); in GptShow() 227 entry = GetEntry(&drive->gpt, ANY_VALID, i); in GptShow() 253 if (drive->gpt.valid_headers & MASK_PRIMARY) { in GptShow() 262 ((drive->gpt.valid_headers & MASK_PRIMARY) && params->verbose)) { in GptShow() 267 header = (GptHeader*)drive->gpt.primary_header; in GptShow() 268 entries = (GptEntry*)drive->gpt.primary_entries; in GptShow() 272 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptShow() 275 drive->gpt.valid_entries & MASK_PRIMARY ? "" : "INVALID", in GptShow() [all …]
|
D | cgpt_legacy.c | 22 h1 = (GptHeader *)drive.gpt.primary_header; in CgptLegacy() 23 h2 = (GptHeader *)drive.gpt.secondary_header; in CgptLegacy() 27 RepairEntries(&drive.gpt, MASK_SECONDARY); in CgptLegacy() 28 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | in CgptLegacy() 33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); in CgptLegacy() 34 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | in CgptLegacy() 38 UpdateCrc(&drive.gpt); in CgptLegacy()
|
D | cgpt_repair.c | 22 int gpt_retval = GptSanityCheck(&drive.gpt); in CgptRepair() 27 GptRepair(&drive.gpt); in CgptRepair() 28 if (drive.gpt.modified & GPT_MODIFIED_HEADER1) in CgptRepair() 30 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES1) in CgptRepair() 32 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES2) in CgptRepair() 34 if (drive.gpt.modified & GPT_MODIFIED_HEADER2) in CgptRepair()
|
D | cgpt_add.c | 73 entry = GetEntry(&drive->gpt, PRIMARY, index); in GptSetEntryAttributes() 131 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive->gpt))) { in CgptCheckAddValidity() 137 if (((drive->gpt.valid_headers & MASK_BOTH) != MASK_BOTH) || in CgptCheckAddValidity() 138 ((drive->gpt.valid_entries & MASK_BOTH) != MASK_BOTH)) { in CgptCheckAddValidity() 236 GptEntry *entry = GetEntry(&drive.gpt, PRIMARY, index); in CgptGetPartitionDetails() 250 GptEntry *entry = GetEntry(&drive.gpt, PRIMARY, index); in CgptGetPartitionDetails() 271 entry = GetEntry(&drive->gpt, PRIMARY, index); in GptAdd() 282 rv = CheckEntries((GptEntry*)drive->gpt.primary_entries, in GptAdd() 283 (GptHeader*)drive->gpt.primary_header); in GptAdd()
|
D | cgpt_boot.c | 27 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) { in CgptGetBootPartitionNumber() 46 GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, i); in CgptGetBootPartitionNumber() 102 if (drive.gpt.streaming_drive_sectors < 0xffffffff) in CgptBoot() 103 max = drive.gpt.streaming_drive_sectors - 1; in CgptBoot() 108 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) { in CgptBoot() 120 GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, index); in CgptBoot()
|
D | cgpt.h | 47 GptData gpt; member 150 GptEntry *GetEntry(GptData *gpt, int secondary, uint32_t entry_index); 167 uint8_t RepairHeader(GptData *gpt, const uint32_t valid_headers); 168 uint8_t RepairEntries(GptData *gpt, const uint32_t valid_entries); 169 void UpdateCrc(GptData *gpt);
|
/external/u-boot/arch/arm/cpu/arm926ejs/mx25/ |
D | timer.c | 31 struct gpt_regs *gpt = (struct gpt_regs *)IMX_GPT1_BASE; in timer_init() local 35 writel(GPT_CTRL_SWR, &gpt->ctrl); in timer_init() 40 writel(0, &gpt->ctrl); /* We have no udelay by now */ in timer_init() 41 writel(0, &gpt->pre); /* prescaler = 1 */ in timer_init() 43 writel(readl(&gpt->ctrl) | GPT_CTRL_CLKSOURCE_32 | GPT_CTRL_FRR, in timer_init() 44 &gpt->ctrl); in timer_init() 45 writel(readl(&gpt->ctrl) | GPT_CTRL_TEN, &gpt->ctrl); in timer_init()
|
/external/u-boot/arch/arm/cpu/arm1136/mx35/ |
D | timer.c | 27 struct gpt_regs *gpt = (struct gpt_regs *)GPT1_BASE_ADDR; in timer_init() local 31 writel(GPTCR_SWR, &gpt->ctrl); in timer_init() 36 writel(0, &gpt->ctrl); /* We have no udelay by now */ in timer_init() 37 writel(0, &gpt->pre); /* prescaler = 1 */ in timer_init() 39 writel(readl(&gpt->ctrl) | GPTCR_CLKSOURCE_32 | GPTCR_FRR, in timer_init() 40 &gpt->ctrl); in timer_init() 41 writel(readl(&gpt->ctrl) | GPTCR_TEN, &gpt->ctrl); in timer_init()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_kernel.c | 40 GptData gpt; in LoadKernel() local 118 gpt.sector_bytes = (uint32_t)blba; in LoadKernel() 119 gpt.streaming_drive_sectors = params->streaming_lba_count; in LoadKernel() 120 gpt.gpt_drive_sectors = params->gpt_lba_count; in LoadKernel() 121 gpt.flags = params->boot_flags & BOOT_FLAG_EXTERNAL_GPT in LoadKernel() 123 if (0 != AllocAndReadGptData(params->disk_handle, &gpt)) { in LoadKernel() 130 if (GPT_SUCCESS != GptInit(&gpt)) { in LoadKernel() 143 GptNextKernelEntry(&gpt, &part_start, &part_size)) { in LoadKernel() 171 shpart->gpt_index = (uint8_t)(gpt.current_kernel + 1); in LoadKernel() 431 good_partition = gpt.current_kernel + 1; in LoadKernel() [all …]
|
D | gpt_misc.c | 220 size_t GptGetEntrySizeBytes(const GptData *gpt, const GptEntry *e) in GptGetEntrySizeBytes() argument 222 return GptGetEntrySizeLba(e) * gpt->sector_bytes; in GptGetEntrySizeBytes()
|
/external/vboot_reference/firmware/include/ |
D | gpt_misc.h | 140 int GptInit(GptData *gpt); 147 GptEntry *GptFindNthEntry(GptData *gpt, const Guid *guid, unsigned int n); 176 size_t GptGetEntrySizeBytes(const GptData *gpt, const GptEntry *e); 188 int GptUpdateKernelWithEntry(GptData *gpt, GptEntry *e, uint32_t update_type); 197 int GptUpdateKernelEntry(GptData *gpt, uint32_t update_type);
|
/external/vboot_reference/firmware/lib/cgptlib/include/ |
D | cgptlib_internal.h | 81 int CheckParameters(GptData* gpt); 122 int GptSanityCheck(GptData *gpt); 129 void GptRepair(GptData *gpt); 135 void GptModified(GptData *gpt); 154 void GetCurrentKernelUniqueGuid(GptData *gpt, void *dest);
|
D | cgptlib.h | 23 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size);
|
/external/u-boot/doc/ |
D | README.gpt | 20 the gpt command in u-boot. 172 the generated UUID. The 'gpt guid' command reads the current value of the 185 gpt write mmc 0 $partitions 193 gpt verify mmc 0 [$partitions] 208 U-BOOT> gpt verify mmc 0 $partitions 215 communicate about software updates and boot failure. The 'gpt guid', 216 'gpt read', 'gpt rename' and 'gpt swap' commands facilitate 221 U-BOOT> gpt swap mmc 0 primary backup 228 U-BOOT> gpt rename mmc 0 1 primary 235 => gpt read host 0 [all …]
|
/external/tensorflow/tensorflow/python/distribute/ |
D | cross_device_utils.py | 534 def unpack_grad_tuple(gv, gpt): argument 546 elt_widths = [x.num_elements() for x in gpt.shapes] 552 unpacked_gv.append((array_ops.reshape(s, gpt.shapes[idx]), 553 gpt.vars[idx])) 636 gpt = packing[k] 637 gv = unpack_grad_tuple(gv_list[i], gpt) 638 for gi, idx in enumerate(gpt.indices): 639 assert idx == gpt.indices[gi]
|
/external/autotest/server/site_tests/kernel_IgnoreGptOptionServer/ |
D | control | 7 PURPOSE = 'Test that the kernel ignores the "gpt" cmd line option.' 13 Checks that kernel is ignoring the command line option "gpt".
|
/external/u-boot/arch/arm/dts/ |
D | imx7s.dtsi | 469 gpt1: gpt@302d0000 { 470 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 478 gpt2: gpt@302e0000 { 479 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 488 gpt3: gpt@302f0000 { 489 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 498 gpt4: gpt@30300000 { 499 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
|
D | imx6dl.dtsi | 114 &gpt { 115 compatible = "fsl,imx6dl-gpt";
|
/external/u-boot/drivers/fastboot/ |
D | Kconfig | 107 default "gpt" 115 The default target name for updating GPT is "gpt". 133 partitions as required by the gpt command.
|