Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 689) sorted by relevance

12345678910>>...28

/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/observation/src/
Dlwm2m_observation.c21 static bool lwm2m_path_object_equal_upto(struct lwm2m_obj_path *path, in lwm2m_path_object_equal_upto() argument
25 if (level >= LWM2M_PATH_LEVEL_OBJECT && path->obj_id != compare_path->obj_id) { in lwm2m_path_object_equal_upto()
30 path->obj_inst_id != compare_path->obj_inst_id) { in lwm2m_path_object_equal_upto()
34 if (level >= LWM2M_PATH_LEVEL_RESOURCE && path->res_id != compare_path->res_id) { in lwm2m_path_object_equal_upto()
39 path->res_inst_id != compare_path->res_inst_id) { in lwm2m_path_object_equal_upto()
63 if (entry->path.level > prev->path.level) { in assert_path_list_order()
67 if (prev->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order()
68 is_after = entry->path.obj_id >= prev->path.obj_id; in assert_path_list_order()
70 if (is_after && prev->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST && in assert_path_list_order()
71 entry->path.obj_id == prev->path.obj_id) { in assert_path_list_order()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/fs/littlefs/src/
Dtest_util.c18 static struct testfs_path path; variable
25 testfs_path_init(&path, &mnt, TESTFS_PATH_END); in reset_path()
26 return &path; in reset_path()
31 zassert_equal(testfs_path_init(&path, NULL, TESTFS_PATH_END), in ZTEST()
32 path.path, in ZTEST()
34 zassert_str_equal(path.path, "/", "bad root init path"); in ZTEST()
36 zassert_equal(testfs_path_init(&path, &mnt, TESTFS_PATH_END), in ZTEST()
37 path.path, in ZTEST()
39 zassert_str_equal(path.path, mnt.mnt_point, "bad mnt init path"); in ZTEST()
47 testfs_path_init(&path, &invalid, TESTFS_PATH_END); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/fs/
Dshell.c87 static void create_abs_path(const char *name, char *path, size_t len) in create_abs_path() argument
90 strncpy(path, name, len); in create_abs_path()
91 path[len - 1] = '\0'; in create_abs_path()
95 *path++ = '/'; in create_abs_path()
98 strncpy(path, name, len); in create_abs_path()
99 path[len - 1] = '\0'; in create_abs_path()
101 strncpy(path, cwd, len); in create_abs_path()
102 path[len - 1] = '\0'; in create_abs_path()
104 size_t plen = strlen(path); in create_abs_path()
107 path += plen; in create_abs_path()
[all …]
Dfs_impl.c11 const char *fs_impl_strip_prefix(const char *path, in fs_impl_strip_prefix() argument
16 if ((path == NULL) || (mp == NULL)) { in fs_impl_strip_prefix()
17 return path; in fs_impl_strip_prefix()
20 path += mp->mountp_len; in fs_impl_strip_prefix()
21 return *path ? path : root; in fs_impl_strip_prefix()
Dfuse_fs_access.c65 static bool is_mount_point(const char *path) in is_mount_point() argument
70 len = strlen(path); in is_mount_point()
75 memcpy(dir_path, path, len); in is_mount_point()
80 static int fuse_fs_access_getattr(const char *path, struct stat *stat) in fuse_fs_access_getattr() argument
97 if ((strcmp(path, "/") == 0) || is_mount_point(path)) { in fuse_fs_access_getattr()
98 if (strstr(path, "/.") != NULL) { in fuse_fs_access_getattr()
106 err = fs_stat(path, &entry); in fuse_fs_access_getattr()
163 static int fuse_fs_access_readdir(const char *path, void *buf, in fuse_fs_access_readdir() argument
175 if (strcmp(path, "/") == 0) { in fuse_fs_access_readdir()
181 if (is_mount_point(path)) { in fuse_fs_access_readdir()
[all …]
/Zephyr-Core-3.7.0/scripts/tests/twister_blackbox/
Dtest_hardwaremap.py17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/twisterlib"))
98 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
113 path = os.path.join(ZEPHYR_BASE, file_name)
116 if os.path.exists(path):
117 os.remove(path)
141 assert os.path.exists(path)
150 load_data = open(path).read()
153 if os.path.exists(path):
154 os.remove(path)
165 path = os.path.join(ZEPHYR_BASE, file_name)
[all …]
Dtest_outfile.py27 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
48 path = os.path.join(TEST_DATA, 'tests', 'dummy')
49 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \
56 os.mkdir(os.path.join(out_path))
59 straggler_path = os.path.join(out_path, straggler_name)
71 current_dirs = os.listdir(os.path.normpath(os.path.join(out_path, '..')))
75 out_contents = os.listdir(os.path.join(out_path))
84 path = os.path.join(TEST_DATA, 'samples', 'hello_world')
85 args = ['-i', '--outdir', out_path, '-T', path] + \
98 relpath = os.path.relpath(path, ZEPHYR_BASE)
[all …]
Dtest_report.py29 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
41 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
52 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
61 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
71 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
83 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
94 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
106 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
113 os.path.join(TEST_DATA, 'tests', 'one_fail_two_error_one_pass'),
123 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
[all …]
Dtest_footprint.py40 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
60 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
61 args = ['-i', '--outdir', out_path, '-T', path] + \
76 with open(os.path.join(out_path, 'twister.json')) as f:
82 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
85 report_path = os.path.join(
86 os.path.dirname(out_path),
93 path = os.path.join(TEST_DATA, 'tests', 'dummy')
94 args = ['-i', '--outdir', out_path, '-T', path] + \
121 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
[all …]
Dtest_coverage.py24 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
34 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
43 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2'),
57 'coverage', os.path.join('coverage','coverage.xml')
65 'coverage', os.path.join('coverage','coverage.sonarqube.xml')
73 'coverage', os.path.join('coverage','coverage.txt')
81 'coverage', os.path.join('coverage','coverage.csv')
89 'coverage', os.path.join('coverage','coverage.coveralls.json')
97 'coverage', os.path.join('coverage','index.html')
106 os.path.join('coverage','index.html')
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dlwm2m_registry.c99 const struct lwm2m_obj_path *path, const void *value,
158 struct lwm2m_engine_obj *lwm2m_engine_get_obj(const struct lwm2m_obj_path *path) in lwm2m_engine_get_obj() argument
160 if (path->level < LWM2M_PATH_LEVEL_OBJECT) { in lwm2m_engine_get_obj()
164 return get_engine_obj(path->obj_id); in lwm2m_engine_get_obj()
319 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path) in lwm2m_create_object_inst() argument
324 if (path->level != LWM2M_PATH_LEVEL_OBJECT_INST) { in lwm2m_create_object_inst()
329 ret = lwm2m_create_obj_inst(path->obj_id, path->obj_inst_id, &obj_inst); in lwm2m_create_object_inst()
339 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path) in lwm2m_delete_object_inst() argument
343 if (path->level != LWM2M_PATH_LEVEL_OBJECT_INST) { in lwm2m_delete_object_inst()
348 ret = lwm2m_delete_obj_inst(path->obj_id, path->obj_inst_id); in lwm2m_delete_object_inst()
[all …]
Dlwm2m_observation.c193 static bool lwm2m_notify_observer_list(sys_slist_t *path_list, const struct lwm2m_obj_path *path) in lwm2m_notify_observer_list() argument
198 if (lwm2m_observer_path_compare(&o_p->path, path)) { in lwm2m_notify_observer_list()
208 struct lwm2m_obj_path path; in lwm2m_notify_observer() local
210 path.level = LWM2M_PATH_LEVEL_RESOURCE; in lwm2m_notify_observer()
211 path.obj_id = obj_id; in lwm2m_notify_observer()
212 path.obj_inst_id = obj_inst_id; in lwm2m_notify_observer()
213 path.res_id = res_id; in lwm2m_notify_observer()
215 return lwm2m_notify_observer_path(&path); in lwm2m_notify_observer()
218 static int engine_observe_get_attributes(const struct lwm2m_obj_path *path, in engine_observe_get_attributes() argument
233 obj = get_engine_obj(path->obj_id); in engine_observe_get_attributes()
[all …]
Dlwm2m_rw_link_format.c41 struct lwm2m_obj_path *path) in put_begin() argument
47 ARG_UNUSED(path); in put_begin()
234 const struct lwm2m_obj_path *path, in put_corelink_attributes_resource() argument
238 struct lwm2m_engine_obj *obj = lwm2m_engine_get_obj(path); in put_corelink_attributes_resource()
239 struct lwm2m_engine_obj_inst *obj_inst = lwm2m_engine_get_obj_inst(path); in put_corelink_attributes_resource()
240 struct lwm2m_engine_res *res = lwm2m_engine_get_res(path); in put_corelink_attributes_resource()
254 const struct lwm2m_obj_path *path, in put_corelink_ssid() argument
261 switch (path->obj_id) { in put_corelink_ssid()
265 ret = lwm2m_get_bool(&LWM2M_OBJ(0, path->obj_inst_id, 1), &bootstrap_inst); in put_corelink_ssid()
281 ret = lwm2m_get_u16(&LWM2M_OBJ(0, path->obj_inst_id, 10), &server_id); in put_corelink_ssid()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/fs/common/
Dtest_fs_basic.c24 struct testfs_path path; in create_write_hello() local
31 testfs_path_init(&path, mp, in create_write_hello()
40 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
54 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
74 zassert_equal(fs_stat(path.path, &stat), in create_write_hello()
89 struct testfs_path path; in verify_hello() local
96 testfs_path_init(&path, mp, in verify_hello()
121 struct testfs_path path; in seek_within_hello() local
128 testfs_path_init(&path, mp, in seek_within_hello()
140 zassert_equal(fs_stat(path.path, &stat), in seek_within_hello()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/net/
Dlwm2m.h124 typedef void (*lwm2m_observe_cb_t)(enum lwm2m_observe_event event, struct lwm2m_obj_path *path,
762 const struct lwm2m_obj_path *path, uint32_t period_s);
779 const struct lwm2m_obj_path *path, uint32_t period_s);
792 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path);
803 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path);
829 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len);
839 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr);
849 int lwm2m_set_u8(const struct lwm2m_obj_path *path, uint8_t value);
859 int lwm2m_set_u16(const struct lwm2m_obj_path *path, uint16_t value);
869 int lwm2m_set_u32(const struct lwm2m_obj_path *path, uint32_t value);
[all …]
/Zephyr-Core-3.7.0/samples/subsys/fs/fs_sample/src/
Dmain.c64 static int lsdir(const char *path);
68 char path[MAX_PATH]; in create_some_entries() local
74 if (base >= (sizeof(path) - SOME_REQUIRED_LEN)) { in create_some_entries()
80 strncpy(path, base_path, sizeof(path)); in create_some_entries()
82 path[base++] = '/'; in create_some_entries()
83 path[base] = 0; in create_some_entries()
84 strcat(&path[base], SOME_FILE_NAME); in create_some_entries()
86 if (fs_open(&file, path, FS_O_CREATE) != 0) { in create_some_entries()
87 LOG_ERR("Failed to create file %s", path); in create_some_entries()
92 path[base] = 0; in create_some_entries()
[all …]
/Zephyr-Core-3.7.0/scripts/build/
Dparse_syscalls.py75 if os.path.isfile(one_file):
102 path = os.path.join(root, fn)
103 if (not (path.endswith(".h") or path.endswith(".c")) or
104 path.endswith(os.path.join(os.sep, 'toolchain',
108 path = PurePath(os.path.normpath(path)).as_posix()
110 if path not in syscall_files:
112 syscall_files[path] = {"emit" : True}
114 syscall_files[path] = {"emit" : False}
122 sys.stderr.write("Error decoding %s\n" % path)
125 fn = os.path.basename(one_file)
[all …]
Dsubfolder_list.py45 if not os.path.exists(create_links):
47 symbase = os.path.basename(directory)
48 symlink = create_links + os.path.sep + symbase
49 if not os.path.exists(symlink):
59 targetdirectory = os.path.join(root, subdir)
60 reldir = os.path.relpath(targetdirectory, directory)
61 linkname = symbase + '_' + reldir.replace(os.path.sep, '_')
62 symlink = create_links + os.path.sep + linkname
63 if not os.path.exists(symlink):
67 dirlist.append(os.path.join(root, subdir))
[all …]
/Zephyr-Core-3.7.0/modules/openthread/platform/
Dsettings.c43 char path[OT_SETTINGS_MAX_PATH_LEN]; in ot_setting_delete_cb() local
60 ret = snprintk(path, sizeof(path), "%s%s%s", ctx->subtree, in ot_setting_delete_cb()
62 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in ot_setting_delete_cb()
64 LOG_DBG("Removing: %s", path); in ot_setting_delete_cb()
66 ret = settings_delete(path); in ot_setting_delete_cb()
68 LOG_ERR("Failed to remove setting %s, ret %d", path, in ot_setting_delete_cb()
132 static bool ot_setting_exists(const char *path) in ot_setting_exists() argument
136 (void)settings_load_subtree_direct(path, ot_setting_exists_cb, &exists); in ot_setting_exists()
224 char path[OT_SETTINGS_MAX_PATH_LEN]; in otPlatSettingsGet() local
236 ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); in otPlatSettingsGet()
[all …]
/Zephyr-Core-3.7.0/scripts/
Dget_maintainer.py212 def path2areas(self, path): argument
220 is_dir = os.path.isdir(path)
224 path = os.path.normpath(os.path.join(
225 os.path.relpath(os.getcwd(), self._toplevel),
226 path))
229 path += "/"
232 if area._contains(path)]
243 for path in _git("diff", "--name-only", commits, "--").splitlines():
244 res.update(self.path2areas(path))
257 for path in args.paths:
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/interop/pytest/
Dleshan.py57 def get(self, path: str):
65 …def put_raw(self, path: str, data: str | dict | None = None, headers: dict | None = None, params: …
70 def put(self, path: str, data: str | dict, uri_options: str = ''):
76 def post(self, path: str, data: str | dict | None = None):
89 def delete_raw(self, path: str):
94 def delete(self, endpoint: str, path: str):
98 def execute(self, endpoint: str, path: str):
102 def write(self, endpoint: str, path: str, value: bool | int | str):
104 if len(path.split('/')) == 3:
108 rid = path.split('/')[-1]
[all …]
/Zephyr-Core-3.7.0/scripts/tests/build_helpers/
Dtest_domains.py15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
136 [('some', os.path.join('dir', '2')),
137 ('order', os.path.join('dir', '1'))]
142 [('order', os.path.join('dir', '1')),
143 ('some', os.path.join('dir', '2'))]
148 [('some', os.path.join('dir', '2'))]
173 ('some', os.path.join('dir', '2')),
174 ('order', os.path.join('dir', '1'))
177 'order': ('order', os.path.join('dir', '1')),
178 'some': ('some', os.path.join('dir', '2'))
[all …]
/Zephyr-Core-3.7.0/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dplugin.py142 if not os.path.isdir(config.option.build_dir):
156 def _normalize_path(path: str | None) -> str:
157 if path is not None:
158 path = os.path.expanduser(os.path.expandvars(path))
159 path = os.path.normpath(os.path.abspath(path))
160 return path
/Zephyr-Core-3.7.0/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_rename.c11 static int delete_it(const char *path, int quiet) in delete_it() argument
14 if (check_file_dir_exists(path)) { in delete_it()
15 res = fs_unlink(path); in delete_it()
17 TC_PRINT("Couldn't delete %s [%d]\n", path, res); in delete_it()
24 static int create_file(const char *path) in create_file() argument
30 if (!check_file_dir_exists(path)) { in create_file()
31 res = fs_open(&fp, path, FS_O_CREATE | FS_O_RDWR); in create_file()
35 TC_PRINT("Couldn't open %s [%d]\n", path, res); in create_file()
42 static int create_dir(const char *path) in create_dir() argument
45 if (!check_file_dir_exists(path)) { in create_dir()
[all …]
/Zephyr-Core-3.7.0/scripts/tests/twister/
Dtest_environment.py247 assert os.path.join(zephyr_base, 'tests') in options.testsuite_root
248 assert os.path.join(zephyr_base, 'samples') in options.testsuite_root
275 os.path.join('dummy', 'path', "tests"),
276 os.path.join('dummy', 'path', "samples")
284 os.path.join('dummy', 'path', "tests"),
285 os.path.join('dummy', 'path', "samples")
296 os.path.join('dummy', 'path', "tests"),
297 os.path.join('dummy', 'path', "samples")
305 os.path.join('dummy', 'path', "tests"),
306 os.path.join('dummy', 'path', "samples")
[all …]

12345678910>>...28