Home
last modified time | relevance | path

Searched refs:BPB (Results 1 – 2 of 2) sorted by relevance

/components/drivers/usb/cherryusb/platform/uf2/
A Dbootuf2.c63 .BPB = {
268 memset(buff, 0, ctx->DBR->BPB.BytesPerSector); in boot2uf2_read_sector()
285 while (sector_relative >= ctx->DBR->BPB.SectorsPerFAT) { in boot2uf2_read_sector()
286 sector_relative -= ctx->DBR->BPB.SectorsPerFAT; in boot2uf2_read_sector()
305 buff[0] = ctx->DBR->BPB.MediaDescriptor; in boot2uf2_read_sector()
388 if (copy_size > ctx->DBR->BPB.BytesPerSector) { in boot2uf2_read_sector()
389 copy_size = ctx->DBR->BPB.BytesPerSector; in boot2uf2_read_sector()
400 buff += ctx->DBR->BPB.BytesPerSector; in boot2uf2_read_sector()
438 buff += ctx->DBR->BPB.BytesPerSector; in bootuf2_write_sector()
446 return bootuf2_disk.DBR->BPB.BytesPerSector; in bootuf2_get_sector_size()
[all …]
A Dbootuf2.h77 } __PACKED BPB; member
145 #define BOOTUF2_FAT16_PER_SECTOR(pDBR) (pDBR->BPB.BytesPerSector / 2)
146 #define BOOTUF2_ENTRY_PER_SECTOR(pDBR) (pDBR->BPB.BytesPerSector / sizeof(struct bootuf2_ENTRY))
149 #define BOOTUF2_SECTOR_RSVD_END(pDBR) BOOTUF2_SECTOR_DBR_END + (pDBR->BPB.ReservedSectors)
150 …2_SECTOR_FAT_END(pDBR) BOOTUF2_SECTOR_RSVD_END(pDBR) + (pDBR->BPB.SectorsPerFAT * pDBR->BPB.Number…
151 …2_SECTOR_ROOT_END(pDBR) BOOTUF2_SECTOR_FAT_END(pDBR) + (pDBR->BPB.RootEntries / (pDBR->BPB.BytesPe…
152 #define BOOTUF2_SECTOR_DATA_END(pDBR) (pDBR->BPB.Sectors + pDBR->BPB.SectorsOver32MB)

Completed in 104 milliseconds