Lines Matching refs:template
87 brl->quad0.template = 0x05; /* [MLX](stop) */ in set_brl_inst()
100 static void __kprobes update_kprobe_inst_flag(uint template, uint slot, in update_kprobe_inst_flag() argument
120 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag()
136 } else if (bundle_encoding[template][slot] == X) { in update_kprobe_inst_flag()
153 static uint __kprobes is_cmp_ctype_unc_inst(uint template, uint slot, in is_cmp_ctype_unc_inst() argument
160 if (!((bundle_encoding[template][slot] == I) || in is_cmp_ctype_unc_inst()
161 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst()
189 static int __kprobes unsupported_inst(uint template, uint slot, in unsupported_inst() argument
197 if (is_cmp_ctype_unc_inst(template, slot, major_opcode, kprobe_inst)) { in unsupported_inst()
207 else if (bundle_encoding[template][slot] == I) { in unsupported_inst()
246 else if (bundle_encoding[template][slot] == B) { in unsupported_inst()
268 else if (unlikely(bundle_encoding[template][slot] == F)) { in unsupported_inst()
300 static void __kprobes prepare_break_inst(uint template, uint slot, in prepare_break_inst() argument
333 update_kprobe_inst_flag(template, slot, major_opcode, kprobe_inst, p); in prepare_break_inst()
340 unsigned int template; in get_kprobe_inst() local
342 template = bundle->quad0.template; in get_kprobe_inst()
369 static int __kprobes valid_kprobe_addr(int template, int slot, in valid_kprobe_addr() argument
372 if ((slot > 2) || ((bundle_encoding[template][1] == L) && slot > 1)) { in valid_kprobe_addr()
515 unsigned int template = bundle->quad0.template; in __is_ia64_break_inst() local
519 if (slot == 1 && bundle_encoding[template][1] == L) in __is_ia64_break_inst()
546 unsigned int template = bundle->quad0.template; in can_boost() local
553 template &= 0x1e; in can_boost()
554 if (template >= 0x10 /* including B unit */ || in can_boost()
555 template == 0x04 /* including X unit */ || in can_boost()
556 template == 0x06) /* undefined */ in can_boost()
587 unsigned int slot = addr & 0xf, template, major_opcode = 0; in arch_prepare_kprobe() local
592 template = bundle->quad0.template; in arch_prepare_kprobe()
594 if(valid_kprobe_addr(template, slot, addr)) in arch_prepare_kprobe()
598 if (slot == 1 && bundle_encoding[template][1] == L) in arch_prepare_kprobe()
604 qp = unsupported_inst(template, slot, major_opcode, kprobe_inst, addr); in arch_prepare_kprobe()
614 prepare_break_inst(template, slot, major_opcode, kprobe_inst, p, qp); in arch_prepare_kprobe()
691 unsigned long template; in resume_execution() local
694 template = p->ainsn.insn->bundle.quad0.template; in resume_execution()
696 if (slot == 1 && bundle_encoding[template][1] == L) in resume_execution()