Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/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.1.9/drivers/hid/
Dhid-core.c124 static int open_collection(struct hid_parser *parser, unsigned type) in open_collection() argument
130 usage = parser->local.usage[0]; in open_collection()
132 if (parser->collection_stack_ptr == parser->collection_stack_size) { in open_collection()
134 unsigned int new_size = parser->collection_stack_size + in open_collection()
137 collection_stack = krealloc(parser->collection_stack, in open_collection()
143 parser->collection_stack = collection_stack; in open_collection()
144 parser->collection_stack_size = new_size; in open_collection()
147 if (parser->device->maxcollection == parser->device->collection_size) { in open_collection()
150 parser->device->collection_size, in open_collection()
154 hid_err(parser->device, "failed to reallocate collection array\n"); in open_collection()
[all …]
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_cs.c416 static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error, bool backoff) in radeon_cs_parser_fini() argument
431 list_sort(NULL, &parser->validated, cmp_size_smaller_first); in radeon_cs_parser_fini()
433 ttm_eu_fence_buffer_objects(&parser->ticket, in radeon_cs_parser_fini()
434 &parser->validated, in radeon_cs_parser_fini()
435 &parser->ib.fence->base); in radeon_cs_parser_fini()
437 ttm_eu_backoff_reservation(&parser->ticket, in radeon_cs_parser_fini()
438 &parser->validated); in radeon_cs_parser_fini()
441 if (parser->relocs != NULL) { in radeon_cs_parser_fini()
442 for (i = 0; i < parser->nrelocs; i++) { in radeon_cs_parser_fini()
443 struct radeon_bo *bo = parser->relocs[i].robj; in radeon_cs_parser_fini()
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/dp/
Ddp_parser.c37 static int dp_parser_ctrl_res(struct dp_parser *parser) in dp_parser_ctrl_res() argument
39 struct platform_device *pdev = parser->pdev; in dp_parser_ctrl_res()
40 struct dp_io *io = &parser->io; in dp_parser_ctrl_res()
94 static int dp_parser_misc(struct dp_parser *parser) in dp_parser_misc() argument
96 struct device_node *of_node = parser->pdev->dev.of_node; in dp_parser_misc()
106 parser->max_dp_lanes = len; in dp_parser_misc()
116 static int dp_parser_init_clk_data(struct dp_parser *parser) in dp_parser_init_clk_data() argument
121 struct device *dev = &parser->pdev->dev; in dp_parser_init_clk_data()
122 struct dss_module_power *core_power = &parser->mp[DP_CORE_PM]; in dp_parser_init_clk_data()
123 struct dss_module_power *ctrl_power = &parser->mp[DP_CTRL_PM]; in dp_parser_init_clk_data()
[all …]
Ddp_power.c16 struct dp_parser *parser; member
33 core = &power->parser->mp[DP_CORE_PM]; in dp_power_clk_init()
34 ctrl = &power->parser->mp[DP_CTRL_PM]; in dp_power_clk_init()
35 stream = &power->parser->mp[DP_STREAM_PM]; in dp_power_clk_init()
121 mp = &power->parser->mp[DP_CORE_PM]; in dp_power_clk_enable()
133 mp = &power->parser->mp[pm_type]; in dp_power_clk_enable()
236 struct dp_power *dp_power_get(struct device *dev, struct dp_parser *parser) in dp_power_get() argument
241 if (!parser) { in dp_power_get()
246 power = devm_kzalloc(&parser->pdev->dev, sizeof(*power), GFP_KERNEL); in dp_power_get()
250 power->parser = parser; in dp_power_get()
[all …]
/linux-6.1.9/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.py84 def load_required_plugins(self, reqs, parser, args, remaining): argument
113 parser = self.call_add_args(parser)
114 (args, remaining) = parser.parse_known_args(args=remaining, namespace=args)
148 def call_add_args(self, parser): argument
150 parser = pgn_inst.add_args(parser)
151 return parser
452 parser = argparse.ArgumentParser(description='Linux TC unit tests')
453 return parser
456 def set_args(parser): argument
460 parser.add_argument(
[all …]
/linux-6.1.9/drivers/of/
Daddress.c675 static int parser_init(struct of_pci_range_parser *parser, in parser_init() argument
680 parser->node = node; in parser_init()
681 parser->pna = of_n_addr_cells(node); in parser_init()
682 parser->na = of_bus_n_addr_cells(node); in parser_init()
683 parser->ns = of_bus_n_size_cells(node); in parser_init()
684 parser->dma = !strcmp(name, "dma-ranges"); in parser_init()
685 parser->bus = of_match_bus(node); in parser_init()
687 parser->range = of_get_property(node, name, &rlen); in parser_init()
688 if (parser->range == NULL) in parser_init()
691 parser->end = parser->range + rlen / sizeof(__be32); in parser_init()
[all …]
/linux-6.1.9/drivers/mtd/
Dmtdpart.c515 static int mtd_part_do_parse(struct mtd_part_parser *parser, in mtd_part_do_parse() argument
522 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse()
523 pr_debug("%s: parser %s: %i\n", master->name, parser->name, ret); in mtd_part_do_parse()
528 parser->name, master->name); in mtd_part_do_parse()
531 pparts->parser = parser; in mtd_part_do_parse()
578 struct mtd_part_parser *parser; in mtd_part_of_parse() local
598 parser = mtd_part_get_compatible_parser(compat); in mtd_part_of_parse()
599 if (!parser) in mtd_part_of_parse()
601 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
607 mtd_part_parser_put(parser); in mtd_part_of_parse()
[all …]
/linux-6.1.9/tools/verification/dot2/
Ddot2k21 parser = argparse.ArgumentParser(description='transform .dot file into kernel rv monitor')
22 parser.add_argument('-d', "--dot", dest="dot_file", required=True)
23 parser.add_argument('-t', "--monitor_type", dest="monitor_type", required=True)
24 parser.add_argument('-n', "--model_name", dest="model_name", required=False)
25 parser.add_argument("-D", "--description", dest="description", required=False)
26 params = parser.parse_args()
/linux-6.1.9/tools/testing/kunit/
Dkunit.py279 def add_common_opts(parser) -> None: argument
280 parser.add_argument('--build_dir',
284 parser.add_argument('--make_options',
287 parser.add_argument('--alltests',
290 parser.add_argument('--kunitconfig',
296 parser.add_argument('--kconfig_add',
301 parser.add_argument('--arch',
309 parser.add_argument('--cross_compile',
321 parser.add_argument('--qemu_config',
326 parser.add_argument('--qemu_args',
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.py115 parser = argparse.ArgumentParser()
116 parser.add_argument('--verbose', '-v', action='store_true')
117 parser.add_argument("srctree", type=pathlib.Path)
118 parser.add_argument("objtree", type=pathlib.Path)
119 parser.add_argument("sysroot_src", type=pathlib.Path)
120 args = parser.parse_args()
Dbpf_doc.py314 def __init__(self, parser): argument
315 self.parser = parser
360 def __init__(self, parser): argument
361 self.parser = parser
424 def __init__(self, parser): argument
425 self.elements = parser.helpers
426 …self.elem_number_check(parser.desc_unique_helpers, parser.define_unique_helpers, 'helper', '__BPF_…
605 def __init__(self, parser): argument
606 self.elements = parser.commands
607 self.elem_number_check(parser.desc_syscalls, parser.enum_syscalls, 'syscall', 'bpf_cmd')
[all …]
Dbloat-o-meter15 parser = argparse.ArgumentParser(description="Simple script used to compare the symbol sizes of 2 o… variable
16 group = parser.add_mutually_exclusive_group()
20 parser.add_argument('-p', dest='prefix', help='Arch prefix for the tool being used. Useful in cross…
21 parser.add_argument('file1', help='First file to compare')
22 parser.add_argument('file2', help='Second file to compare')
24 args = parser.parse_args()
/linux-6.1.9/include/linux/
Dof_address.h34 #define for_each_of_pci_range(parser, range) \ argument
35 for (; of_pci_range_parser_one(parser, range);)
57 extern int of_pci_range_parser_init(struct of_pci_range_parser *parser,
59 extern int of_pci_dma_range_parser_init(struct of_pci_range_parser *parser,
62 struct of_pci_range_parser *parser,
89 static inline int of_pci_range_parser_init(struct of_pci_range_parser *parser, in of_pci_range_parser_init() argument
95 static inline int of_pci_dma_range_parser_init(struct of_pci_range_parser *parser, in of_pci_dma_range_parser_init() argument
102 struct of_pci_range_parser *parser, in of_pci_range_parser_one() argument
/linux-6.1.9/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.1.9/tools/perf/tests/
Dattr.py142 parser = configparser.SafeConfigParser()
143 parser.read(path)
150 self.command = parser.get('config', 'command')
151 self.args = parser.get('config', 'args')
154 self.ret = parser.get('config', 'ret')
159 self.arch = parser.get('config', 'arch')
362 parser = optparse.OptionParser(usage=USAGE)
364 parser.add_option("-t", "--test",
366 parser.add_option("-d", "--test-dir",
368 parser.add_option("-p", "--perf",
[all …]
/linux-6.1.9/scripts/clang-tools/
Dgen_compile_commands.py39 parser = argparse.ArgumentParser(description=usage)
43 parser.add_argument('-d', '--directory', type=str, default='.',
48 parser.add_argument('-o', '--output', type=str, default=_DEFAULT_OUTPUT,
53 parser.add_argument('--log_level', choices=_VALID_LOG_LEVELS,
57 parser.add_argument('-a', '--ar', type=str, default='llvm-ar', help=ar_help)
62 parser.add_argument('paths', type=str, nargs='*', help=paths_help)
64 args = parser.parse_args()
/linux-6.1.9/tools/perf/scripts/python/
Dflamegraph.py160 parser = argparse.ArgumentParser(description="Create flame graphs.") variable
161 parser.add_argument("-f", "--format",
164 parser.add_argument("-o", "--output",
166 parser.add_argument("--template",
169 parser.add_argument("--colorscheme",
173 parser.add_argument("-i", "--input",
176 cli_args = parser.parse_args()
Dstackcollapse.py57 parser = OptionParser(option_list=option_list) variable
58 (opts, args) = parser.parse_args()
61 parser.error("unexpected command line argument")
63 parser.error("requesting tid but not comm is invalid")
65 parser.error("requesting pid but not comm is invalid")

1234567