/linux/tools/net/sunrpc/xdrgen/generators/ |
H A D | struct.py | 21 template = get_jinja2_template(environment, "declaration", "close") 22 print(template.render(name=node.name)) 30 template = get_jinja2_template(environment, "definition", field.template) 32 template.render( 39 template = get_jinja2_template(environment, "definition", field.template) 41 template.render( 47 template = get_jinja2_template(environment, "definition", field.template) [all...] |
H A D | pointer.py | 21 template = get_jinja2_template(environment, "declaration", "close") 22 print(template.render(name=node.name)) 30 template = get_jinja2_template(environment, "definition", field.template) 32 template.render( 39 template = get_jinja2_template(environment, "definition", field.template) 41 template.render( 47 template = get_jinja2_template(environment, "definition", field.template) [all...] |
H A D | typedef.py | 23 template = get_jinja2_template(environment, "declaration", node.template) 25 template.render( 32 template = get_jinja2_template(environment, "declaration", node.template) 33 print(template.render(name=node.name)) 35 template = get_jinja2_template(environment, "declaration", node.template) 36 print(template.render(name=node.name, size=node.size)) 38 template [all...] |
H A D | union.py | 18 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( 44 template = get_jinja2_template(environment, "definition", "case_spec") 46 template.render( 56 template = get_jinja2_template(environment, "definition", "open") 57 print(template.render(name=node.name)) 67 template = get_jinja2_template(environment, "definition", "close") 68 print(template [all...] |
H A D | enum.py | 21 template = self.environment.get_template("declaration/enum.j2") 22 print(template.render(name=node.name)) 26 template = self.environment.get_template("definition/open.j2") 27 print(template.render(name=node.name)) 29 template = self.environment.get_template("definition/enumerator.j2") 31 print(template.render(name=enumerator.name, value=enumerator.value)) 34 template = self.environment.get_template("definition/close_be.j2") 36 template = self.environment.get_template("definition/close.j2") 37 print(template.render(name=node.name)) 42 template [all...] |
H A D | program.py | 16 template = environment.get_template("definition/open.j2") 17 print(template.render(program=program.upper())) 19 template = environment.get_template("definition/procedure.j2") 23 template.render( 29 template = environment.get_template("definition/close.j2") 30 print(template.render()) 43 template = environment.get_template("declaration/argument.j2") 45 print(template.render(program=program, argument=argument)) 53 template = environment.get_template("declaration/result.j2") 55 print(template.render(program=program, result=result)) [all …]
|
H A D | header_bottom.py | 24 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 D | header_top.py | 24 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 D | leds-gpio.c | 78 static int create_gpio_led(const struct gpio_led *template, in create_gpio_led() argument 86 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led() 97 if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP) { in create_gpio_led() 102 state = (template->default_state == LEDS_GPIO_DEFSTATE_ON); in create_gpio_led() 106 if (!template->retain_state_suspended) in create_gpio_led() 108 if (template->panic_indicator) in create_gpio_led() 110 if (template->retain_state_shutdown) in create_gpio_led() 117 if (template->name) { in create_gpio_led() 118 led_dat->cdev.name = template->name; in create_gpio_led() 212 const struct gpio_led *template) in gpio_led_get_gpiod() argument [all …]
|
/linux/drivers/hid/ |
H A D | hid-uclogic-rdesc-test.c | 16 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 D | IMA-templates.rst | 9 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/include/trace/ |
H A D | trace_events.h | 74 #define DEFINE_EVENT(template, name, proto, args) \ argument 79 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument 80 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 83 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument 84 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 137 #define DEFINE_EVENT(template, name, proto, args) argument 140 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument 231 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument 236 struct trace_event_raw_##template *field; \ 270 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument [all …]
|
H A D | bpf_probe.h | 75 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument 78 check_trace_callback_type_##call(__bpf_trace_##template); \ 88 .bpf_func = __bpf_trace_##template, \ 108 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument 110 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size) 113 #define DEFINE_EVENT(template, call, proto, args) \ argument 114 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0) 117 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument 118 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
|
H A D | trace_custom_events.h | 51 #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 D | define_trace.h | 57 #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/sound/soc/intel/avs/ |
H A D | path.c | 36 if (mod->template->id == template_id) in avs_path_find_module() 47 if (ppl->template->id == template_id) in avs_path_find_pipeline() 55 struct avs_tplg_path_template *pos, *template = NULL; in avs_path_find_path() local 65 template = pos; in avs_path_find_path() 69 if (!template) in avs_path_find_path() 75 if (path->template->owner == template) { in avs_path_find_path() 96 struct avs_tplg_path_template *template, in avs_path_find_variant() argument 102 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() 267 struct avs_tplg_module *t = mod->template; in avs_get_module_control() [all …]
|
H A D | path.h | 21 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/security/integrity/ima/ |
H A D | ima_template.c | 295 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 D | prestera_flower.c | 17 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(sizeof(*template), GFP_KERNEL); in prestera_flower_tmplt_create() 499 if (!template) { in prestera_flower_tmplt_create() [all …]
|
/linux/include/trace/events/ |
H A D | bpf_test_run.h | 46 #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 D | nbd.h | 85 #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/net/sunrpc/xdrgen/ |
H A D | xdr_ast.py | 128 template: str = "fixed_length_opaque" 149 template: str = "variable_length_opaque" 173 template: str = "string" 198 template: str = "fixed_length_array" 221 template: str = "variable_length_array" 246 template: str = "optional_data" 269 template: str = "basic" 289 template: str = "void" 433 template: str = "case_spec" 441 template 78 template: str = "fixed_length_opaque" global() variable in _XdrFixedLengthOpaque 87 template: str = "variable_length_opaque" global() variable in _XdrVariableLengthOpaque 96 template: str = "variable_length_string" global() variable in _XdrVariableLengthString 106 template: str = "fixed_length_array" global() variable in _XdrFixedLengthArray 116 template: str = "variable_length_array" global() variable in _XdrVariableLengthArray 125 template: str = "optional_data" global() variable in _XdrOptionalData 134 template: str = "basic" global() variable in _XdrBasic 141 template: str = "void" global() variable in _XdrVoid 199 template: str = "case_spec" global() variable in _XdrCaseSpec 207 template: str = "default_spec" global() variable in _XdrDefaultSpec [all...] |
/linux/tools/perf/scripts/python/ |
H A D | flamegraph.py | 145 if os.path.isfile(self.args.template): 146 template = f"file://{self.args.template}" 171 …template = "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/drivers/bus/ |
H A D | vexpress-config.c | 57 u32 template[] __counted_by(num_templates); /* Keep it last! */ 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/sound/soc/codecs/ |
H A D | sigmadsp.c | 645 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local 648 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control() 649 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control() 650 template.name = ctrl->name; in sigmadsp_alloc_control() 651 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control() 652 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control() 653 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control() 654 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control() 655 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control() 657 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control() [all …]
|