Lines Matching defs:offset
140 int mtd_block_is_bad(int fd, int offset)
143 loff_t o = offset;
157 int mtd_erase_block(int fd, int offset)
161 mtdEraseInfo.start = offset;
170 int mtd_write_buffer(int fd, const char *buf, int offset, int length)
172 lseek(fd, offset, SEEK_SET);
337 int ret = 0, offset = 0;
372 if (mtd_block_is_bad(fd, offset)) {
373 fprintf(stderr, "skipping bad block at 0x%08x\n", offset);
378 offset += rlen;
461 uint32_t offset = 0;
601 offset = 0;
631 write(fd, buf + offset, e - w);
632 offset = e - w;
654 if ((result = write(fd, buf + offset, buflen)) < buflen) {
666 offset = 0;
735 " -p write beginning at partition offset\n"
739 " -o offset offset of the image header in the partition(for fixtrx)\n");
776 size_t offset = 0, data_size = 0, part_offset = 0, dump_len = 0;
854 offset = strtoul(optarg, 0, 0);
963 mtd_dump(device, offset, dump_len);
982 mtd_fixtrx(device, offset, data_size);