• Home
  • Raw
  • Download

Lines Matching refs:FR_DISK_ERR

914 			res = FR_DISK_ERR;  in sync_window()
941 res = FR_DISK_ERR; in move_window()
969 res = FR_DISK_ERR; in move_window_readdir()
1009 if (disk_ioctl(fs->pdrv, CTRL_SYNC, 0) != RES_OK) res = FR_DISK_ERR; in sync_fs()
1180 if (nxt == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error? */ in remove_chain()
1351 ncl = (res == FR_DISK_ERR) ? 0xFFFFFFFF : 1; /* Failed. Generate error status */ in create_chain()
1412 if (sync_window(fs) != FR_OK) return FR_DISK_ERR; /* Flush disk access window */ in dir_clear()
1430 return (n == fs->csize) ? FR_OK : FR_DISK_ERR; in dir_clear()
1467 if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ in dir_sdi()
1516 if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ in dir_next()
1525 if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ in dir_next()
1526 if (dir_clear(fs, clst) != FR_OK) return FR_DISK_ERR; /* Clean up the stretched table */ in dir_next()
2765 if (disk_raw_read(LD2DI(vol), fs->win, bsect + offset, 1) != RES_OK) return FR_DISK_ERR; in find_volume()
2767 if (disk_read(LD2PD(vol), fs->win, bsect + offset, 1) != RES_OK) return FR_DISK_ERR; in find_volume()
2855 if (disk_ioctl(fs->pdrv, GET_SECTOR_SIZE, &SS(fs)) != RES_OK) return FR_DISK_ERR; in mount_volume()
2856 if (SS(fs) > FF_MAX_SS || SS(fs) < FF_MIN_SS || (SS(fs) & (SS(fs) - 1))) return FR_DISK_ERR; in mount_volume()
2866 if (fmt == 4) return FR_DISK_ERR; /* An error occured in the disk I/O layer */ in mount_volume()
3236 return FR_DISK_ERR; in find_fat_partition()
3256 return FR_DISK_ERR; in find_fat_partition()
3469 if (clst == 0xFFFFFFFF) res = FR_DISK_ERR; in f_open()
3479 if (disk_read(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) res = FR_DISK_ERR; in f_open()
3497 res = FR_DISK_ERR; in f_open()
3581 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); in f_read()
3592 if (disk_read(fs->pdrv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_read()
3621 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_read()
3625 …if (disk_read(fs->pdrv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache … in f_read()
3633 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ in f_read()
3710 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); in f_write()
3715 …if (fs->winsect == fp->sect && sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Write-back sec… in f_write()
3718 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_write()
3730 if (disk_write(fs->pdrv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_write()
3755 if (sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); in f_write()
3762 ABORT(fs, FR_DISK_ERR); in f_write()
3770 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ in f_write()
3814 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) LEAVE_FF(fs, FR_DISK_ERR); in f_sync()
3867 if (res == FR_OK || res == FR_DISK_ERR) in f_close()
4091 if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); in f_lseek()
4116 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_lseek()
4120 …if (disk_read(fs->pdrv, fp->buf, dsc, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Load current sector… in f_lseek()
4150 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); in f_lseek()
4172 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); in f_lseek()
4192 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); in f_lseek()
4196 …if (disk_read(fs->pdrv, fp->buf, nsect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache… in f_lseek()
4432 res = FR_DISK_ERR; break; in fat_count_free_entries()
4554 if (val == 0xFFFFFFFF) res = FR_DISK_ERR; in f_truncate()
4579 res = FR_DISK_ERR; in f_truncate()
4657 if (rtclst == 0xFFFFFFFF) LEAVE_FF(fs_bak,FR_DISK_ERR); in f_unlink()
4659 if (rtclst == 0xFFFFFFFF) LEAVE_FF(fs,FR_DISK_ERR); in f_unlink()
4802 if (dcl == 0xFFFFFFFF) res = FR_DISK_ERR; /* Disk error? */ in f_mkdir()
4939 if (rtclst == 0xFFFFFFFF) LEAVE_FF(fs_bak,FR_DISK_ERR);
4944 if (rtclst == 0xFFFFFFFF) LEAVE_FF(fs,FR_DISK_ERR);
5354 if (n == 0xFFFFFFFF) { res = FR_DISK_ERR; break; }
5384 if (n == 0xFFFFFFFF) { res = FR_DISK_ERR; break; }
5456 if (n == 0xFFFFFFFF) { res = FR_DISK_ERR; break; }
5508 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
5516 …if (move_window(fs, sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window to the file data…
5522 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
5526 if (disk_read(fs->pdrv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
5566 if (disk_ioctl(drv, GET_SECTOR_COUNT, &sz_drv) != RES_OK) return FR_DISK_ERR;
5604 if (disk_write(drv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Write it to the MBR */
5663 if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR;
5664 if (ss > FF_MAX_SS || ss < FF_MIN_SS || (ss & (ss - 1))) return FR_DISK_ERR;
5685 if (disk_read(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Load MBR */
5698 if (disk_raw_read(LD2DI(vol), buf, extended_base, 1) != RES_OK) return FR_DISK_ERR;
5700 if (disk_read(LD2PD(vol), buf, extended_base, 1) != RES_OK) return FR_DISK_ERR;
5708 … (disk_raw_read(LD2DI(vol), buf, extended_base + extended_offset, 1) != RES_OK) return FR_DISK_ERR;
5710 … if (disk_read(LD2PD(vol), buf, extended_base + extended_offset, 1) != RES_OK) return FR_DISK_ERR;
5726 if (disk_read(pdrv, buf, b_vol, 1) != RES_OK) return FR_DISK_ERR; /* Load GPT partition info */
5741 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) {fr = FR_DISK_ERR; goto EXIT;}
5876 …if (disk_write(pdrv, buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to the…
5905 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5915 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5924 if (disk_write(pdrv, buf, sect, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5954 …if (disk_raw_write(LD2DI(vol), multi_buf, n, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Wri…
5956 …if (disk_write(LD2PD(vol), multi_buf, n, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write i…
5961 if (disk_raw_read(LD2DI(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5963 if (disk_read(LD2PD(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
5968 …if (disk_raw_write(LD2DI(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /*…
5970 …if (disk_write(LD2PD(vol), multi_buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Wri…
5983 if (disk_ioctl(pdrv, CTRL_SYNC, 0) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
6040 if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR;
6041 if (ss > FF_MAX_SS || ss < FF_MIN_SS || (ss & (ss - 1))) return FR_DISK_ERR;
6063 if (disk_read(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Load MBR */
6076 return FR_DISK_ERR;
6084 return FR_DISK_ERR;
6092 if (disk_read(pdrv, buf, b_vol, 1) != RES_OK) return FR_DISK_ERR; /* Load GPT partition info */
6112 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) {fr = FR_DISK_ERR; goto EXIT;}
6247 …if (disk_write(pdrv, buf, b_vol, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; } /* Write it to the…
6277 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
6288 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
6297 if (disk_write(pdrv, buf, sect, 1) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
6327 fr = FR_DISK_ERR;
6333 fr = FR_DISK_ERR;
6340 fr = FR_DISK_ERR;
6354 if (disk_ioctl(pdrv, CTRL_SYNC, 0) != RES_OK) { fr = FR_DISK_ERR; goto EXIT; }
6925 res = FR_DISK_ERR;