Searched refs:clst (Results 1 – 1 of 1) sorted by relevance
1116 DWORD clst /* Cluster# to be converted */ in clst2sect() argument1119 clst -= 2; /* Cluster number is origin from 2 */ in clst2sect()1120 if (clst >= fs->n_fatent - 2) return 0; /* Is it invalid cluster number? */ in clst2sect()1121 return fs->database + (LBA_t)fs->csize * clst; /* Start sector number of the cluster */ in clst2sect()1133 DWORD clst /* Cluster number to get the value */ in get_fat() argument1141 if (clst < 2 || clst >= fs->n_fatent) { /* Check if in valid range */ in get_fat()1149 bc = (UINT)clst; bc += bc / 2; in get_fat()1154 val = (clst & 1) ? (wc >> 4) : (wc & 0xFFF); /* Adjust bit position */ in get_fat()1158 if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))) != FR_OK) break; in get_fat()1159 val = ld_word(fs->win + clst * 2 % SS(fs)); /* Simple WORD array */ in get_fat()[all …]