Home
last modified time | relevance | path

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

12345678910>>...25

/linux/sound/firewire/motu/
H A Dmotu-command-dsp-message-parser.c3 // 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 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/drivers/gpu/drm/radeon/
H A Dradeon_cs.c412 * radeon_cs_parser_fini() - clean parser states
413 * @parser: parser structure holding parsing context.
420 static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error, bool backoff) in radeon_cs_parser_fini() argument
435 list_sort(NULL, &parser->validated, cmp_size_smaller_first); in radeon_cs_parser_fini()
437 ttm_eu_fence_buffer_objects(&parser->ticket, in radeon_cs_parser_fini()
438 &parser->validated, in radeon_cs_parser_fini()
439 &parser->ib.fence->base); in radeon_cs_parser_fini()
441 ttm_eu_backoff_reservation(&parser->ticket, in radeon_cs_parser_fini()
442 &parser->validated); in radeon_cs_parser_fini()
445 if (parser->relocs != NULL) { in radeon_cs_parser_fini()
[all …]
/linux/drivers/hid/
H A Dhid-core.c119 static int open_collection(struct hid_parser *parser, unsigned type) in open_collection() argument
125 usage = parser->local.usage[0]; in open_collection()
127 if (parser->collection_stack_ptr == parser->collection_stack_size) { in open_collection()
129 unsigned int new_size = parser->collection_stack_size + in open_collection()
132 collection_stack = krealloc(parser->collection_stack, in open_collection()
138 parser->collection_stack = collection_stack; in open_collection()
139 parser->collection_stack_size = new_size; in open_collection()
142 if (parser->device->maxcollection == parser->device->collection_size) { in open_collection()
145 parser->device->collection_size, in open_collection()
149 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/include/linux/
H A Dof_address.h34 #define for_each_of_pci_range(parser, range) \ argument
35 for (; of_pci_range_parser_one(parser, range);)
40 * @parser: Parser state initialized by of_range_parser_init()
47 static inline int of_range_count(const struct of_range_parser *parser) in of_range_count() argument
49 if (!parser || !parser->node || !parser->range || parser->range == parser->end) in of_range_count()
51 return (parser->end - parser->range) / (parser->na + parser->pna + parser->ns); in of_range_count()
77 extern int of_pci_range_parser_init(struct of_pci_range_parser *parser,
79 extern int of_pci_dma_range_parser_init(struct of_pci_range_parser *parser,
82 struct of_pci_range_parser *parser,
116 static inline int of_pci_range_parser_init(struct of_pci_range_parser *parser, in of_pci_range_parser_init() argument
[all …]
/linux/tools/net/ynl/
H A Dcli.py31 parser = argparse.ArgumentParser(description=description,
33 parser.add_argument('--spec', dest='spec', type=str, required=True)
34 parser.add_argument('--schema', dest='schema', type=str)
35 parser.add_argument('--no-schema', action='store_true')
36 parser.add_argument('--json', dest='json_text', type=str)
38 group = parser.add_mutually_exclusive_group()
46 parser.add_argument('--sleep', dest='sleep', type=int)
47 parser.add_argument('--subscribe', dest='ntf', type=str)
48 parser.add_argument('--replace', dest='flags', action='append_const',
50 parser.add_argument('--excl', dest='flags', action='append_const',
[all …]
H A Dethtool.py124 parser = argparse.ArgumentParser(description='ethtool wannabe')
125 parser.add_argument('--json', action=argparse.BooleanOptionalAction)
126 parser.add_argument('--show-priv-flags', action=argparse.BooleanOptionalAction)
127 parser.add_argument('--set-priv-flags', action=argparse.BooleanOptionalAction)
128 parser.add_argument('--show-eee', action=argparse.BooleanOptionalAction)
129 parser.add_argument('--set-eee', action=argparse.BooleanOptionalAction)
130 parser.add_argument('-a', '--show-pause', action=argparse.BooleanOptionalAction)
131 parser.add_argument('-A', '--set-pause', action=argparse.BooleanOptionalAction)
132 parser.add_argument('-c', '--show-coalesce', action=argparse.BooleanOptionalAction)
133 parser.add_argument('-C', '--set-coalesce', action=argparse.BooleanOptionalAction)
[all …]
/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 = argparse.ArgumentParser(description='Linux TC unit tests')
680 parser.register('type', None, identity)
681 return parser
[all …]
/linux/drivers/of/
H A Daddress.c279 struct of_range_parser parser; in of_range_to_resource() local
282 ret = of_range_parser_init(&parser, np); in of_range_to_resource()
286 for_each_of_range(&parser, &range) in of_range_to_resource()
754 static int parser_init(struct of_pci_range_parser *parser, in parser_init() argument
759 parser->node = node; in parser_init()
760 parser->pna = of_n_addr_cells(node); in parser_init()
761 parser->na = of_bus_n_addr_cells(node); in parser_init()
762 parser->ns = of_bus_n_size_cells(node); in parser_init()
763 parser->dma = !strcmp(name, "dma-ranges"); in parser_init()
764 parser->bus = of_match_bus(node); in parser_init()
[all …]
/linux/drivers/mtd/
H A Dmtdpart.c520 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 DMakefile6 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 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)
293 parser.set_dirinfo(basedir, dirdepth)
298 parser.excluded += 1
301 parser.parse_lines(fd, args.maxlines, el.path)
352 # Initialize the parser
353 parser = id_parser(spdx) variable
379 parser
[all...]
H A Dgenerate_rust_analyzer.py143 parser = argparse.ArgumentParser()
144 parser.add_argument('--verbose', '-v', action='store_true')
145 parser.add_argument('--cfgs', action='append', default=[])
146 parser.add_argument("srctree", type=pathlib.Path)
147 parser.add_argument("objtree", type=pathlib.Path)
148 parser.add_argument("sysroot", type=pathlib.Path)
149 parser.add_argument("sysroot_src", type=pathlib.Path)
150 parser.add_argument("exttree", type=pathlib.Path, nargs="?")
151 args = parser.parse_args()
/linux/tools/testing/kunit/
H A Dkunit.py308 def add_common_opts(parser: argparse.ArgumentParser) -> None:
309 parser.add_argument('--build_dir',
313 parser.add_argument('--make_options',
316 parser.add_argument('--alltests',
319 parser.add_argument('--kunitconfig',
325 parser.add_argument('--kconfig_add',
330 parser.add_argument('--arch',
338 parser.add_argument('--cross_compile',
350 parser.add_argument('--qemu_config',
355 parser.add_argument('--qemu_args',
[all …]
/linux/crypto/asymmetric_keys/
H A Dasymmetric_type.c10 #include <keys/asymmetric-parser.h>
404 struct asymmetric_key_parser *parser; in asymmetric_key_preparse() local
415 list_for_each_entry(parser, &asymmetric_key_parsers, link) { in asymmetric_key_preparse()
416 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse()
418 ret = parser->parse(prep); in asymmetric_key_preparse()
420 pr_debug("Parser recognised the format (ret %d)\n", in asymmetric_key_preparse()
627 * register_asymmetric_key_parser - Register a asymmetric key blob parser
628 * @parser: The parser to register
630 int register_asymmetric_key_parser(struct asymmetric_key_parser *parser) in register_asymmetric_key_parser() argument
638 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser()
[all …]
/linux/tools/perf/tests/
H A Dattr.py155 parser = configparser.ConfigParser()
156 parser.read(path)
163 self.command = parser.get('config', 'command')
164 self.args = parser.get('config', 'args')
167 self.ret = parser.get('config', 'ret')
171 self.test_ret = parser.getboolean('config', 'test_ret', fallback=False)
174 self.arch = parser.get('config', 'arch')
179 self.auxv = parser.get('config', 'auxv', fallback=None)
180 self.kernel_since = parse_version(parser.get('config', 'kernel_since', fallback=None))
181 self.kernel_until = parse_version(parser.get('config', 'kernel_until', fallback=None))
[all …]
/linux/tools/verification/dot2/
H A Ddot2k19 parser = argparse.ArgumentParser(description='transform .dot file into kernel rv monitor')
20 parser.add_argument('-d', "--dot", dest="dot_file", required=True)
21 parser.add_argument('-t', "--monitor_type", dest="monitor_type", required=True)
22 parser.add_argument('-n', "--model_name", dest="model_name", required=False)
23 parser.add_argument("-D", "--description", dest="description", required=False)
24 params = parser.parse_args()
/linux/sound/firewire/fireface/
H A Dff-protocol-former.c561 struct ff400_msg_parser *parser = ff->msg_parser; in ff400_has_msg() local
563 return (parser->push_pos != parser->pull_pos); in ff400_has_msg()
658 struct ff400_msg_parser *parser = ff->msg_parser; in ff400_handle_msg() local
660 parser->msgs[parser->push_pos].msg = quad; in ff400_handle_msg()
661 parser->msgs[parser->push_pos].tstamp = tstamp; in ff400_handle_msg()
662 ++parser->push_pos; in ff400_handle_msg()
663 if (parser->push_pos >= FF400_QUEUE_SIZE) in ff400_handle_msg()
664 parser->push_pos = 0; in ff400_handle_msg()
684 struct ff400_msg_parser *parser = ff->msg_parser; in ff400_copy_msg_to_user() local
688 if (count < sizeof(ev) || parser->pull_pos == parser->push_pos) in ff400_copy_msg_to_user()
[all …]
/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/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);
/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 …]

12345678910>>...25