| /linux/tools/docs/ |
| H A D | get_abi.py | 45 parser = subparsers.add_parser("rest", 49 parser.add_argument("--enable-lineno", action="store_true", 51 parser.add_argument("--raw", action="store_true", 55 parser.add_argument("--no-file", action="store_true", 57 parser.add_argument("--show-hints", help="Show-hints") 59 parser.set_defaults(func=self.run) 64 parser = AbiParser(args.dir, debug=args.debug) 65 parser.parse_abi() 66 parser.check_issues() 68 for t in parser.doc(args.raw, not args.no_file): [all …]
|
| H A D | get_feat.py | 48 """Execute the feature parser""" 105 def parse_arch(self, parser): argument 108 parser.add_argument("--arch", 113 def parse_feat(self, parser): argument 116 parser.add_argument("--feat", "--feature", 124 parser = subparsers.add_parser("current", 131 self.parse_feat(parser) 132 parser.set_defaults(func=self.run_current) 137 parser = subparsers.add_parser("rest", 147 self.parse_arch(parser) [all …]
|
| H A D | parse-headers.py | 37 parser = argparse.ArgumentParser(description=__doc__, 40 parser.add_argument("-d", "--debug", action="count", default=0, 42 parser.add_argument("-t", "--toc", action="store_true", 45 parser.add_argument("file_in", help="Input C file") 46 parser.add_argument("file_out", help="Output RST file") 47 parser.add_argument("file_rules", nargs="?", 50 args = parser.parse_args() 52 parser = ParseDataStructs(debug=args.debug) 53 parser.parse_file(args.file_in, args.file_rules) 55 parser.debug_print() [all …]
|
| /linux/Documentation/networking/ |
| H A D | strparser.rst | 4 Stream Parser (strparser) 10 The stream parser (strparser) is a utility that parses messages of an 12 parser works in conjunction with an upper layer in the kernel to provide 14 Connection Multiplexor (KCM) uses the Stream Parser to parse messages 46 Called to initialize a stream parser. strp is a struct of type 48 socket associated with the stream parser for use with receive 50 are called by the stream parser (the callbacks are listed below). 56 Temporarily pause a stream parser. Message parsing is suspended 63 Unpause a paused stream parser. 69 strp_stop is called to completely stop stream parser operations. [all …]
|
| /linux/tools/perf/util/ |
| H A D | demangle-rust-v0.c | 102 struct parser { struct 103 // the parser assumes that `sym` has a safe "terminating byte". It might be NUL, 112 demangle_status status; // if status == 0 parser is valid argument 113 struct parser parser; member 124 static NODISCARD demangle_status try_parse_path(struct parser *parser) { in try_parse_path() argument 127 *parser, in try_parse_path() 135 *parser = printer.parser; in try_parse_path() 172 struct parser parser = { inner, inner_len, 0, 0 }; in rust_demangle_v0_demangle() local 174 demangle_status status = try_parse_path(&parser); in rust_demangle_v0_demangle() 176 char next = parser.sym[parser.next]; in rust_demangle_v0_demangle() [all …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | cli.py | 107 parser = argparse.ArgumentParser(description=description, 109 spec_group = parser.add_mutually_exclusive_group(required=True) 117 parser.add_argument('--schema', dest='schema', type=str) 118 parser.add_argument('--no-schema', action='store_true') 119 parser.add_argument('--json', dest='json_text', type=str) 121 group = parser.add_mutually_exclusive_group() 132 parser.add_argument('--duration', dest='duration', type=int, 134 parser.add_argument('--sleep', dest='duration', type=int, 136 parser.add_argument('--subscribe', dest='ntf', type=str) 137 parser [all...] |
| H A D | ethtool.py | 129 parser = argparse.ArgumentParser(description='ethtool wannabe') 130 parser.add_argument('--json', action=argparse.BooleanOptionalAction) 131 parser.add_argument('--show-priv-flags', action=argparse.BooleanOptionalAction) 132 parser.add_argument('--set-priv-flags', action=argparse.BooleanOptionalAction) 133 parser.add_argument('--show-eee', action=argparse.BooleanOptionalAction) 134 parser.add_argument('--set-eee', action=argparse.BooleanOptionalAction) 135 parser.add_argument('-a', '--show-pause', action=argparse.BooleanOptionalAction) 136 parser.add_argument('-A', '--set-pause', action=argparse.BooleanOptionalAction) 137 parser.add_argument('-c', '--show-coalesce', action=argparse.BooleanOptionalAction) 138 parser.add_argument('-C', '--set-coalesce', action=argparse.BooleanOptionalAction) [all …]
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | tdc_multibatch.py | 13 parser = argparse.ArgumentParser( variable 15 parser.add_argument("device", help="device name") 16 parser.add_argument("dir", help="where to put batch files") 17 parser.add_argument( 19 parser.add_argument("num_files", type=int, help="how many batch files") 20 parser.add_argument( 24 parser.add_argument( 29 parser.add_argument( 34 parser.add_argument( 40 parser.add_argument( [all …]
|
| H A D | tdc_batch.py | 11 parser = argparse.ArgumentParser(description='TC batch file generator') variable 12 parser.add_argument("device", help="device name") 13 parser.add_argument("file", help="batch file name") 14 parser.add_argument("-n", "--number", type=int, 16 parser.add_argument( 22 parser.add_argument("-o", "--skip_sw", 25 parser.add_argument("-s", "--share_action", 28 parser.add_argument("-p", "--prio", 31 parser.add_argument( 38 parser.add_argument( [all …]
|
| H A D | tdc.py | 96 def load_required_plugins(self, reqs, parser, args, remaining): argument 125 parser = self.call_add_args(parser) 126 (args, remaining) = parser.parse_known_args(args=remaining, namespace=args) 167 def call_add_args(self, parser): argument 169 parser = pgn_inst.add_args(parser) 170 return parser 677 Create the argument parser. 679 parser = argparse.ArgumentParser(description='Linux TC unit tests') 680 parser.register('type', None, identity) 681 return parser [all …]
|
| /linux/drivers/mtd/parsers/ |
| H A D | Kconfig | 3 tristate "BCM47XX partitioning parser" 6 This provides partitions parser for devices based on BCM47xx 10 bool "BCM63XX CFE partitioning parser" 19 tristate "Broadcom's U-Boot partition parser" 66 tristate "OpenFirmware (device tree) partitioning parser" 70 This provides a open firmware device tree partition parser 80 This provides partitions parser for BCM4908 family devices 89 This provides partitions parser for Linksys devices based on Broadcom 95 tristate "Parser for BCM963XX Image Tag format partitions" 122 tristate "TP-Link Safeloader partitions parser" [all …]
|
| /linux/scripts/ |
| H A D | spdxcheck.py | 105 # Initialize the parser. No debug file and no parser rules stored on disk 107 self.parser = yacc.yacc(module = self, write_tables = False, debug = False) 195 self.parser.parse(expr, lexer = self.lexer) 299 parser.set_dirinfo(basedir, dirdepth) 304 parser.excluded += 1 307 parser.parse_lines(fd, args.maxlines, el.path) 358 # Initialize the parser 359 parser = id_parser(spdx) variable 385 parser.parse_lines(stdin, args.maxlines, '-') 390 parser.parse_lines(open(p, 'rb'), args.maxlines, p) [all …]
|
| H A D | kernel-doc | 181 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, 186 parser.add_argument("-v", "-verbose", "--verbose", action="store_true", 189 parser.add_argument("-d", "-debug", "--debug", action="store_true", 192 parser.add_argument("-M", "-modulename", "--modulename", 196 parser.add_argument("-l", "-enable-lineno", "--enable_lineno", 202 parser.add_argument("-Wreturn", "--wreturn", action="store_true", 205 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc", 209 parser.add_argument("-Wcontents-before-sections", 213 parser.add_argument("-Wall", "--wall", action="store_true", 216 parser [all...] |
| H A D | kernel-doc.py | 181 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, 186 parser.add_argument("-v", "-verbose", "--verbose", action="store_true", 189 parser.add_argument("-d", "-debug", "--debug", action="store_true", 192 parser.add_argument("-M", "-modulename", "--modulename", 196 parser.add_argument("-l", "-enable-lineno", "--enable_lineno", 202 parser.add_argument("-Wreturn", "--wreturn", action="store_true", 205 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc", 209 parser.add_argument("-Wcontents-before-sections", 213 parser.add_argument("-Wall", "--wall", action="store_true", 216 parser.add_argument("-Werror", "--werror", action="store_true", [all …]
|
| H A D | generate_rust_analyzer.py | 200 parser = argparse.ArgumentParser() 201 parser.add_argument('--verbose', '-v', action='store_true') 202 parser.add_argument('--cfgs', action='append', default=[]) 203 parser.add_argument("core_edition") 204 parser.add_argument("srctree", type=pathlib.Path) 205 parser.add_argument("objtree", type=pathlib.Path) 206 parser.add_argument("sysroot", type=pathlib.Path) 207 parser.add_argument("sysroot_src", type=pathlib.Path) 208 parser.add_argument("exttree", type=pathlib.Path, nargs="?") 209 args = parser.parse_args()
|
| H A D | bpf_doc.py | 373 @parser: A HeaderParser with objects to print to standard output 375 def __init__(self, parser): argument 376 self.parser = parser 419 @parser: A HeaderParser with objects to print to standard output 421 def __init__(self, parser): argument 422 self.parser = parser 483 @parser: A HeaderParser with Helper objects to print to standard output 485 def __init__(self, parser): argument 486 self.elements = parser.helpers 487 …self.elem_number_check(parser.desc_unique_helpers, parser.define_unique_helpers, 'helper', '___BPF… [all …]
|
| H A D | make_fit.py | 67 parser = argparse.ArgumentParser(epilog=epilog, fromfile_prefix_chars='@') 68 parser.add_argument('-A', '--arch', type=str, required=True, 70 parser.add_argument('-c', '--compress', type=str, default='none', 72 parser.add_argument('-D', '--decompose-dtbs', action='store_true', 74 parser.add_argument('-E', '--external', action='store_true', 76 parser.add_argument('-n', '--name', type=str, required=True, 78 parser.add_argument('-o', '--output', type=str, required=True, 80 parser.add_argument('-O', '--os', type=str, required=True, 82 parser.add_argument('-k', '--kernel', type=str, required=True, 84 parser [all...] |
| /linux/crypto/asymmetric_keys/ |
| H A D | asymmetric_type.c | 10 #include <keys/asymmetric-parser.h> 400 struct asymmetric_key_parser *parser; in asymmetric_key_preparse() local 411 list_for_each_entry(parser, &asymmetric_key_parsers, link) { in asymmetric_key_preparse() 412 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse() 414 ret = parser->parse(prep); in asymmetric_key_preparse() 416 pr_debug("Parser recognised the format (ret %d)\n", in asymmetric_key_preparse() 623 * register_asymmetric_key_parser - Register a asymmetric key blob parser 624 * @parser: The parser to register 626 int register_asymmetric_key_parser(struct asymmetric_key_parser *parser) in register_asymmetric_key_parser() argument 634 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser() [all …]
|
| /linux/tools/crypto/ccp/ |
| H A D | dbc_cli.py | 41 parser = argparse.ArgumentParser( 44 parser.add_argument( 49 parser.add_argument("--device", default="/dev/dbc", help="Device to operate") 50 parser.add_argument("--signature", help="File containing signature for command") 51 parser.add_argument("--message", choices=messages.keys(), help="Message index") 52 parser.add_argument("--data", help="Argument to pass to message") 53 parser.add_argument("--uid", help="File containing UID to pass") 54 return parser.parse_args()
|
| /linux/tools/cgroup/ |
| H A D | iocost_coef_gen.py | 32 parser = argparse.ArgumentParser(description=desc, variable 34 parser.add_argument('--testdev', metavar='DEV', 36 parser.add_argument('--testfile-size-gb', type=float, metavar='GIGABYTES', default=16, 38 parser.add_argument('--duration', type=int, metavar='SECONDS', default=120, 40 parser.add_argument('--seqio-block-mb', metavar='MEGABYTES', type=int, default=128, 42 parser.add_argument('--seq-depth', type=int, metavar='DEPTH', default=64, 44 parser.add_argument('--rand-depth', type=int, metavar='DEPTH', default=64, 46 parser.add_argument('--numjobs', type=int, metavar='JOBS', default=1, 48 parser.add_argument('--quiet', action='store_true') 49 parser.add_argument('--verbose', action='store_true') [all …]
|
| /linux/include/linux/mtd/ |
| H A D | partitions.h | 26 * extra parser is needed that will detect these dynamic partitions and 28 * of parser names to use when looking for subpartitions. 92 const struct mtd_part_parser *parser; member 95 extern int __register_mtd_parser(struct mtd_part_parser *parser, 97 #define register_mtd_parser(parser) __register_mtd_parser(parser, THIS_MODULE) argument 99 extern void deregister_mtd_parser(struct mtd_part_parser *parser);
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_synctypes.py | 25 A parser for extracting set of values from blocks such as enums. 61 A parser for extracting a set of values from some BPF-related arrays. 96 A parser for extracting set of values from inline lists. 118 several helper methods that wrap around parser objects to extract values 128 Close the file used by the parser. 134 Reset the file position indicator for this parser. This is useful when 183 parser = BlockParser(self.reader) 184 parser.search_block(start_marker) 185 return parser.parse(pattern, end_marker) 209 parser = InlineListParser(self.reader) [all …]
|
| /linux/drivers/gpu/drm/msm/registers/ |
| H A D | gen_header.py | 51 def __init__(self, name, low, high, shr, type, parser): argument 60 maxpos = parser.current_bitsize - 1 63 raise parser.error("low attribute out of range: %d" % low) 65 raise parser.error("high attribute out of range: %d" % high) 67 raise parser.error("low is greater than high: low=%d, high=%d" % (low, high)) 69 raise parser.error("booleans should be 1 bit fields") 71 raise parser.error("floats should be 16 or 32 bit fields") 72 elif self.type not in builtin_types and self.type not in parser.enums: 73 raise parser.error("unknown type '%s'" % self.type) 459 class Parser(object): class [all …]
|
| /linux/scripts/clang-tools/ |
| H A D | run-clang-tools.py | 27 parser = argparse.ArgumentParser(description=usage) 30 parser.add_argument("type", 34 parser.add_argument("path", type=str, help=path_help) 37 parser.add_argument("-checks", type=str, default=None, help=checks_help) 39 parser.add_argument("-header-filter", type=str, default=None, help=header_filter_help) 41 return parser.parse_args()
|
| /linux/drivers/acpi/acpica/ |
| H A D | acdispat.h | 4 * Name: acdispat.h - dispatcher (parser to interpreter interface) 69 * dsexec - Parser/Interpreter interface, method execution callbacks 82 * dsfield - Parser/Interpreter interface for AML fields 108 * dsload - Parser/Interpreter interface 168 * dsmethod - Parser/Interpreter interface - control method parsing 203 * dsobject - Parser/Interpreter interface - object initialization and conversion 241 * dsutils - Parser/Interpreter interface utility routines 286 * dswstate - parser WALK_STATE management routines 337 * dsdebug - parser debugging routines
|