Home
last modified time | relevance | path

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

12345

/Linux-v4.19/crypto/
Dtestmgr.c191 struct crypto_ahash *tfm, const struct hash_testvec *template, in ahash_partial_update() argument
233 memcpy(hash_buff, template->plaintext + temp, in ahash_partial_update()
234 template->tap[k]); in ahash_partial_update()
235 sg_init_one(&sg[0], hash_buff, template->tap[k]); in ahash_partial_update()
236 ahash_request_set_crypt(req, sg, result, template->tap[k]); in ahash_partial_update()
269 const struct hash_testvec *template, unsigned int tcount, in __test_hash() argument
306 if (template[i].np) in __test_hash()
310 if (WARN_ON(align_offset + template[i].psize > PAGE_SIZE)) in __test_hash()
319 memcpy(hash_buff, template[i].plaintext, template[i].psize); in __test_hash()
320 sg_init_one(&sg[0], hash_buff, template[i].psize); in __test_hash()
[all …]
/Linux-v4.19/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-v4.19/arch/ia64/kernel/
Dkprobes.c85 brl->quad0.template = 0x05; /* [MLX](stop) */ in set_brl_inst()
98 static void __kprobes update_kprobe_inst_flag(uint template, uint slot, in update_kprobe_inst_flag() argument
118 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag()
134 } else if (bundle_encoding[template][slot] == X) { in update_kprobe_inst_flag()
151 static uint __kprobes is_cmp_ctype_unc_inst(uint template, uint slot, in is_cmp_ctype_unc_inst() argument
158 if (!((bundle_encoding[template][slot] == I) || in is_cmp_ctype_unc_inst()
159 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst()
187 static int __kprobes unsupported_inst(uint template, uint slot, in unsupported_inst() argument
195 if (is_cmp_ctype_unc_inst(template, slot, major_opcode, kprobe_inst)) { in unsupported_inst()
205 else if (bundle_encoding[template][slot] == I) { in unsupported_inst()
[all …]
/Linux-v4.19/drivers/leds/
Dleds-gpio.c78 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument
84 led_dat->gpiod = template->gpiod; in create_gpio_led()
94 if (!gpio_is_valid(template->gpio)) { in create_gpio_led()
96 template->gpio, template->name); in create_gpio_led()
100 if (template->active_low) in create_gpio_led()
103 ret = devm_gpio_request_one(parent, template->gpio, flags, in create_gpio_led()
104 template->name); in create_gpio_led()
108 led_dat->gpiod = gpio_to_desc(template->gpio); in create_gpio_led()
113 led_dat->cdev.name = template->name; in create_gpio_led()
114 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led()
[all …]
Dleds-lt3593.c66 const struct gpio_led *template = &pdata->leds[0]; in lt3593_led_probe_pdata() local
77 led_data->cdev.name = template->name; in lt3593_led_probe_pdata()
78 led_data->cdev.default_trigger = template->default_trigger; in lt3593_led_probe_pdata()
81 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in lt3593_led_probe_pdata()
84 if (!template->retain_state_suspended) in lt3593_led_probe_pdata()
87 ret = devm_gpio_request_one(dev, template->gpio, state ? in lt3593_led_probe_pdata()
89 template->name); in lt3593_led_probe_pdata()
93 led_data->gpiod = gpio_to_desc(template->gpio); in lt3593_led_probe_pdata()
102 template->name, template->gpio); in lt3593_led_probe_pdata()
Dleds-ns2.c187 const struct ns2_led *template) in create_ns2_led() argument
192 ret = devm_gpio_request_one(&pdev->dev, template->cmd, in create_ns2_led()
193 gpio_get_value_cansleep(template->cmd) ? in create_ns2_led()
195 template->name); in create_ns2_led()
198 template->name); in create_ns2_led()
202 ret = devm_gpio_request_one(&pdev->dev, template->slow, in create_ns2_led()
203 gpio_get_value_cansleep(template->slow) ? in create_ns2_led()
205 template->name); in create_ns2_led()
208 template->name); in create_ns2_led()
214 led_dat->cdev.name = template->name; in create_ns2_led()
[all …]
Dleds-netxbig.c285 const struct netxbig_led *template) in create_netxbig_led() argument
289 led_dat->cdev.name = template->name; in create_netxbig_led()
290 led_dat->cdev.default_trigger = template->default_trigger; in create_netxbig_led()
305 led_dat->cdev.max_brightness = template->bright_max; in create_netxbig_led()
307 led_dat->mode_addr = template->mode_addr; in create_netxbig_led()
308 led_dat->mode_val = template->mode_val; in create_netxbig_led()
309 led_dat->bright_addr = template->bright_addr; in create_netxbig_led()
/Linux-v4.19/include/trace/
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.h50 #define DEFINE_EVENT(template, name, proto, args) \ argument
54 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
58 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
62 #define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \ argument
63 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
Dbpf_probe.h73 #define DEFINE_EVENT(template, call, proto, args) \ argument
76 check_trace_callback_type_##call(__bpf_trace_##template); \
82 .bpf_func = (void *)__bpf_trace_##template, \
88 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
89 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-v4.19/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-v4.19/drivers/misc/
Dvexpress-syscfg.c52 u32 template[0]; /* Keep it last! */ member
71 command = func->template[index]; in vexpress_syscfg_exec()
185 func = kzalloc(struct_size(func, template, num), GFP_KERNEL); in vexpress_syscfg_regmap_init()
202 func->template[i] = SYS_CFGCTRL_DCC(dcc); in vexpress_syscfg_regmap_init()
203 func->template[i] |= SYS_CFGCTRL_SITE(site); in vexpress_syscfg_regmap_init()
204 func->template[i] |= SYS_CFGCTRL_POSITION(position); in vexpress_syscfg_regmap_init()
205 func->template[i] |= SYS_CFGCTRL_FUNC(function); in vexpress_syscfg_regmap_init()
206 func->template[i] |= SYS_CFGCTRL_DEVICE(device); in vexpress_syscfg_regmap_init()
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dwidgets.txt7 "template-wname", "user-supplied-wname"
9 The "template-wname" being the template widget name and currently includes:
/Linux-v4.19/tools/perf/util/
Dllvm-utils.c441 const char *template = llvm_param.clang_bpf_cmd_template; in llvm__compile_bpf() local
454 if (!template) in llvm__compile_bpf()
455 template = CLANG_BPF_CMD_DEFAULT_TEMPLATE; in llvm__compile_bpf()
504 template, llc_path, opts) < 0) { in llvm__compile_bpf()
509 template = pipe_template; in llvm__compile_bpf()
521 pr_debug("llvm compiling command template: %s\n", template); in llvm__compile_bpf()
523 if (asprintf(&command_echo, "echo -n \"%s\"", template) < 0) in llvm__compile_bpf()
532 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf()
/Linux-v4.19/sound/soc/codecs/
Dsigmadsp.c633 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local
636 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control()
637 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control()
638 template.name = ctrl->name; in sigmadsp_alloc_control()
639 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control()
640 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control()
641 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control()
642 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control()
643 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control()
645 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control()
[all …]
/Linux-v4.19/security/integrity/ima/
Dima_template.c233 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
236 result = template_desc_init_fields(template->fmt, in ima_init_template()
237 &(template->fields), in ima_init_template()
238 &(template->num_fields)); in ima_init_template()
241 (strlen(template->name) ? in ima_init_template()
242 template->name : template->fmt), result); in ima_init_template()
/Linux-v4.19/block/
Dblk-integrity.c409 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument
414 template->flags; in blk_integrity_register()
415 bi->interval_exp = template->interval_exp ? : in blk_integrity_register()
417 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register()
418 bi->tuple_size = template->tuple_size; in blk_integrity_register()
419 bi->tag_size = template->tag_size; in blk_integrity_register()
/Linux-v4.19/sound/soc/
Dsoc-dapm.c336 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
345 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
346 template.reg = mc->reg; in dapm_kcontrol_data_alloc()
347 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc()
348 template.shift = mc->shift; in dapm_kcontrol_data_alloc()
350 template.off_val = mc->max; in dapm_kcontrol_data_alloc()
352 template.off_val = 0; in dapm_kcontrol_data_alloc()
353 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
354 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
355 template.name = name; in dapm_kcontrol_data_alloc()
[all …]
Dsoc-topology.c1450 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create() local
1466 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create()
1469 template.id = get_widget_id(w->id); in soc_tplg_dapm_widget_create()
1470 if (template.id < 0) in soc_tplg_dapm_widget_create()
1471 return template.id; in soc_tplg_dapm_widget_create()
1474 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1475 if (!template.name) in soc_tplg_dapm_widget_create()
1477 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1478 if (!template.sname) { in soc_tplg_dapm_widget_create()
1482 template.reg = w->reg; in soc_tplg_dapm_widget_create()
[all …]
/Linux-v4.19/sound/soc/intel/baytrail/
Dsst-baytrail-dsp.c70 struct sst_module_template template; in sst_byt_parse_module() local
73 memset(&template, 0, sizeof(template)); in sst_byt_parse_module()
74 template.id = module->type; in sst_byt_parse_module()
75 template.entry = module->entry_point; in sst_byt_parse_module()
77 mod = sst_module_new(fw, &template, NULL); in sst_byt_parse_module()
/Linux-v4.19/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-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c290 struct v4l2_standard *template; in pvr2_std_fill() local
293 template = match_std(id); in pvr2_std_fill()
294 if (!template) return 0; in pvr2_std_fill()
296 memcpy(std,template,sizeof(*template)); in pvr2_std_fill()
/Linux-v4.19/drivers/regulator/
Dtwl-regulator.c575 const struct twlreg_info *template; in twlreg_probe() local
586 template = match->data; in twlreg_probe()
587 if (!template) in twlreg_probe()
590 id = template->desc.id; in twlreg_probe()
592 &template->desc); in twlreg_probe()
596 info = devm_kmemdup(&pdev->dev, template, sizeof(*info), GFP_KERNEL); in twlreg_probe()
/Linux-v4.19/sound/soc/intel/haswell/
Dsst-haswell-dsp.c93 struct sst_module_template template; in hsw_parse_module() local
116 memset(&template, 0, sizeof(template)); in hsw_parse_module()
117 template.id = type; in hsw_parse_module()
118 template.entry = entry_point - 4; in hsw_parse_module()
119 template.persistent_size = le32_to_cpu(module->info.persistent_size); in hsw_parse_module()
120 template.scratch_size = le32_to_cpu(module->info.scratch_size); in hsw_parse_module()
122 mod = sst_module_new(fw, &template, NULL); in hsw_parse_module()

12345