Lines Matching refs:n_fatent

1138 	if (clst >= fs->n_fatent - 2) return 0;		/* Is it invalid cluster number? */  in clst2sect()
1159 if (clst < 2 || clst >= fs->n_fatent) { /* Check if in valid range */ in get_fat()
1237 if (clst >= 2 && clst < fs->n_fatent) { /* Check if in valid range */ in put_fat()
1303 if (clst >= fs->n_fatent - 2) clst = 0; in find_bitmap()
1311 if (++val >= fs->n_fatent - 2) { /* Next cluster (with wrap-around) */ in find_bitmap()
1432 if (clst < 2 || clst >= fs->n_fatent) return FR_INT_ERR; /* Check if in valid range */ in remove_chain()
1450 if (fs->free_clst < fs->n_fatent - 2) { /* Update FSINFO */ in remove_chain()
1473 } while (clst < fs->n_fatent); /* Repeat while not the last link */ in remove_chain()
1523 if (scl == 0 || scl >= fs->n_fatent) scl = 1; in create_chain()
1529 if (cs < fs->n_fatent) return cs; /* It is already followed by next cluster */ in create_chain()
1564 if (ncl >= fs->n_fatent) ncl = 2; in create_chain()
1569 if (cs >= 2 && cs < fs->n_fatent) scl = cs; in create_chain()
1577 if (ncl >= fs->n_fatent) { /* Check wrap-around */ in create_chain()
1595 if (fs->free_clst <= fs->n_fatent - 2) fs->free_clst--; in create_chain()
1711 …if (clst < 2 || clst >= fs->n_fatent) return FR_INT_ERR; /* Reached to end of table or internal er… in dir_sdi()
1757 if (clst >= fs->n_fatent) { /* It reached end of dynamic table */ in dir_next()
3317 fs->n_fatent = nclst + 2;
3338 if (bcl < 2 || bcl >= fs->n_fatent) return FR_NO_FILESYSTEM;
3388 fs->n_fatent = nclst + 2; /* Number of FAT entries */
3396 szbfat = fs->n_fatent * 4; /* (Needed FAT size) */
3401 fs->n_fatent * 2 : fs->n_fatent * 3 / 2 + (fs->n_fatent & 1);
4295 } while (cl < fs->n_fatent); /* Repeat until end of chain */
4376 if (clst <= 1 || clst >= fs->n_fatent) ABORT(fs, FR_INT_ERR);
4652 if (fs->free_clst <= fs->n_fatent - 2) {
4664 } while (++clst < fs->n_fatent);
4671 clst = fs->n_fatent - 2; /* Number of clusters */
4688 clst = fs->n_fatent; /* Number of entries */
4745 if (res == FR_OK && ncl < fs->n_fatent) {
5390 if (stcl < 2 || stcl >= fs->n_fatent) stcl = 2;
5411 if (++clst >= fs->n_fatent) clst = 2;
5441 if (fs->free_clst <= fs->n_fatent - 2) { /* Update FSINFO */