Lines Matching refs:mp
14 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
18 mp->flags |= FS_MOUNT_FLAG_NO_FORMAT; in ZTEST()
19 ret = fs_mount(mp); in ZTEST()
24 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in ZTEST()
25 ret = fs_mount(mp); in ZTEST()
30 mp->flags = 0; in ZTEST()
31 ret = fs_mount(mp); in ZTEST()
36 ret = fs_unmount(mp); in ZTEST()
40 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in ZTEST()
42 ret = fs_mount(mp); in ZTEST()
45 ret = fs_unmount(mp); in ZTEST()
53 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
54 size_t partition_size = MIN(0x800000, get_partition_size((uintptr_t)mp->storage_dev)); in ZTEST()
56 mp->flags = 0; in ZTEST()
57 ret = fs_mount(mp); in ZTEST()
60 ret = fs_statvfs(mp->mnt_point, &sbuf); in ZTEST()
74 ret = fs_unmount(mp); in ZTEST()
90 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
92 fs_mkfs_dev_id = (uintptr_t) mp->storage_dev; in ZTEST()
101 struct fs_mount_t *mp = &testfs_mnt; in mkfs_custom_config() local
102 size_t partition_size = MIN(cfg->fs_size, get_partition_size((uintptr_t)mp->storage_dev)); in mkfs_custom_config()
104 ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, cfg, 0); in mkfs_custom_config()
107 mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in mkfs_custom_config()
108 ret = fs_mount(mp); in mkfs_custom_config()
111 ret = fs_statvfs(mp->mnt_point, &sbuf); in mkfs_custom_config()
125 ret = fs_unmount(mp); in mkfs_custom_config()