Home
last modified time | relevance | path

Searched refs:template (Results 1 – 25 of 152) sorted by relevance

1234567

/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-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-5.10/Documentation/security/
DIMA-templates.rst9 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
40 (new function defined within the patches for the new template management
[all …]
/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))
Ddefine_trace.h53 #define DEFINE_EVENT_NOP(template, name, proto, args) argument
56 #define DEFINE_EVENT(template, name, proto, args) \ argument
60 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
64 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
68 #define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \ argument
69 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
Dtrace_events.h122 #define DEFINE_EVENT(template, name, proto, args) \ argument
127 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
128 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
131 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
132 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
210 #define DEFINE_EVENT(template, name, proto, args) argument
213 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
376 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
381 struct trace_event_raw_##template *field; \
448 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
[all …]
Dperf.h79 #define DEFINE_EVENT(template, call, proto, args) \ argument
82 check_trace_callback_type_##call(perf_trace_##template); \
87 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
88 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/kernel/linux/linux-5.10/kernel/debug/kdb/
Dkdb_bp.c285 kdb_bp_t template = {0}; in kdb_bp() local
302 diag = kdbgetaddrarg(argc, argv, &nextarg, &template.bp_addr, in kdb_bp()
306 if (!template.bp_addr) in kdb_bp()
314 diag = kgdb_validate_break_address(template.bp_addr); in kdb_bp()
330 template.bp_type = BP_HARDWARE_BREAKPOINT; in kdb_bp()
331 diag = kdb_parsebp(argc, argv, &nextarg, &template); in kdb_bp()
335 template.bp_type = BP_BREAKPOINT; in kdb_bp()
347 bp_check->bp_addr == template.bp_addr) { in kdb_bp()
349 kdb_bfd_vma_fmt0 "\n", template.bp_addr); in kdb_bp()
354 template.bp_enabled = 1; in kdb_bp()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dbpf_test_run.h29 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
30 DEFINE_EVENT_WRITABLE(template, call, PARAMS(proto), \
34 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
35 DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args))
Dnbd.h85 #define NBD_DEFINE_EVENT(template, call, proto, args, size) \ argument
86 DEFINE_EVENT_WRITABLE(template, call, PARAMS(proto), \
90 #define NBD_DEFINE_EVENT(template, call, proto, args, size) \ argument
91 DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args))
/kernel/linux/linux-5.10/scripts/atomic/
Dgen-atomic-fallback.sh12 local template="$1"; shift
29 if [ ! -z "${template}" ]; then
31 . ${template}
88 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")"
124 if [ ! -z "${template}" ]; then
130 if [ ! -z "${template}" ]; then
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dwidgets.txt7 "template-wname", "user-supplied-wname"
9 The "template-wname" being the template widget name and currently includes:
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_main.c416 struct ima_template_desc *template; in ima_file_mprotect() local
435 MMAP_CHECK, &pcr, &template, 0); in ima_file_mprotect()
806 struct ima_template_desc *template = NULL; in process_buffer_measurement() local
828 &pcr, &template, keyring); in process_buffer_measurement()
836 if (!template) { in process_buffer_measurement()
837 template = lookup_template_desc("ima-buf"); in process_buffer_measurement()
838 ret = template_desc_init_fields(template->fmt, in process_buffer_measurement()
839 &(template->fields), in process_buffer_measurement()
840 &(template->num_fields)); in process_buffer_measurement()
843 (strlen(template->name) ? in process_buffer_measurement()
[all …]
Dima_template.c261 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
264 result = template_desc_init_fields(template->fmt, in ima_init_template()
265 &(template->fields), in ima_init_template()
266 &(template->num_fields)); in ima_init_template()
269 (strlen(template->name) ? in ima_init_template()
270 template->name : template->fmt), result); in ima_init_template()
/kernel/linux/linux-5.10/tools/perf/util/
Dllvm-utils.c445 const char *template = llvm_param.clang_bpf_cmd_template; in llvm__compile_bpf() local
458 if (!template) in llvm__compile_bpf()
459 template = CLANG_BPF_CMD_DEFAULT_TEMPLATE; in llvm__compile_bpf()
509 template, llc_path, opts) < 0) { in llvm__compile_bpf()
514 template = pipe_template; in llvm__compile_bpf()
526 pr_debug("llvm compiling command template: %s\n", template); in llvm__compile_bpf()
529 if (asprintf(&command_echo, "echo -n \"%s\"", template) < 0) in llvm__compile_bpf()
538 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf()
/kernel/linux/linux-5.10/drivers/bus/
Dvexpress-config.c57 u32 template[]; /* Keep it last! */ member
173 command = func->template[index]; in vexpress_syscfg_exec()
287 func = kzalloc(struct_size(func, template, num), GFP_KERNEL); in vexpress_syscfg_regmap_init()
304 func->template[i] = SYS_CFGCTRL_DCC(dcc); in vexpress_syscfg_regmap_init()
305 func->template[i] |= SYS_CFGCTRL_SITE(site); in vexpress_syscfg_regmap_init()
306 func->template[i] |= SYS_CFGCTRL_POSITION(position); in vexpress_syscfg_regmap_init()
307 func->template[i] |= SYS_CFGCTRL_FUNC(function); in vexpress_syscfg_regmap_init()
308 func->template[i] |= SYS_CFGCTRL_DEVICE(device); in vexpress_syscfg_regmap_init()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dgen.c212 static void codegen(const char *template, ...) in codegen() argument
220 n = strlen(template); in codegen()
224 src = template; in codegen()
235 src - template - 1, template); in codegen()
246 src - template - 1, template); in codegen()
264 va_start(args, template); in codegen()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dsigmadsp.c632 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local
635 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control()
636 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control()
637 template.name = ctrl->name; in sigmadsp_alloc_control()
638 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control()
639 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control()
640 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control()
641 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control()
642 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control()
644 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/catpt/
Dpcm.c263 struct catpt_stream_template *template; in catpt_dai_startup() local
268 template = catpt_get_stream_template(substream); in catpt_dai_startup()
279 res = catpt_request_region(&cdev->dram, template->persistent_size); in catpt_dai_startup()
287 stream->template = template; in catpt_dai_startup()
362 ret = catpt_ipc_alloc_stream(cdev, stream->template->path_id, in catpt_dai_hw_params()
363 stream->template->type, in catpt_dai_hw_params()
365 stream->template->num_entries, in catpt_dai_hw_params()
366 stream->template->entries, in catpt_dai_hw_params()
434 if (stream->template->type != CATPT_STRM_TYPE_LOOPBACK) in catpt_dai_apply_usettings()
483 if (stream->template->type != CATPT_STRM_TYPE_RENDER) in catpt_dai_trigger()
[all …]
/kernel/linux/linux-5.10/block/
Dblk-integrity.c397 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument
402 template->flags; in blk_integrity_register()
403 bi->interval_exp = template->interval_exp ? : in blk_integrity_register()
405 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register()
406 bi->tuple_size = template->tuple_size; in blk_integrity_register()
407 bi->tag_size = template->tag_size; in blk_integrity_register()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0003_linux_crypto.patch122 pr_err("template (%u) too big for tvmem (%lu)\n",
194 + struct tls_testvec *template, unsigned int tcount,
258 + if (WARN_ON(template[i].ilen > PAGE_SIZE ||
259 + template[i].alen > PAGE_SIZE))
262 + memcpy(assoc, template[i].assoc, template[i].alen);
263 + memcpy(input, template[i].input, template[i].ilen);
265 + if (template[i].iv)
266 + memcpy(iv, template[i].iv, MAX_IVLEN);
272 + if (template[i].klen > MAX_KEYLEN) {
274 + d, i, algo, template[i].klen, MAX_KEYLEN);
[all …]
/kernel/linux/linux-5.10/sound/soc/
Dsoc-topology.c1590 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create() local
1606 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create()
1609 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create()
1610 if ((int)template.id < 0) in soc_tplg_dapm_widget_create()
1611 return template.id; in soc_tplg_dapm_widget_create()
1614 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1615 if (!template.name) in soc_tplg_dapm_widget_create()
1617 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1618 if (!template.sname) { in soc_tplg_dapm_widget_create()
1622 template.reg = le32_to_cpu(w->reg); in soc_tplg_dapm_widget_create()
[all …]
Dsoc-dapm.c379 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
388 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
389 template.reg = mc->reg; in dapm_kcontrol_data_alloc()
390 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc()
391 template.shift = mc->shift; in dapm_kcontrol_data_alloc()
393 template.off_val = mc->max; in dapm_kcontrol_data_alloc()
395 template.off_val = 0; in dapm_kcontrol_data_alloc()
396 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
397 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
398 template.name = name; in dapm_kcontrol_data_alloc()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dmem.c95 static int __init make_tempfile(const char *template) in make_tempfile() argument
120 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
125 strcat(tempname, template); in make_tempfile()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dflamegraph.py47 not os.path.isfile(self.args.template):
52 "(--format FORMAT).".format(self.args.template),
85 with io.open(self.args.template, encoding="utf-8") as f:

1234567