Home
last modified time | relevance | path

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

12345678910>>...23

/Zephyr-Core-3.6.0/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 …]
/Zephyr-Core-3.6.0/scripts/dts/
Dgen_defines.py68 sys.exit(f"devicetree error: {e}")
73 with open(args.dts_out, "w", encoding="utf-8") as f:
74 print(edt.dts_source, file=f)
112 sys.exit(f"ERROR: Duplicate 'zephyr,memory-region' ({region}) properties "
113 f"between {regions[region].path} and {node.path}")
120 out_dt_define(f"{node.z_path_id}_PATH", f'"{escape(node.path)}"')
123 out_dt_define(f"{node.z_path_id}_FULL_NAME",
124 f'"{escape(node.name)}"')
127 out_comment(f"Node parent ({node.parent.path}) identifier:")
128 out_dt_define(f"{node.z_path_id}_PARENT",
[all …]
Dgen_dts_cmake.py67 with open(args.edt_pickle, 'rb') as f:
68 edt = pickle.load(f)
90 cmake_props.append(f'"DT_CHOSEN|{node}" "{path}"')
97 cmake_props.append(f'"DT_ALIAS|{alias}" "{path}"')
101 cmake_props.append(f'"DT_NODE|{node.path}" TRUE')
104 cmake_props.append(f'"DT_NODELABEL|{label}" "{node.path}"')
113 cmake_value = f'{cmake_value}{val};'
119 cmake_prop = f'DT_PROP|{node.path}|{item}'
120 cmake_props.append(f'"{cmake_prop}" "{cmake_value}"')
128 cmake_props.append(f'"DT_REG|{node.path}|NUM" "{len(node.regs)}"')
[all …]
Dgen_driver_kconfig_dts.py59 printfile(f'')
60 printfile(f'DT_COMPAT_{compat_ident} := {compat}')
61 printfile(f'')
62 printfile(f'config DT_HAS_{compat_ident}_ENABLED')
63 printfile(f'\tdef_bool $(dt_compat_enabled,$(DT_COMPAT_{compat_ident}))')
72 with open(binding_path, encoding="utf-8") as f:
73 contents = f.read()
80 print(f"WARNING: '{binding_path}' appears in binding "
81 f"directories but isn't valid YAML: {e}")
92 printfile(f'# Generated devicetree Kconfig')
[all …]
/Zephyr-Core-3.6.0/arch/xtensa/core/
Dgen_zsr.py51 regs = [ f"MISC{n}" for n in range(0, int(get("XCHAL_NUM_MISC_REGS"))) ]
56 regs.append(f"EXCSAVE{il}")
69 levelsym = f"XCHAL_INT{intnum}_LEVEL"
77 with open(outfile, "w") as f:
78 f.write("/* Generated File, see gen_zsr.py */\n")
79 f.write("#ifndef ZEPHYR_ZSR_H\n")
80 f.write("#define ZEPHYR_ZSR_H\n")
82 f.write(f"# define ZSR_{need} {regs[i]}\n")
83 f.write(f"# define ZSR_{need}_STR \"{regs[i]}\"\n")
87 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)} {regs[i]}\n")
[all …]
/Zephyr-Core-3.6.0/samples/net/cloud/aws_iot_mqtt/src/creds/
Dconvert_keys.py8 with open(fin, 'rb') as f:
9 data = f.read()
13 with open(fout, 'w') as f:
14 f.write("#include <stdint.h>\n")
15 f.write(f"const uint8_t {name}[] = {{")
17 f.write("\n\t")
18 f.write(", ".join(f"0x{b:02x}" for b in data[i:i+16]))
19 f.write(",")
20 f.write("\n};\n")
21 f.write(f"const uint32_t {name}_len = sizeof({name});\n")
[all …]
/Zephyr-Core-3.6.0/arch/x86/zefi/
Dprintf.h66 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
68 for (/**/; *f != '\0'; f++) { in vpf()
71 if (*f != '%') { in vpf()
72 pc(r, *f); in vpf()
76 if (f[1] == 'l') { in vpf()
78 f++; in vpf()
82 while (f[1] >= '0' && f[1] <= '9') { in vpf()
83 f++; in vpf()
85 if (f[1] == '.') { in vpf()
86 f++; in vpf()
[all …]
/Zephyr-Core-3.6.0/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-3.6.0/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-3.6.0/samples/subsys/zbus/dyn_channel/
DREADME.rst82 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
83 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/
Dlwm2m_util.c26 int32_t e = -1, v, f = 0; in lwm2m_float_to_b32() local
46 f >>= 1; in lwm2m_float_to_b32()
49 f |= (1 << 23); in lwm2m_float_to_b32()
63 if (!f && e < 0 && v < PRECISION32) { in lwm2m_float_to_b32()
69 f |= 1 << (22 - i); in lwm2m_float_to_b32()
97 b32[1] |= (f >> 16) & 0x7F; in lwm2m_float_to_b32()
98 b32[2] = (f >> 8) & 0xFF; in lwm2m_float_to_b32()
99 b32[3] = f & 0xFF; in lwm2m_float_to_b32()
107 int64_t v, f = 0; in lwm2m_float_to_b64() local
128 f >>= 1; in lwm2m_float_to_b64()
[all …]
/Zephyr-Core-3.6.0/scripts/
Dset_assignees.py60 gh_repo = gh.get_repo(f"{args.org}/{args.repo}")
63 log(f"working on https://github.com/{args.org}/{args.repo}/pull/{pr.number} : {pr.title}")
84 log(f"Too many files changed ({len(fn)}), skipping....")
89 log(f"file: {changed_file.filename}")
112 log(f"Area matches: {area_counter}")
113 log(f"labels: {labels}")
121 log(f"collab: {collab}")
125 log(f"Submitted by: {pr.user.login}")
126 log(f"candidate maintainers: {_all_maintainers}")
153 log(f"This area has only one maintainer, keeping assignee as {assignee}")
[all …]
/Zephyr-Core-3.6.0/scripts/build/
Dgen_image_info.py32 content.append(f'#ifndef {filename_we}_H')
33 content.append(f'#define {filename_we}_H')
34 content.append(f'')
35 content.append(f'#define SEGMENT_NUM {len(segments)}')
36 content.append(f'#define ADJUSTED_LMA {adjusted_lma}')
44 content.append(f'')
45 content.append(f'#define SEGMENT_LMA_ADDRESS_{idx} {hex_lma_addr}')
46 content.append(f'#define SEGMENT_VMA_ADDRESS_{idx} {hex_vma_addr}')
47 content.append(f'#define SEGMENT_SIZE_{idx} {hex_size}')
49 content.append(f'')
[all …]
/Zephyr-Core-3.6.0/scripts/footprint/
Dtrack.py25 pathlib.Path(f'footprint_data/{version}').mkdir(exist_ok=True, parents=True)
39 f'out/{name}/{feature}/{board}',
42 f'{app}',
47 cmd += ['--', f'{options}']
55 …pathlib.Path(f'footprint_data/{version}/{name}/{feature}/{board}').mkdir(parents=True, exist_ok=Tr…
57 …shutil.copy(f'out/{name}/{feature}/{board}/ram.json', f'footprint_data/{version}/{name}/{feature}/…
58 …shutil.copy(f'out/{name}/{feature}/{board}/rom.json', f'footprint_data/{version}/{name}/{feature}/…
Dfpdiff.py41 with open(args.file1, "r") as f:
42 data1 = json.load(f)
44 with open(args.file2, "r") as f:
45 data2 = json.load(f)
53 print(f"{root1.name}\n+++++++++++++++++++++")
65 print(f"{n.identifier} -> {Fore.GREEN}{diff}{Fore.RESET}")
67 print(f"{n.identifier} -> {Fore.RED}+{diff}{Fore.RESET}")
71 print(f"{node.identifier} ({Fore.GREEN}-{node.size}{Fore.RESET}) disappeared.")
77 print(f"{node.identifier} ({Fore.RED}+{node.size}{Fore.RESET}) is new.")
/Zephyr-Core-3.6.0/scripts/west_commands/fetchers/
D__init__.py16 importlib.import_module(f'fetchers.{fetcher_name}')
21 _logger.warning(f'The module for fetcher "{fetcher_name}" '
22 f'could not be imported ({ie}). This most likely '
33 for f in [f for f in os.listdir(fetchers_dir)]:
34 file = fetchers_dir / Path(f)
/Zephyr-Core-3.6.0/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-3.6.0/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 …]
/Zephyr-Core-3.6.0/scripts/ci/
Dtest_plan.py123 cmd = [f"{zephyr_base}/scripts/twister", "-c"] + options + ["--save-tests", fname ]
143 print(f"Manifest file 'west.yml' changed")
145 old_manifest_content = repo_to_scan.git.show(f"{args.commits[:-2]}:west.yml")
152 logging.debug(f'old_projs: {old_projs}')
153 logging.debug(f'new_projs: {new_projs}')
167 logging.info(f'rprojs: {rprojs}')
168 logging.info(f'uprojs: {uprojs}')
169 logging.info(f'aprojs: {aprojs}')
170 logging.info(f'project: {projs_names}')
189 for f in self.modified_files:
[all …]
Dcheck_compliance.py45 err(f"failed to run '{cmd2str(git_cmd)}': {e}")
48 err(f"'{cmd2str(git_cmd)}' exited with status {cp.returncode} and/or "
49 f"wrote to stderr.\n"
50 f"==stdout==\n"
51 f"{cp.stdout.decode('utf-8')}\n"
52 f"==stderr==\n"
53 f"{cp.stderr.decode('utf-8')}\n")
65 f'--max-count={-1 if "." in refspec else 1}', refspec).split()
68 filter_arg = (f'--diff-filter={filter}',) if filter else ()
87 description = f':{desc}' if desc else ''
[all …]
Dguideline_check.py25 f = r.group(1)
26 if f in violations:
27 violations[f].append(r.group(3))
67 for f in patch_set:
68 …if not f.path.endswith(".c") and not f.path.endswith(".h") or not os.path.exists(zephyr_base + "/"…
73 print(f"Running {script} on {f.path}")
79 f.path,
86 for hunk in f:
89 violation = "{}:{}".format(f.path, line.target_line_no)
/Zephyr-Core-3.6.0/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py201 with open(path, encoding="utf-8") as f:
202 raw = yaml.load(f, Loader=_BindingLoader)
214 _err(f"malformed 'child-binding:' in {self.path}, "
238 compat = f" for compatible '{self.compatible}'"
242 return f"<Binding {basename}" + compat + ">"
310 _err(f"'include:' in {binding_path} should not have "
311 f"these unexpected contents: {elem}")
322 _err(f"all elements in 'include:' in {binding_path} "
325 f"'property-blocklist' keys, but got: {elem}")
328 _err(f"'include:' in {binding_path} "
[all …]
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py16 logger.info(f'periodic timer behaviour using {test} mechanism:')
45 logger.info(f'min: {stats["min"] * 1_000_000:.6f} us')
46 logger.info(f'max: {stats["max"] * 1_000_000:.6f} us')
47 logger.info(f'mean: {stats["mean"] * 1_000_000:.6f} us')
48 logger.info(f'variance: {stats["var"] * 1_000_000:.6f} us')
49 logger.info(f'stddev: {stats["stddev"] * 1_000_000:.6f} us')
50 logger.info(f'total time: {stats["total_time"] * 1_000_000:.6f} us')
51 logger.info(f'expected drift: {seconds * max_drift_ppm} us')
52 logger.info(f'real drift: {time_diff * 1_000_000:.6f} us')
62 dut.readlines_until(regex=f"===== {point} =====")

12345678910>>...23