Lines Matching refs:mountp
156 static int fatfs_unlink(struct fs_mount_t *mountp, const char *path) in fatfs_unlink() argument
169 static int fatfs_rename(struct fs_mount_t *mountp, const char *from, in fatfs_rename() argument
333 static int fatfs_mkdir(struct fs_mount_t *mountp, const char *path) in fatfs_mkdir() argument
397 static int fatfs_stat(struct fs_mount_t *mountp, in fatfs_stat() argument
414 static int fatfs_statvfs(struct fs_mount_t *mountp, in fatfs_statvfs() argument
422 res = f_getfree(translate_path(mountp->mnt_point), &f_bfree, &fs); in fatfs_statvfs()
447 static int fatfs_mount(struct fs_mount_t *mountp) in fatfs_mount() argument
451 res = f_mount((FATFS *)mountp->fs_data, translate_path(mountp->mnt_point), 1); in fatfs_mount()
455 (mountp->flags & FS_MOUNT_FLAG_READ_ONLY) != 0) { in fatfs_mount()
460 (mountp->flags & FS_MOUNT_FLAG_NO_FORMAT) == 0) { in fatfs_mount()
470 res = f_mkfs(translate_path(mountp->mnt_point), &mkfs_opt, work, sizeof(work)); in fatfs_mount()
472 res = f_mount((FATFS *)mountp->fs_data, in fatfs_mount()
473 translate_path(mountp->mnt_point), 1); in fatfs_mount()
479 mountp->flags |= FS_MOUNT_FLAG_USE_DISK_ACCESS; in fatfs_mount()
486 static int fatfs_unmount(struct fs_mount_t *mountp) in fatfs_unmount() argument
492 res = f_mount(NULL, translate_path(mountp->mnt_point), 0); in fatfs_unmount()
499 disk_res = disk_ioctl(((FATFS *)mountp->fs_data)->pdrv, CTRL_POWER, ¶m); in fatfs_unmount()