Searched refs:CLUST_FIRST (Results 1 – 12 of 12) sorted by relevance
318 off = (startcl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in delete()376 if ((endcl == curcl) || (startcl < CLUST_FIRST)) in removede()485 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in check_subdirectory()597 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in readDosDirSection()1115 if (lfcl < CLUST_FIRST || lfcl >= boot->NumClusters) { in reconnect()1121 lfoff = (lfcl - CLUST_FIRST) * boot->ClusterSize in reconnect()
87 #define CLUST_FIRST 2 /* 2 is the minimum valid cluster number */ macro
289 if (boot->bpbRootClust < CLUST_FIRST || in readboot()328 boot->NumClusters += CLUST_FIRST; in readboot()
561 return (cl >= CLUST_FIRST && cl < boot->NumClusters); in valid_cl()966 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) { in readfat()1264 for (head = CLUST_FIRST; in checklost()1316 for (head = CLUST_FIRST; head < boot->NumClusters; head++) in checklost()
61 #define CLUST_FIRST 2 /* first legal cluster number */ macro
579 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in mountmsdosfs()654 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()668 if (pmp->pm_nxtfree < CLUST_FIRST) in mountmsdosfs()669 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()
502 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()584 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()713 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()840 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
205 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
492 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()574 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()699 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()820 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
166 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
209 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in msdosfs_mount()