Home
last modified time | relevance | path

Searched full:args (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/Zephyr-latest/subsys/bluetooth/common/
Dbt_shell_private.c17 static void wall_vfprintf(enum shell_vt100_color color, const char *fmt, va_list args) in wall_vfprintf() argument
26 va_copy(args_copy, args); /* Create a copy of 'args' to safely reuse */ in wall_vfprintf()
48 va_list args; in bt_shell_fprintf() local
50 va_start(args, fmt); in bt_shell_fprintf()
51 wall_vfprintf(color, fmt, args); in bt_shell_fprintf()
52 va_end(args); in bt_shell_fprintf()
57 va_list args; in bt_shell_fprintf_info() local
59 va_start(args, fmt); in bt_shell_fprintf_info()
60 wall_vfprintf(SHELL_INFO, fmt, args); in bt_shell_fprintf_info()
61 va_end(args); in bt_shell_fprintf_info()
[all …]
/Zephyr-latest/scripts/build/
Dgen_cfb_font_header.py23 if args.dump:
24 blackwhite.save("{}_{}.png".format(args.name, charcode))
31 args.output.write("""\t/* {:d}{} */\n\t{{\n""".format(charcode, char))
34 if args.hpack:
61 args.output.write("\t\t")
65 if not args.msb_first:
67 args.output.write("0x{:02x},".format(int(value, 2)))
68 args.output.write(" /* {} */\n".format(''.join(bits).replace('0', ' ').replace('1', '#')))
69 args.output.write("\t},\n")
73 font = ImageFont.truetype(args.input, args.size)
[all …]
Dfile2hex.py23 global args
45 args = parser.parse_args()
71 if args.gzip:
73 with open(args.file, 'rb') as fg:
74 fg.seek(args.offset)
76 mtime=args.gzip_mtime,
78 gz_obj.write(fg.read(args.length))
81 if args.format == "literal":
90 with open(args.file, "rb") as fp:
91 fp.seek(args.offset)
[all …]
/Zephyr-latest/scripts/west_commands/
Dspdx.py51 def do_run(self, args, unknown_args): argument
54 self.dbg(f" --init is", args.init)
55 self.dbg(f" --build-dir is", args.build_dir)
56 self.dbg(f" --namespace-prefix is", args.namespace_prefix)
57 self.dbg(f" --spdx-dir is", args.spdx_dir)
58 self.dbg(f" --analyze-includes is", args.analyze_includes)
59 self.dbg(f" --include-sdk is", args.include_sdk)
61 if args.init:
62 self.do_run_init(args)
64 self.do_run_spdx(args)
[all …]
Dpatch.py267 def filter_args(self, args): argument
275 if args.src_module is not None:
276 mod_path = self.get_module_path(args.src_module)
278 self.die(f'Source module "{args.src_module}" not found')
279 if args.patch_base is not None and args.patch_base.is_absolute():
281 if args.patch_yml is not None and args.patch_yml.is_absolute():
287 if args.patch_base is None:
288 args.patch_base = manifest_dir / WEST_PATCH_BASE
289 if not args.patch_base.is_absolute():
290 args.patch_base = manifest_dir / args.patch_base
[all …]
Dbuild.py189 def do_run(self, args, remainder): argument
190 self.args = args # Avoid having to pass them around
192 self.dbg('args: {} remainder: {}'.format(args, remainder),
195 source_dir = self.args.source_dir
198 if self.args.test_item:
200 item = os.path.basename(self.args.test_item)
201 if self.args.source_dir:
202 test_path = self.args.source_dir
204 test_path = os.path.dirname(self.args.test_item)
206 self.args.source_dir = test_path
[all …]
Dtwister_cmd.py54 def do_run(self, args, remainder): argument
56 "args: {} remainder: {}".format(args, remainder), level=Verbosity.DBG_EXTREME
59 options = parse_arguments(self.parser, args=remainder, options=args)
60 default_options = parse_arguments(self.parser, args=[], on_init=False)
64 def _parse_arguments(self, args, options): argument
66 return parse_arguments(self.parser, args, options)
Dpackages.py108 def do_run(self, args, unknown): argument
118 if args.modules:
122 for m in args.modules:
126 if args.manager == "pip":
127 return self.do_run_pip(args, unknown[1:])
130 self.die(f'Unsupported package manager: "{args.manager}"')
132 def do_run_pip(self, args, manager_args): argument
135 if not args.modules or "zephyr" in args.modules:
140 if args.modules and module_name not in args.modules:
141 if args.install:
[all …]
Dsign.py86 def __call__(self, parser, args, ignored, option): argument
87 setattr(args, self.dest, not option.startswith('--no-'))
154 def do_run(self, args, ignored): argument
155 self.args = args # for check_force
158 build_dir = find_build_dir(args.build_dir)
166 if not args.tool:
167 args.tool = self.config_get('sign.tool')
172 if args.gen_bin:
178 elif args.gen_bin is None and bin_exists:
182 if args.gen_hex:
[all …]
/Zephyr-latest/subsys/fs/
Dfuse_fs_access_bottom.c46 void *args; /* Pointer to arguments structure, one of op_args_* or a simple argument */ member
94 static inline int queue_op(int op, void *args) in queue_op() argument
97 op_queue.args = args; in queue_op()
114 op_queue.ret = op_callbacks->rmdir((const char *)op_queue.args); in ffa_run_pending_op()
117 op_queue.ret = op_callbacks->unlink((const char *)op_queue.args); in ffa_run_pending_op()
120 struct op_args_truncate *args = op_queue.args; in ffa_run_pending_op() local
122 op_queue.ret = op_callbacks->truncate(args->path, args->size); in ffa_run_pending_op()
126 struct op_args_ftruncate *args = op_queue.args; in ffa_run_pending_op() local
128 op_queue.ret = op_callbacks->ftruncate(args->fh, args->size); in ffa_run_pending_op()
132 struct op_args_readwrite *args = op_queue.args; in ffa_run_pending_op() local
[all …]
/Zephyr-latest/cmake/util/
Dexecute_process.cmake4 # "ARGS" for the process command-line arguments.
5 # Use set(ARGS ...) to build the ARGS list and then quote the list
7 # set(ARGS a b c)
8 # -DARGS="${ARGS}"
14 if(NOT DEFINED ARGS)
15 set(ARGS ) variable
17 separate_arguments(ARGS)
34 ${ARGS}
/Zephyr-latest/arch/common/
Dsemihost.c49 struct semihost_poll_in_args args = { in semihost_poll_in() local
53 return (char)semihost_exec(SEMIHOST_READC, &args); in semihost_poll_in()
64 struct semihost_open_args args = { in semihost_open() local
70 return semihost_exec(SEMIHOST_OPEN, &args); in semihost_open()
75 struct semihost_close_args args = { in semihost_close() local
79 return semihost_exec(SEMIHOST_CLOSE, &args); in semihost_close()
84 struct semihost_flen_args args = { in semihost_flen() local
88 return semihost_exec(SEMIHOST_FLEN, &args); in semihost_flen()
93 struct semihost_seek_args args = { in semihost_seek() local
98 return semihost_exec(SEMIHOST_SEEK, &args); in semihost_seek()
[all …]
/Zephyr-latest/scripts/ci/
Dupload_test_results_es.py160 def transform(t, args): argument
161 if args.transform:
162 rules = json.loads(str(args.transform).replace("'", "\"").replace("\\", "\\\\"))
170 for excl_item in args.exclude:
176 def gendata(f, args): argument
185 if args.run_date:
186 env['run_date'] = args.run_date
187 if args.run_id:
188 env['run_id'] = args.run_id
189 if args.run_attempt:
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dmisc.py21 def __init__(self, cfg, cmd, args): argument
28 self.args = args
43 parser.add_argument('args', nargs=argparse.REMAINDER,
48 def do_create(cls, cfg, args): argument
49 return MiscFlasher(cfg, args.cmd, args.args)
51 def do_run(self, *args, **kwargs): argument
53 self.check_call([self.cmd, self.cfg.build_dir] + self.args)
Dprobe_rs.py22 self.args = ['--chip', chip]
25 self.args += ['--probe', dev_id]
28 self.args += tool_opt
60 def do_create(cls, cfg, args): argument
61 return ProbeRsBinaryRunner(cfg, args.chip,
62 probe_rs=args.probe_rs,
63 dev_id=args.dev_id,
64 erase=args.erase,
65 tool_opt=args.tool_opt)
79 + self.args + download_args)
[all …]
Desp32.py90 def do_create(cls, cfg, args): argument
91 if args.esp_tool:
92 espidf = args.esp_tool
94 espidf = path.join(args.esp_idf_path, 'tools', 'esptool_py',
98 cfg, args.esp_device, boot_address=args.esp_boot_address,
99 part_table_address=args.esp_partition_table_address,
100 app_address=args.esp_app_address, erase=args.erase, reset=args.reset,
101 baud=args.esp_baud_rate, flash_size=args.esp_flash_size,
102 flash_freq=args.esp_flash_freq, flash_mode=args.esp_flash_mode,
103 espidf=espidf, bootloader_bin=args.esp_flash_bootloader,
[all …]
/Zephyr-latest/subsys/net/lib/http/headers/
Dmlog.h14 #define LOG_INF(fmt, args...) printf("I: " fmt "\n", ##args) argument
15 #define LOG_ERR(fmt, args...) printf("E: " fmt "\n", ##args) argument
16 #define LOG_DBG(fmt, args...) printf("D: " fmt "\n", ##args) argument
/Zephyr-latest/scripts/coredump/
Dcoredump_gdbserver.py59 args = parse_args()
66 if args.debug:
68 elif args.verbose:
75 if args.debug:
84 if args.debug:
86 elif args.verbose:
91 if not os.path.isfile(args.elffile):
92 logger.error(f"Cannot find file {args.elffile}, exiting...")
95 if not os.path.isfile(args.logfile):
96 logger.error(f"Cannot find file {args.logfile}, exiting...")
[all …]
/Zephyr-latest/scripts/logging/dictionary/
Dlog_parser_uart.py40 args = parse_args()
42 if args.dbfile is None or '.json' not in args.dbfile:
43 logger.error("ERROR: invalid log database path: %s, exiting...", args.dbfile)
48 if args.debug:
54 with serial.Serial(args.serialPort, args.baudrate) as ser:
60 parserlib.parser(data, args.dbfile, logger)
Dlog_parser.py45 def read_log_file(args): argument
53 if args.hex:
54 if args.rawhex:
56 logdata = dictionary_parser.utils.convert_hex_file_to_bin(args.logfile)
60 with open(args.logfile, "r", encoding="iso-8859-1") as hexfile:
93 logfile = open(args.logfile, "rb")
95 logger.error("ERROR: Cannot open binary log data file: %s, exiting...", args.logfile)
106 args = parse_args()
110 if args.debug:
115 logdata = read_log_file(args)
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dmock_script.py24 args = parser.parse_args()
26 if args.exception:
30 if args.long_sleep:
34 time.sleep(args.sleep)
39 time.sleep(args.sleep)
42 print('Returns with code', args.return_code, flush=True)
44 return args.return_code
/Zephyr-latest/soc/realtek/ec/common/rts5912_imgtool/
Dimg_gen.py144 args = parse_args()
145 if args.verbose:
146 print(f" Input = {args.original_bin}")
147 print(f" Output = {args.signed_bin}")
148 print(f" Load Address = {hex(args.load_addr)}")
149 print(f" SPI Frequency = {args.spi_freq}")
150 print(f" SPI Read Command = {args.spi_rdcmd}")
152 args.load_addr,
153 args.spi_freq,
154 args.spi_rdcmd,
[all …]
/Zephyr-latest/tests/net/socket/tls_configurations/pytest/
Dtest_app_vs_openssl.py16 args = ["openssl", "s_server"]
18 args.extend(["-cert", "{}/rsa.crt".format(certs_path),
24 args.extend(["-cert", "{}/ec.crt".format(certs_path),
30 args.extend(["-cert", "{}/ec.crt".format(certs_path),
37 args.extend(["-cert", "{}/ec.crt".format(certs_path),
43 args.extend(["-tls1_3",
50 args.extend(["-serverpref", "-state", "-debug", "-status_verbose", "-rev",
52 return args
56 args = get_arguments_from_server_type(server_type, port)
58 print(" ".join(args))
[all …]
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool_client.py36 def __init__(self, host, port, args): argument
39 self.args = args
95 filename = str(self.args.fw_file)
113 if args.log_only:
117 client = cavstool_client(HOST, PORT, args)
124 client = cavstool_client(HOST, PORT, args)
139 args = ap.parse_args() variable
141 if args.quiet:
144 if args.log_port:
145 PORT_LOG = args.log_port
[all …]
/Zephyr-latest/scripts/release/
Dlist_backports.py81 args = parser.parse_args()
83 if args.includes:
84 if getattr(args, 'start'):
88 if getattr(args, 'end'):
93 if not getattr(args, 'start'):
98 if not getattr(args, 'end'):
99 setattr(args, 'end', datetime.now())
101 if args.end < args.start:
103 f'end date {args.end} is before start date {args.start}')
106 if args.tokenfile:
[all …]

12345678910>>...26