180: {
181: return (fclno == fs->ff_rootcl) ? CLSTART : CNtoBN(fclno) * DEpSEC;
182: }
188: {
189: return (CNtoBN(clno) * DEpSEC) + offset;
190: }
747: err = fatDCacheInfoInit(fs, &fs->ff_dc_data, fs->ff_clstart,
748: CNtoBN(fs->ff_lastcl + 1) - fs->ff_clstart,
749: CacheDataMemorySize,
852: /* Convert sector to cluster number */
853: sec = CNtoBN(sec);
854: /* Add sector offset within cluster */
985: if (isSET(flags, MAP_C)) {
986: sec = CNtoBN(clad[0].ca_no);
987: fatDCacheGetDcinf(fs, sec, &dcinf);
2786: bufofs = OFFSETinPAGE(fs, map.m_page,
2787: CNtoBN(clad.ca_no), 0);
2788: de = (FAT_DIRENT*)&map.m_page->dcp_buf[bufofs];
3340: de = (FAT_DIRENT *)&map.m_page->dcp_buf[
3341: OFFSETinPAGE(fs, map.m_page, CNtoBN(clad.ca_no), 0)];
3342: memcpy(de->de_fname, nmDOT, BASE_EXTLEN);