Home
last modified time | relevance | path

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

12345

/linux/tools/net/sunrpc/xdrgen/generators/
H A Dunion.py18 template = get_jinja2_template(environment, "declaration", "close")
19 print(template.render(name=node.name))
27 template = get_jinja2_template(environment, "definition", "switch_spec")
29 template.render(
51 template = get_jinja2_template(environment, "definition", "case_spec")
53 template.render(
63 template = get_jinja2_template(environment, "definition", "open")
64 print(template.render(name=node.name))
74 template = get_jinja2_template(environment, "definition", "close")
75 print(template
[all...]
H A Dprogram.py17 template = environment.get_template("definition/open.j2")
18 print(template.render(program=program.upper()))
20 template = environment.get_template("definition/procedure.j2")
24 template.render(
30 template = environment.get_template("definition/close.j2")
31 print(template.render())
46 template = environment.get_template("declaration/argument.j2")
48 print(template.render(program=program, argument=argument))
58 template = environment.get_template("declaration/result.j2")
60 print(template.render(program=program, result=result))
[all …]
H A Dheader_bottom.py24 template = get_jinja2_template(self.environment, "declaration", "header")
25 print(template.render(infix=header_guard_infix(filename)))
29 template = get_jinja2_template(self.environment, "definition", "header")
30 print(template.render(infix=header_guard_infix(filename)))
H A Dheader_top.py24 template = get_jinja2_template(self.environment, "declaration", "header")
26 template.render(
35 template = get_jinja2_template(self.environment, "definition", "header")
37 template.render(
/linux/drivers/leds/
H A Dleds-gpio.c77 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument
85 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led()
96 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { in create_gpio_led()
101 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in create_gpio_led()
105 if (!template->retain_state_suspended) in create_gpio_led()
107 if (template->panic_indicator) in create_gpio_led()
109 if (template->retain_state_shutdown) in create_gpio_led()
116 if (template->name) { in create_gpio_led()
117 led_dat->cdev.name = template->name; in create_gpio_led()
211 const struct gpio_led *template) in gpio_led_get_gpiod() argument
[all …]
/linux/drivers/hid/
H A Dhid-uclogic-rdesc-test.c16 const __u8 *template; member
103 .template = template_empty,
111 .template = template_small,
119 .template = template_no_ph,
127 .template = template_pen_ph_end,
135 .template = template_btn_ph_end,
143 .template = template_pen_all_params,
151 .template = template_frame_all_params,
159 .template = template_pen_some_params,
167 .template = template_pen_some_params,
[all …]
/linux/Documentation/security/
H A 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/sound/soc/intel/avs/
H A Dpath.c37 if (mod->template->id == template_id) in avs_path_find_module()
48 if (ppl->template->id == template_id) in avs_path_find_pipeline()
56 struct avs_tplg_path_template *pos, *template = NULL; in avs_path_find_path() local
66 template = pos; in avs_path_find_path()
70 if (!template) in avs_path_find_path()
76 if (path->template->owner == template) in avs_path_find_path()
94 struct avs_tplg_path_template *template, in avs_path_find_variant() argument
100 list_for_each_entry(variant, &template->path_list, node) { in avs_path_find_variant()
117 struct avs_tplg_path_template *template, in avs_condpath_find_variant() argument
123 list_for_each_entry(variant, &template->path_list, node) { in avs_condpath_find_variant()
[all …]
/linux/security/integrity/ima/
H A 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/drivers/net/ethernet/marvell/prestera/
H A 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()
488 struct prestera_flower_template *template; in prestera_flower_tmplt_create() local
498 template = kmalloc_obj(*template); in prestera_flower_tmplt_create()
499 if (!template) { in prestera_flower_tmplt_create()
[all …]
/linux/include/trace/
H A 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, \
H A Ddefine_trace.h57 #define DEFINE_EVENT_NOP(template, name, proto, args) argument
60 #define DEFINE_EVENT(template, name, proto, args) \ argument
64 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
68 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
72 #define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \ argument
73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_bind_mount.c21 char template[PATH_MAX]; in FIXTURE() local
36 ASSERT_LE(snprintf(self->template, PATH_MAX, "%s", P_tmpdir "/pidfd_bind_mount_XXXXXX"), PATH_MAX); in FIXTURE_SETUP()
37 self->fd_tmp = mkstemp(self->template); in FIXTURE_SETUP()
49 ASSERT_EQ(umount2(self->template, 0), 0); in FIXTURE_TEARDOWN()
50 ASSERT_EQ(unlink(self->template), 0); in FIXTURE_TEARDOWN()
103 fd_pidfd_mnt = openat(-EBADF, self->template, O_RDONLY | O_NOCTTY | O_CLOEXEC); in TEST_F()
/linux/include/trace/events/
H A Dbpf_test_run.h46 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
47 DEFINE_EVENT_WRITABLE(template, call, PARAMS(proto), \
51 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
52 DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args))
H A 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/tools/testing/selftests/bpf/
H A Dusdt.h497 template<typename T> struct __usdt_t { static const bool is_signed = false; };
498 template<typename A> struct __usdt_t<A[]> : public __usdt_t<A *> {};
499 template<typename A, size_t N> struct __usdt_t<A[N]> : public __usdt_t<A *> {};
502 template<> struct __usdt_t<T> { static const bool is_signed = true; }; \
503 template<> struct __usdt_t<const T> { static const bool is_signed = true; }; \
504 template<> struct __usdt_t<volatile T> { static const bool is_signed = true; }; \
505 template<> struct __usdt_t<const volatile T> { static const bool is_signed = true; }
507 template<> struct __usdt_t<T> { static const bool is_signed = (T)-1 < (T)1; }; \
508 template<> struct __usdt_t<const T> { static const bool is_signed = (T)-1 < (T)1; }; \
509 template<> struc
[all...]
/linux/Documentation/devicetree/bindings/sound/
H A Dwidgets.txt7 "template-wname", "user-supplied-wname"
9 The "template-wname" being the template widget name and currently includes:
/linux/drivers/bus/
H A Dvexpress-config.c57 u32 template[] __counted_by(num_templates); /* Keep it last! */
173 command = func->template[index]; in vexpress_syscfg_exec()
287 func = kzalloc_flex(*func, template, num); 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/sound/soc/codecs/
H A Dsigmadsp.c638 struct snd_kcontrol_new template; in sigmadsp_samplerate_valid()
641 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control()
642 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control()
643 template.name = ctrl->name; in sigmadsp_alloc_control()
644 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control() local
645 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control()
646 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control()
647 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control()
648 template in sigmadsp_alloc_control()
[all...]
/linux/rust/zerocopy/rustdoc/
H A Dstyle.css14 grid-template-columns: repeat(var(--arity), minmax(200px, 1fr));
15 grid-template-rows: auto 1fr;
31 grid-template-columns: subgrid;
32 grid-template-rows: subgrid;
/linux/sound/soc/intel/catpt/
H A Dpcm.c268 struct catpt_stream_template *template; in catpt_dai_startup()
274 template = catpt_get_stream_template(substream); in catpt_dai_startup()
285 res = catpt_request_region(&cdev->dram, template->persistent_size); in catpt_dai_startup()
293 stream->template = template; in catpt_dai_startup()
420 ret = catpt_ipc_alloc_stream(cdev, stream->template->path_id, in catpt_dai_hw_params()
421 stream->template->type, in catpt_dai_hw_params()
423 stream->template->num_entries, in catpt_dai_hw_free()
424 stream->template->entries, in catpt_dai_hw_free()
502 if (stream->template in catpt_dai_trigger()
258 struct catpt_stream_template *template; catpt_dai_startup() local
1144 struct catpt_stream_template *template; catpt_arm_stream_templates() local
[all...]
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c1260 * tpm2_create_primary() - create a primary key using a fixed P-256 template
1269 * RSA, so even slow TPMs can create one fast). The template uses the
1282 struct tpm_buf *template __free(kfree) = NULL; in tpm2_create_primary()
1290 template = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_create_primary()
1291 if (!template) in tpm2_create_primary()
1296 tpm_buf_init_sized(template, TPM_BUFSIZE); in tpm2_create_primary()
1299 * create the template. Note: in order for userspace to in tpm2_create_primary()
1301 * and certify this NULL primary, meaning all the template in tpm2_create_primary()
1304 * key H template (H has zero size unique points) in tpm2_create_primary()
1308 tpm_buf_append_u16(template, TPM_ALG_EC in tpm2_create_primary()
[all...]
/linux/scripts/atomic/
H A 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/sound/soc/
H A Dsoc-dapm.c735 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
749 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
750 template.reg = mc->reg; in dapm_kcontrol_data_alloc()
751 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc()
752 template.shift = mc->shift; in dapm_kcontrol_data_alloc()
754 template.off_val = mc->max; in dapm_kcontrol_data_alloc()
756 template.off_val = 0; in dapm_kcontrol_data_alloc()
757 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
758 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
759 template.name = name; in dapm_kcontrol_data_alloc()
[all …]
H A Dsoc-topology.c1105 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create()
1126 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create()
1129 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create()
1130 if ((int)template.id < 0) in soc_tplg_dapm_widget_create()
1131 return template.id; in soc_tplg_dapm_widget_create()
1134 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1135 if (!template.name) in soc_tplg_dapm_widget_create()
1137 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1138 if (!template in soc_tplg_dapm_widget_create()
1101 struct snd_soc_dapm_widget template, *widget; soc_tplg_dapm_widget_create() local
[all...]

12345