/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 …]
|
D | gen_syscalls.py | 222 return (not args.long_registers) and (argtype in types64) 231 def wrapper_defs(func_name, func_type, args, fn, userspace_only): argument 235 decl_arglist = ", ".join([" ".join(argrec) for argrec in args]) or "void" 254 for argnum, (argtype, argname) in enumerate(args): 307 impl_arglist = ", ".join([argrec[1] for argrec in args]) 316 argnames = ", ".join([f"{argname}" for _, argname in args]) 318 if len(args) > 0: 342 def marshall_defs(func_name, func_type, args): argument 347 for (argtype, _) in args: 356 decl_arglist = ", ".join([" ".join(argrec) for argrec in args]) [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 | 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 | 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 | 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:]) 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: 140 if args.install: [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/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/west_commands/runners/ |
D | misc.py | 21 def __init__(self, cfg, cmd, args): argument 28 self.args = args 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 …]
|
/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/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/scripts/logging/dictionary/ |
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 …]
|
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)
|
/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: 106 if args.tokenfile: 107 with open(args.tokenfile, 'r') as file: [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/scripts/ |
D | get_maintainer.py | 45 args = _parse_args() 47 args.cmd_fn(Maintainers(args.maintainers), args) 148 args = parser.parse_args() 149 if not hasattr(args, "cmd_fn"): 153 return args 254 def _path_cmd(self, args): argument 257 for path in args.paths: 263 for path in args.paths: 275 def _commits_cmd(self, args): argument 278 commits = args.commits or ("HEAD~..",) [all …]
|
/Zephyr-latest/soc/intel/intel_ish/utils/ |
D | build_ish_firmware.py | 57 args = parseargs() 60 with open(args.output, 'wb') as f: 61 kernel_size = os.path.getsize(args.kernel) 63 if args.aon is not None: 64 aon_size = os.path.getsize(args.aon) 71 if args.aon is not None: 83 if args.aon is not None: 89 with open(args.kernel, 'rb') as in_file: 94 if args.aon is not None: 96 with open(args.aon, 'rb') as in_file:
|
/Zephyr-latest/boards/microchip/mec172xevb_assy6906/support/ |
D | mec172x_remote_flasher.py | 116 args = parse_args() 119 if not args.remote_tmp: 120 if args.remote_is_win: 128 if args.remote_is_linux: 131 if args.remote_is_win: 132 remote_tmp = pathlib.PureWindowsPath(args.remote_tmp) 133 elif args.remote_is_linux: 134 remote_tmp = pathlib.PurePosixPath(args.remote_tmp) 137 spi_file_path = pathlib.Path(args.build_dir) 154 ssh = fabric.Connection(args.remote_host, forward_agent=True)
|
/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 …]
|