Home
last modified time | relevance | path

Searched full:parser (Results 1 – 25 of 517) sorted by relevance

12345678910>>...21

/linux/sound/firewire/motu/
H A Dmotu-register-dsp-message-parser.c3 // 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/tools/docs/
H A Dget_abi.py45 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 Dget_feat.py48 """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 Dparse-headers.py37 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/drivers/gpu/drm/radeon/
H A Dradeon_cs.c408 * radeon_cs_parser_fini() - clean parser states
409 * @parser: parser structure holding parsing context.
415 static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error) in radeon_cs_parser_fini() argument
432 list_sort(NULL, &parser->validated, cmp_size_smaller_first); in radeon_cs_parser_fini()
433 list_for_each_entry(reloc, &parser->validated, list) { in radeon_cs_parser_fini()
435 &parser->ib.fence->base, in radeon_cs_parser_fini()
442 drm_exec_fini(&parser->exec); in radeon_cs_parser_fini()
444 if (parser->relocs != NULL) { in radeon_cs_parser_fini()
445 for (i = 0; i < parser->nrelocs; i++) { in radeon_cs_parser_fini()
446 struct radeon_bo *bo = parser->relocs[i].robj; in radeon_cs_parser_fini()
[all …]
/linux/drivers/hid/
H A Dhid-core.c154 static int open_collection(struct hid_parser *parser, unsigned type) in open_collection() argument
160 usage = parser->local.usage[0]; in open_collection()
162 if (parser->collection_stack_ptr == parser->collection_stack_size) { in open_collection()
164 unsigned int new_size = parser->collection_stack_size + in open_collection()
167 collection_stack = krealloc(parser->collection_stack, in open_collection()
173 parser->collection_stack = collection_stack; in open_collection()
174 parser->collection_stack_size = new_size; in open_collection()
177 if (parser->device->maxcollection == parser->device->collection_size) { in open_collection()
180 parser->device->collection_size, in open_collection()
184 hid_err(parser->device, "failed to reallocate collection array\n"); in open_collection()
[all …]
/linux/Documentation/networking/
H A Dstrparser.rst4 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 Ddemangle-rust-v0.c102 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 Daddress.c265 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()
753 static int parser_init(struct of_pci_range_parser *parser, in parser_init() argument
758 parser->node = node; in parser_init()
759 parser->pna = of_n_addr_cells(node); in parser_init()
760 parser->na = of_bus_n_addr_cells(node); in parser_init()
761 parser->ns = of_bus_n_size_cells(node); in parser_init()
762 parser->dma = !strcmp(name, "dma-ranges"); in parser_init()
763 parser->bus = of_match_bus(node); in parser_init()
[all …]
/linux/tools/net/ynl/pyynl/
H A Dcli.py191 parser = argparse.ArgumentParser(description=description,
194 gen_group = parser.add_argument_group('General options')
198 spec_group = parser.add_argument_group('Netlink family selection')
209 ops_group = parser.add_argument_group('Operations')
225 io_group = parser.add_argument_group('Input / Output')
233 ntf_group = parser.add_argument_group('Notifications')
240 nlflags = parser.add_argument_group('Netlink message flags (NLM_F_*)',
253 schema_group = parser.add_argument_group('Development options')
258 dbg_group = parser.add_argument_group('Debug options')
266 args = parser
[all...]
H A Dethtool.py
/linux/tools/testing/selftests/tc-testing/
H A Dtdc_multibatch.py13 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 Dtdc_batch.py11 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 Dtdc.py96 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
684 set_args(parser) global() argument
915 set_operation_mode(pm, parser, args, remaining) global() argument
[all...]
/linux/drivers/mtd/parsers/
H A DKconfig3 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 Dspdxcheck.py105 # 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 Dkernel-doc200 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter,
206 parser.add_argument("-v", "-verbose", "--verbose", action="store_true",
209 parser.add_argument("-d", "-debug", "--debug", action="store_true",
212 parser.add_argument("-M", "-modulename", "--modulename",
215 parser.add_argument("-l", "-enable-lineno", "--enable_lineno",
222 parser.add_argument("-Wreturn", "--wreturn", action="store_true",
225 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc",
229 parser.add_argument("-Wcontents-before-sections",
233 parser.add_argument("-Wall", "--wall", action="store_true",
236 parser
[all...]
H A Dkernel-doc.py
H A Dcontainer160 parser = argparse.ArgumentParser( variable
165 parser.add_argument(
169 parser.add_argument(
173 parser.add_argument(
177 parser.add_argument(
182 parser.add_argument(
186 parser.add_argument(
191 parser.add_argument(
195 parser.add_argument(
199 sys.exit(main(parser.parse_args(sys.argv[1:])))
H A Dbpf_doc.py373 @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 …]
/linux/crypto/asymmetric_keys/
H A Dasymmetric_type.c10 #include <keys/asymmetric-parser.h>
401 struct asymmetric_key_parser *parser; in asymmetric_key_preparse() local
412 list_for_each_entry(parser, &asymmetric_key_parsers, link) { in asymmetric_key_preparse()
413 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse()
415 ret = parser->parse(prep); in asymmetric_key_preparse()
417 pr_debug("Parser recognised the format (ret %d)\n", in asymmetric_key_preparse()
624 * register_asymmetric_key_parser - Register a asymmetric key blob parser
625 * @parser: The parser to register
627 int register_asymmetric_key_parser(struct asymmetric_key_parser *parser) in register_asymmetric_key_parser() argument
635 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser()
[all …]
/linux/tools/perf/pmu-events/
H A Darm64_metrics.py23 parser = argparse.ArgumentParser(description="ARM perf json generator")
24 parser.add_argument(
26 parser.add_argument("vendor", help="e.g. arm")
27 parser.add_argument("model", help="e.g. neoverse-n1")
28 parser.add_argument(
33 _args = parser.parse_args()
/linux/tools/crypto/ccp/
H A Ddbc_cli.py41 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 Diocost_coef_gen.py32 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 Dpartitions.h26 * 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);

12345678910>>...21