Lines Matching refs:fatp
150 static void mark_cluster(uchar_t *fatp, pc_cluster32_t clustnum,
2635 * argument. The fatp argument is assumed to be a pointer to the FAT's
2641 mark_cluster(uchar_t *fatp, pc_cluster32_t clustnum, uint32_t value)
2648 ep = fatp + idx;
2673 uchar_t *fatp;
2690 if (!(fatp = (uchar_t *)malloc(*fatsize))) {
2694 (void) memset(fatp, 0, *fatsize);
2698 *fatp = wbpb->bpb.media;
2699 *(fatp + 1) = 0xFF;
2700 *(fatp + 2) = 0xFF;
2703 *(fatp + 3) = 0xFF;
2705 *(fatp + 3) = 0x0F;
2706 *(fatp + 4) = 0xFF;
2707 *(fatp + 5) = 0xFF;
2708 *(fatp + 6) = 0xFF;
2709 *(fatp + 7) = 0x0F;
2738 mark_cluster(fatp, nextfree++,
2746 mark_cluster(fatp, nextfree, PCF_LASTCLUSTER32);
2772 mark_cluster(fatp, nextfree, nextfree + 1);
2773 mark_cluster(fatp, nextfree++,
2782 dump_bytes(fatp, BPSEC);
2791 return (fatp);
3103 uchar_t *fatp, *rdirp;
3115 fatp = build_fat(wbpb, &fsinfo, bootblksize, &fatsize,
3134 if ((wb = write(fd, fatp, fatsize)) != fatsize) {
3143 free(fatp);