Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 1068) sorted by relevance

12345678910>>...43

/linux/arch/arm/nwfpe/
H A Dfpopcode.h192 #define getCoprocessorNumber(opcode) ((opcode & MASK_COPROCESSOR) >> 8) argument
195 #define getOffset(opcode) (opcode & MASK_OFFSET) argument
198 #define TEST_OPCODE(opcode,mask) (((opcode) & (mask)) == (mask)) argument
200 #define LOAD_OP(opcode) TEST_OPCODE((opcode),MASK_CPDT | BIT_LOAD) argument
201 #define STORE_OP(opcode) ((opcode & (MASK_CPDT | BIT_LOAD)) == MASK_CPDT) argument
203 #define LDF_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
204 #define LFM_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
205 #define STF_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
206 #define SFM_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
208 #define PREINDEXED(opcode) ((opcode & BIT_PREINDEX) != 0) argument
[all …]
H A Dfpa11_cpdt.c212 unsigned int PerformLDF(const unsigned int opcode) in PerformLDF() argument
215 unsigned int nRc = 1, write_back = WRITE_BACK(opcode); in PerformLDF()
217 pBase = (unsigned int __user *) readRegister(getRn(opcode)); in PerformLDF()
218 if (REG_PC == getRn(opcode)) { in PerformLDF()
224 if (BIT_UP_SET(opcode)) in PerformLDF()
225 pFinal += getOffset(opcode); in PerformLDF()
227 pFinal -= getOffset(opcode); in PerformLDF()
229 if (PREINDEXED(opcode)) in PerformLDF()
234 switch (opcode & MASK_TRANSFER_LENGTH) { in PerformLDF()
236 loadSingle(getFd(opcode), pAddress); in PerformLDF()
[all …]
H A Dfpa11_cprt.c18 unsigned int PerformFLT(const unsigned int opcode);
19 unsigned int PerformFIX(const unsigned int opcode);
21 static unsigned int PerformComparison(const unsigned int opcode);
23 unsigned int EmulateCPRT(const unsigned int opcode) in EmulateCPRT() argument
26 if (opcode & 0x800000) { in EmulateCPRT()
31 return PerformComparison(opcode); in EmulateCPRT()
35 switch ((opcode & 0x700000) >> 20) { in EmulateCPRT()
37 return PerformFLT(opcode); in EmulateCPRT()
40 return PerformFIX(opcode); in EmulateCPRT()
44 writeFPSR(readRegister(getRd(opcode))); in EmulateCPRT()
[all …]
H A Dfpa11_cpdo.c14 unsigned int SingleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
15 unsigned int DoubleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
16 unsigned int ExtendedCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
18 unsigned int EmulateCPDO(const unsigned int opcode) in EmulateCPDO() argument
27 nDest = getDestinationSize(opcode); in EmulateCPDO()
31 roundData.mode = SetRoundingMode(opcode); in EmulateCPDO()
32 roundData.precision = SetRoundingPrecision(opcode); in EmulateCPDO()
40 if (MONADIC_INSTRUCTION(opcode)) in EmulateCPDO()
43 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO()
45 if (!CONSTANT_FM(opcode)) { in EmulateCPDO()
[all …]
H A Dfpa11.c35 int8 SetRoundingMode(const unsigned int opcode) in SetRoundingMode() argument
37 switch (opcode & MASK_ROUNDING_MODE) { in SetRoundingMode()
53 int8 SetRoundingPrecision(const unsigned int opcode) in SetRoundingPrecision() argument
56 switch (opcode & MASK_ROUNDING_PRECISION) { in SetRoundingPrecision()
85 unsigned int EmulateAll(unsigned int opcode) in EmulateAll() argument
90 printk("NWFPE: emulating opcode %08x\n", opcode); in EmulateAll()
92 code = opcode & 0x00000f00; in EmulateAll()
95 code = opcode & 0x0e000000; in EmulateAll()
97 if (opcode & 0x00000010) { in EmulateAll()
101 return EmulateCPRT(opcode); in EmulateAll()
[all …]
H A Dfpa11.h85 extern unsigned int EmulateAll(unsigned int opcode);
87 extern unsigned int EmulateCPDT(const unsigned int opcode);
88 extern unsigned int EmulateCPDO(const unsigned int opcode);
89 extern unsigned int EmulateCPRT(const unsigned int opcode);
92 extern unsigned int PerformLDF(const unsigned int opcode);
93 extern unsigned int PerformSTF(const unsigned int opcode);
94 extern unsigned int PerformLFM(const unsigned int opcode);
95 extern unsigned int PerformSFM(const unsigned int opcode);
100 const unsigned int opcode, FPREG * rFd);
103 const unsigned int opcode, FPREG * rFd);
[all …]
/linux/arch/riscv/kernel/probes/
H A Dsimulate-insn.c36 bool __kprobes simulate_jal(u32 opcode, unsigned long addr, struct pt_regs *regs) in simulate_jal() argument
45 u32 index = (opcode >> 7) & 0x1f; in simulate_jal()
51 imm = ((opcode >> 21) & 0x3ff) << 1; in simulate_jal()
52 imm |= ((opcode >> 20) & 0x1) << 11; in simulate_jal()
53 imm |= ((opcode >> 12) & 0xff) << 12; in simulate_jal()
54 imm |= ((opcode >> 31) & 0x1) << 20; in simulate_jal()
61 bool __kprobes simulate_jalr(u32 opcode, unsigned long addr, struct pt_regs *regs) in simulate_jalr() argument
70 u32 imm = (opcode >> 20) & 0xfff; in simulate_jalr()
71 u32 rd_index = (opcode >> 7) & 0x1f; in simulate_jalr()
72 u32 rs1_index = (opcode >> 15) & 0x1f; in simulate_jalr()
[all …]
H A Dsimulate-insn.h23 bool simulate_auipc(u32 opcode, unsigned long addr, struct pt_regs *regs);
24 bool simulate_branch(u32 opcode, unsigned long addr, struct pt_regs *regs);
25 bool simulate_jal(u32 opcode, unsigned long addr, struct pt_regs *regs);
26 bool simulate_jalr(u32 opcode, unsigned long addr, struct pt_regs *regs);
27 bool simulate_c_j(u32 opcode, unsigned long addr, struct pt_regs *regs);
28 bool simulate_c_jr(u32 opcode, unsigned long addr, struct pt_regs *regs);
29 bool simulate_c_jalr(u32 opcode, unsigned long addr, struct pt_regs *regs);
30 bool simulate_c_bnez(u32 opcode, unsigned long addr, struct pt_regs *regs);
31 bool simulate_c_beqz(u32 opcode, unsigned long addr, struct pt_regs *regs);
/linux/arch/arm64/kernel/probes/
H A Dsimulate-insn.c52 static bool __kprobes check_cbz(u32 opcode, struct pt_regs *regs) in check_cbz() argument
54 int xn = opcode & 0x1f; in check_cbz()
56 return (opcode & (1 << 31)) ? in check_cbz()
60 static bool __kprobes check_cbnz(u32 opcode, struct pt_regs *regs) in check_cbnz() argument
62 int xn = opcode & 0x1f; in check_cbnz()
64 return (opcode & (1 << 31)) ? in check_cbnz()
68 static bool __kprobes check_tbz(u32 opcode, struct pt_regs *regs) in check_tbz() argument
70 int xn = opcode & 0x1f; in check_tbz()
71 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbz()
76 static bool __kprobes check_tbnz(u32 opcode, struct pt_regs *regs) in check_tbnz() argument
[all …]
/linux/arch/csky/kernel/probes/
H A Dsimulate-insn.c69 simulate_br16(u32 opcode, long addr, struct pt_regs *regs) in simulate_br16() argument
72 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_br16()
76 simulate_br32(u32 opcode, long addr, struct pt_regs *regs) in simulate_br32() argument
79 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_br32()
83 simulate_bt16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt16() argument
87 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bt16()
93 simulate_bt32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt32() argument
97 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bt32()
103 simulate_bf16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bf16() argument
107 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bf16()
[all …]
/linux/tools/perf/scripts/python/
H A Dpowerpc-hcalls.py153 def hcall_table_lookup(opcode): argument
154 if (opcode in hcall_table):
155 return hcall_table[opcode]
157 return opcode
164 for opcode in output:
165 h_name = hcall_table_lookup(opcode)
166 time = output[opcode]['time']
167 cnt = output[opcode]['cnt']
168 min_t = output[opcode]['min']
169 max_t = output[opcode]['max']
[all …]
/linux/include/trace/events/
H A Dspmi.h16 TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf),
17 TP_ARGS(opcode, sid, addr, len, buf),
20 __field ( u8, opcode )
28 __entry->opcode = opcode;
36 (int)__entry->opcode, (int)__entry->sid,
42 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret),
43 TP_ARGS(opcode, sid, addr, ret),
46 __field ( u8, opcode )
53 __entry->opcode = opcode;
60 (int)__entry->opcode, (int)__entry->sid,
[all …]
/linux/arch/x86/mm/
H A Dpf_in.c103 static int get_opcode(unsigned char *addr, unsigned int *opcode) in get_opcode() argument
109 *opcode = *(unsigned short *)addr; in get_opcode()
112 *opcode = *addr; in get_opcode()
119 #define CHECK_OP_TYPE(opcode, array, type) \ argument
121 if (array[i] == opcode) { \
129 unsigned int opcode; in get_ins_type() local
137 p += get_opcode(p, &opcode); in get_ins_type()
139 CHECK_OP_TYPE(opcode, reg_rop, REG_READ); in get_ins_type()
140 CHECK_OP_TYPE(opcode, reg_wop, REG_WRITE); in get_ins_type()
141 CHECK_OP_TYPE(opcode, imm_wop, IMM_WRITE); in get_ins_type()
[all …]
/linux/arch/powerpc/xmon/
H A Dppc-dis.c83 const struct powerpc_opcode *opcode; in lookup_powerpc() local
88 for (opcode = powerpc_opcodes; opcode < opcode_end; ++opcode) in lookup_powerpc()
94 if ((insn & opcode->mask) != opcode->opcode in lookup_powerpc()
96 && ((opcode->flags & dialect) == 0 in lookup_powerpc()
97 || (opcode->deprecated & dialect) != 0))) in lookup_powerpc()
102 for (opindex = opcode->operands; *opindex != 0; opindex++) in lookup_powerpc()
111 return opcode; in lookup_powerpc()
121 const struct powerpc_opcode *opcode; in print_insn_powerpc() local
142 opcode = NULL; in print_insn_powerpc()
145 if (opcode == NULL) in print_insn_powerpc()
[all …]
/linux/arch/sh/kernel/
H A Dkprobes.c42 kprobe_opcode_t opcode = *p->addr; in arch_prepare_kprobe() local
44 if (OPCODE_RTE(opcode)) in arch_prepare_kprobe()
48 p->opcode = opcode; in arch_prepare_kprobe()
62 *p->addr = p->opcode; in arch_disarm_kprobe()
104 saved->opcode = 0; in arch_remove_kprobe()
111 saved->opcode = 0; in arch_remove_kprobe()
151 if (OPCODE_JSR(p->opcode) || OPCODE_JMP(p->opcode)) { in prepare_singlestep()
152 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep()
154 } else if (OPCODE_BRA(p->opcode) || OPCODE_BSR(p->opcode)) { in prepare_singlestep()
155 unsigned long disp = (p->opcode & 0x0FFF); in prepare_singlestep()
[all …]
/linux/arch/mips/include/uapi/asm/
H A Dinst.h648 __BITFIELD_FIELD(unsigned int opcode : 6, /* Jump format */
654 __BITFIELD_FIELD(unsigned int opcode : 6,
662 __BITFIELD_FIELD(unsigned int opcode : 6,
670 __BITFIELD_FIELD(unsigned int opcode : 6,
679 __BITFIELD_FIELD(unsigned int opcode : 6,
689 __BITFIELD_FIELD(unsigned int opcode : 6,
699 __BITFIELD_FIELD(unsigned int opcode : 6,
711 __BITFIELD_FIELD(unsigned int opcode : 6,
719 __BITFIELD_FIELD(unsigned int opcode : 6,
729 __BITFIELD_FIELD(unsigned int opcode : 6,
[all …]
/linux/net/bluetooth/
H A Dmgmt_util.c34 u16 opcode, u16 len, void *buf) in create_monitor_ctrl_event() argument
44 put_unaligned_le16(opcode, skb_put(skb, 2)); in create_monitor_ctrl_event()
52 hdr->opcode = cpu_to_le16(HCI_MON_CTRL_EVENT); in create_monitor_ctrl_event()
59 struct sk_buff *mgmt_alloc_skb(struct hci_dev *hdev, u16 opcode, in mgmt_alloc_skb() argument
70 bt_cb(skb)->mgmt.opcode = opcode; in mgmt_alloc_skb()
93 hci_send_monitor_ctrl_event(hdev, bt_cb(skb)->mgmt.opcode, in mgmt_send_event_skb()
98 hdr->opcode = cpu_to_le16(bt_cb(skb)->mgmt.opcode); in mgmt_send_event_skb()
141 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS); in mgmt_cmd_status()
147 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status()
185 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE); in mgmt_cmd_complete()
[all …]
/linux/arch/riscv/include/asm/
H A Dinsn-def.h25 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
26 .insn r \opcode, \func3, \func7, \rd, \rs1, \rs2
29 .macro insn_i, opcode, func3, rd, rs1, simm12
30 .insn i \opcode, \func3, \rd, \rs1, \simm12
37 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
38 .4byte ((\opcode << INSN_R_OPCODE_SHIFT) | \
46 .macro insn_i, opcode, func3, rd, rs1, simm12
47 .4byte ((\opcode << INSN_I_OPCODE_SHIFT) | \
63 #define __INSN_R(opcode, func3, func7, rd, rs1, rs2) \ argument
64 ".insn r " opcode ", " func3 ", " func7 ", " rd ", " rs1 ", " rs2 "\n"
[all …]
/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_insformat.h54 opcode : 4, member
58 opcode : 4,
73 opcode : 4, member
77 opcode : 4,
91 opcode : 4, member
95 opcode : 4,
109 opcode : 4, member
113 opcode : 4,
127 opcode : 4, member
131 opcode : 4,
[all …]
/linux/arch/s390/tools/
H A Dgen_opcode_table.c24 char opcode[STRING_SIZE_MAX]; member
35 char opcode[2]; member
158 rc = scanf("%s %s %s", insn.opcode, insn.name, insn.format); in read_instructions()
233 char *opcode; in print_opcode() local
235 opcode = insn->opcode; in print_opcode()
237 opcode += 2; in print_opcode()
238 printf("\t[%4d] = { .opfrag = 0x%s, .format = INSTR_%s, ", nr, opcode, insn->format); in print_opcode()
251 if (group && (!strncmp(group->opcode, insn->opcode, 2) || group->type->byte == 0)) { in add_to_group()
260 memcpy(group->opcode, insn->opcode, 2); in add_to_group()
268 return strcmp(((struct insn *)a)->opcode, ((struct insn *)b)->opcode); in cmpopcode()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Drc.c36 if (!e->opcode) { in find_prev_entry()
116 if (e->opcode != TID_OP(WRITE_REQ) && in make_rc_ack()
138 if (e->opcode == OP(RDMA_READ_REQUEST)) { in make_rc_ack()
172 } else if (e->opcode == TID_OP(WRITE_REQ)) { in make_rc_ack()
187 } else if (e->opcode == TID_OP(READ_REQ)) { in make_rc_ack()
295 trace_hfi1_tid_req_make_rc_ack_write(qp, 0, e->opcode, e->psn, in make_rc_ack()
497 (wqe->wr.opcode != IB_WR_TID_RDMA_READ || in hfi1_make_rc_req()
506 if (wqe->wr.opcode == IB_WR_REG_MR || in hfi1_make_rc_req()
507 wqe->wr.opcode == IB_WR_LOCAL_INV) { in hfi1_make_rc_req()
552 switch (wqe->wr.opcode) { in hfi1_make_rc_req()
[all …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_hdr.h24 u8 opcode; /* bth opcode of packet */ member
62 u8 opcode; member
88 return bth->opcode; in __bth_opcode()
91 static inline void __bth_set_opcode(void *arg, u8 opcode) in __bth_set_opcode() argument
95 bth->opcode = opcode; in __bth_set_opcode()
285 static inline void bth_set_opcode(struct rxe_pkt_info *pkt, u8 opcode) in bth_set_opcode() argument
287 __bth_set_opcode(pkt->hdr, opcode); in bth_set_opcode()
405 static inline void bth_init(struct rxe_pkt_info *pkt, u8 opcode, int se, in bth_init() argument
411 bth->opcode = opcode; in bth_init()
451 rxe_opcode[pkt->opcode].offset[RXE_RDETH]); in rdeth_een()
[all …]
/linux/include/linux/pds/
H A Dpds_adminq.h154 u8 opcode; member
188 u8 opcode; member
204 u8 opcode; member
321 u8 opcode; member
354 u8 opcode; member
385 u8 opcode; member
416 u8 opcode; member
455 u8 opcode; member
514 u8 opcode; member
569 u8 opcode; member
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_fw.c350 u32 opcode, new, old, tmp1, tmp2; in sym_fw_bind_script() local
359 opcode = *cur; in sym_fw_bind_script()
367 if (opcode == 0) { in sym_fw_bind_script()
378 if (opcode == SCR_DATA_ZERO) { in sym_fw_bind_script()
385 (unsigned)opcode); in sym_fw_bind_script()
390 switch (opcode >> 28) { in sym_fw_bind_script()
418 if ((opcode & SCR_NO_FLUSH) && in sym_fw_bind_script()
420 opcode = (opcode & ~SCR_NO_FLUSH); in sym_fw_bind_script()
428 opcode = (opcode | OPC_MOVE); in sym_fw_bind_script()
436 opcode = (opcode | OPC_MOVE); in sym_fw_bind_script()
[all …]
/linux/drivers/nvme/host/
H A Dconstants.c182 const char *nvme_get_opcode_str(u8 opcode) in nvme_get_opcode_str() argument
184 if (opcode < ARRAY_SIZE(nvme_ops) && nvme_ops[opcode]) in nvme_get_opcode_str()
185 return nvme_ops[opcode]; in nvme_get_opcode_str()
190 const char *nvme_get_admin_opcode_str(u8 opcode) in nvme_get_admin_opcode_str() argument
192 if (opcode < ARRAY_SIZE(nvme_admin_ops) && nvme_admin_ops[opcode]) in nvme_get_admin_opcode_str()
193 return nvme_admin_ops[opcode]; in nvme_get_admin_opcode_str()
198 const char *nvme_get_fabrics_opcode_str(u8 opcode) { in nvme_get_fabrics_opcode_str() argument
199 if (opcode < ARRAY_SIZE(nvme_fabrics_ops) && nvme_fabrics_ops[opcode]) in nvme_get_fabrics_opcode_str()
200 return nvme_fabrics_ops[opcode]; in nvme_get_fabrics_opcode_str()

12345678910>>...43