| /linux/drivers/leds/ |
| A D | leds-gpio.c | 104 if (template->panic_indicator) in create_gpio_led() 106 if (template->retain_state_shutdown) in create_gpio_led() 113 if (template->name) { in create_gpio_led() 114 led_dat->cdev.name = template->name; in create_gpio_led() 222 if (!gpio_is_valid(template->gpio)) in gpio_led_get_gpiod() 225 if (template->active_low) in gpio_led_get_gpiod() 229 template->name); in gpio_led_get_gpiod() 257 if (template->gpiod) in gpio_led_probe() 258 led_dat->gpiod = template->gpiod; in gpio_led_probe() 262 i, template); in gpio_led_probe() [all …]
|
| /linux/arch/ia64/kernel/ |
| A D | kprobes.c | 105 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag() 146 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst() 325 unsigned int template; in get_kprobe_inst() local 327 template = bundle->quad0.template; in get_kprobe_inst() 424 unsigned int template = bundle->quad0.template; in __is_ia64_break_inst() local 455 unsigned int template = bundle->quad0.template; in can_boost() local 462 template &= 0x1e; in can_boost() 465 template == 0x06) /* undefined */ in can_boost() 501 template = bundle->quad0.template; in arch_prepare_kprobe() 600 unsigned long template; in resume_execution() local [all …]
|
| /linux/Documentation/security/ |
| 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 32 measurement entries. Defining a new template descriptor requires 33 specifying the template format (a string of field identifiers separated 41 mechanism) to generate a new measurement entry by using the template 46 a given template but, instead, it simply calls the ``init()`` method of the template 53 method for each item of the array of template fields structures. 60 In the following, there is the list of supported template fields 87 Below, there is the list of defined template descriptors: [all …]
|
| /linux/security/integrity/ima/ |
| A D | ima_template.c | 290 result = template_desc_init_fields(template->fmt, in ima_init_template() 291 &(template->fields), in ima_init_template() 292 &(template->num_fields)); in ima_init_template() 295 (strlen(template->name) ? in ima_init_template() 296 template->name : template->fmt), result); in ima_init_template() 300 template = ima_template_desc_buf(); in ima_init_template() 301 if (!template) { in ima_init_template() 307 &(template->fields), in ima_init_template() 308 &(template->num_fields)); in ima_init_template() 311 (strlen(template->name) ? in ima_init_template() [all …]
|
| /linux/include/trace/ |
| 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))
|
| A D | define_trace.h | 53 #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))
|
| A D | trace_events.h | 125 #define DEFINE_EVENT(template, name, proto, args) \ argument 131 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 135 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 216 #define DEFINE_EVENT(template, name, proto, args) argument 413 struct trace_event_raw_##template *field; \ 754 #define DEFINE_EVENT(template, call, proto, args) \ argument 804 #define DEFINE_EVENT(template, call, proto, args) \ argument 807 .class = &event_class_##template, \ 811 .event.funcs = &trace_event_type_funcs_##template, \ 812 .print_fmt = print_fmt_##template, \ [all …]
|
| A D | perf.h | 79 #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/kernel/debug/kdb/ |
| A D | kdb_bp.c | 285 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/include/trace/events/ |
| A D | bpf_test_run.h | 29 #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))
|
| 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/scripts/atomic/ |
| A D | gen-atomic-fallback.sh | 11 local template="$1"; shift 27 if [ ! -z "${template}" ]; then 29 . ${template} 84 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 104 if [ ! -z "${template}" ]; then 110 if [ ! -z "${template}" ]; then
|
| /linux/drivers/bus/ |
| A D | vexpress-config.c | 57 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/sound/soc/codecs/ |
| A D | sigmadsp.c | 646 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local 649 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control() 650 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control() 651 template.name = ctrl->name; in sigmadsp_alloc_control() 652 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control() 653 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control() 654 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control() 655 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control() 656 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control() 658 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control() [all …]
|
| /linux/tools/perf/scripts/python/ |
| A D | flamegraph.py | 54 not os.path.isfile(self.args.template): 59 "(--format FORMAT).".format(self.args.template), 132 with io.open(self.args.template, encoding="utf-8") as template: 134 template.read()
|
| /linux/sound/soc/intel/catpt/ |
| A D | pcm.c | 263 struct catpt_stream_template *template; in catpt_dai_startup() local 268 template = catpt_get_stream_template(substream); in catpt_dai_startup() 287 stream->template = template; in catpt_dai_startup() 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() 1133 struct catpt_stream_template *template; in catpt_arm_stream_templates() local 1137 template = catpt_topology[i]; in catpt_arm_stream_templates() 1138 template->persistent_size = 0; in catpt_arm_stream_templates() 1140 for (j = 0; j < template->num_entries; j++) { in catpt_arm_stream_templates() [all …]
|
| /linux/tools/perf/util/ |
| A D | llvm-utils.c | 462 const char *template = llvm_param.clang_bpf_cmd_template; in llvm__compile_bpf() local 475 if (!template) in llvm__compile_bpf() 476 template = CLANG_BPF_CMD_DEFAULT_TEMPLATE; in llvm__compile_bpf() 515 template, llc_path, opts) < 0) { in llvm__compile_bpf() 520 template = pipe_template; in llvm__compile_bpf() 532 pr_debug("llvm compiling command template: %s\n", template); in llvm__compile_bpf() 535 if (asprintf(&command_echo, "echo -n \"%s\"", template) < 0) in llvm__compile_bpf() 544 err = read_from_pipe(template, &obj_buf, &obj_buf_sz); in llvm__compile_bpf()
|
| /linux/Documentation/devicetree/bindings/sound/ |
| A D | widgets.txt | 7 "template-wname", "user-supplied-wname" 9 The "template-wname" being the template widget name and currently includes:
|
| /linux/sound/soc/ |
| A D | soc-dapm.c | 386 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc() 394 template.on_val = template.off_val; in dapm_kcontrol_data_alloc() 396 template.name = name; in dapm_kcontrol_data_alloc() 402 &template); in dapm_kcontrol_data_alloc() 424 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc() 429 template.on_val = template.off_val; in dapm_kcontrol_data_alloc() 431 template.name = name; in dapm_kcontrol_data_alloc() 4155 memset(&template, 0, sizeof(template)); in snd_soc_dapm_new_dai() 4219 memset(&template, 0, sizeof(template)); in snd_soc_dapm_new_dai_widgets() 4228 template.name); in snd_soc_dapm_new_dai_widgets() [all …]
|
| A D | soc-topology.c | 1443 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create() 1447 if ((int)template.id < 0) in soc_tplg_dapm_widget_create() 1448 return template.id; in soc_tplg_dapm_widget_create() 1452 if (!template.name) in soc_tplg_dapm_widget_create() 1455 if (!template.sname) { in soc_tplg_dapm_widget_create() 1474 template.num_kcontrols = 0; in soc_tplg_dapm_widget_create() 1536 template.kcontrol_news = kc; in soc_tplg_dapm_widget_create() 1566 kfree(template.sname); in soc_tplg_dapm_widget_create() 1567 kfree(template.name); in soc_tplg_dapm_widget_create() 1575 kfree(template.sname); in soc_tplg_dapm_widget_create() [all …]
|
| /linux/block/ |
| A D | blk-integrity.c | 397 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument 402 template->flags; in blk_integrity_register() 403 bi->interval_exp = template->interval_exp ? : in blk_integrity_register() 405 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register() 406 bi->tuple_size = template->tuple_size; in blk_integrity_register() 407 bi->tag_size = template->tag_size; in blk_integrity_register()
|
| /linux/scripts/gcc-plugins/ |
| A D | gcc-common.h | 159 template <> 160 template <> 317 template <> 318 template <> 324 template <> 325 template <>
|
| /linux/drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-std.c | 280 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/tools/bpf/bpftool/ |
| A D | gen.c | 276 static void codegen(const char *template, ...) in codegen() argument 284 n = strlen(template); in codegen() 288 src = template; in codegen() 299 src - template - 1, template, c); in codegen() 310 src - template - 1, template); in codegen() 328 va_start(args, template); in codegen()
|
| /linux/arch/um/os-Linux/ |
| A D | mem.c | 95 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()
|