Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/include/trace/
Dtrace_events.h61 #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; \
248 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
[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))
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, \
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))
Dperf.h64 #define DEFINE_EVENT(template, call, proto, args) \ argument
67 check_trace_callback_type_##call(perf_trace_##template); \
72 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/linux-6.6.21/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 …]
/linux-6.6.21/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()
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()
270 struct avs_tplg_module *t = mod->template; in avs_get_module_control()
[all …]
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-6.6.21/security/integrity/ima/
Dima_template.c295 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
298 result = template_desc_init_fields(template->fmt, in ima_init_template()
299 &(template->fields), in ima_init_template()
300 &(template->num_fields)); in ima_init_template()
303 (strlen(template->name) ? in ima_init_template()
304 template->name : template->fmt), result); in ima_init_template()
308 template = ima_template_desc_buf(); in ima_init_template()
309 if (!template) { in ima_init_template()
314 result = template_desc_init_fields(template->fmt, in ima_init_template()
315 &(template->fields), in ima_init_template()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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))
/linux-6.6.21/drivers/pci/msi/
Dirqdomain.c397 bool pci_create_ims_domain(struct pci_dev *pdev, const struct msi_domain_template *template, in pci_create_ims_domain() argument
405 if (template->info.bus_token != DOMAIN_BUS_PCI_DEVICE_IMS || in pci_create_ims_domain()
406 !(template->info.flags & MSI_FLAG_ALLOC_SIMPLE_MSI_DESCS) || in pci_create_ims_domain()
407 !(template->info.flags & MSI_FLAG_FREE_MSI_DESCS) || in pci_create_ims_domain()
408 !template->chip.irq_mask || !template->chip.irq_unmask || in pci_create_ims_domain()
409 !template->chip.irq_write_msi_msg || template->chip.irq_set_affinity) in pci_create_ims_domain()
412 return msi_create_device_irq_domain(&pdev->dev, MSI_SECONDARY_DOMAIN, template, in pci_create_ims_domain()
/linux-6.6.21/tools/perf/scripts/python/
Dflamegraph.py145 if os.path.isfile(self.args.template):
146 template = f"file://{self.args.template}"
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:
177 l.decode("utf-8") for l in template.readlines()
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Dwidgets.txt7 "template-wname", "user-supplied-wname"
9 The "template-wname" being the template widget name and currently includes:
/linux-6.6.21/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()
/linux-6.6.21/sound/soc/codecs/
Dsigmadsp.c644 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local
647 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control()
648 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control()
649 template.name = ctrl->name; in sigmadsp_alloc_control()
650 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control()
651 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control()
652 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control()
653 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control()
654 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control()
656 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control()
[all …]
/linux-6.6.21/block/
Dblk-integrity.c362 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument
367 template->flags; in blk_integrity_register()
368 bi->interval_exp = template->interval_exp ? : in blk_integrity_register()
370 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register()
371 bi->tuple_size = template->tuple_size; in blk_integrity_register()
372 bi->tag_size = template->tag_size; in blk_integrity_register()
/linux-6.6.21/sound/soc/intel/catpt/
Dpcm.c262 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()
365 if (stream->template->type != CATPT_STRM_TYPE_LOOPBACK) in catpt_dai_apply_usettings()
408 ret = catpt_ipc_alloc_stream(cdev, stream->template->path_id, in catpt_dai_hw_params()
409 stream->template->type, in catpt_dai_hw_params()
411 stream->template->num_entries, in catpt_dai_hw_params()
412 stream->template->entries, in catpt_dai_hw_params()
481 if (stream->template->type != CATPT_STRM_TYPE_RENDER) in catpt_dai_trigger()
[all …]
/linux-6.6.21/scripts/atomic/
Dgen-atomic-fallback.sh11 local template="$1"; shift
25 . ${template}
69 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")"
89 if [ -z ${template} ] && [ -z "${order}" ] && ! meta_has_relaxed "${meta}"; then
111 if [ ! -z "${template}" ]; then
/linux-6.6.21/sound/soc/
Dsoc-dapm.c374 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 …]

1234567