Lines Matching defs:ABORT
167 #define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); }
3580 if (clst < 2) ABORT(fs, FR_INT_ERR);
3581 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
3585 if (sect == 0) ABORT(fs, FR_INT_ERR);
3592 if (disk_read(fs->pdrv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
3598 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3607 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3621 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
3625 if (disk_read(fs->pdrv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */
3633 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */
3636 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3641 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3709 if (clst == 1) ABORT(fs, FR_INT_ERR);
3710 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
3715 if (fs->winsect == fp->sect && sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Write-back sector cache */
3718 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
3723 if (sect == 0) ABORT(fs, FR_INT_ERR);
3730 if (disk_write(fs->pdrv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
3735 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3742 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3755 if (sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR);
3762 ABORT(fs, FR_DISK_ERR);
3770 if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */
3773 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
3778 if (copy_ret != EOK) ABORT(fs, FR_INVALID_PARAMETER);
4090 if (cl <= 1) ABORT(fs, FR_INT_ERR);
4091 if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
4110 if (dsc == 0) ABORT(fs, FR_INT_ERR);
4116 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
4120 if (disk_read(fs->pdrv, fp->buf, dsc, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Load current sector */
4149 if (clst == 1) ABORT(fs, FR_INT_ERR);
4150 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
4172 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
4173 if (clst <= 1 || clst >= fs->n_fatent) ABORT(fs, FR_INT_ERR);
4179 if (nsect == 0) ABORT(fs, FR_INT_ERR);
4192 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
4196 if (disk_read(fs->pdrv, fp->buf, nsect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */
4585 if (res != FR_OK) ABORT(fs, res);
5507 if (clst <= 1) ABORT(fs, FR_INT_ERR);
5508 if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
5513 if (sect == 0) ABORT(fs, FR_INT_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);
5534 if (rcnt == 0) ABORT(fs, FR_INT_ERR);