Searched defs:sector_bytes (Results 1 - 4 of 4) sorted by relevance

/external/vboot_reference/firmware/include/
H A Dgpt_misc.h92 uint32_t sector_bytes; member in struct:__anon29920
124 * sector_bytes
150 * Allocate and read GPT data from the drive. The sector_bytes and
/external/vboot_reference/cgpt/
H A Dcgpt_common.c65 const uint64_t sector_bytes,
71 if (!sector_count || !sector_bytes) {
72 Error("%s() failed at line %d: sector_count=%ld, sector_bytes=%ld\n",
73 __FUNCTION__, __LINE__, sector_count, sector_bytes);
76 /* Make sure that sector_bytes * sector_count doesn't roll over. */
77 if (sector_bytes > (UINT64_MAX / sector_count)) {
78 Error("%s() failed at line %d: sector_count=%d, sector_bytes=%d\n",
79 __FUNCTION__, __LINE__, sector_count, sector_bytes);
82 count = sector_bytes * sector_count;
86 if (-1 == lseek(drive->fd, sector * sector_bytes, SEEK_SE
63 Load(struct drive *drive, uint8_t **buf, const uint64_t sector, const uint64_t sector_bytes, const uint64_t sector_count) argument
128 Save(struct drive *drive, const uint8_t *buf, const uint64_t sector, const uint64_t sector_bytes, const uint64_t sector_count) argument
148 GptLoad(struct drive *drive, uint32_t sector_bytes) argument
265 ObtainDriveSize(int fd, uint64_t* size, uint32_t* sector_bytes) argument
291 uint32_t sector_bytes; local
[all...]
/external/vboot_reference/tests/
H A Dcgptlib_test.c20 * Testing partition layout (sector_bytes=512)
152 gpt->sector_bytes = DEFAULT_SECTOR_SIZE;
227 gpt->sector_bytes = 0;
233 * Test if wrong sector_bytes or drive_sectors is detected by GptInit().
242 uint32_t sector_bytes; member in struct:__anon29937
259 gpt->sector_bytes = cases[i].sector_bytes;
835 gpt->sector_bytes = 1024;
/external/kernel-headers/original/uapi/linux/
H A Dhdreg.h405 unsigned short sector_bytes; /* unformatted bytes per sector */ member in struct:hd_driveid

Completed in 291 milliseconds