• Home
  • Raw
  • Download

Lines Matching refs:FR_OK

787 …return (!be && acc != 2) ? FR_TOO_MANY_OPEN_FILES : FR_OK;	/* Is there a blank entry for new objec…  in chk_lock()
791 return (acc != 0 || Files[i].ctr == 0x100) ? FR_LOCKED : FR_OK; in chk_lock()
849 res = FR_OK; in dec_lock()
877 return FR_OK; in empty_lock()
887 return FR_OK; in f_checkopenlock()
898 FRESULT res = FR_OK; in sync_window()
925 FRESULT res = FR_OK; in move_window()
936 if (res == FR_OK) { /* Fill sector window with new data */ in move_window()
953 FRESULT res = FR_OK; in move_window_readdir()
964 if (res == FR_OK) { /* Fill sector window with new data */ in move_window_readdir()
989 if (res == FR_OK) { in sync_fs()
1060 if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; in get_fat()
1062 if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; in get_fat()
1068 if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))) != FR_OK) break; in get_fat()
1073 if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))) != FR_OK) break; in get_fat()
1113 if (res != FR_OK) break; in put_fat()
1118 if (res != FR_OK) break; in put_fat()
1126 if (res != FR_OK) break; in put_fat()
1133 if (res != FR_OK) break; in put_fat()
1157 FRESULT res = FR_OK; in remove_chain()
1170 if (res != FR_OK) return res; in remove_chain()
1180 if (res != FR_OK) return res; in remove_chain()
1210 return FR_OK; in remove_chain()
1326 if (res == FR_OK && clst != 0) { in create_chain()
1330 if (res == FR_OK) { /* Update FSINFO if function succeeded. */ in create_chain()
1409 if (sync_window(fs) != FR_OK) return FR_DISK_ERR; /* Flush disk access window */ in dir_clear()
1427 return (n == fs->csize) ? FR_OK : FR_DISK_ERR; in dir_clear()
1478 return FR_OK; in dir_sdi()
1523 if (dir_clear(fs, clst) != FR_OK) return FR_DISK_ERR; /* Clean up the stretched table */ in dir_next()
1540 return FR_OK; in dir_next()
1562 if (res == FR_OK) { in dir_alloc()
1566 if (res != FR_OK) break; in dir_alloc()
1573 } while (res == FR_OK); in dir_alloc()
1835 if (res != FR_OK) break; in dir_read()
1868 if (res != FR_OK) break; in dir_read()
1871 if (res != FR_OK) dp->sect = 0; /* Terminate the read operation on error or EOT */ in dir_read()
1892 if (res != FR_OK) break; in dir_read_massive()
1925 if (res != FR_OK) break; in dir_read_massive()
1928 if (res != FR_OK) dp->sect = 0; /* Terminate the read operation on error or EOT */ in dir_read_massive()
1950 if (res != FR_OK) return res; in dir_find()
1958 if (res != FR_OK) break; in dir_find()
1987 } while (res == FR_OK); in dir_find()
2040 if (res != FR_OK) break; in dir_register()
2050 if (res == FR_OK && --n_ent) { /* Set LFN entry if needed */ in dir_register()
2052 if (res == FR_OK) { in dir_register()
2056 if (res != FR_OK) break; in dir_register()
2064 } while (res == FR_OK && --n_ent); in dir_register()
2074 if (res == FR_OK) { in dir_register()
2076 if (res == FR_OK) { in dir_register()
2110 …res = (dp->blk_ofs == 0xFFFFFFFF) ? FR_OK : dir_sdi(dp, dp->blk_ofs); /* Goto top of the entry blo… in dir_remove()
2111 if (res == FR_OK) { in dir_remove()
2114 if (res != FR_OK) break; in dir_remove()
2124 } while (res == FR_OK); in dir_remove()
2130 if (res == FR_OK) { in dir_remove()
2374 return FR_OK; in create_name()
2460 return FR_OK; in create_name()
2482 return FR_OK; in create_name()
2523 return FR_OK; in create_name()
2561 if (res != FR_OK) break; in follow_path()
2564 if (res != FR_OK) { /* Failed to find the object */ in follow_path()
2569 res = FR_OK; in follow_path()
2685 if (move_window(fs, sect) != FR_OK) return 4; /* Load the boot sector */ in check_fs()
2812 return FR_OK; /* The filesystem object is already valid */ in mount_volume()
2905 && move_window(fs, bsect + 1) == FR_OK) in mount_volume()
2935 return FR_OK; in mount_volume()
2958 res = FR_OK; in validate()
2960 unlock_fs(obj->fs, FR_OK); in validate()
2966 res = FR_OK; in validate()
2970 res = FR_OK; in validate()
2974 *rfs = (res == FR_OK) ? obj->fs : 0; /* Corresponding filesystem object */ in validate()
3073 if (opt == 0) return FR_OK; /* Do not mount now, it will be mounted later */ in f_mount()
3152 && move_window(fs, start_sector + 1) == FR_OK) { in init_fatobj()
3176 return FR_OK; in init_fatobj()
3238 return FR_OK; in find_fat_partition()
3277 if (res == FR_OK) { in f_open()
3293 if (res == FR_OK) in f_open()
3300 if (res == FR_OK) { in f_open()
3313 if (res != FR_OK) { /* No file, create new */ in f_open()
3321 if (res == FR_OK) in f_open()
3331 if (res == FR_OK && (mode & FA_CREATE_ALWAYS)) { /* Truncate it if overwrite mode */ in f_open()
3355 if (res == FR_OK) { in f_open()
3363 if (res == FR_OK) { in f_open()
3374 if (res == FR_OK) { /* Is the object exsiting? */ in f_open()
3384 if (res == FR_OK) { in f_open()
3398 if (res == FR_OK) { in f_open()
3409 if (res == FR_OK) { in f_open()
3441 for (ofs = fp->obj.objsize; res == FR_OK && ofs > bcs; ofs -= bcs) { in f_open()
3447 if (res == FR_OK && ofs % SS(fs)) { /* Fill sector buffer if not on the sector boundary */ in f_open()
3465 if (res == FR_OK && (mode & ~FA_READ) && ISVIRPART(fs) && in f_open()
3476 res = FR_OK; in f_open()
3493 if (res != FR_OK) { in f_open()
3500 if (res != FR_OK) fp->obj.fs = 0; /* Invalidate file object on error */ in f_open()
3535 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */ in f_read()
3610 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ in f_read()
3625 LEAVE_FF(fs, FR_OK); in f_read()
3655 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */ in f_write()
3693 …if (fs->winsect == fp->sect && sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Write-back sec… in f_write()
3733 if (sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); in f_write()
3748 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ in f_write()
3788 if (res == FR_OK) { in f_sync()
3801 if (res == FR_OK) { in f_sync()
3845 if (res == FR_OK || res == FR_DISK_ERR) in f_close()
3849 if (res == FR_OK) { in f_close()
3852 if (res == FR_OK) fp->obj.fs = 0; /* Invalidate file object */ in f_close()
3857 unlock_fs(fs, FR_OK); /* Unlock volume */ in f_close()
3884 return FR_OK; in f_chdrive()
3904 if (res == FR_OK) { in f_chdir()
3908 if (res == FR_OK) { /* Follow completed */ in f_chdir()
3922 if (res == FR_OK) { in f_chdir()
3958 if (res == FR_OK) { in f_getcwd()
3968 if (res != FR_OK) break; in f_getcwd()
3970 if (res != FR_OK) break; in f_getcwd()
3973 if (res != FR_OK) break; in f_getcwd()
3976 if (res != FR_OK) break; in f_getcwd()
3979 } while (res == FR_OK); in f_getcwd()
3981 if (res != FR_OK) break; in f_getcwd()
3990 if (res == FR_OK) { in f_getcwd()
4012 if (res == FR_OK) { in f_getcwd()
4049 if (res == FR_OK) res = (FRESULT)fp->err; in f_lseek()
4050 if (res != FR_OK) LEAVE_FF(fs, res); in f_lseek()
4201 if (res == FR_OK) { in f_opendir()
4205 if (res == FR_OK) { /* Follow completed */ in f_opendir()
4213 if (res == FR_OK) { in f_opendir()
4217 if (res == FR_OK) { in f_opendir()
4231 if (res != FR_OK) dp->obj.fs = 0; /* Invalidate the directory object if function faild */ in f_opendir()
4252 if (res == FR_OK) { in f_closedir()
4255 if (res == FR_OK) dp->obj.fs = 0; /* Invalidate directory object */ in f_closedir()
4260 unlock_fs(fs, FR_OK); /* Unlock volume */ in f_closedir()
4284 if (res == FR_OK) { in f_readdir()
4290 if (res == FR_NO_FILE) res = FR_OK; /* Ignore end of directory */ in f_readdir()
4291 if (res == FR_OK) { /* A valid entry is found */ in f_readdir()
4294 if (res == FR_NO_FILE) res = FR_OK; /* Ignore end of directory now */ in f_readdir()
4319 …if (res != FR_OK || !fno || !fno->fname[0]) break; /* Terminate if any error or end of directory */ in f_findnext()
4346 if (res == FR_OK) { in f_findfirst()
4373 if (res == FR_OK) { in f_stat()
4376 if (res == FR_OK) { /* Follow completed */ in f_stat()
4399 FRESULT res = FR_OK; in fat_count_free_entries()
4418 if (res != FR_OK) break; in fat_count_free_entries()
4452 if (res == FR_OK) { in f_getfree()
4483 if (ret != FR_OK) LEAVE_FF(fs,ret); in f_getclustinfo()
4490 LEAVE_FF(fs,FR_OK); in f_getclustinfo()
4503 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); in f_truncate()
4524 res = FR_OK; in f_truncate()
4527 if (res == FR_OK && val < fs->n_fatent) { in f_truncate()
4532 if (res == FR_OK) { in f_truncate()
4548 if (res == FR_OK && (fp->flag & FA_DIRTY)) { in f_truncate()
4556 if (res != FR_OK) ABORT(fs, res); in f_truncate()
4596 if (res == FR_OK) { in f_unlink()
4611 if (res == FR_OK) in f_unlink()
4617 if (FF_FS_RPATH && res == FR_OK && (dj.fn[NSFLAG] & NS_DOT)) { in f_unlink()
4621 if (res == FR_OK && ISVIRPART(fs)) { in f_unlink()
4664 if (res == FR_OK) res = chk_lock(&dj, 2); /* Check if it is an open object */ in f_unlink()
4666 if (res == FR_OK) { /* The object is accessible */ in f_unlink()
4674 if (res == FR_OK) { in f_unlink()
4686 if (res == FR_OK) { in f_unlink()
4688 if (res == FR_OK) res = FR_NO_EMPTY_DIR; /* Not empty? */ in f_unlink()
4689 if (res == FR_NO_FILE) res = FR_OK; /* Empty? */ in f_unlink()
4694 if (res == FR_OK) { in f_unlink()
4696 if (res == FR_OK && dclst) { /* Remove the cluster chain if exist */ in f_unlink()
4699 if (res == FR_OK) res = sync_fs(fs); in f_unlink()
4742 if (res == FR_OK) { in f_mkdir()
4757 if (res == FR_OK) in f_mkdir()
4763 if (res == FR_OK) res = FR_EXIST; /* Name collision? */ in f_mkdir()
4770 res = FR_OK; in f_mkdir()
4774 if (res == FR_OK) res = sync_window(fs); /* Flush FAT */ in f_mkdir()
4776 if (res == FR_OK) { /* Initialize the new directory table */ in f_mkdir()
4803 if (res != FR_OK) break; in f_mkdir()
4809 if (res != FR_OK) break; in f_mkdir()
4814 if (res == FR_OK) { in f_mkdir()
4817 if (res == FR_OK) { in f_mkdir()
4833 if (res == FR_OK) { in f_mkdir()
4878 if (res == FR_OK) {
4890 if (res == FR_OK)
4896 …if (res == FR_OK && (djo.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check valid…
4898 if (res == FR_OK) {
4903 if (res == FR_OK && ISVIRPART(fs)) {
4941 if (res == FR_OK) { /* Object to be renamed is found */
4946 if (res == FR_OK) { /* Is new name already in use by any other object? */
4951 if (res == FR_OK) {
4970 if (res == FR_OK && dir[1] == '.') {
4976 if (res == FR_OK && dir[1] == '.') {
4985 if (res == FR_OK) {
4987 if (res == FR_OK) {
5030 if (res == FR_OK) {
5045 if (res == FR_OK)
5051 …if (res == FR_OK && (dj.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check object…
5052 if (res == FR_OK) {
5060 if (res == FR_OK) {
5092 if (res == FR_OK) {
5096 …if (res == FR_OK && (dj.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check object…
5097 if (res == FR_OK) {
5100 if (res == FR_OK) {
5135 if (res == FR_OK && label) {
5138 if (res == FR_OK) {
5140 if (res == FR_OK) {
5162 res = FR_OK;
5167 if (res == FR_OK && vsn) {
5169 if (res == FR_OK) {
5232 if (res == FR_OK) {
5234 if (res == FR_OK) {
5244 res = FR_OK;
5247 if (res == FR_OK) {
5271 if (res != FR_OK) LEAVE_FF(fs, res);
5302 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
5311 if (offset + fsz <= n * count) LEAVE_FF(fs, FR_OK);
5328 if (res != FR_OK)
5358 if (res != FR_OK) break;
5377 if (res == FR_OK) {
5385 if (res != FR_OK) LEAVE_FF(fs, res);
5402 if (res != FR_OK) LEAVE_FF(fs, res);
5428 if (res != FR_OK) break;
5465 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
5487 …if (move_window(fs, sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window to the file data…
5508 LEAVE_FF(fs, FR_OK);
5577 return FR_OK;
5603 FRESULT fr = FR_OK;
5945 if (fr != FR_OK) goto EXIT;
5984 FRESULT fr = FR_OK;
6316 if (fr != FR_OK) goto EXIT; /* Write it to the MBR */
6671 && f_write(pb->fp, pb->buf, (UINT)pb->idx, &nw) == FR_OK
6868 if (res == FR_OK) {
6879 res = FR_OK;
6891 res = FR_OK;
6933 return FR_OK;