/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/observation/src/ |
D | lwm2m_observation.c | 21 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.6.0/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.c | 99 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() 341 struct lwm2m_obj_path path; in lwm2m_engine_create_obj_inst() local 347 ret = lwm2m_string_to_path(pathstr, &path, '/'); in lwm2m_engine_create_obj_inst() 352 return lwm2m_create_object_inst(&path); in lwm2m_engine_create_obj_inst() [all …]
|
D | lwm2m_observation.c | 176 static bool lwm2m_notify_observer_list(sys_slist_t *path_list, const struct lwm2m_obj_path *path) in lwm2m_notify_observer_list() argument 181 if (lwm2m_observer_path_compare(&o_p->path, path)) { in lwm2m_notify_observer_list() 191 struct lwm2m_obj_path path; in lwm2m_notify_observer() local 193 path.level = LWM2M_PATH_LEVEL_RESOURCE; in lwm2m_notify_observer() 194 path.obj_id = obj_id; in lwm2m_notify_observer() 195 path.obj_inst_id = obj_inst_id; in lwm2m_notify_observer() 196 path.res_id = res_id; in lwm2m_notify_observer() 198 return lwm2m_notify_observer_path(&path); in lwm2m_notify_observer() 201 static int engine_observe_get_attributes(const struct lwm2m_obj_path *path, in engine_observe_get_attributes() argument 216 obj = get_engine_obj(path->obj_id); in engine_observe_get_attributes() [all …]
|
D | lwm2m_rw_link_format.c | 41 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.6.0/tests/subsys/fs/littlefs/src/ |
D | test_util.c | 18 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_equal(strcmp(path.path, "/"), 0, "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_equal(strcmp(path.path, mnt.mnt_point), 0, "bad mnt init path"); in ZTEST() 47 testfs_path_init(&path, &invalid, TESTFS_PATH_END); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/fs/ |
D | shell.c | 87 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 …]
|
D | fs_impl.c | 11 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()
|
D | fuse_fs_access.c | 65 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.6.0/scripts/tests/twister_blackbox/ |
D | test_hardwaremap.py | 17 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 …]
|
D | test_report.py | 28 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 40 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 51 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 60 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 70 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 82 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 93 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 105 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 112 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), 122 os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic'), [all …]
|
D | test_testplan.py | 29 os.path.join('scripts', 'tests', 'twister_blackbox', 'test_data', 'tests', 47 apath = os.path.join(ZEPHYR_BASE, 'scripts', 'twister') 64 path = os.path.join(TEST_DATA, 'tests', 'dummy') 65 config_path = os.path.join(TEST_DATA, 'test_config.yaml') 66 args = ['-i','--outdir', out_path, '-T', path, '--level', level, '-y', 76 with open(os.path.join(out_path, 'testplan.json')) as f: 96 path = os.path.join(TEST_DATA, 'tests', 'dummy') 97 args = ['-i', '--outdir', out_path, '-T', path, '--sub-test', test, '-y'] + \ 110 with open(os.path.join(out_path, 'testplan.json')) as f: 129 path = os.path.join(TEST_DATA, 'tests', 'dummy') [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/fs/common/ |
D | test_fs_basic.c | 24 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() 55 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 76 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 92 struct testfs_path path; in verify_hello() local 99 testfs_path_init(&path, mp, in verify_hello() 124 struct testfs_path path; in seek_within_hello() local 131 testfs_path_init(&path, mp, in seek_within_hello() 143 zassert_equal(fs_stat(path.path, &stat), in seek_within_hello() [all …]
|
D | test_fs_dirops.c | 37 dpath.path, in check_mkdir() 40 zassert_equal(fs_mkdir(dpath.path), in check_mkdir() 61 zassert_equal(fs_stat(fpath.path, &stat), 0, in check_mkdir() 64 zassert_equal(fs_unlink(dpath.path), in check_mkdir() 68 zassert_equal(fs_unlink(fpath.path), in check_mkdir() 72 zassert_equal(fs_unlink(dpath.path), in check_mkdir() 82 struct testfs_path path; in build_layout() local 93 zassert_equal(testfs_path_init(&path, mp, TESTFS_PATH_END), in build_layout() 94 path.path, in build_layout() 97 zassert_equal(testfs_build(&path, cp), in build_layout() [all …]
|
/Zephyr-Core-3.6.0/samples/subsys/fs/fs_sample/src/ |
D | main.c | 58 static int lsdir(const char *path); 62 char path[MAX_PATH]; in create_some_entries() local 68 if (base >= (sizeof(path) - SOME_REQUIRED_LEN)) { in create_some_entries() 74 strncpy(path, base_path, sizeof(path)); in create_some_entries() 76 path[base++] = '/'; in create_some_entries() 77 path[base] = 0; in create_some_entries() 78 strcat(&path[base], SOME_FILE_NAME); in create_some_entries() 80 if (fs_open(&file, path, FS_O_CREATE) != 0) { in create_some_entries() 81 LOG_ERR("Failed to create file %s", path); in create_some_entries() 86 path[base] = 0; in create_some_entries() [all …]
|
/Zephyr-Core-3.6.0/scripts/build/ |
D | parse_syscalls.py | 75 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 …]
|
D | subfolder_list.py | 45 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.6.0/modules/openthread/platform/ |
D | settings.c | 43 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.6.0/scripts/ |
D | get_maintainer.py | 212 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.6.0/include/zephyr/net/ |
D | lwm2m.h | 121 typedef void (*lwm2m_observe_cb_t)(enum lwm2m_observe_event event, struct lwm2m_obj_path *path, 771 const struct lwm2m_obj_path *path, uint32_t period_s); 808 const struct lwm2m_obj_path *path, uint32_t period_s); 837 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path); 862 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path); 902 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len); 925 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr); 948 int lwm2m_set_u8(const struct lwm2m_obj_path *path, uint8_t value); 971 int lwm2m_set_u16(const struct lwm2m_obj_path *path, uint16_t value); 994 int lwm2m_set_u32(const struct lwm2m_obj_path *path, uint32_t value); [all …]
|
/Zephyr-Core-3.6.0/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
D | plugin.py | 126 if not os.path.isdir(config.option.build_dir): 140 def _normalize_path(path: str | None) -> str: 141 if path is not None: 142 path = os.path.expanduser(os.path.expandvars(path)) 143 path = os.path.normpath(os.path.abspath(path)) 144 return path
|
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/interop/pytest/ |
D | leshan.py | 57 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.6.0/scripts/tests/twister/ |
D | test_testsuite.py | 18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'twister')) 102 os.path.join('testsuites', 'tests', 'test_ztest.c'), 121 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error.c'), 132 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error_1.c'), 143 os.path.join( 159 os.path.join( 211 result: ScanPathResult = scan_file(os.path.join(test_data, test_file)) 270 os.path.join(ZEPHYR_BASE, 'scripts', 'tests'), 293 TEST_DATA_REL_PATH = os.path.join( 304 os.path.join(ZEPHYR_BASE, TEST_DATA_REL_PATH), [all …]
|
/Zephyr-Core-3.6.0/doc/build/dts/ |
D | macros.bnf | 26 node-macro =/ %s"DT_N" path-id %s"_EXISTS" 30 node-macro =/ %s"DT_N" path-id %s"_BUS" ["_" dt-name] 32 node-macro =/ %s"DT_N" path-id %s"_REG_NUM" 33 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT "_EXISTS" 34 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT 36 node-macro =/ %s"DT_N" path-id %s"_REG_NAME_" dt-name 39 node-macro =/ %s"DT_N" path-id %s"_IRQ_NUM" 40 node-macro =/ %s"DT_N" path-id %s"_IRQ_LEVEL" 41 node-macro =/ %s"DT_N" path-id %s"_IRQ_IDX_" DIGIT "_EXISTS" 42 node-macro =/ %s"DT_N" path-id %s"_IRQ_IDX_" DIGIT [all …]
|
/Zephyr-Core-3.6.0/scripts/tests/build_helpers/ |
D | test_domains.py | 15 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.6.0/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_rename.c | 11 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 …]
|