Lines Matching refs:BPSEC

719 		*seekto *= BPSEC;  in seek_partn()
723 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
741 *seekto *= BPSEC; in seek_partn()
745 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
782 if (lseek64(fd, nextseek * BPSEC, SEEK_SET) < 0 || in seek_partn()
859 *seekto *= BPSEC; in seek_partn()
864 "Sector 0x%x.\n"), *seekto/BPSEC); in seek_partn()
899 *seekto *= BPSEC; in seek_partn()
904 "Sector %x.\n"), *seekto/BPSEC); in seek_partn()
934 *seekto = RelOffset * BPSEC; in seek_nofdisk()
941 *seekto/BPSEC); in seek_nofdisk()
1017 if (lseek(fd, (wbpb->bpb.sectors_in_volume * BPSEC)-1, SEEK_SET) < 0) { in prepare_image_file()
1608 TotalClusters * wbpb->bpb.sectors_per_cluster * BPSEC); in compute_file_area_size()
1827 if (read(fd, ubpb.buf, BPSEC) < BPSEC) { in read_existing_bpb()
1853 if (wbpb->bpb.bytes_sector != BPSEC) { in read_existing_bpb()
1857 IN_RANGE(wbpb->bpb.bytes_sector, 1, BPSEC * 8))) { in read_existing_bpb()
1868 "is %d bytes.\n"), BPSEC, in read_existing_bpb()
1893 if ((wbpb->bpb32.big_sectors_per_fat * BPSEC / 4) >= in read_existing_bpb()
2021 fatents = wbpb->bpb.sectors_per_fat * BPSEC * 2 / 3; in compare_existing_with_computed()
2249 wbpb->bpb.bytes_sector = BPSEC; in open_and_seek()
2492 } else if (fi.st_size < BPSEC) { in verify_bootblkfile()
2497 } else if (read(bsfd, bs->buf, BPSEC) < BPSEC) { in verify_bootblkfile()
2599 *bootblksize = roundup(*bootblksize, BPSEC); in copy_bootblk()
2601 (void) memcpy(bootsect, DefBootSec, BPSEC); in copy_bootblk()
2602 *bootblksize = BPSEC; in copy_bootblk()
2662 *fatsize = BPSEC * wbpb->bpb32.big_sectors_per_fat; in build_fat()
2664 *fatsize = BPSEC * wbpb->bpb.sectors_per_fat; in build_fat()
2708 numsect = idivceil((bootblksize - BPSEC), BPSEC); in build_fat()
2733 numsect = idivceil(*ffsize, BPSEC); in build_fat()
2759 dump_bytes(fatp, BPSEC); in build_fat()
2877 *rdirsize = wbpb->bpb.sectors_per_cluster * BPSEC; in build_rootdir()
2936 char buf[BPSEC]; in write_rest()
2945 numsect = idivceil(remaining, BPSEC); in write_rest()
2951 if ((rstat = read(sfd, buf, BPSEC)) < 0) { in write_rest()
2958 (void) memset(&(buf[rstat]), 0, BPSEC - rstat); in write_rest()
2960 if (write(dfd, buf, BPSEC) != BPSEC) { in write_rest()
2983 if (write(fd, fsinfop, sizeof (*fsinfop)) != BPSEC) { in write_fat32_bootstuff()
2992 if (write(fd, bsp->buf, sizeof (bsp->buf)) != BPSEC) { in write_fat32_bootstuff()
3011 if (write(fd, fsinfop, sizeof (*fsinfop)) != BPSEC) { in write_fat32_bootstuff()
3058 if (!Notreally && write(fd, bsp->buf, sizeof (bsp->buf)) != BPSEC) { in write_bootsects()
3098 seekto + (BPSEC * wbpb->bpb.resv_sectors), SEEK_SET) < 0) { in write_fat()
3145 if (bootblksize > BPSEC) { in write_fat()
3150 write_rest(wbpb, fn, fd, bsfd, bootblksize - BPSEC); in write_fat()