patch_instruction
return patch_instruction(addr, ppc_inst(val));
return patch_instruction(addr, ppc_inst(val));
return patch_instruction((u32 *)patch_site_addr(site), instr);
return patch_instruction(addr, ppc_inst((*addr & ~clr) | set));
int patch_instruction(u32 *addr, ppc_inst_t instr);
patch_instruction(p, ppc_inst(PPC_RAW_NOP()));
patch_instruction(epapr_hypercall_start + i, inst);
patch_instruction(epapr_ev_idle_start + i, inst);
patch_instruction(addr, ppc_inst(PPC_RAW_NOP()));
err = patch_instruction(addr, ppc_inst(BREAK_INSTR));
err = patch_instruction(addr, ppc_inst(instr));
patch_instruction(p->ainsn.insn, insn);
WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(BREAKPOINT_INSTRUCTION)));
WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(p->opcode)));
if (patch_instruction(&entry->jump[0], ppc_inst(PPC_RAW_LIS(_R12, PPC_HA(val)))))
if (patch_instruction(&entry->jump[1], ppc_inst(PPC_RAW_ADDI(_R12, _R12, PPC_LO(val)))))
if (patch_instruction(&entry->jump[2], ppc_inst(PPC_RAW_MTCTR(_R12))))
if (patch_instruction(&entry->jump[3], ppc_inst(PPC_RAW_BCTR())))
return patch_instruction(loc, ppc_inst((*loc & 0xffff0000) | value));
if (patch_instruction(location, ppc_inst(value)))
if (patch_instruction(&entry->jump[i],
if (patch_instruction(&entry->jump[0],
if (patch_instruction(&entry->jump[0],
if (patch_instruction(&entry->jump[1],
return patch_instruction(instruction, ppc_inst(PPC_INST_LD_TOC));
if (patch_instruction((u32 *)location, ppc_inst(value)))
if (patch_instruction((u32 *)location,
if (patch_instruction((u32 *)location,
patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HI(val))));
patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val))));
patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HIGHEST(val))));
patch_instruction(addr++, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_HIGHER(val))));
patch_instruction(addr++, ppc_inst(PPC_RAW_SLDI(reg, reg, 32)));
patch_instruction(addr++, ppc_inst(PPC_RAW_ORIS(reg, reg, PPC_HI(val))));
patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val))));
rc = patch_instruction(buff + i, ppc_inst(*(optprobe_template_entry + i)));
patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback);
patch_instruction(buff + TMPL_EMULATE_IDX, branch_emulate_step);
patch_instruction(op->kp.addr, instr);
patch_instruction(addr, insn); /* replace b by bne cr0 */
err = patch_instruction(site, ppc_inst(PPC_RAW_BLR()));
err = patch_instruction(site, ppc_inst(PPC_RAW_NOP()));
err = patch_instruction(site, ppc_inst(PPC_RAW_LI(_R3, 0)));
err = patch_instruction(tramp, ppc_inst(PPC_RAW_BLR()));
err = patch_instruction(tramp, ppc_inst(PPC_RAW_NOP()));
ret = patch_instruction((u32 *)ip, new);
ret = patch_instruction((u32 *)ip, new);
if (patch_instruction((u32 *)ip, pop)) {
if (patch_instruction((u32 *)ip, ppc_inst(PPC_RAW_NOP()))) {
return patch_instruction((u32 *)ip, new);
NOKPROBE_SYMBOL(patch_instruction);
NOKPROBE_SYMBOL(patch_instruction)
return patch_instruction(addr, instr);
patch_instruction(dest + j, ppc_inst(instrs[j]));
patch_instruction(dest, ppc_inst(instrs[0]));
patch_instruction(dest + 2, ppc_inst(instrs[2]));
patch_instruction(dest + 1, ppc_inst(instrs[1]));
patch_instruction(dest + 2, ppc_inst(instrs[2]));
patch_instruction(dest, ppc_inst(instrs[0]));
patch_instruction(start, ppc_inst(PPC_RAW_NOP()));
patch_instruction(iptr, instr);
patch_instruction(iptr, inst);
return patch_instruction(ip, new_inst);
patch_instruction(vector, ppc_inst(save_vector));
patch_instruction(bp->instr, instr);
patch_instruction(ppc_inst_next(bp->instr, bp->instr),
if (patch_instruction((u32 *)bp->address,
&& patch_instruction(