Lines Matching defs:SECTOR_SIZE
49 #define SECTOR_SIZE 512
383 uint8_t sector[SECTOR_SIZE];
396 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE))
404 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET);
406 rv = read(nvctx_fd, sector, SECTOR_SIZE);
424 uint8_t sector[SECTOR_SIZE];
437 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE))
446 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET);
447 rv = read(nvctx_fd, sector, SECTOR_SIZE);
454 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET);
455 rv = write(nvctx_fd, sector, SECTOR_SIZE);