Lines Matching defs:offset
131 ssize_t pread(int fd, void *buf, size_t count, off_t offset);
132 ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
153 off_t offset = start;
157 res = pread(fd, readbuf, sizeof(readbuf), offset);
160 offset += res;
165 res = pread(fd, readbuf, compute_len, offset);
183 uint32_t offset = 0;
213 headercrc = compute_crc32(CRC_START, offset, offsetof(struct bcm_tag, header_crc), fd);
291 mtd_fixtrx(const char *mtd, size_t offset, size_t data_size)
306 fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset);
308 block_offset = offset & ~(erasesize - 1);
309 offset -= block_offset;
334 tag = (struct bcm_tag *) (buf + offset);
346 headercrc = compute_crc32(CRC_START, offset, offsetof(struct bcm_tag, header_crc), fd);