Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 182) sorted by relevance

12345678

/linux-6.12.1/sound/firewire/motu/
Dmotu-command-dsp-message-parser.c38 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()
69 parser->interval = 1; in snd_motu_command_dsp_message_parser_init()
[all …]
Dmotu-register-dsp-message-parser.c103 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()
120 parser->mixer_src_ch = 0xff; in snd_motu_register_dsp_message_parser_init()
[all …]
/linux-6.12.1/drivers/hid/
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-6.12.1/drivers/gpu/drm/radeon/
Dradeon_cs.c420 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()
446 for (i = 0; i < parser->nrelocs; i++) { in radeon_cs_parser_fini()
447 struct radeon_bo *bo = parser->relocs[i].robj; in radeon_cs_parser_fini()
[all …]
/linux-6.12.1/include/linux/
Dof_address.h34 #define for_each_of_pci_range(parser, range) \ argument
35 for (; of_pci_range_parser_one(parser, range);)
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
122 static inline int of_pci_dma_range_parser_init(struct of_pci_range_parser *parser, in of_pci_dma_range_parser_init() argument
[all …]
/linux-6.12.1/tools/testing/selftests/tc-testing/
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 …]
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 …]
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
679 parser = argparse.ArgumentParser(description='Linux TC unit tests')
680 parser.register('type', None, identity)
681 return parser
684 def set_args(parser): argument
[all …]
/linux-6.12.1/drivers/of/
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-6.12.1/tools/net/ynl/
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 …]
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-6.12.1/drivers/mtd/
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()
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()
616 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
622 mtd_part_parser_put(parser); in mtd_part_of_parse()
[all …]
/linux-6.12.1/tools/testing/kunit/
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-6.12.1/sound/firewire/fireface/
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-6.12.1/scripts/
Dspdxcheck.py107 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)
353 parser = id_parser(spdx) variable
379 parser.parse_lines(stdin, args.maxlines, '-')
384 parser.parse_lines(open(p, 'rb'), args.maxlines, p)
395 ndirs = len(parser.spdx_dirs)
398 for di in parser.spdx_dirs.values():
[all …]
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()
Dmake_fit.py67 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.add_argument('-v', '--verbose', action='store_true',
[all …]
Dbpf_doc.py332 def __init__(self, parser): argument
333 self.parser = parser
378 def __init__(self, parser): argument
379 self.parser = parser
442 def __init__(self, parser): argument
443 self.elements = parser.helpers
444 …self.elem_number_check(parser.desc_unique_helpers, parser.define_unique_helpers, 'helper', '___BPF…
623 def __init__(self, parser): argument
624 self.elements = parser.commands
625 self.elem_number_check(parser.desc_syscalls, parser.enum_syscalls, 'syscall', 'bpf_cmd')
[all …]
/linux-6.12.1/tools/verification/dot2/
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-6.12.1/Documentation/networking/
Dstrparser.rst10 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
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.
70 This is called internally when the stream parser encounters an
79 parser instance. This must be called after the stream processor
[all …]
/linux-6.12.1/tools/cgroup/
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-6.12.1/tools/perf/tests/
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-6.12.1/tools/crypto/ccp/
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-6.12.1/include/linux/mtd/
Dpartitions.h92 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-6.12.1/scripts/clang-tools/
Drun-clang-tools.py27 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()

12345678