Home
last modified time | relevance | path

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

123456

/Linux-v5.4/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()
203 const struct gpio_led *template) in gpio_led_get_gpiod() argument
[all …]
Dleds-ns2.c174 const struct ns2_led *template) in create_ns2_led() argument
179 ret = devm_gpio_request_one(&pdev->dev, template->cmd, in create_ns2_led()
180 gpio_get_value_cansleep(template->cmd) ? in create_ns2_led()
182 template->name); in create_ns2_led()
185 template->name); in create_ns2_led()
189 ret = devm_gpio_request_one(&pdev->dev, template->slow, in create_ns2_led()
190 gpio_get_value_cansleep(template->slow) ? in create_ns2_led()
192 template->name); in create_ns2_led()
195 template->name); in create_ns2_led()
201 led_dat->cdev.name = template->name; in create_ns2_led()
[all …]
Dleds-netxbig.c313 const struct netxbig_led *template) in create_netxbig_led() argument
317 led_dat->cdev.name = template->name; in create_netxbig_led()
318 led_dat->cdev.default_trigger = template->default_trigger; in create_netxbig_led()
333 led_dat->cdev.max_brightness = template->bright_max; in create_netxbig_led()
335 led_dat->mode_addr = template->mode_addr; in create_netxbig_led()
336 led_dat->mode_val = template->mode_val; in create_netxbig_led()
337 led_dat->bright_addr = template->bright_addr; in create_netxbig_led()
/Linux-v5.4/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-v5.4/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-v5.4/include/trace/
Dbpf_probe.h72 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
75 check_trace_callback_type_##call(__bpf_trace_##template); \
81 .bpf_func = (void *)__bpf_trace_##template, \
89 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
99 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size)
102 #define DEFINE_EVENT(template, call, proto, args) \ argument
103 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0)
106 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
107 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
Dtrace_events.h121 #define DEFINE_EVENT(template, name, proto, args) \ argument
126 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
127 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
130 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
131 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
209 #define DEFINE_EVENT(template, name, proto, args) argument
212 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
213 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
369 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
374 struct trace_event_raw_##template *field; \
[all …]
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.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))
/Linux-v5.4/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-v5.4/scripts/atomic/
Dgen-atomic-fallback.sh11 local template="$1"; shift
27 if [ ! -z "${template}" ]; then
29 . ${template}
70 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")"
90 if [ ! -z "${template}" ]; then
96 if [ ! -z "${template}" ]; then
/Linux-v5.4/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()
321 template.bp_type = BP_HARDWARE_BREAKPOINT; in kdb_bp()
322 diag = kdb_parsebp(argc, argv, &nextarg, &template); in kdb_bp()
326 template.bp_type = BP_BREAKPOINT; in kdb_bp()
338 bp_check->bp_addr == template.bp_addr) { in kdb_bp()
340 kdb_bfd_vma_fmt0 "\n", template.bp_addr); in kdb_bp()
345 template.bp_enabled = 1; in kdb_bp()
350 *bp = template; in kdb_bp()
/Linux-v5.4/drivers/misc/
Dvexpress-syscfg.c45 u32 template[0]; /* Keep it last! */ member
64 command = func->template[index]; in vexpress_syscfg_exec()
178 func = kzalloc(struct_size(func, template, num), GFP_KERNEL); in vexpress_syscfg_regmap_init()
195 func->template[i] = SYS_CFGCTRL_DCC(dcc); in vexpress_syscfg_regmap_init()
196 func->template[i] |= SYS_CFGCTRL_SITE(site); in vexpress_syscfg_regmap_init()
197 func->template[i] |= SYS_CFGCTRL_POSITION(position); in vexpress_syscfg_regmap_init()
198 func->template[i] |= SYS_CFGCTRL_FUNC(function); in vexpress_syscfg_regmap_init()
199 func->template[i] |= SYS_CFGCTRL_DEVICE(device); in vexpress_syscfg_regmap_init()
/Linux-v5.4/Documentation/devicetree/bindings/sound/
Dwidgets.txt7 "template-wname", "user-supplied-wname"
9 The "template-wname" being the template widget name and currently includes:
/Linux-v5.4/tools/perf/util/
Dllvm-utils.c443 const char *template = llvm_param.clang_bpf_cmd_template; in llvm__compile_bpf() local
456 if (!template) in llvm__compile_bpf()
457 template = CLANG_BPF_CMD_DEFAULT_TEMPLATE; in llvm__compile_bpf()
506 template, llc_path, opts) < 0) { in llvm__compile_bpf()
511 template = pipe_template; in llvm__compile_bpf()
523 pr_debug("llvm compiling command template: %s\n", template); in llvm__compile_bpf()
525 if (asprintf(&command_echo, "echo -n \"%s\"", template) < 0) in llvm__compile_bpf()
534 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf()
/Linux-v5.4/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 …]
/Linux-v5.4/security/integrity/ima/
Dima_template.c259 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
262 result = template_desc_init_fields(template->fmt, in ima_init_template()
263 &(template->fields), in ima_init_template()
264 &(template->num_fields)); in ima_init_template()
267 (strlen(template->name) ? in ima_init_template()
268 template->name : template->fmt), result); in ima_init_template()
/Linux-v5.4/block/
Dblk-integrity.c399 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument
404 template->flags; in blk_integrity_register()
405 bi->interval_exp = template->interval_exp ? : in blk_integrity_register()
407 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register()
408 bi->tuple_size = template->tuple_size; in blk_integrity_register()
409 bi->tag_size = template->tag_size; in blk_integrity_register()
/Linux-v5.4/sound/soc/
Dsoc-topology.c1565 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create() local
1581 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create()
1584 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create()
1585 if ((int)template.id < 0) in soc_tplg_dapm_widget_create()
1586 return template.id; in soc_tplg_dapm_widget_create()
1589 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1590 if (!template.name) in soc_tplg_dapm_widget_create()
1592 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1593 if (!template.sname) { in soc_tplg_dapm_widget_create()
1597 template.reg = le32_to_cpu(w->reg); in soc_tplg_dapm_widget_create()
[all …]
Dsoc-dapm.c377 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
386 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
387 template.reg = mc->reg; in dapm_kcontrol_data_alloc()
388 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc()
389 template.shift = mc->shift; in dapm_kcontrol_data_alloc()
391 template.off_val = mc->max; in dapm_kcontrol_data_alloc()
393 template.off_val = 0; in dapm_kcontrol_data_alloc()
394 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
395 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
396 template.name = name; in dapm_kcontrol_data_alloc()
[all …]
/Linux-v5.4/sound/soc/intel/baytrail/
Dsst-baytrail-dsp.c62 struct sst_module_template template; in sst_byt_parse_module() local
65 memset(&template, 0, sizeof(template)); in sst_byt_parse_module()
66 template.id = module->type; in sst_byt_parse_module()
67 template.entry = module->entry_point; in sst_byt_parse_module()
69 mod = sst_module_new(fw, &template, NULL); in sst_byt_parse_module()
/Linux-v5.4/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()
/Linux-v5.4/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c280 struct v4l2_standard *template; in pvr2_std_fill() local
283 template = match_std(id); in pvr2_std_fill()
284 if (!template) return 0; in pvr2_std_fill()
286 memcpy(std,template,sizeof(*template)); in pvr2_std_fill()
/Linux-v5.4/include/linux/
Dtracepoint.h520 #define DEFINE_EVENT(template, name, proto, args) \ argument
522 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg)\ argument
524 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
526 #define DEFINE_EVENT_CONDITION(template, name, proto, \ argument
561 #define DEFINE_EVENT_NOP(template, name, proto, args) \ argument

123456