Lines Matching refs:seekto

132 	struct fat_od_fsi *fsinfop, off64_t seekto);
146 struct fat_od_fsi *fsinfop, off64_t seekto);
162 static void write_fat(int fd, off64_t seekto, char *fn, char *lbl,
173 static int open_and_seek(char *dn, bpb_t *wbpb, off64_t *seekto);
178 static int seek_nofdisk(int fd, bpb_t *wbpb, off64_t *seekto);
180 static int seek_partn(int fd, char *pn, bpb_t *wbpb, off64_t *seekto);
616 seek_partn(int fd, char *pn, bpb_t *wbpb, off64_t *seekto) in seek_partn() argument
660 *seekto = 0; in seek_partn()
713 if ((*seekto = ltohi(part[bootPart].relsect)) == 0) { in seek_partn()
720 fill_bpb_sizes(wbpb, part, bootPart, *seekto); in seek_partn()
721 *seekto *= BPSEC; in seek_partn()
725 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
726 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
735 if ((*seekto = ltohi(part[primaryPart].relsect)) == 0) { in seek_partn()
742 fill_bpb_sizes(wbpb, part, primaryPart, *seekto); in seek_partn()
743 *seekto *= BPSEC; in seek_partn()
747 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
748 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
838 *seekto = in seek_partn()
841 if (*seekto == lastseek) { in seek_partn()
846 "that sector.\n"), *seekto); in seek_partn()
848 } else if (*seekto <= xstartsect || in seek_partn()
849 *seekto >= (xstartsect + xnumsect)) { in seek_partn()
855 *seekto, xstartsect + 1, in seek_partn()
860 *seekto); in seek_partn()
861 *seekto *= BPSEC; in seek_partn()
866 "Sector 0x%x.\n"), *seekto/BPSEC); in seek_partn()
867 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
892 *seekto = ltohi(part[extraDrives[driveIndex]].relsect); in seek_partn()
893 if (*seekto == 0) { in seek_partn()
900 fill_bpb_sizes(wbpb, part, extraDrives[driveIndex], *seekto); in seek_partn()
901 *seekto *= BPSEC; in seek_partn()
906 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
907 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_partn()
928 seek_nofdisk(int fd, bpb_t *wbpb, off64_t *seekto) in seek_nofdisk() argument
936 *seekto = RelOffset * BPSEC; in seek_nofdisk()
943 *seekto/BPSEC); in seek_nofdisk()
945 if (lseek64(fd, *seekto, SEEK_SET) < 0) { in seek_nofdisk()
2378 open_and_seek(char *dn, bpb_t *wbpb, off64_t *seekto) in open_and_seek() argument
2440 if (suffix && !(seek_partn(fd, suffix, wbpb, seekto))) in open_and_seek()
2457 if (!(seek_nofdisk(fd, wbpb, seekto))) in open_and_seek()
3088 struct fat_od_fsi *fsinfop, off64_t seekto) in write_fat32_bootstuff() argument
3105 if (lseek64(fd, seekto + BKUP_BOOTSECT_OFFSET, SEEK_SET) < 0) { in write_fat32_bootstuff()
3139 struct fat_od_fsi *fsinfop, off64_t seekto) in write_bootsects() argument
3188 write_fat32_bootstuff(fd, bsp, fsinfop, seekto); in write_bootsects()
3193 write_fat(int fd, off64_t seekto, char *fn, char *lbl, char *ffn, bpb_t *wbpb) in write_fat() argument
3213 write_bootsects(fd, &bootsect, wbpb, &fsinfo, seekto); in write_fat()
3216 seekto + (BPSEC * wbpb->bpb.resv_sectors), SEEK_SET) < 0) { in write_fat()