Home
last modified time | relevance | path

Searched refs:fatsize (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_vfsops.c1311 size_t fatsize = fsp->pcfs_fatsec * fsp->pcfs_secsize; in pc_readfat() local
1315 for (off = 0; off < fatsize; off += readsize, fatp += readsize) { in pc_readfat()
1316 if (readsize > (fatsize - off)) in pc_readfat()
1317 readsize = fatsize - off; in pc_readfat()
1354 size_t fatsize = fsp->pcfs_fatsec * fsp->pcfs_secsize; in pc_writefat() local
1357 for (off = 0; off < fatsize; off += writesize, fatp += writesize) { in pc_writefat()
1358 if (writesize > (fatsize - off)) in pc_writefat()
1359 writesize = fatsize - off; in pc_writefat()
2576 int fatsize = fsp->pcfs_fatsec * fsp->pcfs_secsize; in pc_getfat() local
2602 fatp = kmem_alloc(fatsize, KM_SLEEP); in pc_getfat()
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c119 ulong_t bootblksize, ulong_t *fatsize, char *ffn, int *fffd,
149 static void set_fat_string(bpb_t *wbpb, int fatsize);
961 set_fat_string(bpb_t *wbpb, int fatsize) in set_fat_string() argument
963 if (fatsize == 12) { in set_fat_string()
966 } else if (fatsize == 16) { in set_fat_string()
2764 ulong_t *fatsize, char *ffn, int *fffd, ulong_t *ffsize, in build_fat() argument
2780 *fatsize = BPSEC * wbpb->bpb32.big_sectors_per_fat; in build_fat()
2782 *fatsize = BPSEC * wbpb->bpb.sectors_per_fat; in build_fat()
2785 if (!(fatp = (uchar_t *)malloc(*fatsize))) { in build_fat()
2789 (void) memset(fatp, 0, *fatsize); in build_fat()
[all …]