Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 45) sorted by relevance

12

/Zephyr-latest/tests/subsys/fs/littlefs/src/
Dtestfs_open_flags.c16 static void mount(struct fs_mount_t *mp) in mount() argument
18 TC_PRINT("Mount %s\n", mp->mnt_point); in mount()
20 zassert_equal(fs_mount(mp), 0, "Failed to mount partition"); in mount()
23 static void unmount(struct fs_mount_t *mp) in unmount() argument
25 TC_PRINT("Unmounting %s\n", mp->mnt_point); in unmount()
27 zassert_equal(fs_unmount(mp), 0, in unmount()
31 static void cleanup(struct fs_mount_t *mp) in cleanup() argument
33 TC_PRINT("Clean %s\n", mp->mnt_point); in cleanup()
35 zassert_equal(testfs_lfs_wipe_partition(mp), TC_PASS, in cleanup()
45 struct fs_mount_t *mp = &testfs_small_mnt; in ZTEST() local
[all …]
Dtest_lfs_basic.c27 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()
[all …]
Dtest_lfs_perf.c23 struct fs_mount_t *mp, in write_read() argument
27 const struct lfs_config *lcp = &((const struct fs_littlefs *)mp->fs_data)->cfg; in write_read()
41 mp->mnt_point, tag); in write_read()
42 if (testfs_lfs_wipe_partition(mp) != TC_PASS) { in write_read()
46 rc = fs_mount(mp); in write_read()
48 TC_PRINT("Mount %s failed: %d\n", mp->mnt_point, rc); in write_read()
52 rc = fs_statvfs(mp->mnt_point, &vfs); in write_read()
54 TC_PRINT("statvfs %s failed: %d\n", mp->mnt_point, rc); in write_read()
59 mp->mnt_point, in write_read()
64 testfs_path_init(&path, mp, in write_read()
[all …]
Dtestfs_mount_flags.c19 static void cleanup(struct fs_mount_t *mp) in cleanup() argument
21 TC_PRINT("Clean %s\n", mp->mnt_point); in cleanup()
23 zassert_equal(testfs_lfs_wipe_partition(mp), TC_PASS, in cleanup()
Dtest_lfs_dirops.c30 struct fs_mount_t *mp = &testfs_small_mnt; in ZTEST() local
32 zassert_equal(testfs_lfs_wipe_partition(mp), in ZTEST()
Dtestfs_mkfs.c24 static void cleanup(struct fs_mount_t *mp) in cleanup() argument
26 TC_PRINT("Clean %s\n", mp->mnt_point); in cleanup()
28 zassert_equal(testfs_lfs_wipe_partition(mp), TC_PASS, in cleanup()
Dtestfs_lfs.c63 int testfs_lfs_wipe_partition(const struct fs_mount_t *mp) in testfs_lfs_wipe_partition() argument
65 unsigned int id = (uintptr_t)mp->storage_dev; in testfs_lfs_wipe_partition()
85 TC_PRINT("Wiped flash area %u for %s\n", id, mp->mnt_point); in testfs_lfs_wipe_partition()
/Zephyr-latest/subsys/fs/
Dfs.c135 struct fs_mount_t *mp; in fs_open() local
145 if (zfp->mp != NULL) { in fs_open()
149 rc = fs_get_mnt_point(&mp, file_name, NULL); in fs_open()
155 if (((mp->flags & FS_MOUNT_FLAG_READ_ONLY) != 0) && in fs_open()
160 CHECKIF(mp->fs->open == NULL) { in fs_open()
170 CHECKIF(mp->fs->truncate == NULL) { in fs_open()
177 zfp->mp = mp; in fs_open()
178 rc = mp->fs->open(zfp, file_name, flags); in fs_open()
181 zfp->mp = NULL; in fs_open()
190 rc = mp->fs->truncate(zfp, 0); in fs_open()
[all …]
Dfs_impl.c12 const struct fs_mount_t *mp) in fs_impl_strip_prefix() argument
16 if ((path == NULL) || (mp == NULL)) { in fs_impl_strip_prefix()
20 path += mp->mountp_len; in fs_impl_strip_prefix()
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_open_flags.c20 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
22 zassert_equal(fs_mount(mp), 0, "Failed to mount partition"); in ZTEST()
26 zassert_equal(fs_unmount(mp), 0, "Failed to unmount partition"); in ZTEST()
32 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
41 ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, &ext2_config, 0); in ZTEST()
44 mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in ZTEST()
45 zassert_equal(fs_mount(mp), 0, "Failed to mount partition"); in ZTEST()
49 zassert_equal(fs_unmount(mp), 0, "Failed to unmount partition"); in ZTEST()
56 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
65 ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, &ext2_config, 0); in ZTEST()
[all …]
Dtestfs_mount.c14 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()
[all …]
Dtestfs_ext_specific.c116 struct fs_mount_t *mp = &testfs_mnt; in writing_test() local
119 ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, config, 0); in writing_test()
122 mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in writing_test()
123 ret = fs_mount(mp); in writing_test()
126 ret = fs_statvfs(mp->mnt_point, &sbuf); in writing_test()
148 ret = fs_unmount(mp); in writing_test()
156 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
159 ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, NULL, 0); in ZTEST()
162 mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in ZTEST()
163 ret = fs_mount(mp); in ZTEST()
[all …]
Dtest_dirops.c19 struct fs_mount_t *mp = &testfs_mnt; in ZTEST() local
22 zassert_equal(fs_mount(mp), 0, "Mount failed"); in ZTEST()
30 zassert_equal(fs_unmount(mp), 0, "Unount failed"); in ZTEST()
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_mount_flags.c20 struct fs_mount_t *mp = mount_flags_mp; in test_fs_mount_flags() local
25 mp->flags |= FS_MOUNT_FLAG_NO_FORMAT; in test_fs_mount_flags()
26 ret = fs_mount(mp); in test_fs_mount_flags()
31 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in test_fs_mount_flags()
32 ret = fs_mount(mp); in test_fs_mount_flags()
37 mp->flags = 0; in test_fs_mount_flags()
38 ret = fs_mount(mp); in test_fs_mount_flags()
49 ret = fs_unmount(mp); in test_fs_mount_flags()
53 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in test_fs_mount_flags()
55 ret = fs_mount(mp); in test_fs_mount_flags()
[all …]
Dtest_fs_basic.c22 static int create_write_hello(const struct fs_mount_t *mp) in create_write_hello() argument
31 testfs_path_init(&path, mp, in create_write_hello()
63 if (mp->type == FS_LITTLEFS) { in create_write_hello()
87 static int verify_hello(const struct fs_mount_t *mp) in verify_hello() argument
96 testfs_path_init(&path, mp, in verify_hello()
119 static int seek_within_hello(const struct fs_mount_t *mp) in seek_within_hello() argument
128 testfs_path_init(&path, mp, in seek_within_hello()
187 static int truncate_hello(const struct fs_mount_t *mp) in truncate_hello() argument
196 testfs_path_init(&path, mp, in truncate_hello()
228 if (mp->type == FS_LITTLEFS) { in truncate_hello()
[all …]
Dtest_fs_dirops.c29 static int check_mkdir(struct fs_mount_t *mp) in check_mkdir() argument
34 zassert_equal(testfs_path_init(&dpath, mp, in check_mkdir()
79 static int build_layout(struct fs_mount_t *mp, in build_layout() argument
85 TC_PRINT("building layout on %s\n", mp->mnt_point); in build_layout()
87 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in build_layout()
93 zassert_equal(testfs_path_init(&path, mp, TESTFS_PATH_END), in build_layout()
101 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in build_layout()
110 static int check_layout(struct fs_mount_t *mp, in check_layout() argument
118 zassert_equal(testfs_path_init(&path, mp, TESTFS_PATH_END), in check_layout()
146 static int check_rename(struct fs_mount_t *mp) in check_rename() argument
[all …]
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs_mount_flags.c12 static struct fs_mount_t mp = { variable
26 mp.flags = 0; in test_mount_flags()
28 ret = fs_mount(&mp); in test_mount_flags()
39 ret = fs_unmount(&mp); in test_mount_flags()
43 mp.flags = FS_MOUNT_FLAG_READ_ONLY; in test_mount_flags()
45 ret = fs_mount(&mp); in test_mount_flags()
65 ret = fs_unmount(&mp); in test_mount_flags()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_mkfs.c59 struct fs_mount_t mp = fatfs_mnt; in ZTEST() local
69 mp.flags = FS_MOUNT_FLAG_NO_FORMAT; in ZTEST()
70 ret = fs_mount(&mp); in ZTEST()
73 ret = fs_statvfs(mp.mnt_point, &sbuf); in ZTEST()
79 ret = fs_unmount(&mp); in ZTEST()
/Zephyr-latest/samples/subsys/fs/fs_sample/src/
Dmain.c35 static struct fs_mount_t mp = { variable
47 static struct fs_mount_t mp = { variable
151 mp.mnt_point = disk_mount_pt; in main()
153 int res = fs_mount(&mp); in main()
158 res = fs_unmount(&mp); in main()
163 res = fs_mount(&mp); in main()
180 fs_unmount(&mp); in main()
/Zephyr-latest/samples/subsys/usb/mass/src/
Dmain.c138 struct fs_mount_t *mp = &fs_mnt; in setup_disk() local
146 rc = setup_flash(mp); in setup_disk()
159 rc = mount_app_fs(mp); in setup_disk()
170 rc = fs_statvfs(mp->mnt_point, &sbuf); in setup_disk()
178 mp->mnt_point, in setup_disk()
182 rc = fs_opendir(&dir, mp->mnt_point); in setup_disk()
183 printk("%s opendir: %d\n", mp->mnt_point, rc); in setup_disk()
/Zephyr-latest/lib/libc/common/source/time/
Dgmtime_r.c47 unsigned int mp = (5U * doy + 2U) / 153U; in time_civil_from_days() local
48 unsigned int d = doy - (153U * mp + 2U) / 5U + 1U; in time_civil_from_days()
49 unsigned int m = mp + ((mp < 10) ? 3 : -9); in time_civil_from_days()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c284 static int littlefs_mount(struct fs_mount_t *mp) in littlefs_mount() argument
288 rc = littlefs_flash_erase((uintptr_t)mp->storage_dev); in littlefs_mount()
296 rc = fs_mount(mp); in littlefs_mount()
299 (uintptr_t)mp->storage_dev, mp->mnt_point, rc); in littlefs_mount()
302 LOG_PRINTK("%s mount: %d\n", mp->mnt_point, rc); in littlefs_mount()
304 LOG_PRINTK("%s automounted\n", mp->mnt_point); in littlefs_mount()
329 static int littlefs_mount(struct fs_mount_t *mp) in littlefs_mount() argument
334 mp->storage_dev = (void *)disk_pdrv; in littlefs_mount()
335 mp->mnt_point = disk_mount_pt; in littlefs_mount()
337 return fs_mount(mp); in littlefs_mount()
/Zephyr-latest/include/zephyr/fs/
Dfs_interface.h80 const struct fs_mount_t *mp; member
94 const struct fs_mount_t *mp; member
Dfs.h240 zfp->mp = NULL; in fs_file_t_init()
256 zdp->mp = NULL; in fs_dir_t_init()
560 int fs_mount(struct fs_mount_t *mp);
576 int fs_unmount(struct fs_mount_t *mp);
/Zephyr-latest/drivers/dai/intel/ssp/
Dssp.c192 struct dai_intel_ssp_mn *mp = dai_get_mn(dp); in dai_ssp_is_mclk_source_in_use() local
196 for (i = 0; i < ARRAY_SIZE(mp->mclk_sources_ref); i++) { in dai_ssp_is_mclk_source_in_use()
197 if (mp->mclk_sources_ref[i] > 0) { in dai_ssp_is_mclk_source_in_use()
218 struct dai_intel_ssp_mn *mp = dai_get_mn(dp); in dai_ssp_setup_initial_mclk_source() local
245 mp->mclk_source_clock = clk_index; in dai_ssp_setup_initial_mclk_source()
260 mp->mclk_sources_ref[mclk_id]++; in dai_ssp_setup_initial_mclk_source()
275 struct dai_intel_ssp_mn *mp = dai_get_mn(dp); in dai_ssp_check_current_mclk_source() local
279 LOG_INF("MCLK %d, source = %d", mclk_rate, mp->mclk_source_clock); in dai_ssp_check_current_mclk_source()
281 if (ft[mp->mclk_source_clock].freq % mclk_rate != 0) { in dai_ssp_check_current_mclk_source()
283 mclk_rate, mp->mclk_source_clock); in dai_ssp_check_current_mclk_source()
[all …]

12