Home
last modified time | relevance | path

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

12345678910>>...31

/Zephyr-latest/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-latest/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-latest/subsys/fs/
Dshell.c89 static void create_abs_path(const char *name, char *path, size_t len) in create_abs_path() argument
92 strncpy(path, name, len); in create_abs_path()
93 path[len - 1] = '\0'; in create_abs_path()
97 *path++ = '/'; in create_abs_path()
100 strncpy(path, name, len); in create_abs_path()
101 path[len - 1] = '\0'; in create_abs_path()
103 strncpy(path, cwd, len); in create_abs_path()
104 path[len - 1] = '\0'; in create_abs_path()
106 size_t plen = strlen(path); in create_abs_path()
109 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.c69 static bool is_mount_point(const char *path) in is_mount_point() argument
74 len = strlen(path); in is_mount_point()
79 memcpy(dir_path, path, len); in is_mount_point()
84 static int fuse_fs_access_getattr(const char *path, struct stat *stat) in fuse_fs_access_getattr() argument
101 if ((strcmp(path, "/") == 0) || is_mount_point(path)) { in fuse_fs_access_getattr()
102 if (strstr(path, "/.") != NULL) { in fuse_fs_access_getattr()
110 err = fs_stat(path, &entry); in fuse_fs_access_getattr()
167 static int fuse_fs_access_readdir(const char *path, void *buf, in fuse_fs_access_readdir() argument
179 if (strcmp(path, "/") == 0) { in fuse_fs_access_readdir()
185 if (is_mount_point(path)) { in fuse_fs_access_readdir()
[all …]
/Zephyr-latest/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.py28 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
49 path = os.path.join(TEST_DATA, 'tests', 'dummy')
50 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \
57 os.mkdir(os.path.join(out_path))
60 straggler_path = os.path.join(out_path, straggler_name)
72 current_dirs = os.listdir(os.path.normpath(os.path.join(out_path, '..')))
76 out_contents = os.listdir(os.path.join(out_path))
85 path = os.path.join(TEST_DATA, 'samples', 'hello_world')
86 args = ['-i', '--outdir', out_path, '-T', path] + \
99 relpath = os.path.relpath(path, ZEPHYR_BASE)
[all …]
Dtest_report.py30 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
42 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
53 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
62 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
72 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
84 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
95 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
107 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
114 os.path.join(TEST_DATA, 'tests', 'one_fail_two_error_one_pass'),
124 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
[all …]
Dtest_footprint.py41 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister')
61 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
62 args = ['-i', '--outdir', out_path, '-T', path] + \
77 with open(os.path.join(out_path, 'twister.json')) as f:
84 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
87 report_path = os.path.join(
88 os.path.dirname(out_path),
95 path = os.path.join(TEST_DATA, 'tests', 'dummy')
96 args = ['-i', '--outdir', out_path, '-T', path] + \
123 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'device', 'group')
[all …]
Dtest_coverage.py26 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
36 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'),
45 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2'),
59 'coverage', os.path.join('coverage','coverage.xml')
67 'coverage', os.path.join('coverage','coverage.sonarqube.xml')
75 'coverage', os.path.join('coverage','coverage.txt')
83 'coverage', os.path.join('coverage','coverage.csv')
91 'coverage', os.path.join('coverage','coverage.coveralls.json')
99 'coverage', os.path.join('coverage','index.html')
108 os.path.join('coverage','index.html')
[all …]
/Zephyr-latest/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_shell.c117 struct lwm2m_obj_path path; in cmd_exec() local
118 int ret = lwm2m_string_to_path(pathstr, &path, '/'); /* translate path -> path_obj */ in cmd_exec()
125 struct lwm2m_engine_res *res = lwm2m_engine_get_res(&path); in cmd_exec()
141 ret = res->execute_cb(path.obj_inst_id, param, param_len); in cmd_exec()
167 struct lwm2m_obj_path path; in cmd_read() local
169 ret = lwm2m_string_to_path(pathstr, &path, '/'); in cmd_read()
181 ret = lwm2m_get_res_buf(&path, (void **)&buff, in cmd_read()
191 ret = lwm2m_get_res_buf(&path, (void **)&buff, in cmd_read()
204 ret = lwm2m_get_res_buf(&path, (void **)&buff, in cmd_read()
213 ret = lwm2m_get_s8(&path, &temp); in cmd_read()
[all …]
Dlwm2m_rw_link_format.c45 struct lwm2m_obj_path *path) in put_begin() argument
51 ARG_UNUSED(path); in put_begin()
238 const struct lwm2m_obj_path *path, in put_corelink_attributes_resource() argument
242 struct lwm2m_engine_obj *obj = lwm2m_engine_get_obj(path); in put_corelink_attributes_resource()
243 struct lwm2m_engine_obj_inst *obj_inst = lwm2m_engine_get_obj_inst(path); in put_corelink_attributes_resource()
244 struct lwm2m_engine_res *res = lwm2m_engine_get_res(path); in put_corelink_attributes_resource()
258 const struct lwm2m_obj_path *path, in put_corelink_ssid() argument
265 switch (path->obj_id) { in put_corelink_ssid()
269 ret = lwm2m_get_bool(&LWM2M_OBJ(0, path->obj_inst_id, 1), &bootstrap_inst); in put_corelink_ssid()
285 ret = lwm2m_get_u16(&LWM2M_OBJ(0, path->obj_inst_id, 10), &server_id); in put_corelink_ssid()
[all …]
/Zephyr-latest/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-latest/include/zephyr/net/
Dlwm2m.h128 typedef void (*lwm2m_observe_cb_t)(enum lwm2m_observe_event event, struct lwm2m_obj_path *path,
808 const struct lwm2m_obj_path *path, uint32_t period_s);
825 const struct lwm2m_obj_path *path, uint32_t period_s);
838 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path);
849 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path);
875 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len);
885 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr);
895 int lwm2m_set_u8(const struct lwm2m_obj_path *path, uint8_t value);
905 int lwm2m_set_u16(const struct lwm2m_obj_path *path, uint16_t value);
915 int lwm2m_set_u32(const struct lwm2m_obj_path *path, uint32_t value);
[all …]
/Zephyr-latest/samples/subsys/fs/fs_sample/src/
Dmain.c69 static int lsdir(const char *path);
73 char path[MAX_PATH]; in create_some_entries() local
79 if (base >= (sizeof(path) - SOME_REQUIRED_LEN)) { in create_some_entries()
85 strncpy(path, base_path, sizeof(path)); in create_some_entries()
87 path[base++] = '/'; in create_some_entries()
88 path[base] = 0; in create_some_entries()
89 strcat(&path[base], SOME_FILE_NAME); in create_some_entries()
91 if (fs_open(&file, path, FS_O_CREATE) != 0) { in create_some_entries()
92 LOG_ERR("Failed to create file %s", path); in create_some_entries()
97 path[base] = 0; in create_some_entries()
[all …]
/Zephyr-latest/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 (included in %s)\n" % (one_file, 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-latest/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-latest/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-latest/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-latest/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-latest/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-latest/scripts/tests/twister/
Dtest_environment.py248 assert os.path.join(zephyr_base, 'tests') in options.testsuite_root
249 assert os.path.join(zephyr_base, 'samples') in options.testsuite_root
266 os.path.join('dummy', 'path', "tests"),
267 os.path.join('dummy', 'path', "samples")
275 os.path.join('dummy', 'path', "tests"),
276 os.path.join('dummy', 'path', "samples")
287 os.path.join('dummy', 'path', "tests"),
288 os.path.join('dummy', 'path', "samples")
296 os.path.join('dummy', 'path', "tests"),
297 os.path.join('dummy', 'path', "samples")
[all …]

12345678910>>...31