Home
last modified time | relevance | path

Searched full:f (Results 1 – 25 of 1140) sorted by relevance

12345678910>>...46

/Zephyr-latest/include/zephyr/sys/
Dutil_listify.h15 #define Z_UTIL_LISTIFY_0(F, sep, ...) argument
17 #define Z_UTIL_LISTIFY_1(F, sep, ...) \ argument
18 F(0, __VA_ARGS__)
20 #define Z_UTIL_LISTIFY_2(F, sep, ...) \ argument
21 Z_UTIL_LISTIFY_1(F, sep, __VA_ARGS__) __DEBRACKET sep \
22 F(1, __VA_ARGS__)
24 #define Z_UTIL_LISTIFY_3(F, sep, ...) \ argument
25 Z_UTIL_LISTIFY_2(F, sep, __VA_ARGS__) __DEBRACKET sep \
26 F(2, __VA_ARGS__)
28 #define Z_UTIL_LISTIFY_4(F, sep, ...) \ argument
[all …]
/Zephyr-latest/scripts/west_commands/zspdx/
Dwriter.py26 # 1) f: file handle for SPDX document
28 def writeRelationshipSPDX(f, rln): argument
29f.write(f"Relationship: {_normalize_spdx_name(rln.refA)} {rln.rlnType} {_normalize_spdx_name(rln.r…
33 # 1) f: file handle for SPDX document
35 def writeFileSPDX(f, bf): argument
38 f.write(f"""FileName: ./{bf.relpath}
43 f.write(f"FileChecksum: SHA256: {bf.sha256}\n")
45 f.write(f"FileChecksum: MD5: {bf.md5}\n")
46 f.write(f"LicenseConcluded: {bf.concludedLicense}\n")
48 f.write(f"LicenseInfoInFile: NONE\n")
[all …]
Dscanner.py64 log.dbg(f" - getting licenses for {filePath}")
66 with open(filePath, "r") as f:
69 for line in f:
113 for f in pkg.files.values():
114 hashes.append(f.sha1)
147 for f in pkg.files.values():
148 licsConcluded.add(f.concludedLicense)
149 for licInfo in f.licenseInfoInFile:
176 revised.append(f"({lic})")
192 log.inf(f"scanning files in package {pkg.cfg.name} in document {doc.cfg.name}")
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py16 logger.info(f'periodic timer behaviour using {test} mechanism:')
48 logger.info(f'min: {stats["min"] * 1_000_000:.6f} us')
49 logger.info(f'max: {stats["max"] * 1_000_000:.6f} us')
50 logger.info(f'mean: {stats["mean"] * 1_000_000:.6f} us')
51 logger.info(f'variance: {stats["var"] * 1_000_000:.6f} us')
52 logger.info(f'stddev: {stats["stddev"] * 1_000_000:.6f} us')
53 logger.info(f'total time: {stats["total_time"] * 1_000_000:.6f} us')
54 logger.info(f'expected drift: {seconds * max_drift_ppm} us')
55 logger.info(f'real drift: {time_diff * 1_000_000:.6f} us')
59 f'"testcase":"jitter_drift_timer"'
[all …]
/Zephyr-latest/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-latest/scripts/dts/
Dgen_defines.py40 with open(args.edt_pickle, 'rb') as f:
41 edt = pickle.load(f)
64 sys.exit(f"ERROR: Duplicate 'zephyr,memory-region' ({region}) properties "
65 f"between {regions[region].path} and {node.path}")
72 out_dt_define(f"{node.z_path_id}_PATH", f'"{escape(node.path)}"')
75 out_dt_define(f"{node.z_path_id}_FULL_NAME",
76 f'"{escape(node.name)}"')
77 out_dt_define(f"{node.z_path_id}_FULL_NAME_UNQUOTED",
78 f'{escape(node.name)}')
79 out_dt_define(f"{node.z_path_id}_FULL_NAME_TOKEN",
[all …]
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/
Dconvert_keys.py9 with open(fin, 'rb') as f:
10 data = f.read()
14 with open(fout, 'w') as f:
15 f.write("#include <stdint.h>\n")
16 f.write(f"const uint8_t {name}[] = {{")
18 f.write("\n\t")
19 f.write(", ".join(f"0x{b:02x}" for b in data[i:i+16]))
20 f.write(",")
21 f.write("\n};\n")
22 f.write(f"const uint32_t {name}_len = sizeof({name});\n")
[all …]
/Zephyr-latest/dts/bindings/clock/
Dst,stm32h7rs-pll-clock.yaml16 f(PLL_Px) = f(VCOx clock) / PLLPx -> pllx_p_ck ((pll1_p_ck : sys_ck))
17 f(PLL_Qx) = f(VCOx clock) / PLLQx -> pllx_q_ck
18 f(PLL_Rx) = f(VCOx clock) / PLLRx -> pllx_r_ck
19 f(PLL_Sx) = f(VCOx clock) / PLLSx -> pllx_s_ck
20 f(PLL_Tx) = f(VCOx clock) / PLLTx -> pllx_t_ck (only for PLL2)
22 with f(VCOx clock) = f(REFx_CK) × (PLLNx / PLLMx)
Dst,stm32f0-pll-clock.yaml14 f(PLLCLK) = f(PLLIN) x PLLMUL --> SYSCLK (System Clock)
18 f(PLLIN) = f(input_clk) / PREDIV
21 f(PLLIN) = f(input_clk) / 2
23 f(PLLIN) = f(input_clk) / PREDIV
/Zephyr-latest/arch/xtensa/core/
Dgen_zsr.py53 regs = [ f"MISC{n}" for n in range(0, int(get("XCHAL_NUM_MISC_REGS"))) ]
66 regs.append(f"EXCSAVE{il}")
79 levelsym = f"XCHAL_INT{intnum}_LEVEL"
87 with open(outfile, "w") as f:
88 f.write("/* Generated File, see gen_zsr.py */\n")
89 f.write("#ifndef ZEPHYR_ZSR_H\n")
90 f.write("#define ZEPHYR_ZSR_H\n")
92 f.write(f"# define ZSR_{need} {regs[i]}\n")
93 f.write(f"# define ZSR_{need}_STR \"{regs[i]}\"\n")
97 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)} {regs[i]}\n")
[all …]
/Zephyr-latest/samples/drivers/lora/receive/
DREADME.rst42 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
45 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
48 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
51 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
55 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
58 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
61 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
64 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
67 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
70 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
[all …]
/Zephyr-latest/tests/subsys/dsp/utils/src/
Df32.c23 #define TEST_CASES_SHIFT_F32_TO_Q7 (-1.0F, 0, -128), (1.0F, 0, 127), (1.0F, 7, 1), (-1.0F, 7, -1)
26 (-1.0F, 0, -32768), (1.0F, 0, 32767), (1.0F, 15, 1), (-1.0F, 15, -1)
29 (-1.0F, 0, -2147483648), (1.0F, 0, 2147483647), (1.0F, 31, 1), (-1.0F, 31, -1)
37 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f32_to_q7()
47 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f32_to_q15()
57 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f32_to_q31()
/Zephyr-latest/tests/subsys/debug/coredump_threads/
Dtestcase.yaml21 - "E: #CD:5([aA])45([0-9a-fA-F]+)"
22 - "E: #CD:41([0-9a-fA-F]+)"
23 - "E: #CD:54([0-9a-fA-F]+)"
24 - "E: #CD:4([dD])([0-9a-fA-F]+)"
25 - "E: #CD:4([dD])([0-9a-fA-F]+)"
26 - "E: #CD:4([dD])([0-9a-fA-F]+)"
27 - "E: #CD:4([dD])([0-9a-fA-F]+)"
28 - "E: #CD:4([dD])([0-9a-fA-F]+)"
29 - "E: #CD:4([dD])([0-9a-fA-F]+)"
30 - "E: #CD:4([dD])([0-9a-fA-F]+)"
[all …]
/Zephyr-latest/scripts/west_commands/tests/
Dtest_nrf.py87 ((['nrfjprog', '--program', RC_KERNEL_HEX, '--sectorerase', '--verify', '-f', 'NRF51',
89 ['nrfjprog', '--pinreset', '-f', 'NRF51', '--snr', TEST_DEF_SNR]),
93 ((['nrfjprog', '--program', RC_KERNEL_HEX, '--chiperase', '--verify', '-f', 'NRF51',
95 ['nrfjprog', '--pinreset', '-f', 'NRF51', '--snr', TEST_DEF_SNR]),
99 ((['nrfjprog', '--program', RC_KERNEL_HEX, '--sectorerase', '--verify', '-f', 'NRF51',
101 ['nrfjprog', '--pinreset', '-f', 'NRF51', '--snr', TEST_OVR_SNR]),
105 ((['nrfjprog', '--program', RC_KERNEL_HEX, '--sectorerase', '--verify', '-f', 'NRF51',
107 ['nrfjprog', '--reset', '-f', 'NRF51', '--snr', TEST_DEF_SNR]),
111 ((['nrfjprog', '--recover', '-f', 'NRF51', '--snr', TEST_DEF_SNR],
112 ['nrfjprog', '--program', RC_KERNEL_HEX, '--sectorerase', '--verify', '-f', 'NRF51',
[all …]
/Zephyr-latest/scripts/utils/
Dboard_v1_to_v2.py46 board_path = next(board_root.glob(f"boards/*/{board}"))
48 sys.exit(f"Board not found: {board}")
59 for f in board_path.iterdir():
60 f_new = new_board_path / f.name
62 print(f"Skipping existing file: {f_new}")
64 f.rename(f_new)
77 with open(board_settings_file, encoding='utf-8') as f:
79 board_settings = yaml.load(f) # pylint: disable=assignment-from-no-return
89 with open(board_settings_file, "w") as f:
90 yaml.dump(board_settings, f)
[all …]
/Zephyr-latest/samples/subsys/zbus/dyn_channel/
Dsample.yaml64 - "W: 0f 0f 0f 0f 0f 0f 0f 0f |........"
65 - "W: 0f 0f 0f 0f 0f 0f 0f 0f |........"
DREADME.rst82 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
83 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
/Zephyr-latest/soc/nuvoton/npcm/common/esiost/
Desiost.py115 exit_with_failure(f'Cannot open {input_file}')
117 exit_with_failure(f'BIN Input file ({input_file}) is empty')
128 exit_with_failure(f'Input file name {input_file} '
129 f'should be differed from'
130 f' Output file name {output}')
136 print(Fore.LIGHTCYAN_EX + f'\nBIN file: {input_file}, size:'
137 f' {input_file_size} bytes')
138 print(f'Output file name: {output_file.name} \n')
152 message = f'Invalid chip name, '
164 message = f'ANCHOR max support 8 bytes'
[all …]
/Zephyr-latest/soc/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-latest/tests/drivers/coredump/coredump_api/
Dtestcase.yaml19 - "E: #CD:5([aA])45([0-9a-fA-F]+)"
20 - "E: #CD:4([dD])([0-9a-fA-F]+)"
21 - "E: #CD:4([dD])([0-9a-fA-F]+)"
22 - "E: #CD:4([dD])([0-9a-fA-F]+)"
24 - "E: #CD:4([dD])([0-9a-fA-F]+)"
26 - "E: #CD:4([dD])([0-9a-fA-F]+)"
28 - "E: #CD:4([dD])([0-9a-fA-F]+)"
30 - "E: #CD:4([dD])([0-9a-fA-F]+)"
46 - "E: #CD:5([aA])45([0-9a-fA-F]+)"
47 - "E: #CD:4([dD])([0-9a-fA-F]+)"
[all …]
/Zephyr-latest/arch/x86/zefi/
Dprintf.h70 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
72 for (/**/; *f != '\0'; f++) { in vpf()
75 if (*f != '%') { in vpf()
76 pc(r, *f); in vpf()
80 if (f[1] == 'l') { in vpf()
82 f++; in vpf()
86 while (f[1] >= '0' && f[1] <= '9') { in vpf()
87 f++; in vpf()
89 if (f[1] == '.') { in vpf()
90 f++; in vpf()
[all …]
/Zephyr-latest/soc/nordic/
Dvalidate_rram_partitions.c11 #define PAIR__(f, sep, arg_first, ...) FOR_EACH_FIXED_ARG(f, sep, arg_first, __VA_ARGS__) argument
12 #define PAIR_(f, sep, args_to_expand) PAIR__(f, sep, args_to_expand) argument
13 #define PAIR(n, f, sep, ...) PAIR_(f, sep, GET_ARGS_LESS_N(n, __VA_ARGS__)) argument
18 * For example, FOR_EACH_PAIR(f, (,), 1, 2, 3, 4) should expand to:
20 * f(2, 1) , f(3, 1) , f(4, 1) , f(3, 2) , f(4, 2) , f(4, 3)
22 * @param f Macro to call. Must accept two arguments.
27 #define FOR_EACH_PAIR(f, sep, ...) \ argument
28 LISTIFY(NUM_VA_ARGS_LESS_1(__VA_ARGS__), PAIR, sep, f, sep, __VA_ARGS__)
/Zephyr-latest/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
71 * Applies the function macro `f` to each of the remaining parameters.
73 #define MAP(f, ...) EVAL(MAP1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
76 * Applies the function macro `f` to each of the remaining parameters and
79 #define MAP_LIST(f, ...) EVAL(MAP_LIST1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
/Zephyr-latest/tests/lib/c_lib/common/src/
Dtest_sqrt.c24 1.0f, 2.0f, 3.0f, 4.0f,
25 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, /* numbers across the decade */
26 3.14159265359f, 2.718281828f, /* irrational numbers pi and e */
27 123.4f, 0.025f, 0.10f, 1.875f /* numbers with infinite */
66 union { uint32_t u; float f; } ieee754; in isinff() member
67 ieee754.f = x; in isinff()
77 union { uint32_t u; float f; } ieee754; in isnanf() member
78 ieee754.f = x; in isnanf()
86 #define MAX_FLOAT_ERROR_PERCENT (3.5e-5f)
102 zassert_true(sqrtf(0.0f) == 0.0f, "sqrtf(0.0)"); in ZTEST()
[all …]

12345678910>>...46