/linux/arch/powerpc/lib/ |
A D | code-patching.c | 23 if (!ppc_inst_prefixed(instr)) { in __patch_instruction() 24 u32 val = ppc_inst_val(instr); in __patch_instruction() 203 struct ppc_inst instr; in patch_branch() local 263 *instr = ppc_inst(0); in create_branch() 317 return instr_is_branch_iform(instr) || instr_is_branch_bform(instr); in instr_is_relative_branch() 322 return instr_is_relative_branch(instr) && (ppc_inst_val(instr) & BRANCH_SET_LINK); in instr_is_relative_link_branch() 336 imm += (unsigned long)instr; in branch_iform_target() 420 struct ppc_inst instr; in test_branch_iform() local 502 struct ppc_inst instr; in test_create_function_call() local 516 struct ppc_inst instr; in test_branch_bform() local [all …]
|
A D | test_emulate_step.c | 795 struct ppc_inst instr; in test_plxvp_pstxvp() local 909 struct ppc_inst instr; member 938 .instr = TEST_SETB(20, 1), 945 .instr = TEST_SETB(20, 4), 952 .instr = TEST_SETB(20, 5), 1603 struct ppc_inst instr, in emulate_compute_instr() argument 1609 if (!regs || !ppc_inst_val(instr)) in emulate_compute_instr() 1630 struct ppc_inst instr) in execute_compute_instr() argument 1634 if (!regs || !ppc_inst_val(instr)) in execute_compute_instr() 1661 struct ppc_inst instr; in run_tests_compute() local [all …]
|
/linux/arch/arm/mm/ |
A D | alignment.c | 335 if (!LDST_P_BIT(instr) || LDST_W_BIT(instr)) in do_alignment_finish_ldst() 354 if (instr & 0x40) in do_alignment_ldrhstrh() 372 if (instr & 0x40) in do_alignment_ldrhstrh() 457 if ((!LDST_P_BIT(instr) && LDST_W_BIT(instr)) || user_mode(regs)) in do_alignment_ldrstr() 516 rn = RN_BITS(instr); in do_alignment_ldmstm() 578 if (!LDST_L_BIT(instr) || !(REGMASK_BITS(instr) & (1 << 15))) in do_alignment_ldmstm() 721 u32 instr = *pinstr; in do_alignment_t32_to_handler() local 771 u32 instr = 0; in alignment_get_arm() local 786 u16 instr = 0; in alignment_get_thumb() local 806 u32 instr = 0; in do_alignment() local [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | probes.h | 16 #define IS_TW(instr) (((instr) & 0xfc0007fe) == 0x7c000008) argument 17 #define IS_TD(instr) (((instr) & 0xfc0007fe) == 0x7c000088) argument 18 #define IS_TDI(instr) (((instr) & 0xfc000000) == 0x08000000) argument 19 #define IS_TWI(instr) (((instr) & 0xfc000000) == 0x0c000000) argument 22 #define is_trap(instr) (IS_TW(instr) || IS_TD(instr) || \ argument 23 IS_TWI(instr) || IS_TDI(instr)) 25 #define is_trap(instr) (IS_TW(instr) || IS_TWI(instr)) argument
|
A D | disassemble.h | 90 static inline unsigned make_dsisr(unsigned instr) in make_dsisr() argument 96 dsisr = (instr & 0x03ff0000) >> 16; in make_dsisr() 98 if (IS_XFORM(instr)) { in make_dsisr() 100 dsisr |= (instr & 0x00000006) << 14; in make_dsisr() 102 dsisr |= (instr & 0x00000040) << 8; in make_dsisr() 104 dsisr |= (instr & 0x00000780) << 3; in make_dsisr() 107 dsisr |= (instr & 0x04000000) >> 12; in make_dsisr() 109 dsisr |= (instr & 0x78000000) >> 17; in make_dsisr() 111 if (IS_DSFORM(instr)) in make_dsisr() 112 dsisr |= (instr & 0x00000003) << 18; in make_dsisr()
|
A D | code-patching.h | 27 int create_branch(struct ppc_inst *instr, const u32 *addr, 29 int create_cond_branch(struct ppc_inst *instr, const u32 *addr, 32 int patch_instruction(u32 *addr, struct ppc_inst instr); 33 int raw_patch_instruction(u32 *addr, struct ppc_inst instr); 40 static inline int patch_instruction_site(s32 *site, struct ppc_inst instr) in patch_instruction_site() argument 42 return patch_instruction((u32 *)patch_site_addr(site), instr); in patch_instruction_site() 61 int instr_is_relative_branch(struct ppc_inst instr); 62 int instr_is_relative_link_branch(struct ppc_inst instr); 63 unsigned long branch_target(const u32 *instr); 64 int translate_branch(struct ppc_inst *instr, const u32 *dest, const u32 *src); [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_asm.c | 30 u16 br_get_offset(u64 instr) in br_get_offset() argument 56 addr = br_get_offset(*instr); in br_add_offset() 57 br_set_offset(instr, addr + offset); in br_add_offset() 60 static bool immed_can_modify(u64 instr) in immed_can_modify() argument 62 if (FIELD_GET(OP_IMMED_INV, instr) || in immed_can_modify() 71 u16 immed_get_value(u64 instr) in immed_get_value() argument 75 if (!immed_can_modify(instr)) in immed_get_value() 87 if (!immed_can_modify(*instr)) in immed_set_value() 98 *instr &= ~OP_IMMED_IMM; in immed_set_value() 106 if (!immed_can_modify(*instr)) in immed_add_value() [all …]
|
/linux/samples/seccomp/ |
A D | bpf-helper.c | 32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps() local 33 if (instr->code != (BPF_JMP+BPF_JA)) in bpf_resolve_jumps() 35 switch ((instr->jt<<8)|instr->jf) { in bpf_resolve_jumps() 39 labels->labels[instr->k].label); in bpf_resolve_jumps() 42 instr->k = labels->labels[instr->k].location - in bpf_resolve_jumps() 44 instr->jt = 0; in bpf_resolve_jumps() 45 instr->jf = 0; in bpf_resolve_jumps() 50 labels->labels[instr->k].label); in bpf_resolve_jumps() 54 instr->k = 0; /* fall through */ in bpf_resolve_jumps() 55 instr->jt = 0; in bpf_resolve_jumps() [all …]
|
/linux/arch/alpha/lib/ |
A D | stacktrace.c | 4 typedef unsigned int instr; typedef 34 (((instr)(INSTR) >= BR_OP) | ((instr)(INSTR) < LDA_OP) | \ 36 (((instr)(INSTR) & 0x0c000000) != 0))) 48 static instr * 51 instr * ret_pc = 0; in display_stored_regs() 61 ret_pc = (instr *)value; in display_stored_regs() 67 static instr * 68 seek_prologue(instr * pc) in seek_prologue() 78 stack_increment(instr * prologue_pc) in stack_increment() 93 instr * ret_pc; in stacktrace() [all …]
|
/linux/scripts/kconfig/lxdialog/ |
A D | inputbox.c | 41 instr[0] = '\0'; in dialog_inputbox() 43 strcpy(instr, init); in dialog_inputbox() 88 len = strlen(instr); in dialog_inputbox() 99 waddstr(dialog, instr); in dialog_inputbox() 127 instr[i] = instr[i+1]; in dialog_inputbox() 133 instr[len] = '\0'; in dialog_inputbox() 136 if (!instr[show_x + i]) { in dialog_inputbox() 190 instr[i] = instr[i-1]; in dialog_inputbox() 191 instr[pos] = key; in dialog_inputbox() 193 instr[len] = key; in dialog_inputbox() [all …]
|
/linux/arch/arm/include/asm/ |
A D | domain.h | 133 #define TUSER(instr) TUSERCOND(instr, ) argument 134 #define TUSERCOND(instr, cond) #instr "t" #cond argument 136 #define TUSER(instr) TUSERCOND(instr, ) argument 137 #define TUSERCOND(instr, cond) #instr #cond argument 147 #define TUSER(instr) instr ## t argument 149 #define TUSER(instr) instr argument
|
A D | unified.h | 33 #define W(instr) instr.w argument 35 #define WASM(instr) #instr ".w" 46 #define W(instr) instr 48 #define WASM(instr) #instr
|
/linux/drivers/watchdog/ |
A D | wdat_wdt.c | 71 *value = ioread8(instr->reg); in wdat_wdt_read() 74 *value = ioread16(instr->reg); in wdat_wdt_read() 77 *value = ioread32(instr->reg); in wdat_wdt_read() 96 iowrite8((u8)value, instr->reg); in wdat_wdt_write() 102 iowrite32(value, instr->reg); in wdat_wdt_write() 117 struct wdat_instruction *instr; in wdat_wdt_run_action() local 388 instr = devm_kzalloc(dev, sizeof(*instr), GFP_KERNEL); in wdat_wdt_probe() 389 if (!instr) in wdat_wdt_probe() 392 INIT_LIST_HEAD(&instr->node); in wdat_wdt_probe() 393 instr->entry = entries[i]; in wdat_wdt_probe() [all …]
|
/linux/lib/xz/ |
A D | xz_dec_bcj.c | 163 uint32_t instr; in bcj_powerpc() local 168 instr &= 0x03FFFFFC; in bcj_powerpc() 170 instr &= 0x03FFFFFC; in bcj_powerpc() 171 instr |= 0x48000001; in bcj_powerpc() 217 uint64_t instr; in bcj_ia64() local 230 instr = 0; in bcj_ia64() 319 uint32_t instr; in bcj_sparc() local 323 if ((instr >> 22) == 0x100 || (instr >> 22) == 0x1FF) { in bcj_sparc() 324 instr <<= 2; in bcj_sparc() 326 instr >>= 2; in bcj_sparc() [all …]
|
/linux/arch/s390/kernel/ |
A D | nospec-branch.c | 103 u8 *instr, *thunk, *br; in __nospec_revert() local 109 instr = (u8 *) epo + *epo; in __nospec_revert() 110 if (instr[0] == 0xc0 && (instr[1] & 0x0f) == 0x04) in __nospec_revert() 112 else if (instr[0] == 0xc0 && (instr[1] & 0x0f) == 0x05) in __nospec_revert() 116 thunk = instr + (*(int *)(instr + 2)) * 2; in __nospec_revert() 136 insnbuf[1] = (instr[1] & 0xf0) | (br[1] & 0x0f); in __nospec_revert() 146 insnbuf[1] = (instr[1] & 0xf0) | (br[1] & 0x0f); in __nospec_revert() 159 s390_kernel_write(instr, insnbuf, 6); in __nospec_revert()
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_reqmgr.c | 450 sr->instr.ih.value = 0; in nitrox_process_se_request() 451 sr->instr.ih.s.g = 1; in nitrox_process_se_request() 455 sr->instr.ih.s.tlen = sr->instr.ih.s.fsz + sr->in.total_bytes; in nitrox_process_se_request() 456 sr->instr.ih.bev = cpu_to_be64(sr->instr.ih.value); in nitrox_process_se_request() 459 sr->instr.irh.value[0] = 0; in nitrox_process_se_request() 460 sr->instr.irh.s.uddl = MIN_UDD_LEN; in nitrox_process_se_request() 467 sr->instr.irh.s.opcode = req->opcode; in nitrox_process_se_request() 468 sr->instr.irh.bev[0] = cpu_to_be64(sr->instr.irh.value[0]); in nitrox_process_se_request() 474 sr->instr.slc.value[0] = 0; in nitrox_process_se_request() 476 sr->instr.slc.bev[0] = cpu_to_be64(sr->instr.slc.value[0]); in nitrox_process_se_request() [all …]
|
/linux/drivers/mtd/nand/raw/ |
A D | au1550nd.c | 160 switch (instr->type) { in au1550nd_exec_instr() 162 writeb(instr->ctx.cmd.opcode, in au1550nd_exec_instr() 170 writeb(instr->ctx.addr.addrs[i], in au1550nd_exec_instr() 179 !instr->ctx.data.force_8bit) in au1550nd_exec_instr() 181 instr->ctx.data.len); in au1550nd_exec_instr() 184 instr->ctx.data.len); in au1550nd_exec_instr() 189 !instr->ctx.data.force_8bit) in au1550nd_exec_instr() 191 instr->ctx.data.len); in au1550nd_exec_instr() 194 instr->ctx.data.len); in au1550nd_exec_instr() 204 if (instr->delay_ns) in au1550nd_exec_instr() [all …]
|
A D | gpio.c | 76 const struct nand_op_instr *instr) in gpio_nand_exec_instr() argument 81 switch (instr->type) { in gpio_nand_exec_instr() 86 writeb(instr->ctx.cmd.opcode, gpiomtd->io); in gpio_nand_exec_instr() 95 for (i = 0; i < instr->ctx.addr.naddrs; i++) in gpio_nand_exec_instr() 104 !instr->ctx.data.force_8bit) in gpio_nand_exec_instr() 106 instr->ctx.data.len / 2); in gpio_nand_exec_instr() 109 instr->ctx.data.len); in gpio_nand_exec_instr() 115 !instr->ctx.data.force_8bit) in gpio_nand_exec_instr() 117 instr->ctx.data.len / 2); in gpio_nand_exec_instr() 120 instr->ctx.data.len); in gpio_nand_exec_instr() [all …]
|
A D | vf610_nfc.c | 360 const struct nand_op_instr *instr; in vf610_nfc_cmd() local 373 if (!instr) in vf610_nfc_cmd() 376 if (instr && instr->type == NAND_OP_CMD_INSTR) { in vf610_nfc_cmd() 383 if (instr && instr->type == NAND_OP_ADDR_INSTR) { in vf610_nfc_cmd() 388 u8 val = instr->ctx.addr.addrs[i]; in vf610_nfc_cmd() 400 if (instr && instr->type == NAND_OP_DATA_OUT_INSTR) { in vf610_nfc_cmd() 403 force8bit = instr->ctx.data.force_8bit; in vf610_nfc_cmd() 417 if (instr && instr->type == NAND_OP_CMD_INSTR) { in vf610_nfc_cmd() 424 if (instr && instr->type == NAND_OP_WAITRDY_INSTR) { in vf610_nfc_cmd() 430 if (instr && instr->type == NAND_OP_DATA_IN_INSTR) { in vf610_nfc_cmd() [all …]
|
A D | ams-delta.c | 143 const struct nand_op_instr *instr; in gpio_nand_exec_op() local 151 for (instr = op->instrs; instr < op->instrs + op->ninstrs; instr++) { in gpio_nand_exec_op() 152 switch (instr->type) { in gpio_nand_exec_op() 161 gpio_nand_write_buf(priv, instr->ctx.addr.addrs, in gpio_nand_exec_op() 162 instr->ctx.addr.naddrs); in gpio_nand_exec_op() 167 gpio_nand_read_buf(priv, instr->ctx.data.buf.in, in gpio_nand_exec_op() 168 instr->ctx.data.len); in gpio_nand_exec_op() 172 gpio_nand_write_buf(priv, instr->ctx.data.buf.out, in gpio_nand_exec_op() 173 instr->ctx.data.len); in gpio_nand_exec_op() 179 instr->ctx.waitrdy.timeout_ms) : in gpio_nand_exec_op() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | align.c | 118 unsigned int nb, flags, instr; in emulate_spe() local 120 instr = ppc_inst_val(ppc_instr); in emulate_spe() 121 instr = (instr >> 1) & 0x1f; in emulate_spe() 126 nb = spe_aligninfo[instr].len; in emulate_spe() 127 flags = spe_aligninfo[instr].flags; in emulate_spe() 140 switch (instr) { in emulate_spe() 188 switch (instr) { in emulate_spe() 303 struct ppc_inst instr; in fix_alignment() local 318 instr = ppc_inst_swab(instr); in fix_alignment() 325 return emulate_spe(regs, reg, instr); in fix_alignment() [all …]
|
/linux/arch/arm64/kernel/ |
A D | trace-events-emulation.h | 12 TP_PROTO(const char *instr, u64 addr), 13 TP_ARGS(instr, addr), 16 __string(instr, instr) 21 __assign_str(instr, instr); 25 TP_printk("instr=\"%s\" addr=0x%llx", __get_str(instr), __entry->addr)
|
A D | armv8_deprecated.c | 365 static int swp_handler(struct pt_regs *regs, u32 instr) in swp_handler() argument 373 type = instr & TYPE_SWPB; in swp_handler() 375 switch (aarch32_check_condition(instr, regs->pstate)) { in swp_handler() 388 rn = aarch32_insn_extract_reg_num(instr, A32_RN_OFFSET); in swp_handler() 389 rt2 = aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET); in swp_handler() 397 aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET), data); in swp_handler() 458 switch (aarch32_check_condition(instr, regs->pstate)) { in cp15barrier_handler() 471 switch (aarch32_insn_mcr_extract_crm(instr)) { in cp15barrier_handler() 477 if (aarch32_insn_mcr_extract_opc2(instr) == 5) { in cp15barrier_handler() 576 int rc = compat_setend_handler(regs, (instr >> 9) & 1); in a32_setend_handler() [all …]
|
/linux/arch/arm/kernel/ |
A D | traps.c | 428 return fn ? fn(regs, instr) : 1; in call_undef_hook() 433 unsigned int instr; in do_undefinstr() local 442 if (is_wide_instruction(instr)) { in do_undefinstr() 445 instr = __opcode_thumb32_compose(instr, inst2); in do_undefinstr() 451 if (get_user(instr, (u16 __user *)pc)) in do_undefinstr() 453 instr = __mem_to_opcode_thumb16(instr); in do_undefinstr() 454 if (is_wide_instruction(instr)) { in do_undefinstr() 459 instr = __opcode_thumb32_compose(instr, instr2); in do_undefinstr() 464 instr = __mem_to_opcode_arm(instr); in do_undefinstr() 467 if (call_undef_hook(regs, instr) == 0) in do_undefinstr() [all …]
|
A D | swp_emulate.c | 159 static int swp_handler(struct pt_regs *regs, unsigned int instr) in swp_handler() argument 166 res = arm_check_condition(instr, regs->ARM_cpsr); in swp_handler() 187 address = regs->uregs[EXTRACT_REG_NUM(instr, RN_OFFSET)]; in swp_handler() 188 data = regs->uregs[EXTRACT_REG_NUM(instr, RT2_OFFSET)]; in swp_handler() 189 destreg = EXTRACT_REG_NUM(instr, RT_OFFSET); in swp_handler() 191 type = instr & TYPE_SWPB; in swp_handler() 194 EXTRACT_REG_NUM(instr, RN_OFFSET), address, in swp_handler() 195 destreg, EXTRACT_REG_NUM(instr, RT2_OFFSET), data); in swp_handler()
|