Lines Matching refs:mp
27 static int mount(struct fs_mount_t *mp) in mount() argument
29 TC_PRINT("mounting %s\n", mp->mnt_point); in mount()
31 zassert_equal(fs_mount(mp), 0, in mount()
37 static int clear_partition(struct fs_mount_t *mp) in clear_partition() argument
39 TC_PRINT("clearing partition %s\n", mp->mnt_point); in clear_partition()
41 zassert_equal(testfs_lfs_wipe_partition(mp), in clear_partition()
48 static int clean_statvfs(const struct fs_mount_t *mp) in clean_statvfs() argument
52 TC_PRINT("checking clean statvfs of %s\n", mp->mnt_point); in clean_statvfs()
54 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in clean_statvfs()
58 mp->mnt_point, in clean_statvfs()
74 struct fs_mount_t *mp = &testfs_medium_mnt; in check_medium() local
77 zassert_equal(clear_partition(mp), TC_PASS, in check_medium()
80 zassert_equal(fs_mount(mp), 0, in check_medium()
83 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in check_medium()
87 mp->mnt_point, in check_medium()
98 zassert_equal(fs_unmount(mp), 0, in check_medium()
106 struct fs_mount_t *mp = &testfs_large_mnt; in check_large() local
109 zassert_equal(clear_partition(mp), TC_PASS, in check_large()
112 zassert_equal(fs_mount(mp), 0, in check_large()
115 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in check_large()
119 mp->mnt_point, in check_large()
130 zassert_equal(fs_unmount(mp), 0, in check_large()
136 static int num_files(struct fs_mount_t *mp) in num_files() argument
152 pstr = testfs_path_init(&path, mp, in num_files()
170 pstr = testfs_path_init(&path, mp, in num_files()
186 static int num_dirs(struct fs_mount_t *mp) in num_dirs() argument
202 pstr = testfs_path_init(&path, mp, in num_dirs()
220 pstr = testfs_path_init(&path, mp, in num_dirs()
243 struct fs_mount_t *mp = &testfs_small_mnt; in ZTEST() local
245 zassert_equal(clear_partition(mp), TC_PASS, in ZTEST()
255 zassert_equal(mount(mp), TC_PASS, in ZTEST()
258 zassert_equal(clean_statvfs(mp), TC_PASS, in ZTEST()
261 zassert_equal(num_files(mp), TC_PASS, in ZTEST()
264 zassert_equal(num_dirs(mp), TC_PASS, in ZTEST()
267 TC_PRINT("unmounting %s\n", mp->mnt_point); in ZTEST()
268 zassert_equal(fs_unmount(mp), 0, in ZTEST()