Lines Matching refs:template

72 	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()
231 else if (bundle_encoding[template][slot] == B) { in unsupported_inst()
253 else if (unlikely(bundle_encoding[template][slot] == F)) { in unsupported_inst()
285 static void __kprobes prepare_break_inst(uint template, uint slot, in prepare_break_inst() argument
318 update_kprobe_inst_flag(template, slot, major_opcode, kprobe_inst, p); in prepare_break_inst()
325 unsigned int template; in get_kprobe_inst() local
327 template = bundle->quad0.template; in get_kprobe_inst()
354 static int __kprobes valid_kprobe_addr(int template, int slot, in valid_kprobe_addr() argument
357 if ((slot > 2) || ((bundle_encoding[template][1] == L) && slot > 1)) { in valid_kprobe_addr()
424 unsigned int template = bundle->quad0.template; in __is_ia64_break_inst() local
428 if (slot == 1 && bundle_encoding[template][1] == L) in __is_ia64_break_inst()
455 unsigned int template = bundle->quad0.template; in can_boost() local
462 template &= 0x1e; in can_boost()
463 if (template >= 0x10 /* including B unit */ || in can_boost()
464 template == 0x04 /* including X unit */ || in can_boost()
465 template == 0x06) /* undefined */ in can_boost()
496 unsigned int slot = addr & 0xf, template, major_opcode = 0; in arch_prepare_kprobe() local
501 template = bundle->quad0.template; in arch_prepare_kprobe()
503 if(valid_kprobe_addr(template, slot, addr)) in arch_prepare_kprobe()
507 if (slot == 1 && bundle_encoding[template][1] == L) in arch_prepare_kprobe()
513 qp = unsupported_inst(template, slot, major_opcode, kprobe_inst, addr); in arch_prepare_kprobe()
523 prepare_break_inst(template, slot, major_opcode, kprobe_inst, p, qp); in arch_prepare_kprobe()
600 unsigned long template; in resume_execution() local
603 template = p->ainsn.insn->bundle.quad0.template; in resume_execution()
605 if (slot == 1 && bundle_encoding[template][1] == L) in resume_execution()