Lines Matching refs:buff
158 kprobe_opcode_t *buff;
168 buff = get_optinsn_slot();
169 if (!buff)
181 b_offset = (unsigned long)buff - (unsigned long)p->addr;
186 b_offset = (unsigned long)(buff + TMPL_RET_IDX) - nip;
193 pr_devel("Copying template to %p, size %lu\n", buff, size);
195 rc = patch_instruction(buff + i, ppc_inst(*(optprobe_template_entry + i)));
204 patch_imm_load_insns((unsigned long)op, 3, buff + TMPL_OP_IDX);
216 rc = create_branch(&branch_op_callback, buff + TMPL_CALL_HDLR_IDX,
219 rc |= create_branch(&branch_emulate_step, buff + TMPL_EMULATE_IDX,
225 patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback);
226 patch_instruction(buff + TMPL_EMULATE_IDX, branch_emulate_step);
232 patch_imm_load_insns(ppc_inst_as_ulong(temp), 4, buff + TMPL_INSN_IDX);
237 patch_branch(buff + TMPL_RET_IDX, nip, 0);
239 flush_icache_range((unsigned long)buff, (unsigned long)(&buff[TMPL_END_IDX]));
241 op->optinsn.insn = buff;
246 free_optinsn_slot(buff, 0);