Lines Matching refs:seekto

130 	struct fat_od_fsi *fsinfop, off64_t seekto);
144 struct fat_od_fsi *fsinfop, off64_t seekto);
160 static void write_fat(int fd, off64_t seekto, char *fn, char *lbl,
171 static int open_and_seek(char *dn, bpb_t *wbpb, off64_t *seekto);
176 static int seek_nofdisk(int fd, bpb_t *wbpb, off64_t *seekto);
178 static int seek_partn(int fd, char *pn, bpb_t *wbpb, off64_t *seekto);
614 seek_partn(int fd, char *pn, bpb_t *wbpb, off64_t *seekto) in seek_partn() argument
658 *seekto = 0; in seek_partn()
711 if ((*seekto = ltohi(part[bootPart].relsect)) == 0) { in seek_partn()
718 fill_bpb_sizes(wbpb, part, bootPart, *seekto); in seek_partn()
719 *seekto *= BPSEC; in seek_partn()
723 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
724 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
733 if ((*seekto = ltohi(part[primaryPart].relsect)) == 0) { in seek_partn()
740 fill_bpb_sizes(wbpb, part, primaryPart, *seekto); in seek_partn()
741 *seekto *= BPSEC; in seek_partn()
745 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
746 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
836 *seekto = in seek_partn()
839 if (*seekto == lastseek) { in seek_partn()
844 "that sector.\n"), *seekto); in seek_partn()
846 } else if (*seekto <= xstartsect || in seek_partn()
847 *seekto >= (xstartsect + xnumsect)) { in seek_partn()
853 *seekto, xstartsect + 1, in seek_partn()
858 *seekto); in seek_partn()
859 *seekto *= BPSEC; in seek_partn()
864 "Sector 0x%x.\n"), *seekto/BPSEC); in seek_partn()
865 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
890 *seekto = ltohi(part[extraDrives[driveIndex]].relsect); in seek_partn()
891 if (*seekto == 0) { in seek_partn()
898 fill_bpb_sizes(wbpb, part, extraDrives[driveIndex], *seekto); in seek_partn()
899 *seekto *= BPSEC; in seek_partn()
904 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
905 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
926 seek_nofdisk(int fd, bpb_t *wbpb, off64_t *seekto) in seek_nofdisk() argument
934 *seekto = RelOffset * BPSEC; in seek_nofdisk()
941 *seekto/BPSEC); in seek_nofdisk()
943 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_nofdisk()
2231 open_and_seek(char *dn, bpb_t *wbpb, off64_t *seekto) in open_and_seek() argument
2322 if (suffix && !(seek_partn(fd, suffix, wbpb, seekto))) { in open_and_seek()
2341 if (!(seek_nofdisk(fd, wbpb, seekto))) { in open_and_seek()
2970 struct fat_od_fsi *fsinfop, off64_t seekto) in write_fat32_bootstuff() argument
2987 if (lseek64(fd, seekto + BKUP_BOOTSECT_OFFSET, SEEK_SET) < 0) { in write_fat32_bootstuff()
3021 struct fat_od_fsi *fsinfop, off64_t seekto) in write_bootsects() argument
3070 write_fat32_bootstuff(fd, bsp, fsinfop, seekto); in write_bootsects()
3075 write_fat(int fd, off64_t seekto, char *fn, char *lbl, char *ffn, bpb_t *wbpb) in write_fat() argument
3095 write_bootsects(fd, &bootsect, wbpb, &fsinfo, seekto); in write_fat()
3098 seekto + (BPSEC * wbpb->bpb.resv_sectors), SEEK_SET) < 0) { in write_fat()