Lines Matching refs:winsect
1050 if (disk_write(fs->pdrv, fs->win, fs->winsect, 1) == RES_OK) { /* Write back the window */ in sync_window()
1052 if (fs->winsect - fs->fatbase < fs->fsize) { /* Is it in the 1st FAT? */ in sync_window()
1053 …if (fs->n_fats == 2) disk_write(fs->pdrv, fs->win, fs->winsect + fs->fsize, 1); /* Reflect it to 2… in sync_window()
1072 if (sector != fs->winsect) { /* Window offset changed? */ in move_window()
1081 fs->winsect = sector; in move_window()
1113 fs->winsect = fs->volbase + 1; in sync_fs()
1114 disk_write(fs->pdrv, fs->win, fs->winsect, 1); in sync_fs()
1656 fs->winsect = sect; /* Set window to top of the cluster */ in dir_clear()
3192 fs->wflag = 0; fs->winsect = 0xFFFFFFFF; /* Invaidate window */
3630 dw = fs->winsect;
3653 fp->dir_sect = fs->winsect; /* Pointer to the directory entry */
3791 if (fs->wflag && fs->winsect - sect < cc) {
3792 mem_cpy(rbuff + ((fs->winsect - sect) * SS(fs)), fs->win, SS(fs));
3888 …if (fs->winsect == fp->sect && sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Write-back sec…
3906 …if (fs->winsect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */
3907 mem_cpy(fs->win, wbuff + ((fs->winsect - sect) * SS(fs)), SS(fs));
3923 fs->winsect = sect;