Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-5.10/Documentation/security/
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 …]
/kernel/linux/linux-6.6/Documentation/security/
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 …]
/kernel/linux/linux-6.6/security/integrity/ima/
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 …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-gpio.c74 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument
81 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led()
92 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { in create_gpio_led()
97 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in create_gpio_led()
100 if (!template->retain_state_suspended) in create_gpio_led()
102 if (template->panic_indicator) in create_gpio_led()
104 if (template->retain_state_shutdown) in create_gpio_led()
111 if (template->name) { in create_gpio_led()
112 led_dat->cdev.name = template->name; in create_gpio_led()
202 const struct gpio_led *template) in gpio_led_get_gpiod() argument
[all …]
/kernel/linux/linux-6.6/drivers/leds/
Dleds-gpio.c76 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument
84 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led()
95 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { in create_gpio_led()
100 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in create_gpio_led()
104 if (!template->retain_state_suspended) in create_gpio_led()
106 if (template->panic_indicator) in create_gpio_led()
108 if (template->retain_state_shutdown) in create_gpio_led()
115 if (template->name) { in create_gpio_led()
116 led_dat->cdev.name = template->name; in create_gpio_led()
212 const struct gpio_led *template) in gpio_led_get_gpiod() argument
[all …]
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_template.c9 * Helpers to manage template descriptors.
53 * need to be accounted for since they shouldn't be defined in the same template
61 * ima_template_has_modsig - Check whether template has modsig-related fields.
62 * @ima_template: IMA template to check.
64 * Tells whether the given template has fields referencing a file's appended
91 * Verify that a template with the supplied name exists. in ima_template_setup()
96 pr_err("template %s not found, using %s\n", in ima_template_setup()
103 * by the 'ima' template. in ima_template_setup()
107 pr_err("template does not support hash alg\n"); in ima_template_setup()
125 pr_err("format string '%s' not valid, using template %s\n", in ima_template_fmt_setup()
[all …]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
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 …]
/kernel/linux/linux-5.10/lib/842/
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 …]
/kernel/linux/linux-6.6/lib/842/
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 …]
/kernel/linux/linux-6.6/sound/soc/intel/avs/
Dpath.c35 if (mod->template->id == template_id) in avs_path_find_module()
46 if (ppl->template->id == template_id) in avs_path_find_pipeline()
54 struct avs_tplg_path_template *pos, *template = NULL; in avs_path_find_path() local
64 template = pos; in avs_path_find_path()
68 if (!template) in avs_path_find_path()
72 /* Only one variant of given path template may be instantiated at a time. */ in avs_path_find_path()
74 if (path->template->owner == template) { in avs_path_find_path()
95 struct avs_tplg_path_template *template, in avs_path_find_variant() argument
101 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 …]
/kernel/linux/linux-6.6/drivers/hid/
Dhid-uclogic-rdesc-test.c14 const __u8 *template; member
101 .template = template_empty,
109 .template = template_small,
117 .template = template_no_ph,
125 .template = template_pen_ph_end,
133 .template = template_btn_ph_end,
141 .template = template_pen_all_params,
149 .template = template_frame_all_params,
157 .template = template_pen_some_params,
165 .template = template_pen_some_params,
[all …]
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 …]
/kernel/linux/linux-6.6/include/trace/
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 …]
Dbpf_probe.h62 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
65 check_trace_callback_type_##call(__bpf_trace_##template); \
75 .bpf_func = __bpf_trace_##template, \
95 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
97 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size)
100 #define DEFINE_EVENT(template, call, proto, args) \ argument
101 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0)
104 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
105 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/kernel/linux/linux-6.6/arch/ia64/kernel/
Dkprobes.c72 brl->quad0.template = 0x05; /* [MLX](stop) */ in set_brl_inst()
85 static void __kprobes update_kprobe_inst_flag(uint template, uint slot, in update_kprobe_inst_flag() argument
105 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag()
121 } else if (bundle_encoding[template][slot] == X) { in update_kprobe_inst_flag()
138 static uint __kprobes is_cmp_ctype_unc_inst(uint template, uint slot, in is_cmp_ctype_unc_inst() argument
145 if (!((bundle_encoding[template][slot] == I) || in is_cmp_ctype_unc_inst()
146 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst()
174 static int __kprobes unsupported_inst(uint template, uint slot, in unsupported_inst() argument
182 if (is_cmp_ctype_unc_inst(template, slot, major_opcode, kprobe_inst)) { in unsupported_inst()
192 else if (bundle_encoding[template][slot] == I) { in unsupported_inst()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dkprobes.c72 brl->quad0.template = 0x05; /* [MLX](stop) */ in set_brl_inst()
85 static void __kprobes update_kprobe_inst_flag(uint template, uint slot, in update_kprobe_inst_flag() argument
105 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag()
121 } else if (bundle_encoding[template][slot] == X) { in update_kprobe_inst_flag()
138 static uint __kprobes is_cmp_ctype_unc_inst(uint template, uint slot, in is_cmp_ctype_unc_inst() argument
145 if (!((bundle_encoding[template][slot] == I) || in is_cmp_ctype_unc_inst()
146 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst()
174 static int __kprobes unsupported_inst(uint template, uint slot, in unsupported_inst() argument
182 if (is_cmp_ctype_unc_inst(template, slot, major_opcode, kprobe_inst)) { in unsupported_inst()
192 else if (bundle_encoding[template][slot] == I) { in unsupported_inst()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
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()
484 struct prestera_flower_template *template; in prestera_flower_tmplt_create() local
494 template = kmalloc(sizeof(*template), GFP_KERNEL); in prestera_flower_tmplt_create()
495 if (!template) { in prestera_flower_tmplt_create()
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dflamegraph.py47 not os.path.isfile(self.args.template):
48 print("Flame Graph template {} does not exist. Please install "
50 "package, specify an existing flame graph template "
51 "(--template PATH) or another output format "
52 "(--format FORMAT).".format(self.args.template),
85 with io.open(self.args.template, encoding="utf-8") as f:
89 print("Error reading template file: {}".format(e), file=sys.stderr)
116 parser.add_argument("--template",
118 help="path to flamegraph HTML template")
/kernel/linux/linux-5.10/include/trace/
Dbpf_probe.h72 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
75 check_trace_callback_type_##call(__bpf_trace_##template); \
85 .bpf_func = __bpf_trace_##template, \
94 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
104 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size)
107 #define DEFINE_EVENT(template, call, proto, args) \ argument
108 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0)
111 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
112 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/kernel/linux/linux-5.10/tools/perf/Documentation/
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>
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/
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>
/kernel/linux/linux-6.6/tools/lib/perf/Documentation/
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>
/kernel/linux/linux-6.6/tools/perf/Documentation/
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>
/kernel/linux/linux-5.10/tools/lib/traceevent/Documentation/
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>
/kernel/linux/linux-6.6/tools/testing/selftests/rseq/
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."

12345678910>>...44