/arch/powerpc/include/asm/ |
D | disassemble.h | 14 static inline unsigned int get_op(u32 inst) in get_op() argument 16 return inst >> 26; in get_op() 19 static inline unsigned int get_xop(u32 inst) in get_xop() argument 21 return (inst >> 1) & 0x3ff; in get_xop() 24 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument 26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn() 29 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument 31 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_dcrn() 34 static inline unsigned int get_tmrn(u32 inst) in get_tmrn() argument 36 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_tmrn() [all …]
|
/arch/arm/vfp/ |
D | vfpinstr.h | 10 #define INST_CPRTDO(inst) (((inst) & 0x0f000000) == 0x0e000000) argument 11 #define INST_CPRT(inst) ((inst) & (1 << 4)) argument 12 #define INST_CPRT_L(inst) ((inst) & (1 << 20)) argument 13 #define INST_CPRT_Rd(inst) (((inst) & (15 << 12)) >> 12) argument 14 #define INST_CPRT_OP(inst) (((inst) >> 21) & 7) argument 15 #define INST_CPNUM(inst) ((inst) & 0xf00) argument 30 #define FOP_TO_IDX(inst) ((inst & 0x00b00000) >> 20 | (inst & (1 << 6)) >> 4) argument 49 #define FEXT_TO_IDX(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) argument 51 #define vfp_get_sd(inst) ((inst & 0x0000f000) >> 11 | (inst & (1 << 22)) >> 22) argument 52 #define vfp_get_dd(inst) ((inst & 0x0000f000) >> 12 | (inst & (1 << 22)) >> 18) argument [all …]
|
/arch/arm64/kernel/ |
D | kuser32.S | 23 .inst 0xe92d00f0 // push {r4, r5, r6, r7} 24 .inst 0xe1c040d0 // ldrd r4, r5, [r0] 25 .inst 0xe1c160d0 // ldrd r6, r7, [r1] 26 .inst 0xe1b20f9f // 1: ldrexd r0, r1, [r2] 27 .inst 0xe0303004 // eors r3, r0, r4 28 .inst 0x00313005 // eoreqs r3, r1, r5 29 .inst 0x01a23e96 // stlexdeq r3, r6, [r2] 30 .inst 0x03330001 // teqeq r3, #1 31 .inst 0x0afffff9 // beq 1b 32 .inst 0xf57ff05b // dmb ish [all …]
|
/arch/powerpc/kernel/ |
D | kvm.c | 71 static void __init kvm_patch_ins(u32 *inst, u32 new_inst) in kvm_patch_ins() argument 73 *inst = new_inst; in kvm_patch_ins() 74 flush_icache_range((ulong)inst, (ulong)inst + 4); in kvm_patch_ins() 77 static void __init kvm_patch_ins_ll(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ll() argument 80 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll() 82 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll() 86 static void __init kvm_patch_ins_ld(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ld() argument 89 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ld() 91 kvm_patch_ins(inst, KVM_INST_LWZ | rt | ((addr + 4) & 0x0000fffc)); in kvm_patch_ins_ld() 95 static void __init kvm_patch_ins_lwz(u32 *inst, long addr, u32 rt) in kvm_patch_ins_lwz() argument [all …]
|
/arch/arm/mach-omap2/ |
D | cm33xx.c | 51 static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) in am33xx_cm_read_reg() argument 53 return readl_relaxed(cm_base.va + inst + idx); in am33xx_cm_read_reg() 57 static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) in am33xx_cm_write_reg() argument 59 writel_relaxed(val, cm_base.va + inst + idx); in am33xx_cm_write_reg() 63 static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_cm_rmw_reg_bits() argument 67 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_rmw_reg_bits() 70 am33xx_cm_write_reg(v, inst, idx); in am33xx_cm_rmw_reg_bits() 75 static inline u32 am33xx_cm_read_reg_bits(u16 inst, s16 idx, u32 mask) in am33xx_cm_read_reg_bits() argument 79 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_read_reg_bits() 94 static u32 _clkctrl_idlest(u16 inst, u16 clkctrl_offs) in _clkctrl_idlest() argument [all …]
|
D | prminst44xx.c | 58 u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) in omap4_prminst_read_inst_reg() argument 63 return readl_relaxed(_prm_bases[part].va + inst + idx); in omap4_prminst_read_inst_reg() 67 void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx) in omap4_prminst_write_inst_reg() argument 72 writel_relaxed(val, _prm_bases[part].va + inst + idx); in omap4_prminst_write_inst_reg() 76 u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, s16 inst, in omap4_prminst_rmw_inst_reg_bits() argument 81 v = omap4_prminst_read_inst_reg(part, inst, idx); in omap4_prminst_rmw_inst_reg_bits() 84 omap4_prminst_write_inst_reg(v, part, inst, idx); in omap4_prminst_rmw_inst_reg_bits() 99 int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in omap4_prminst_is_hardreset_asserted() argument 104 v = omap4_prminst_read_inst_reg(part, inst, rstctrl_offs); in omap4_prminst_is_hardreset_asserted() 123 int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, in omap4_prminst_assert_hardreset() argument [all …]
|
D | cminst44xx.c | 74 static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx); 85 static u32 _clkctrl_idlest(u8 part, u16 inst, u16 clkctrl_offs) in _clkctrl_idlest() argument 87 u32 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in _clkctrl_idlest() 102 static bool _is_module_ready(u8 part, u16 inst, u16 clkctrl_offs) in _is_module_ready() argument 106 v = _clkctrl_idlest(part, inst, clkctrl_offs); in _is_module_ready() 113 static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx) in omap4_cminst_read_inst_reg() argument 118 return readl_relaxed(_cm_bases[part].va + inst + idx); in omap4_cminst_read_inst_reg() 122 static void omap4_cminst_write_inst_reg(u32 val, u8 part, u16 inst, u16 idx) in omap4_cminst_write_inst_reg() argument 127 writel_relaxed(val, _cm_bases[part].va + inst + idx); in omap4_cminst_write_inst_reg() 131 static u32 omap4_cminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, u16 inst, in omap4_cminst_rmw_inst_reg_bits() argument [all …]
|
D | prcm_mpu44xx.c | 28 u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg) in omap4_prcm_mpu_read_inst_reg() argument 30 return readl_relaxed(OMAP44XX_PRCM_MPU_REGADDR(inst, reg)); in omap4_prcm_mpu_read_inst_reg() 33 void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 reg) in omap4_prcm_mpu_write_inst_reg() argument 35 writel_relaxed(val, OMAP44XX_PRCM_MPU_REGADDR(inst, reg)); in omap4_prcm_mpu_write_inst_reg() 38 u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) in omap4_prcm_mpu_rmw_inst_reg_bits() argument 42 v = omap4_prcm_mpu_read_inst_reg(inst, reg); in omap4_prcm_mpu_rmw_inst_reg_bits() 45 omap4_prcm_mpu_write_inst_reg(v, inst, reg); in omap4_prcm_mpu_rmw_inst_reg_bits()
|
D | prm44xx.c | 96 static u32 omap4_prm_read_inst_reg(s16 inst, u16 reg) in omap4_prm_read_inst_reg() argument 98 return readl_relaxed(prm_base.va + inst + reg); in omap4_prm_read_inst_reg() 102 static void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 reg) in omap4_prm_write_inst_reg() argument 104 writel_relaxed(val, prm_base.va + inst + reg); in omap4_prm_write_inst_reg() 108 static u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) in omap4_prm_rmw_inst_reg_bits() argument 112 v = omap4_prm_read_inst_reg(inst, reg); in omap4_prm_rmw_inst_reg_bits() 115 omap4_prm_write_inst_reg(v, inst, reg); in omap4_prm_rmw_inst_reg_bits() 170 s32 inst = omap4_prmst_get_prm_dev_inst(); in omap4_prm_vcvp_read() local 172 if (inst == PRM_INSTANCE_UNKNOWN) in omap4_prm_vcvp_read() 176 inst, offset); in omap4_prm_vcvp_read() [all …]
|
D | prminst44xx.h | 20 extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx); 21 extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx); 23 s16 inst, u16 idx); 27 extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, 29 extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, 32 s16 inst, u16 rstctrl_offs,
|
D | prm33xx.c | 31 static u32 am33xx_prm_read_reg(s16 inst, u16 idx) in am33xx_prm_read_reg() argument 33 return readl_relaxed(prm_base.va + inst + idx); in am33xx_prm_read_reg() 37 static void am33xx_prm_write_reg(u32 val, s16 inst, u16 idx) in am33xx_prm_write_reg() argument 39 writel_relaxed(val, prm_base.va + inst + idx); in am33xx_prm_write_reg() 43 static u32 am33xx_prm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_prm_rmw_reg_bits() argument 47 v = am33xx_prm_read_reg(inst, idx); in am33xx_prm_rmw_reg_bits() 50 am33xx_prm_write_reg(v, inst, idx); in am33xx_prm_rmw_reg_bits() 67 static int am33xx_prm_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in am33xx_prm_is_hardreset_asserted() argument 72 v = am33xx_prm_read_reg(inst, rstctrl_offs); in am33xx_prm_is_hardreset_asserted() 93 static int am33xx_prm_assert_hardreset(u8 shift, u8 part, s16 inst, in am33xx_prm_assert_hardreset() argument [all …]
|
D | cm.h | 60 void (*module_enable)(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); 61 void (*module_disable)(u8 part, u16 inst, u16 clkctrl_offs); 62 u32 (*xlate_clkctrl)(u8 part, u16 inst, u16 clkctrl_offs); 71 int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); 72 int omap_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs); 73 u32 omap_cm_xlate_clkctrl(u8 part, u16 inst, u16 clkctrl_offs);
|
D | prcm_mpu_44xx_54xx.h | 27 extern u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 idx); 28 extern void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 idx); 29 extern u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst,
|
/arch/nds32/mm/ |
D | alignment.c | 18 #define RT(inst) (((inst) >> 20) & 0x1FUL) argument 19 #define RA(inst) (((inst) >> 15) & 0x1FUL) argument 20 #define RB(inst) (((inst) >> 10) & 0x1FUL) argument 21 #define SV(inst) (((inst) >> 8) & 0x3UL) argument 22 #define IMM(inst) (((inst) >> 0) & 0x7FFFUL) argument 24 #define RA3(inst) (((inst) >> 3) & 0x7UL) argument 25 #define RT3(inst) (((inst) >> 6) & 0x7UL) argument 26 #define IMM3U(inst) (((inst) >> 0) & 0x7UL) argument 28 #define RA5(inst) (((inst) >> 0) & 0x1FUL) argument 29 #define RT4(inst) (((inst) >> 5) & 0xFUL) argument [all …]
|
/arch/powerpc/kvm/ |
D | emulate.c | 196 u32 inst; in kvmppc_emulate_instruction() local 204 emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &inst); in kvmppc_emulate_instruction() 208 pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst)); in kvmppc_emulate_instruction() 210 rs = get_rs(inst); in kvmppc_emulate_instruction() 211 rt = get_rt(inst); in kvmppc_emulate_instruction() 212 sprn = get_sprn(inst); in kvmppc_emulate_instruction() 214 switch (get_op(inst)) { in kvmppc_emulate_instruction() 227 switch (get_xop(inst)) { in kvmppc_emulate_instruction() 272 if (inst == KVMPPC_INST_SW_BREAKPOINT) { in kvmppc_emulate_instruction() 288 emulated = vcpu->kvm->arch.kvm_ops->emulate_op(vcpu, inst, in kvmppc_emulate_instruction() [all …]
|
D | book3s_paired_singles.c | 339 static inline u32 inst_get_field(u32 inst, int msb, int lsb) in inst_get_field() argument 341 return kvmppc_get_field(inst, msb + 32, lsb + 32); in inst_get_field() 344 static bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) in kvmppc_inst_is_paired_single() argument 349 switch (get_op(inst)) { in kvmppc_inst_is_paired_single() 365 switch (inst_get_field(inst, 21, 30)) { in kvmppc_inst_is_paired_single() 383 switch (inst_get_field(inst, 25, 30)) { in kvmppc_inst_is_paired_single() 389 switch (inst_get_field(inst, 26, 30)) { in kvmppc_inst_is_paired_single() 411 switch (inst_get_field(inst, 21, 30)) { in kvmppc_inst_is_paired_single() 419 switch (inst_get_field(inst, 26, 30)) { in kvmppc_inst_is_paired_single() 429 switch (inst_get_field(inst, 21, 30)) { in kvmppc_inst_is_paired_single() [all …]
|
D | trace.h | 14 TP_PROTO(unsigned int inst, unsigned long _pc, unsigned int emulate), 15 TP_ARGS(inst, _pc, emulate), 18 __field( unsigned int, inst ) 24 __entry->inst = inst; 30 __entry->inst, __entry->pc, __entry->emulate)
|
D | e500_emulate.c | 87 unsigned int inst, int *advance) in kvmppc_e500_emul_ehpriv() argument 91 switch (get_oc(inst)) { in kvmppc_e500_emul_ehpriv() 115 static int kvmppc_e500_emul_mftmr(struct kvm_vcpu *vcpu, unsigned int inst, in kvmppc_e500_emul_mftmr() argument 119 if (get_tmrn(inst) == TMRN_TMCFG0) { in kvmppc_e500_emul_mftmr() 129 unsigned int inst, int *advance) in kvmppc_core_emulate_op_e500() argument 132 int ra = get_ra(inst); in kvmppc_core_emulate_op_e500() 133 int rb = get_rb(inst); in kvmppc_core_emulate_op_e500() 134 int rt = get_rt(inst); in kvmppc_core_emulate_op_e500() 137 switch (get_op(inst)) { in kvmppc_core_emulate_op_e500() 139 switch (get_xop(inst)) { in kvmppc_core_emulate_op_e500() [all …]
|
/arch/sh/kernel/ |
D | traps_32.c | 565 unsigned short inst = 0; in is_dsp_inst() local 574 get_user(inst, ((unsigned short *) regs->pc)); in is_dsp_inst() 576 inst &= 0xf000; in is_dsp_inst() 579 if ((inst == 0xf000) || (inst == 0x4000)) in is_dsp_inst() 614 unsigned short inst = 0; in do_reserved_inst() local 617 get_user(inst, (unsigned short*)regs->pc); in do_reserved_inst() 619 err = do_fpu_inst(inst, regs); in do_reserved_inst() 621 regs->pc += instruction_size(inst); in do_reserved_inst() 646 static int emulate_branch(unsigned short inst, struct pt_regs *regs) in emulate_branch() argument 659 if (((inst & 0xf000) == 0xb000) || /* bsr */ in emulate_branch() [all …]
|
/arch/mips/kernel/ |
D | mips-r2-to-r6-emul.c | 885 static inline int mipsr2_find_op_func(struct pt_regs *regs, u32 inst, in mipsr2_find_op_func() argument 892 if ((inst & p->mask) == p->code) { in mipsr2_find_op_func() 893 err = (p->func)(regs, inst); in mipsr2_find_op_func() 906 int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31) in mipsr2_decoder() argument 925 inst, epc, pass); in mipsr2_decoder() 927 switch (MIPSInst_OPCODE(inst)) { in mipsr2_decoder() 929 err = mipsr2_find_op_func(regs, inst, spec_op_table); in mipsr2_decoder() 937 err = mipsr2_find_op_func(regs, inst, spec2_op_table); in mipsr2_decoder() 940 rt = MIPSInst_RT(inst); in mipsr2_decoder() 941 rs = MIPSInst_RS(inst); in mipsr2_decoder() [all …]
|
D | uprobes.c | 30 union mips_instruction inst; in arch_uprobe_analyze_insn() local 39 inst.word = aup->insn[0]; in arch_uprobe_analyze_insn() 41 if (__insn_is_compact_branch(inst)) { in arch_uprobe_analyze_insn() 46 aup->ixol[0] = aup->insn[insn_has_delay_slot(inst)]; in arch_uprobe_analyze_insn() 64 union mips_instruction inst; in is_trap_insn() local 66 inst.word = *insn; in is_trap_insn() 68 switch (inst.i_format.opcode) { in is_trap_insn() 70 switch (inst.r_format.func) { in is_trap_insn() 83 switch (inst.u_format.rt) { in is_trap_insn()
|
/arch/h8300/kernel/ |
D | ptrace_h.c | 21 *(child->thread.breakinfo.addr) = child->thread.breakinfo.inst; in user_disable_single_step() 165 unsigned char inst) in decode() argument 198 if (inst == 0x55 || isbranch(child, inst & 0x0f)) in decode() 203 if (inst == 0x5c || isbranch(child, (*fetch_p & 0xf0) >> 4)) in decode() 217 unsigned char inst; in nextpc() local 222 inst = *fetch_p++; in nextpc() 224 if ((inst & op->bitmask) == op->bitpattern) { in nextpc() 228 inst = *fetch_p++; in nextpc() 230 return decode(child, op, fetch_p, pc, inst); in nextpc() 245 child->thread.breakinfo.inst = *next; in user_enable_single_step()
|
/arch/powerpc/platforms/powermac/ |
D | low_i2c.c | 1233 struct pmac_i2c_pf_inst *inst; in pmac_i2c_do_begin() local 1253 inst = kzalloc(sizeof(struct pmac_i2c_pf_inst), GFP_KERNEL); in pmac_i2c_do_begin() 1254 if (inst == NULL) { in pmac_i2c_do_begin() 1258 inst->bus = bus; in pmac_i2c_do_begin() 1259 inst->addr = pmac_i2c_get_dev_addr(func->node); in pmac_i2c_do_begin() 1260 inst->quirks = (int)(long)func->driver_data; in pmac_i2c_do_begin() 1261 return inst; in pmac_i2c_do_begin() 1266 struct pmac_i2c_pf_inst *inst = instdata; in pmac_i2c_do_end() local 1268 if (inst == NULL) in pmac_i2c_do_end() 1270 pmac_i2c_close(inst->bus); in pmac_i2c_do_end() [all …]
|
/arch/x86/include/asm/ |
D | efi.h | 230 #define efi_table_attr(inst, attr) \ argument 232 ? inst->attr \ 233 : (__typeof__(inst->attr)) \ 234 efi_mixed_mode_cast(inst->mixed_mode.attr)) 315 #define __efi64_thunk_map(inst, func, ...) \ argument 316 efi64_thunk(inst->mixed_mode.func, \ 330 #define efi_call_proto(inst, func, ...) \ argument 332 ? inst->func(inst, ##__VA_ARGS__) \ 333 : __efi64_thunk_map(inst, func, inst, ##__VA_ARGS__))
|
/arch/powerpc/mm/ |
D | maccess.c | 15 int copy_inst_from_kernel_nofault(struct ppc_inst *inst, u32 *src) in copy_inst_from_kernel_nofault() argument 25 *inst = ppc_inst_prefix(val, suffix); in copy_inst_from_kernel_nofault() 27 *inst = ppc_inst(val); in copy_inst_from_kernel_nofault()
|