/linux/sound/firewire/motu/ |
H A D | motu-command-dsp-message-parser.c | 3 // motu-command-dsp-message-parser.c - a part of driver for MOTU FireWire series 38 struct msg_parser *parser; in snd_motu_command_dsp_message_parser_new() local 40 parser = devm_kzalloc(&motu->card->card_dev, sizeof(*parser), GFP_KERNEL); in snd_motu_command_dsp_message_parser_new() 41 if (!parser) in snd_motu_command_dsp_message_parser_new() 43 spin_lock_init(&parser->lock); in snd_motu_command_dsp_message_parser_new() 44 motu->message_parser = parser; in snd_motu_command_dsp_message_parser_new() 51 struct msg_parser *parser = motu->message_parser; in snd_motu_command_dsp_message_parser_init() local 53 parser->state = INITIALIZED; in snd_motu_command_dsp_message_parser_init() 59 parser->interval = 4; in snd_motu_command_dsp_message_parser_init() 63 parser->interval = 2; in snd_motu_command_dsp_message_parser_init() [all …]
|
H A D | motu-register-dsp-message-parser.c | 3 // motu-register-dsp-message-parser.c - a part of driver for MOTU FireWire series 103 struct msg_parser *parser; in snd_motu_register_dsp_message_parser_new() local 104 parser = devm_kzalloc(&motu->card->card_dev, sizeof(*parser), GFP_KERNEL); in snd_motu_register_dsp_message_parser_new() 105 if (!parser) in snd_motu_register_dsp_message_parser_new() 107 spin_lock_init(&parser->lock); in snd_motu_register_dsp_message_parser_new() 109 parser->meter_pos_quirk = true; in snd_motu_register_dsp_message_parser_new() 110 motu->message_parser = parser; in snd_motu_register_dsp_message_parser_new() 116 struct msg_parser *parser = motu->message_parser; in snd_motu_register_dsp_message_parser_init() local 118 parser->prev_mixer_src_type = INVALID; in snd_motu_register_dsp_message_parser_init() 119 parser->mixer_ch = 0xff; in snd_motu_register_dsp_message_parser_init() [all …]
|
/linux/drivers/hid/ |
H A D | hid-core.c | 151 static int open_collection(struct hid_parser *parser, unsigned type) in open_collection() argument 157 usage = parser->local.usage[0]; in open_collection() 159 if (parser->collection_stack_ptr == parser->collection_stack_size) { in open_collection() 161 unsigned int new_size = parser->collection_stack_size + in open_collection() 164 collection_stack = krealloc(parser->collection_stack, in open_collection() 170 parser->collection_stack = collection_stack; in open_collection() 171 parser->collection_stack_size = new_size; in open_collection() 174 if (parser->device->maxcollection == parser->device->collection_size) { in open_collection() 177 parser->device->collection_size, in open_collection() 181 hid_err(parser->device, "failed to reallocate collection array\n"); in open_collection() [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/drivers/of/ |
H A D | address.c | 265 struct of_range_parser parser; in of_range_to_resource() local 268 ret = of_range_parser_init(&parser, np); in of_range_to_resource() 272 for_each_of_range(&parser, &range) in of_range_to_resource() 757 static int parser_init(struct of_pci_range_parser *parser, in parser_init() argument 762 parser->node = node; in parser_init() 763 parser->pna = of_n_addr_cells(node); in parser_init() 764 parser->na = of_bus_n_addr_cells(node); in parser_init() 765 parser->ns = of_bus_n_size_cells(node); in parser_init() 766 parser->dma = !strcmp(name, "dma-ranges"); in parser_init() 767 parser->bus = of_match_bus(node); in parser_init() [all …]
|
/linux/tools/net/ynl/pyynl/ |
H A D | cli.py | 52 parser = argparse.ArgumentParser(description=description, 54 spec_group = parser.add_mutually_exclusive_group(required=True) 62 parser.add_argument('--schema', dest='schema', type=str) 63 parser.add_argument('--no-schema', action='store_true') 64 parser.add_argument('--json', dest='json_text', type=str) 66 group = parser.add_mutually_exclusive_group() 74 parser.add_argument('--duration', dest='duration', type=int, 76 parser.add_argument('--sleep', dest='duration', type=int, 78 parser.add_argument('--subscribe', dest='ntf', type=str) 79 parser.add_argument('--replace', dest='flags', action='append_const', [all …]
|
H A D | ethtool.py | 127 parser = argparse.ArgumentParser(description='ethtool wannabe') 128 parser.add_argument('--json', action=argparse.BooleanOptionalAction) 129 parser.add_argument('--show-priv-flags', action=argparse.BooleanOptionalAction) 130 parser.add_argument('--set-priv-flags', action=argparse.BooleanOptionalAction) 131 parser.add_argument('--show-eee', action=argparse.BooleanOptionalAction) 132 parser.add_argument('--set-eee', action=argparse.BooleanOptionalAction) 133 parser.add_argument('-a', '--show-pause', action=argparse.BooleanOptionalAction) 134 parser.add_argument('-A', '--set-pause', action=argparse.BooleanOptionalAction) 135 parser.add_argument('-c', '--show-coalesce', action=argparse.BooleanOptionalAction) 136 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/ |
H A D | mtdpart.c | 520 static int mtd_part_do_parse(struct mtd_part_parser *parser, in mtd_part_do_parse() argument 527 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse() 528 pr_debug("%s: parser %s: %i\n", master->name, parser->name, ret); in mtd_part_do_parse() 533 parser->name, master->name); in mtd_part_do_parse() 536 pparts->parser = parser; in mtd_part_do_parse() 542 * mtd_part_get_compatible_parser - find MTD parser by a compatible string 547 * compatibility strings. This function finds a parser that advertises support 583 struct mtd_part_parser *parser; in mtd_part_of_parse() local 613 parser = mtd_part_get_compatible_parser(compat); in mtd_part_of_parse() 614 if (!parser) in mtd_part_of_parse() [all …]
|
/linux/Documentation/userspace-api/media/ |
H A D | Makefile | 6 PARSER = $(srctree)/Documentation/sphinx/parse-headers.pl macro 16 echo ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions; \ 17 ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions 20 ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions 24 $(BUILDDIR)/ca.h.rst: ${UAPI}/dvb/ca.h ${PARSER} $(SRC_DIR)/ca.h.rst.exceptions 27 $(BUILDDIR)/dmx.h.rst: ${UAPI}/dvb/dmx.h ${PARSER} $(SRC_DIR)/dmx.h.rst.exceptions 30 $(BUILDDIR)/frontend.h.rst: ${UAPI}/dvb/frontend.h ${PARSER} $(SRC_DIR)/frontend.h.rst.exceptions 33 $(BUILDDIR)/net.h.rst: ${UAPI}/dvb/net.h ${PARSER} $(SRC_DIR)/net.h.rst.exceptions 36 $(BUILDDIR)/videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} $(SRC_DIR)/videodev2.h.rst.exceptions 39 $(BUILDDIR)/media.h.rst: ${UAPI}/media.h ${PARSER} $(SRC_DIR)/media.h.rst.exceptions [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 | kernel-doc | 175 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, 180 parser.add_argument("-v", "-verbose", "--verbose", action="store_true", 183 parser.add_argument("-d", "-debug", "--debug", action="store_true", 186 parser.add_argument("-M", "-modulename", "--modulename", 190 parser.add_argument("-l", "-enable-lineno", "--enable_lineno", 196 parser.add_argument("-Wreturn", "--wreturn", action="store_true", 199 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc", 203 parser.add_argument("-Wcontents-before-sections", 207 parser.add_argument("-Wall", "--wall", action="store_true", 210 parser [all...] |
H A D | kernel-doc.py | 175 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, 180 parser.add_argument("-v", "-verbose", "--verbose", action="store_true", 183 parser.add_argument("-d", "-debug", "--debug", action="store_true", 186 parser.add_argument("-M", "-modulename", "--modulename", 190 parser.add_argument("-l", "-enable-lineno", "--enable_lineno", 196 parser.add_argument("-Wreturn", "--wreturn", action="store_true", 199 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc", 203 parser.add_argument("-Wcontents-before-sections", 207 parser.add_argument("-Wall", "--wall", action="store_true", 210 parser [all...] |
H A D | generate_rust_analyzer.py | 179 parser = argparse.ArgumentParser() 180 parser.add_argument('--verbose', '-v', action='store_true') 181 parser.add_argument('--cfgs', action='append', default=[]) 182 parser.add_argument("core_edition") 183 parser.add_argument("srctree", type=pathlib.Path) 184 parser.add_argument("objtree", type=pathlib.Path) 185 parser.add_argument("sysroot", type=pathlib.Path) 186 parser.add_argument("sysroot_src", type=pathlib.Path) 187 parser.add_argument("exttree", type=pathlib.Path, nargs="?") 188 args = parser.parse_args()
|
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/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/drivers/gpu/drm/msm/registers/ |
H A D | gen_header.py | 52 def __init__(self, name, low, high, shr, type, parser): argument 61 maxpos = parser.current_bitsize - 1 64 raise parser.error("low attribute out of range: %d" % low) 66 raise parser.error("high attribute out of range: %d" % high) 68 raise parser.error("low is greater than high: low=%d, high=%d" % (low, high)) 70 raise parser.error("booleans should be 1 bit fields") 72 raise parser.error("floats should be 16 or 32 bit fields") 73 elif not self.type in builtin_types and not self.type in parser.enums: 74 raise parser.error("unknown type '%s'" % self.type) 424 class Parser(object): class [all …]
|
/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/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
|