Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/tools/perf/pmu-events/
Djsmn.c31 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
36 if ((unsigned)parser->toknext >= num_tokens) in jsmn_alloc_token()
38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
59 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
66 start = parser->pos; in jsmn_parse_primitive()
68 for (; parser->pos < len; parser->pos++) { in jsmn_parse_primitive()
69 switch (js[parser->pos]) { in jsmn_parse_primitive()
88 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
89 parser->pos = start; in jsmn_parse_primitive()
98 parser->pos = start; in jsmn_parse_primitive()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-core.c121 static int open_collection(struct hid_parser *parser, unsigned type) in open_collection() argument
127 usage = parser->local.usage[0]; in open_collection()
129 if (parser->collection_stack_ptr == parser->collection_stack_size) { in open_collection()
131 unsigned int new_size = parser->collection_stack_size + in open_collection()
134 collection_stack = krealloc(parser->collection_stack, in open_collection()
140 parser->collection_stack = collection_stack; in open_collection()
141 parser->collection_stack_size = new_size; in open_collection()
144 if (parser->device->maxcollection == parser->device->collection_size) { in open_collection()
147 parser->device->collection_size, in open_collection()
151 hid_err(parser->device, "failed to reallocate collection array\n"); in open_collection()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/
Ddp_parser.c54 static void dp_parser_unmap_io_resources(struct dp_parser *parser) in dp_parser_unmap_io_resources() argument
56 struct dp_io *io = &parser->io; in dp_parser_unmap_io_resources()
61 static int dp_parser_ctrl_res(struct dp_parser *parser) in dp_parser_ctrl_res() argument
64 struct platform_device *pdev = parser->pdev; in dp_parser_ctrl_res()
65 struct dp_io *io = &parser->io; in dp_parser_ctrl_res()
81 dp_parser_unmap_io_resources(parser); in dp_parser_ctrl_res()
85 static int dp_parser_misc(struct dp_parser *parser) in dp_parser_misc() argument
87 struct device_node *of_node = parser->pdev->dev.of_node; in dp_parser_misc()
99 parser->max_dp_lanes = len; in dp_parser_misc()
109 static int dp_parser_init_clk_data(struct dp_parser *parser) in dp_parser_init_clk_data() argument
[all …]
Ddp_power.c15 struct dp_parser *parser; member
28 const struct dp_reg_entry *regs = power->parser->regulator_cfg->regs; in dp_power_regulator_disable()
29 int num = power->parser->regulator_cfg->num; in dp_power_regulator_disable()
44 const struct dp_reg_entry *regs = power->parser->regulator_cfg->regs; in dp_power_regulator_enable()
45 int num = power->parser->regulator_cfg->num; in dp_power_regulator_enable()
78 const struct dp_reg_entry *regs = power->parser->regulator_cfg->regs; in dp_power_regulator_init()
80 int num = power->parser->regulator_cfg->num; in dp_power_regulator_init()
102 core = &power->parser->mp[DP_CORE_PM]; in dp_power_clk_init()
103 ctrl = &power->parser->mp[DP_CTRL_PM]; in dp_power_clk_init()
104 stream = &power->parser->mp[DP_STREAM_PM]; in dp_power_clk_init()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/of/
Daddress.c712 static int parser_init(struct of_pci_range_parser *parser, in parser_init() argument
717 parser->node = node; in parser_init()
718 parser->pna = of_n_addr_cells(node); in parser_init()
719 parser->na = of_bus_n_addr_cells(node); in parser_init()
720 parser->ns = of_bus_n_size_cells(node); in parser_init()
721 parser->dma = !strcmp(name, "dma-ranges"); in parser_init()
722 parser->bus = of_match_bus(node); in parser_init()
724 parser->range = of_get_property(node, name, &rlen); in parser_init()
725 if (parser->range == NULL) in parser_init()
728 parser->end = parser->range + rlen / sizeof(__be32); in parser_init()
[all …]
/kernel/linux/linux-5.10/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
592 parser = mtd_part_get_compatible_parser(compat); in mtd_part_of_parse()
593 if (!parser) in mtd_part_of_parse()
595 ret = mtd_part_do_parse(parser, master, pparts, NULL); in mtd_part_of_parse()
600 mtd_part_parser_put(parser); in mtd_part_of_parse()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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,
84 static inline int of_pci_range_parser_init(struct of_pci_range_parser *parser, in of_pci_range_parser_init() argument
90 static inline int of_pci_dma_range_parser_init(struct of_pci_range_parser *parser, in of_pci_dma_range_parser_init() argument
97 struct of_pci_range_parser *parser, in of_pci_range_parser_one() argument
/kernel/linux/linux-5.10/tools/testing/kunit/
Dkunit.py174 def add_common_opts(parser): argument
175 parser.add_argument('--build_dir',
179 parser.add_argument('--make_options',
182 parser.add_argument('--alltests',
186 def add_build_opts(parser): argument
187 parser.add_argument('--jobs',
192 def add_exec_opts(parser): argument
193 parser.add_argument('--timeout',
201 def add_parse_opts(parser): argument
202 parser.add_argument('--raw_output', help='don\'t format output from kernel',
[all …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.c684 static void amdgpu_cs_parser_fini(struct amdgpu_cs_parser *parser, int error, in amdgpu_cs_parser_fini() argument
690 ttm_eu_backoff_reservation(&parser->ticket, in amdgpu_cs_parser_fini()
691 &parser->validated); in amdgpu_cs_parser_fini()
693 for (i = 0; i < parser->num_post_deps; i++) { in amdgpu_cs_parser_fini()
694 drm_syncobj_put(parser->post_deps[i].syncobj); in amdgpu_cs_parser_fini()
695 kfree(parser->post_deps[i].chain); in amdgpu_cs_parser_fini()
697 kfree(parser->post_deps); in amdgpu_cs_parser_fini()
699 dma_fence_put(parser->fence); in amdgpu_cs_parser_fini()
701 if (parser->ctx) { in amdgpu_cs_parser_fini()
702 mutex_unlock(&parser->ctx->lock); in amdgpu_cs_parser_fini()
[all …]
Damdgpu_uvd.c96 struct amdgpu_cs_parser *parser; member
499 lo = amdgpu_get_ib_value(ctx->parser, ctx->ib_idx, ctx->data0); in amdgpu_uvd_get_addr_from_ctx()
500 hi = amdgpu_get_ib_value(ctx->parser, ctx->ib_idx, ctx->data1); in amdgpu_uvd_get_addr_from_ctx()
523 r = amdgpu_cs_find_mapping(ctx->parser, addr, &bo, &mapping); in amdgpu_uvd_cs_pass1()
529 if (!ctx->parser->adev->uvd.address_64_bit) { in amdgpu_uvd_cs_pass1()
531 cmd = amdgpu_get_ib_value(ctx->parser, ctx->ib_idx, ctx->idx) >> 1; in amdgpu_uvd_cs_pass1()
752 struct amdgpu_device *adev = ctx->parser->adev; in amdgpu_uvd_cs_msg()
793 adev->uvd.filp[i] = ctx->parser->filp; in amdgpu_uvd_cs_msg()
811 if (adev->uvd.filp[i] != ctx->parser->filp) { in amdgpu_uvd_cs_msg()
853 r = amdgpu_cs_find_mapping(ctx->parser, addr, &bo, &mapping); in amdgpu_uvd_cs_pass2()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/core/
Dskmsg.c674 strp_done(&psock->parser.strp); in sk_psock_destroy_deferred()
773 struct sk_psock_parser *parser; in sk_psock_from_strp() local
775 parser = container_of(strp, struct sk_psock_parser, strp); in sk_psock_from_strp()
776 return container_of(parser, struct sk_psock, parser); in sk_psock_from_strp()
940 psock->parser.saved_data_ready(sk); in sk_psock_strp_data_ready()
943 strp_data_ready(&psock->parser.strp); in sk_psock_strp_data_ready()
1027 psock->parser.enabled = false; in sk_psock_init_strp()
1028 return strp_init(&psock->parser.strp, sk, &cb); in sk_psock_init_strp()
1033 struct sk_psock_parser *parser = &psock->parser; in sk_psock_start_verdict() local
1035 if (parser->enabled) in sk_psock_start_verdict()
[all …]
/kernel/linux/linux-5.10/scripts/clang-tools/
Dgen_compile_commands.py37 parser = argparse.ArgumentParser(description=usage)
41 parser.add_argument('-d', '--directory', type=str, default='.',
46 parser.add_argument('-o', '--output', type=str, default=_DEFAULT_OUTPUT,
51 parser.add_argument('--log_level', choices=_VALID_LOG_LEVELS,
55 parser.add_argument('-a', '--ar', type=str, default='llvm-ar', help=ar_help)
60 parser.add_argument('paths', type=str, nargs='*', help=paths_help)
62 args = parser.parse_args()
Drun-clang-tools.py28 parser = argparse.ArgumentParser(description=usage)
31 parser.add_argument("type",
35 parser.add_argument("path", type=str, help=path_help)
37 return parser.parse_args()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dflamegraph.py110 parser = argparse.ArgumentParser(description="Create flame graphs.") variable
111 parser.add_argument("-f", "--format",
114 parser.add_argument("-o", "--output",
116 parser.add_argument("--template",
119 parser.add_argument("-i", "--input",
122 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")
/kernel/linux/linux-5.10/scripts/
Dspdxcheck.py91 self.parser = yacc.yacc(module = self, write_tables = False, debug = False)
165 self.parser.parse(expr, lexer = self.lexer)
217 parser.parse_lines(fd, args.maxlines, el.path)
247 parser = id_parser(spdx) variable
264 parser.parse_lines(stdin, args.maxlines, '-')
269 parser.parse_lines(open(p, 'rb'), args.maxlines, p)
286 sys.stderr.write('Files checked: %12d\n' %parser.checked)
287 sys.stderr.write('Lines checked: %12d\n' %parser.lines_checked)
288 sys.stderr.write('Files with SPDX: %12d\n' %parser.spdx_valid)
289 sys.stderr.write('Files with errors: %12d\n' %parser.spdx_errors)
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dasymmetric_type.c371 struct asymmetric_key_parser *parser; in asymmetric_key_preparse() local
382 list_for_each_entry(parser, &asymmetric_key_parsers, link) { in asymmetric_key_preparse()
383 pr_debug("Trying parser '%s'\n", parser->name); in asymmetric_key_preparse()
385 ret = parser->parse(prep); in asymmetric_key_preparse()
597 int register_asymmetric_key_parser(struct asymmetric_key_parser *parser) in register_asymmetric_key_parser() argument
605 if (strcmp(cursor->name, parser->name) == 0) { in register_asymmetric_key_parser()
607 parser->name); in register_asymmetric_key_parser()
613 list_add_tail(&parser->link, &asymmetric_key_parsers); in register_asymmetric_key_parser()
615 pr_notice("Asymmetric key parser '%s' registered\n", parser->name); in register_asymmetric_key_parser()
628 void unregister_asymmetric_key_parser(struct asymmetric_key_parser *parser) in unregister_asymmetric_key_parser() argument
[all …]

1234567