Home
last modified time | relevance | path

Searched full:template (Results 1 – 25 of 571) sorted by relevance

12345678910>>...23

/linux/tools/net/sunrpc/xdrgen/generators/
H A Dstruct.py21 template = get_jinja2_template(environment, "declaration", "close")
22 print(template.render(name=node.name))
30 template = get_jinja2_template(environment, "definition", field.template)
32 template.render(
39 template = get_jinja2_template(environment, "definition", field.template)
41 template.render(
47 template = get_jinja2_template(environment, "definition", field.template)
48 print(template.render(name=field.name))
50 template = get_jinja2_template(environment, "definition", field.template)
51 print(template.render(name=field.name))
[all …]
H A Dpointer.py21 template = get_jinja2_template(environment, "declaration", "close")
22 print(template.render(name=node.name))
30 template = get_jinja2_template(environment, "definition", field.template)
32 template.render(
39 template = get_jinja2_template(environment, "definition", field.template)
41 template.render(
47 template = get_jinja2_template(environment, "definition", field.template)
48 print(template.render(name=field.name))
50 template = get_jinja2_template(environment, "definition", field.template)
51 print(template.render(name=field.name))
[all …]
H A Dtypedef.py23 template = get_jinja2_template(environment, "declaration", node.template)
25 template.render(
32 template = get_jinja2_template(environment, "declaration", node.template)
33 print(template.render(name=node.name))
35 template = get_jinja2_template(environment, "declaration", node.template)
36 print(template.render(name=node.name, size=node.size))
38 template = get_jinja2_template(environment, "declaration", node.template)
39 print(template.render(name=node.name))
41 template = get_jinja2_template(environment, "declaration", node.template)
43 template.render(
[all …]
H A Dunion.py18 template = get_jinja2_template(environment, "declaration", "close")
19 print(template.render(name=node.name))
27 template = get_jinja2_template(environment, "definition", "switch_spec")
29 template.render(
44 template = get_jinja2_template(environment, "definition", "case_spec")
46 template.render(
56 template = get_jinja2_template(environment, "definition", "open")
57 print(template.render(name=node.name))
67 template = get_jinja2_template(environment, "definition", "close")
68 print(template.render(name=node.name))
[all …]
H A Denum.py21 template = self.environment.get_template("declaration/close.j2")
22 print(template.render(name=node.name))
26 template = self.environment.get_template("definition/open.j2")
27 print(template.render(name=node.name))
29 template = self.environment.get_template("definition/enumerator.j2")
31 print(template.render(name=enumerator.name, value=enumerator.value))
33 template = self.environment.get_template("definition/close.j2")
34 print(template.render(name=node.name))
38 template = self.environment.get_template("decoder/enum.j2")
39 print(template.render(name=node.name))
[all …]
H A Dprogram.py16 template = environment.get_template("definition/open.j2")
17 print(template.render(program=program.upper()))
19 template = environment.get_template("definition/procedure.j2")
23 template.render(
29 template = environment.get_template("definition/close.j2")
30 print(template.render())
43 template = environment.get_template("declaration/argument.j2")
45 print(template.render(program=program, argument=argument))
53 template = environment.get_template("declaration/result.j2")
55 print(template.render(program=program, result=result))
[all …]
/linux/Documentation/security/
H A DIMA-templates.rst2 IMA Template Management Mechanism
9 The original ``ima`` template is fixed length, containing the filedata hash
19 a new template is defined, the functions that generate and display
23 The proposed solution solves this problem by separating the template
25 definition of two new data structures: a template descriptor, to determine
26 which information should be included in the measurement list; a template
32 measurement entries. Defining a new template descriptor requires
33 specifying the template format (a string of field identifiers separated
35 parameter. At boot time, IMA initializes the chosen template descriptor
36 by translating the format into an array of template fields structures taken
[all …]
/linux/security/integrity/ima/
H A Dima_template.c9 * Helpers to manage template descriptors.
76 * need to be accounted for since they shouldn't be defined in the same template
86 * ima_template_has_modsig - Check whether template has modsig-related fields.
87 * @ima_template: IMA template to check.
89 * Tells whether the given template has fields referencing a file's appended
116 * Verify that a template with the supplied name exists. in ima_template_setup()
121 pr_err("template %s not found, using %s\n", in ima_template_setup()
128 * by the 'ima' template. in ima_template_setup()
132 pr_err("template does not support hash alg\n"); in ima_template_setup()
150 pr_err("format string '%s' not valid, using template %s\n", in ima_template_fmt_setup()
[all …]
/linux/drivers/leds/
H A Dleds-gpio.c80 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument
88 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led()
99 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { in create_gpio_led()
104 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in create_gpio_led()
108 if (!template->retain_state_suspended) in create_gpio_led()
110 if (template->panic_indicator) in create_gpio_led()
112 if (template->retain_state_shutdown) in create_gpio_led()
119 if (template->name) { in create_gpio_led()
120 led_dat->cdev.name = template->name; in create_gpio_led()
217 const struct gpio_led *template) in gpio_led_get_gpiod() argument
[all …]
/linux/tools/perf/scripts/python/
H A Dflamegraph.py145 if os.path.isfile(self.args.template):
146 template = f"file://{self.args.template}"
149 print(f"""Warning: Flame Graph template '{self.args.template}'
152 graph template (--template PATH) or use another output format (--format
156 … print("""Not attempting to download Flame Graph template as script command line
158 template retry without live mode. For example, use 'perf record -a -g
160 download the template from:
168 …s = input("Do you wish to download a template from cdn.jsdelivr.net? (this warning can be suppress…
171template = "https://cdn.jsdelivr.net/npm/d3-flame-graph@4.1.3/dist/templates/d3-flamegraph-base.ht…
175 with urllib.request.urlopen(template) as template:
[all …]
/linux/lib/842/
H A D842.h9 * <template>[arg1][arg2][arg3][arg4]
11 * where there are between 0 and 4 template args, depending on the specific
12 * template operation. For normal operations, each arg is either a specific
16 * The template code is a 5-bit value. This code indicates what to do with
17 * the following data. Template codes from 0 to 0x19 should use the template
18 * table, the static "decomp_ops" table used in decompress. For each template
20 * an arg following the template code bits. Each action is either a "data"
22 * bytes being written to the output buffer. Each template (i.e. all actions
49 * There are also 3 special template codes; 0x1b for "repeat", 0x1c for
60 * This software implementation also uses one of the undefined template values,
[all …]
/linux/sound/soc/intel/avs/
H A Dpath.c36 if (mod->template->id == template_id) in avs_path_find_module()
47 if (ppl->template->id == template_id) in avs_path_find_pipeline()
55 struct avs_tplg_path_template *pos, *template = NULL; in avs_path_find_path() local
65 template = pos; in avs_path_find_path()
69 if (!template) in avs_path_find_path()
73 /* Only one variant of given path template may be instantiated at a time. */ in avs_path_find_path()
75 if (path->template->owner == template) { in avs_path_find_path()
96 struct avs_tplg_path_template *template, in avs_path_find_variant() argument
102 list_for_each_entry(variant, &template->path_list, node) { in avs_path_find_variant()
147 struct avs_tplg_module *t = mod->template; in avs_copier_create()
[all …]
H A Dpath.h21 struct avs_tplg_path *template; member
32 struct avs_tplg_pipeline *template; member
43 struct avs_tplg_module *template; member
55 struct avs_tplg_binding *template; member
63 struct avs_tplg_path_template *template,
/linux/drivers/hid/
H A Dhid-uclogic-rdesc-test.c16 const __u8 *template; member
103 .template = template_empty,
111 .template = template_small,
119 .template = template_no_ph,
127 .template = template_pen_ph_end,
135 .template = template_btn_ph_end,
143 .template = template_pen_all_params,
151 .template = template_frame_all_params,
159 .template = template_pen_some_params,
167 .template = template_pen_some_params,
[all …]
H A Dhid-uclogic-rdesc.h83 /* Report descriptor template placeholder head */
87 /* Apply report descriptor parameters to a report descriptor template */
93 /* Report descriptor template placeholder IDs */
104 /* Report descriptor pen template placeholder */
108 /* Report descriptor frame buttons template placeholder */
115 /* Fixed report descriptor template for (tweaked) v1 pen reports */
122 /* Fixed report descriptor template for (tweaked) v2 pen reports */
172 /* Fixed report descriptor template for UGEE v2 pen reports */
176 /* Fixed report descriptor template for UGEE v2 frame reports (buttons only) */
180 /* Fixed report descriptor template for UGEE v2 frame reports (dial) */
[all …]
/linux/include/trace/
H A Dtrace_events.h36 * TRACE_EVENT is a one to one mapping between tracepoint and template.
61 #define DEFINE_EVENT(template, name, proto, args) \ argument
66 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
67 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
70 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
71 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
121 #define DEFINE_EVENT(template, name, proto, args) argument
124 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
212 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
217 struct trace_event_raw_##template *field; \
[all …]
H A Dbpf_probe.h61 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
64 check_trace_callback_type_##call(__bpf_trace_##template); \
74 .bpf_func = __bpf_trace_##template, \
94 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
96 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size)
99 #define DEFINE_EVENT(template, call, proto, args) \ argument
100 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0)
103 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
104 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
H A Dtrace_custom_events.h51 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) \ argument
68 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) argument
175 #define DEFINE_CUSTOM_EVENT(template, call, proto, args) \ argument
178 check_trace_callback_type_##call(trace_custom_event_raw_event_##template); \
200 #define DEFINE_CUSTOM_EVENT(template, call, proto, args) \ argument
204 .class = &custom_event_class_##template, \
205 .event.funcs = &trace_custom_event_type_funcs_##template, \
206 .print_fmt = custom_print_fmt_##template, \
/linux/drivers/thermal/testing/
H A Dcommand.c18 * The "addtz" command causes a new test thermal zone template to be created,
23 * That template will be represented as a subdirectory in the "thermal-testing"
29 * The thermal zone template can be populated with trip points with the help of
34 * which causes a trip point template to be added to the test thermal zone
35 * template 0 (represented by the tz0 subdirectory in "thermal-testing").
40 * The temperature of a trip point template is initially THERMAL_TEMP_INVALID
43 * template, respectively.
45 * The initial temperature of a thermal zone based on a template can be set by
52 * thermal zone based on a given template with the thermal core, for example
56 * In this case, test thermal zone template 0 is used for registering a new
[all …]
H A Dzone.c23 * struct tt_thermal_zone - Testing thermal zone template
25 * Represents a template of a thermal zone that can be used for registering
29 * @trips: List of trip point templates for this thermal zone template.
30 * @d_tt_zone: Directory in debugfs representing this template.
31 * @tz: Test thermal zone based on this template, if present.
32 * @lock: Mutex for synchronizing changes of this template.
34 * @id: The ID of this template for the debugfs interface.
57 * struct tt_trip - Testing trip point template
59 * Represents a template of a trip point to be used for populating a trip point
60 * during the registration of a thermal zone based on a given zone template.
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c17 prestera_flower_template_free(struct prestera_flower_template *template) in prestera_flower_template_free() argument
19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free()
20 list_del(&template->list); in prestera_flower_template_free()
21 kfree(template); in prestera_flower_template_free()
26 struct prestera_flower_template *template, *tmp; in prestera_flower_template_cleanup() local
29 list_for_each_entry_safe(template, tmp, &block->template_list, list) in prestera_flower_template_cleanup()
30 prestera_flower_template_free(template); in prestera_flower_template_cleanup()
488 struct prestera_flower_template *template; in prestera_flower_tmplt_create() local
498 template = kmalloc(sizeof(*template), GFP_KERNEL); in prestera_flower_tmplt_create()
499 if (!template) { in prestera_flower_tmplt_create()
[all …]
/linux/tools/perf/Documentation/
H A Dmanpage-base.xsl13 <xsl:template match="co">
18 </xsl:template>
19 <xsl:template match="calloutlist">
24 </xsl:template>
25 <xsl:template match="callout">
33 </xsl:template>
/linux/tools/lib/perf/Documentation/
H A Dmanpage-base.xsl13 <xsl:template match="co">
18 </xsl:template>
19 <xsl:template match="calloutlist">
24 </xsl:template>
25 <xsl:template match="callout">
33 </xsl:template>
/linux/tools/testing/selftests/rseq/
H A Drseq-bits-template.h3 * rseq-bits-template.h
16 # error "Never use <rseq-bits-template.h> directly; include <rseq.h> instead."
26 # error "Never use <rseq-bits-template.h> directly; include <rseq.h> instead."
34 # error "Never use <rseq-bits-template.h> directly; include <rseq.h> instead."
37 # error "Never use <rseq-bits-template.h> directly; include <rseq.h> instead."
/linux/include/crypto/internal/
H A Dkpp.h14 * struct kpp_instance - KPP template instance
35 * Template instances can get a hold on some inner KPP algorithm by
97 * Template instance internal helpers.
138 * A KPP template implementation may allocate extra memory beyond the
176 * kpp_register_instance() - Register a KPP template instance.
177 * @tmpl: The instantiating template.
178 * @inst: The KPP template instance to be registered.
190 * @inst: The template instance owning @spawn.
215 * up to until the template instance owning @spawn has either been

12345678910>>...23