/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | bt_shell_private.c | 17 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/ |
D | gen_cfb_font_header.py | 23 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 …]
|
D | file2hex.py | 22 global args 42 args = parser.parse_args() 58 if args.gzip: 60 with open(args.file, 'rb') as fg: 61 fg.seek(args.offset) 63 mtime=args.gzip_mtime, 65 gz_obj.write(fg.read(args.length)) 71 with open(args.file, "rb") as fp: 72 fp.seek(args.offset) 73 if args.length < 0: [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | spdx.py | 51 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 …]
|
D | build.py | 189 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 …]
|
D | patch.py | 172 def filter_args(self, args): argument 181 if args.patch_base.is_relative_to(_WEST_MANIFEST_DIR): 182 args.patch_base = manifest_dir / args.patch_base.relative_to(_WEST_MANIFEST_DIR) 183 if args.patch_yml.is_relative_to(_WEST_MANIFEST_DIR): 184 args.patch_yml = manifest_dir / args.patch_yml.relative_to(_WEST_MANIFEST_DIR) 185 if args.west_workspace.is_relative_to(_WEST_TOPDIR): 186 args.west_workspace = topdir / args.west_workspace.relative_to(_WEST_TOPDIR) 188 def do_run(self, args, _): argument 189 self.filter_args(args) 191 if not os.path.isfile(args.patch_yml): [all …]
|
D | twister_cmd.py | 54 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)
|
D | sign.py | 86 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 …]
|
D | packages.py | 100 def do_run(self, args, unknown): argument 110 if args.modules: 114 for m in args.modules: 118 if args.manager == "pip": 119 return self.do_run_pip(args, unknown[1:]) 122 self.die(f'Unsupported package manager: "{args.manager}"') 124 def do_run_pip(self, args, manager_args): argument 127 if not args.modules or "zephyr" in args.modules: 132 if args.modules and module_name not in args.modules: 133 if args.install: [all …]
|
/Zephyr-latest/cmake/util/ |
D | execute_process.cmake | 4 # "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/ |
D | semihost.c | 49 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/ |
D | upload_test_results_es.py | 160 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 …]
|
D | version_mgr.py | 75 if args.verbose: 99 if args.verbose: 101 if args.verbose and is_weekly: 104 if not args.verbose: 138 global args 140 args = parse_args() 141 if args.update: 142 update(args.update, args.weekly) 143 elif args.list or args.list_weekly: 144 show_versions(weekly=args.list_weekly) [all …]
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | misc.py | 21 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)
|
D | probe_rs.py | 22 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 …]
|
D | esp32.py | 87 def do_create(cls, cfg, args): argument 88 if args.esp_tool: 89 espidf = args.esp_tool 91 espidf = path.join(args.esp_idf_path, 'tools', 'esptool_py', 95 cfg, args.esp_device, boot_address=args.esp_boot_address, 96 part_table_address=args.esp_partition_table_address, 97 app_address=args.esp_app_address, erase=args.erase, reset=args.reset, 98 baud=args.esp_baud_rate, flash_size=args.esp_flash_size, 99 flash_freq=args.esp_flash_freq, flash_mode=args.esp_flash_mode, 100 espidf=espidf, bootloader_bin=args.esp_flash_bootloader, [all …]
|
D | nrfutil.py | 41 def do_create(cls, cfg, args): argument 42 return NrfUtilBinaryRunner(cfg, args.nrf_family, args.softreset, 43 args.dev_id, erase=args.erase, 44 reset=args.reset, 45 tool_opt=args.tool_opt, force=args.force, 46 recover=args.recover, 47 suit_starter=args.suit_manifest_starter) 56 def _exec(self, args): argument 59 cmd = ['nrfutil', '--json', 'device'] + args 71 if 'x-execute-batch' in args:
|
/Zephyr-latest/subsys/net/lib/http/headers/ |
D | mlog.h | 14 #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/ |
D | coredump_gdbserver.py | 59 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/ |
D | log_parser_uart.py | 40 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)
|
D | log_parser.py | 45 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/ |
D | mock_script.py | 24 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/tests/net/socket/tls_configurations/pytest/ |
D | test_app_vs_openssl.py | 16 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/ |
D | cavstool_client.py | 36 def __init__(self, host, port, args): argument 39 self.args = args 94 filename = str(self.args.fw_file) 112 if args.log_only: 116 client = cavstool_client(HOST, PORT, args) 123 client = cavstool_client(HOST, PORT, args) 138 args = ap.parse_args() variable 140 if args.quiet: 143 if args.log_port: 144 PORT_LOG = args.log_port [all …]
|
/Zephyr-latest/scripts/release/ |
D | list_backports.py | 81 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 …]
|