Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/Zephyr-Core-2.7.6/scripts/west_commands/zspdx/
Dwriter.py15 def writeRelationshipSPDX(f, rln): argument
16 f.write(f"Relationship: {rln.refA} {rln.rlnType} {rln.refB}\n")
22 def writeFileSPDX(f, bf): argument
23 f.write(f"""FileName: ./{bf.relpath}
28 f.write(f"FileChecksum: SHA256: {bf.sha256}\n")
30 f.write(f"FileChecksum: MD5: {bf.md5}\n")
31 f.write(f"LicenseConcluded: {bf.concludedLicense}\n")
33 f.write(f"LicenseInfoInFile: NONE\n")
36 f.write(f"LicenseInfoInFile: {licInfoInFile}\n")
37 f.write(f"FileCopyrightText: {bf.copyrightText}\n\n")
[all …]
Dscanner.py61 log.dbg(f" - getting licenses for {filePath}")
63 with open(filePath, "r") as f:
66 for line in f:
108 for f in pkg.files.values():
109 hashes.append(f.sha1)
140 for f in pkg.files.values():
141 licsConcluded.add(f.concludedLicense)
142 for licInfo in f.licenseInfoInFile:
168 revised.append(f"({lic})")
183 log.inf(f"scanning files in package {pkg.cfg.name} in document {doc.cfg.name}")
[all …]
Dcmakefileapi.py17 return f"Codemodel: source {self.paths_source}, build {self.paths_build}"
32 return f"Config: [no name]"
34 return f"Config: {self.name}"
58 return f"ConfigDir: source {self.source}, build {self.build}"
79 return f"ConfigProject: {self.name}"
101 return f"ConfigTarget: {self.name}"
123 return f"TargetInstallDestination: {self.path}"
136 return f"TargetCommandFragment: {self.fragment}"
148 return f"TargetDependency: {self.id}"
167 return f"TargetSource: {self.path}"
[all …]
/Zephyr-Core-2.7.6/scripts/dts/
Dgen_defines.py74 sys.exit(f"devicetree error: {e}")
79 with open(args.dts_out, "w", encoding="utf-8") as f:
80 print(edt.dts_source, file=f)
114 out_dt_define(f"{node.z_path_id}_PATH", f'"{escape(node.path)}"')
117 out_dt_define(f"{node.z_path_id}_FULL_NAME",
118 f'"{escape(node.name)}"')
121 out_comment(f"Node parent ({node.parent.path}) identifier:")
122 out_dt_define(f"{node.z_path_id}_PARENT",
123 f"DT_{node.parent.z_path_id}")
155 …print(f"extern const struct device DEVICE_DT_NAME_GET(DT_{node.z_path_id}); /* dts_ord_{node.dep_o…
[all …]
Dgen_dts_cmake.py66 with open(args.edt_pickle, 'rb') as f:
67 edt = pickle.load(f)
88 cmake_props.append(f'"DT_CHOSEN|{node}" "{path}"')
91 cmake_props.append(f'"DT_NODE|{node.path}" TRUE')
94 cmake_props.append(f'"DT_NODELABEL|{label}" "{node.path}"')
103 cmake_value = f'{cmake_value}{val};'
109 cmake_prop = f'DT_PROP|{node.path}|{item}'
110 cmake_props.append(f'"{cmake_prop}" "{cmake_value}"')
113 cmake_props.append(f'"DT_REG|{node.path}|NUM" "{len(node.regs)}"')
119 cmake_addr = f'{cmake_addr}NONE;'
[all …]
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_util.c18 int32_t e = -1, v, f = 0; in lwm2m_f32_to_b32() local
36 f >>= 1; in lwm2m_f32_to_b32()
39 f |= (1 << 23); in lwm2m_f32_to_b32()
53 if (!f && e < 0 && v < LWM2M_FLOAT32_DEC_MAX) { in lwm2m_f32_to_b32()
59 f |= 1 << (22 - i); in lwm2m_f32_to_b32()
87 b32[1] |= (f >> 16) & 0x7F; in lwm2m_f32_to_b32()
88 b32[2] = (f >> 8) & 0xFF; in lwm2m_f32_to_b32()
89 b32[3] = f & 0xFF; in lwm2m_f32_to_b32()
97 int64_t v, f = 0; in lwm2m_f32_to_b64() local
116 f >>= 1; in lwm2m_f32_to_b64()
[all …]
/Zephyr-Core-2.7.6/arch/x86/zefi/
Dprintf.h65 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
67 for (/**/; *f; f++) { in vpf()
70 if (*f != '%') { in vpf()
71 pc(r, *f); in vpf()
75 if (f[1] == 'l') { in vpf()
77 f++; in vpf()
81 while (f[1] >= '0' && f[1] <= '9') { in vpf()
82 f++; in vpf()
84 if (f[1] == '.') { in vpf()
85 f++; in vpf()
[all …]
/Zephyr-Core-2.7.6/soc/arm/nuvoton_npcx/common/ecst/
Decst.py178 exit_with_failure(f'Cannot open {input_file}')
180 exit_with_failure(f'BIN Input file ({input_file}) is empty')
191 exit_with_failure(f'Input file name {input_file} '
192 f'should be differed from'
193 f' Output file name {output}')
199 print(Fore.LIGHTCYAN_EX + f'\nBIN file: {input_file}, size:'
200 f' {input_file_size} bytes')
201 print(f'Output file name: {output_file.name} \n')
215 message = f'Invalid chip name, '
231 print(f'- HDR - FW Header ANCHOR - Offset '
[all …]
/Zephyr-Core-2.7.6/subsys/tracing/ctf/
Dctf_map.h61 #define MAP0(f, x, peek, ...) f(x) MAP_NEXT(peek, MAP1)(f, peek, __VA_ARGS__) argument
62 #define MAP1(f, x, peek, ...) f(x) MAP_NEXT(peek, MAP0)(f, peek, __VA_ARGS__) argument
67 #define MAP_LIST0(f, x, peek, ...) f(x) MAP_LIST_NEXT(peek, MAP_LIST1)(f, peek, __VA_ARGS__) argument
68 #define MAP_LIST1(f, x, peek, ...) f(x) MAP_LIST_NEXT(peek, MAP_LIST0)(f, peek, __VA_ARGS__) argument
73 #define MAP(f, ...) EVAL(MAP1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
79 #define MAP_LIST(f, ...) EVAL(MAP_LIST1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
/Zephyr-Core-2.7.6/doc/_scripts/
Dgen_kconfig_rest.py151 sys.exit(f"error: --modules argument '{module_spec}' should have "
159 sys.exit(f"error: path '{abspath}' in --modules argument does not exist")
172 sys.exit(f"error: --no-index-modules argument '{module_spec}' "
385 write_if_updated(f"index-{suffix}.rst", rst)
392 rst = f"""
406 rst += f"""\
442 with open(desc_path, encoding="utf-8") as f:
443 desc = f.read()
446 f"'{desc_path}': {e}")
448 return f"""\
[all …]
Dgen_devicetree_rest.py156 vnd2ref_target[vnd] = f'dt_vendor_{vnd}'
204 binding_files.extend(glob.glob(f'{dts_root}/dts/bindings/**/*.yaml',
232 sys.exit(f'Expected to find base.yaml at {base_yaml}')
274 print_block(f'''\
295 print(f'- :ref:`{vnd_lookup.target(vnd)}`', file=string_io)
327 title += f' ({vnd})'
330 print_block(f'''\
339 print(f'- :ref:`{binding_ref_target(binding)}`', file=string_io)
420 on_bus_title = f' (on {binding.on_bus} bus)'
425 title = f'{compatible}{on_bus_title}'
[all …]
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py253 return f"{self._dt}"
256 return f"<EDT for '{self.dts_path}', binding directories " \
257 f"'{self.bindings_dirs}'>"
330 with open(binding_path, encoding="utf-8") as f:
331 contents = f.read()
348 f"'{binding_path}' appears in binding directories "
349 f"but isn't valid YAML: {e}")
391 msg = (f"both {old_binding.path} and {binding.path} have "
392 f"'compatible: {binding.compatible}'")
394 msg += f" and 'on-bus: {binding.on_bus}'"
[all …]
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/tests/
Dtest_dtlib.py51 assert actual == expected, f'unexpected round-trip on {dts}'
62 assert actual_msg == expected_msg, f'wrong error from {dts}'
73 assert actual_msg.endswith(expected_msg), f'wrong error from {dts}'
85 f'wrong error from {dts}' \
86 f'actual message:\n{actual_msg!r}\n' \
87 f'does not match:\n{expected_re!r}'
298 verify_parse(f"""
446 assert actual == expected, f"label '{label}' mapped to wrong property"
493 f"label '{label}' maps to wrong offset or property"
537 f"{node!r} has unexpected unit address"
[all …]
/Zephyr-Core-2.7.6/boards/xtensa/intel_adsp_cavs15/tools/
Dcavs-fw-v25.py44 with open(FW_FILE, "rb") as f:
45 fw_bytes = f.read()
49 log.info(f"Trimming {sz} bytes of extended manifest")
72 log.info(f"Powering down, ADSPCS = 0x{dsp.ADSPCS:x}")
75 log.info(f"Powered down, ADSPCS = 0x{dsp.ADSPCS:x}")
78 log.info(f"Configuring DMA output stream {hda_ostream_id}...")
106 log.info(f"Powering up DSP core #0, ADSPCS = 0x{dsp.ADSPCS:x}")
109 log.info(f"Powered up {ncores(dsp)} cores, ADSPCS = 0x{dsp.ADSPCS:x}")
125 log.info(f"Sending PURGW_FW IPC, HIPCR = 0x{ipcval:x}")
129 log.info(f"Starting {ncores(dsp)} cores, ADSPCS = 0x{dsp.ADSPCS:x}")
[all …]
/Zephyr-Core-2.7.6/scripts/coccinelle/
Dfind_dev_usage.cocci23 def check_and_report(F, f, D, nb_args, p):
24 if f in f_void and int(nb_args) in f_void[f]:
26 loosing const qualifier, please wrap".format(F, f, D)
28 elif f not in f_void and f not in f_other and not f.isupper():
30 check if const qualifier is not lost".format(F, f, D)
34 with open("function_names.pickle", "rb") as f:
35 data = pickle.load(f)
50 identifier f;
53 f(args, D@p, ...)
59 f << r_find_dev_usage.f;
[all …]
Dfind_functions.cocci33 def insert_function(f, params):
41 f_void[f] = void_pos
43 f_other[f] = i + 1
64 identifier f;
68 ret_type f(params);
74 f << r_find_func_declare.f;
77 insert_function(f, params)
86 identifier f;
91 ret_type f(params)
96 static inline ret_type f(params)
[all …]
Dnoderef.cocci18 expression f;
29 f(...,(T)(x),...,sizeof(
34 f(...,sizeof(
39 f(...,(T)(x),...,i*sizeof(
44 f(...,i*sizeof(
52 expression f;
61 *f(...,(T)(x),...,sizeof@p(x),...)
63 *f(...,sizeof@p(x),...,(T)(x),...)
65 *f(...,(T)(x),...,i*sizeof@p(x),...)
67 *f(...,i*sizeof@p(x),...,(T)(x),...)
/Zephyr-Core-2.7.6/doc/_extensions/zephyr/
Dexternal_content.py82 return f".. {directive}:: {fpath_adj}"
84 with open(fname, "r+", encoding=encoding) as f:
85 content = f.read()
90 f.seek(0)
91 f.write(content_adj)
92 f.truncate()
104 to_delete = set(f for f in srcdir.glob("**/*") if not f.is_dir())
106 f
108 for f in srcdir.glob(k)
109 if not f.is_dir()
[all …]
/Zephyr-Core-2.7.6/scripts/footprint/
Dtrack.py24 pathlib.Path(f'footprint_data/{version}').mkdir(exist_ok=True, parents=True)
38 f'out/{name}/{feature}/{board}',
41 f'{app}',
46 cmd += ['--', f'{options}']
54 …pathlib.Path(f'footprint_data/{version}/{name}/{feature}/{board}').mkdir(parents=True, exist_ok=Tr…
56 …shutil.copy(f'out/{name}/{feature}/{board}/ram.json', f'footprint_data/{version}/{name}/{feature}/…
57 …shutil.copy(f'out/{name}/{feature}/{board}/rom.json', f'footprint_data/{version}/{name}/{feature}/…
Dfpdiff.py38 with open(args.file1, "r") as f:
39 data = json.load(f)
42 with open(args.file2, "r") as f:
43 data = json.load(f)
56 print(f"{n.identifier} -> {Fore.GREEN}{diff}{Fore.RESET}")
58 print(f"{n.identifier} -> {Fore.RED}+{diff}{Fore.RESET}")
62 print(f"{node.identifier} ({Fore.GREEN}-{node.size}{Fore.RESET}) disappeared.")
68 print(f"{node.identifier} ({Fore.RED}+{node.size}{Fore.RESET}) is new.")
/Zephyr-Core-2.7.6/scripts/ci/
Dguideline_check.py32 f = r.group(1)
33 if f in violations:
34 violations[f].append(r.group(3))
62 for f in patch_set:
63 …if not f.path.endswith(".c") and not f.path.endswith(".h") or not os.path.exists(zephyr_base + "/"…
68 print(f"Running {script} on {f.path}")
74 f.path,
81 for hunk in f:
84 violation = "{}:{}".format(f.path, line.target_line_no)
Dtest_plan.py125 for f in self.modified_files:
126 p = re.match(r"^arch\/([^/]+)\/", f)
128 p = re.match(r"^include\/arch\/([^/]+)\/", f)
142 logging.info(f'Potential architecture filters...')
155 for f in self.modified_files:
156 if f.endswith(".rst") or f.endswith(".png") or f.endswith(".jpg"):
158 p = re.match(r"^boards\/[^/]+\/([^/]+)\/", f)
174 logging.info(f'Potential board filters...')
179 for f in self.modified_files:
180 if f.endswith(".rst"):
[all …]
/Zephyr-Core-2.7.6/scripts/west_commands/
Drun_common.py110 textwrap.dedent(f'''\
210 log.die(f'runner {runner_name} received unknown arguments: {unknown}')
222 log.dbg(f'runner_config: {runner_config}', level=log.VERBOSE_VERY)
271 log.die(f'no CMake cache found (expected one at {cache_file})')
274 _banner(f'west {command.name}: rebuilding')
279 log.die(f're-build in {args.build_dir} failed')
281 log.die(f're-build in {build_dir} failed (no --build-dir given)')
286 log.die(f'either a pristine build is needed, or board {board} '
295 with open(path, 'r') as f:
296 content = yaml.safe_load(f.read())
[all …]
Dspdx.py53 log.dbg(f"running zephyr SPDX generator")
55 log.dbg(f" --init is", args.init)
56 log.dbg(f" --build-dir is", args.build_dir)
57 log.dbg(f" --namespace-prefix is", args.namespace_prefix)
58 log.dbg(f" --spdx-dir is", args.spdx_dir)
59 log.dbg(f" --analyze-includes is", args.analyze_includes)
60 log.dbg(f" --include-sdk is", args.include_sdk)
94 cfg.namespacePrefix = f"http://spdx.org/spdxdocs/zephyr-{str(uuid.uuid4())}"
107 log.err(f'SPDX output directory {cfg.spdxDir} exists but is not a directory')
/Zephyr-Core-2.7.6/lib/os/
Drb.c535 struct _rb_foreach *f) in stack_left_limb() argument
537 f->top++; in stack_left_limb()
538 f->stack[f->top] = n; in stack_left_limb()
539 f->is_left[f->top] = 0U; in stack_left_limb()
542 f->top++; in stack_left_limb()
543 f->stack[f->top] = n; in stack_left_limb()
544 f->is_left[f->top] = 1; in stack_left_limb()
547 return f->stack[f->top]; in stack_left_limb()
558 struct rbnode *z_rb_foreach_next(struct rbtree *tree, struct _rb_foreach *f) in z_rb_foreach_next() argument
569 if (f->top == -1) { in z_rb_foreach_next()
[all …]

12345678910>>...12