Home
last modified time | relevance | path

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

12345678910>>...27

/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/
H A DEmulateInstructionARM.h145 bool ConditionPassed(const uint32_t opcode);
147 uint32_t CurrentCond(const uint32_t opcode);
301 const uint32_t opcode,
310 static ARMOpcode *GetARMOpcodeForInstruction(const uint32_t opcode,
313 static ARMOpcode *GetThumbOpcodeForInstruction(const uint32_t opcode,
317 bool EmulatePUSH(const uint32_t opcode, const ARMEncoding encoding);
320 bool EmulatePOP(const uint32_t opcode, const ARMEncoding encoding);
323 bool EmulateADDRdSPImm(const uint32_t opcode, const ARMEncoding encoding);
326 bool EmulateMOVRdSP(const uint32_t opcode, const ARMEncoding encoding);
329 bool EmulateMOVLowHigh(const uint32_t opcode, const ARMEncoding encoding);
[all …]
H A DEmulateInstructionARM.cpp891 bool EmulateInstructionARM::EmulatePUSH(const uint32_t opcode, in EmulatePUSH() argument
921 if (ConditionPassed(opcode)) { in EmulatePUSH()
930 registers = Bits32(opcode, 7, 0); in EmulatePUSH()
932 if (Bit32(opcode, 8)) in EmulatePUSH()
940 registers = Bits32(opcode, 15, 0) & ~0xa000; in EmulatePUSH()
946 Rt = Bits32(opcode, 15, 12); in EmulatePUSH()
953 registers = Bits32(opcode, 15, 0); in EmulatePUSH()
959 Rt = Bits32(opcode, 15, 12); in EmulatePUSH()
1014 bool EmulateInstructionARM::EmulatePOP(const uint32_t opcode, in EmulatePOP() argument
1037 if (ConditionPassed(opcode)) { in EmulatePOP()
[all …]
/freebsd/crypto/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl162 { package opcode; # pick up opcodes
300 die if ($opcode->mnemonic() ne "mov");
301 $opcode->mnemonic("lea");
305 $self->{opcode} = $opcode;
361 my $mnemonic = $self->{opcode}->mnemonic();
388 my ($class, $line, $opcode) = @_;
398 $opcode->size($self->size());
497 my ($class, $line, $opcode) = @_;
510 $self->{opcode} = $opcode;
516 if ($nasm && $self->{opcode}->mnemonic()=~m/^j(?![re]cxz)/) {
[all …]
H A Dx86asm.pl25 { my $opcode = $AUTOLOAD;
27 die "more than 4 arguments passed to $opcode" if ($#_>3);
29 $opcode =~ s/.*:://;
30 if ($opcode =~ /^push/) { $stack+=4; }
31 elsif ($opcode =~ /^pop/) { $stack-=4; }
33 &generic($opcode,@_) or die "undefined subroutine \&$AUTOLOAD";
37 { my $opcode=shift;
39 if ($#_==-1) { push(@out,"\t$opcode\n"); }
40 else { push(@out,"\t$opcode\t".join(',',@_)."\n"); }
150 local *opcode=shift;
[all …]
H A Ds390x.pm2562 my ($opcode,$r1,$r2,$i3,$i4,$i5)=(shift,get_R(shift),get_R(shift),
2567 $out.=sprintf("%#06x",(($opcode>>8)<<8|$r1<<4|$r2)).",";
2569 $out.=sprintf("%#06x",($i5<<8)|($opcode&0xff));
2578 my ($opcode,$r1,$i2)=(shift,get_R(shift),get_I(shift,32));
2581 $out.=sprintf("%#06x",(($opcode>>4)<<8|$r1<<4|($opcode&0xf))).",";
2592 my ($opcode,$r1,$r2)=(shift,get_R(shift),get_R(shift));
2594 $out.="\t.long\t".sprintf("%#010x",($opcode<<16|$r1<<4|$r2));
2606 my ($opcode,$r1,$r3,$r2,$m4)=(shift,get_R(shift),get_R(shift)
2610 .sprintf("%#010x",($opcode<<16|$r3<<12|$m4<<8|$r1<<4|$r2));
2619 my ($opcode,$r1,$d2,$x2,$b2)=(shift,get_R(shift),get_DXB(shift));
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrFormats.td46 class IForm<bits<4> opcode, DestMode ad, bit bw, SourceMode as, int size,
54 let Inst{15-12} = opcode;
63 class IForm8<bits<4> opcode, DestMode dest, SourceMode src, int size,
65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>;
67 class I8rr<bits<4> opcode,
69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> {
73 class I8ri<bits<4> opcode,
75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> {
82 class I8rc<bits<4> opcode,
91 let Inst{15-12} = opcode;
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-zephyr.c49 const char *opcode; member
201 PARSE_FIELD_STR(z.opcode); in zephyr_print()
229 if (!strcmp(z.opcode, "USER_HIDE")) in zephyr_print()
231 else if (!strcmp(z.opcode, "USER_UNHIDE")) in zephyr_print()
239 ZEPHYR_PRINT(" zephyr-admin ", str_to_lower(z.opcode)); in zephyr_print()
245 if (!strcmp(z.opcode, "SUBSCRIBE") || in zephyr_print()
246 !strcmp(z.opcode, "SUBSCRIBE_NODEFS") || in zephyr_print()
247 !strcmp(z.opcode, "UNSUBSCRIBE")) { in zephyr_print()
249 ND_PRINT(" %ssub%s", strcmp(z.opcode, "SUBSCRIBE") ? "un" : "", in zephyr_print()
250 strcmp(z.opcode, "SUBSCRIBE_NODEFS") ? "" : in zephyr_print()
[all …]
/freebsd/contrib/opencsd/decoder/source/i_dec/
H A Dtrc_i_decode.cpp82 if(inst_ARM_is_indirect_branch(instr_info->opcode, info)) in DecodeA32()
85 instr_info->is_link = inst_ARM_is_branch_and_link(instr_info->opcode, info); in DecodeA32()
87 else if(inst_ARM_is_direct_branch(instr_info->opcode)) in DecodeA32()
89 … inst_ARM_branch_destination((uint32_t)instr_info->instr_addr,instr_info->opcode,&branchAddr); in DecodeA32()
97 instr_info->is_link = inst_ARM_is_branch_and_link(instr_info->opcode, info); in DecodeA32()
99 else if((barrier = inst_ARM_barrier(instr_info->opcode)) != ARM_BARRIER_NONE) in DecodeA32()
116 if (inst_ARM_wfiwfe(instr_info->opcode)) in DecodeA32()
121 instr_info->is_conditional = inst_ARM_is_conditional(instr_info->opcode); in DecodeA32()
136 if(inst_A64_is_indirect_branch_link(instr_info->opcode, &instr_info->is_link, info)) in DecodeA64()
140 else if(inst_A64_is_direct_branch_link(instr_info->opcode, &instr_info->is_link, info)) in DecodeA64()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrFormats.td13 class I<bits<6> opcode, dag OOL, dag IOL, string asmstr, InstrItinClass itin>
22 let Inst{0-5} = opcode;
124 class IXFormMemOp<bits<6> opcode, dag OOL, dag IOL, string asmstr,
126 :I<opcode, OOL, IOL, asmstr, itin>, XFormMemOp;
129 class IForm<bits<6> opcode, bit aa, bit lk, dag OOL, dag IOL, string asmstr,
131 : I<opcode, OOL, IOL, asmstr, itin> {
141 class BForm<bits<6> opcode, bit aa, bit lk, dag OOL, dag IOL, string asmstr>
142 : I<opcode, OOL, IOL, asmstr, IIC_BrB> {
158 class BForm_1<bits<6> opcode, bits<5> bo, bit aa, bit lk, dag OOL, dag IOL,
160 : BForm<opcode, a
[all...]
/freebsd/sys/dev/mfi/
H A Dmfi_debug.c123 const char *opcode; in mfi_print_dcmd() local
128 switch (dcmd->opcode) { in mfi_print_dcmd()
130 opcode = "CTRL_GETINFO"; in mfi_print_dcmd()
133 opcode = "CTRL_FLUSHCACHE"; in mfi_print_dcmd()
136 opcode = "CTRL_SHUTDOWN"; in mfi_print_dcmd()
139 opcode = "EVENT_GETINFO"; in mfi_print_dcmd()
142 opcode = "EVENT_GET"; in mfi_print_dcmd()
145 opcode = "EVENT_WAIT"; in mfi_print_dcmd()
148 opcode = "LD_GET_LIST"; in mfi_print_dcmd()
151 opcode = "LD_GET_INFO"; in mfi_print_dcmd()
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dsend_recv.c46 hci_request(int s, int opcode, char const *cp, int cp_size, char *rp, int *rp_size) in hci_request() argument
58 c->opcode = (uint16_t) opcode; in hci_request()
59 c->opcode = htole16(c->opcode); in hci_request()
92 cc->opcode = le16toh(cc->opcode); in hci_request()
94 if (cc->opcode == 0x0000 || cc->opcode != opcode) in hci_request()
108 cs->opcode = le16toh(cs->opcode); in hci_request()
110 if (cs->opcode == 0x0000 || cs->opcode != opcode) in hci_request()
126 hci_simple_request(int s, int opcode, char *rp, int *rp_size) in hci_simple_request() argument
128 return (hci_request(s, opcode, NULL, 0, rp, rp_size)); in hci_simple_request()
/freebsd/contrib/ofed/libibverbs/
H A Dibverbs.h67 #define IBV_INIT_CMD(cmd, size, opcode) \ argument
70 (cmd)->command = IB_USER_VERBS_CMD_##opcode; \
72 (cmd)->command = IB_USER_VERBS_CMD_##opcode##_V2; \
77 #define IBV_INIT_CMD_RESP(cmd, size, opcode, out, outsize) \ argument
80 (cmd)->command = IB_USER_VERBS_CMD_##opcode; \
82 (cmd)->command = IB_USER_VERBS_CMD_##opcode##_V2; \
88 #define IBV_INIT_CMD_RESP_EX_V(cmd, cmd_size, size, opcode, out, resp_size,\ argument
93 (cmd)->hdr.command = IB_USER_VERBS_CMD_##opcode; \
96 IB_USER_VERBS_CMD_##opcode##_V2; \
106 #define IBV_INIT_CMD_RESP_EX_VCMD(cmd, cmd_size, size, opcode, out, outsize) \ argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h55 static inline uint32_t DecodeImmShiftThumb(const uint32_t opcode, in DecodeImmShiftThumb() argument
57 return DecodeImmShift(Bits32(opcode, 5, 4), in DecodeImmShiftThumb()
58 Bits32(opcode, 14, 12) << 2 | Bits32(opcode, 7, 6), in DecodeImmShiftThumb()
64 static inline uint32_t DecodeImmShiftARM(const uint32_t opcode, in DecodeImmShiftARM() argument
66 return DecodeImmShift(Bits32(opcode, 6, 5), Bits32(opcode, 11, 7), shift_t); in DecodeImmShiftARM()
280 static inline uint32_t ARMExpandImm_C(uint32_t opcode, uint32_t carry_in, in ARMExpandImm_C() argument
283 uint32_t imm = bits(opcode, 7, 0); // immediate value in ARMExpandImm_C()
284 uint32_t amt = 2 * bits(opcode, 11, 8); // rotate amount in ARMExpandImm_C()
295 static inline uint32_t ARMExpandImm(uint32_t opcode) { in ARMExpandImm() argument
300 return ARMExpandImm_C(opcode, carry_in, carry_out); in ARMExpandImm()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrFormatsC.td25 class RVInst16CR<bits<4> funct4, bits<2> opcode, dag outs, dag ins,
34 let Inst{1-0} = opcode;
40 class RVInst16CI<bits<3> funct3, bits<2> opcode, dag outs, dag ins,
49 let Inst{1-0} = opcode;
55 class RVInst16CSS<bits<3> funct3, bits<2> opcode, dag outs, dag ins,
64 let Inst{1-0} = opcode;
67 class RVInst16CIW<bits<3> funct3, bits<2> opcode, dag outs, dag ins,
75 let Inst{1-0} = opcode;
81 class RVInst16CL<bits<3> funct3, bits<2> opcode, dag outs, dag ins,
90 let Inst{1-0} = opcode;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrFormats.td40 // MemKey identifies a targe reg-mem opcode, while MemType can be either
42 // its corresponding target opcode. See comment at MemFoldPseudo.
2258 class InherentRRE<string mnemonic, bits<16> opcode, RegisterOperand cls,
2260 : InstRRE<opcode, (outs cls:$R1), (ins),
2266 class InherentDualRRE<string mnemonic, bits<16> opcode, RegisterOperand cls>
2267 : InstRRE<opcode, (outs cls:$R1, cls:$R2), (ins),
2270 class InherentVRIa<string mnemonic, bits<16> opcode, bits<16> value>
2271 : InstVRIa<opcode, (outs VR128:$V1), (ins), mnemonic#"\t$V1", []> {
2276 class StoreInherentS<string mnemonic, bits<16> opcode,
2278 : InstS<opcode, (outs), (ins (bdaddr12only $B2, $D2):$BD2),
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/PPC64/
H A DEmulateInstructionPPC64.cpp136 EmulateInstructionPPC64::GetOpcodeForInstruction(uint32_t opcode) { in GetOpcodeForInstruction() argument
153 if ((g_opcodes[i].mask & opcode) == g_opcodes[i].value) in GetOpcodeForInstruction()
160 const uint32_t opcode = m_opcode.GetOpcode32(); in EvaluateInstruction() local
162 Opcode *opcode_data = GetOpcodeForInstruction(opcode); in EvaluateInstruction()
181 success = (this->*opcode_data->callback)(opcode); in EvaluateInstruction()
203 bool EmulateInstructionPPC64::EmulateMFSPR(uint32_t opcode) { in EmulateMFSPR() argument
204 uint32_t rt = Bits32(opcode, 25, 21); in EmulateMFSPR()
205 uint32_t spr = Bits32(opcode, 20, 11); in EmulateMFSPR()
228 bool EmulateInstructionPPC64::EmulateLD(uint32_t opcode) { in EmulateLD() argument
229 uint32_t rt = Bits32(opcode, 25, 21); in EmulateLD()
[all …]
/freebsd/crypto/heimdal/kcm/
H A Dprotocol.c56 kcm_operation opcode, in kcm_op_noop() argument
60 KCM_LOG_REQUEST(context, client, opcode); in kcm_op_noop()
75 kcm_operation opcode, in kcm_op_get_name() argument
88 KCM_LOG_REQUEST_NAME(context, client, opcode, name); in kcm_op_get_name()
90 ret = kcm_ccache_resolve_client(context, client, opcode, in kcm_op_get_name()
118 kcm_operation opcode, in kcm_op_gen_new() argument
125 KCM_LOG_REQUEST(context, client, opcode); in kcm_op_gen_new()
149 kcm_operation opcode, in kcm_op_initialize() argument
161 KCM_LOG_REQUEST(context, client, opcode); in kcm_op_initialize()
215 kcm_operation opcode, in kcm_op_destroy() argument
[all …]
/freebsd/sys/dev/qlxgbe/
H A Dql_hw.h302 uint16_t opcode; member
324 uint16_t opcode; member
344 uint16_t opcode; member
359 uint16_t opcode; member
370 uint16_t opcode; member
403 uint16_t opcode; member
408 uint16_t opcode; member
415 uint16_t opcode; member
423 uint16_t opcode; member
454 uint16_t opcode; member
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_transobj.c39 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_alloc_transport_domain()
56 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_dealloc_transport_domain()
69 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_core_create_rq()
82 MLX5_SET(modify_rq_in, in, opcode, MLX5_CMD_OP_MODIFY_RQ); in mlx5_core_modify_rq()
92 MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ); in mlx5_core_destroy_rq()
103 MLX5_SET(query_rq_in, in, opcode, MLX5_CMD_OP_QUERY_RQ); in mlx5_core_query_rq()
114 MLX5_SET(create_sq_in, in, opcode, MLX5_CMD_OP_CREATE_SQ); in mlx5_core_create_sq()
127 MLX5_SET(modify_sq_in, in, opcode, MLX5_CMD_OP_MODIFY_SQ); in mlx5_core_modify_sq()
137 MLX5_SET(destroy_sq_in, in, opcode, MLX5_CMD_OP_DESTROY_SQ); in mlx5_core_destroy_sq()
148 MLX5_SET(query_sq_in, in, opcode, MLX5_CMD_OP_QUERY_SQ); in mlx5_core_query_sq()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM64/
H A DEmulateInstructionARM64.cpp184 EmulateInstructionARM64::GetOpcodeForInstruction(const uint32_t opcode) { in GetOpcodeForInstruction() argument
366 if ((g_opcodes[i].mask & opcode) == g_opcodes[i].value) in GetOpcodeForInstruction()
390 const uint32_t opcode = m_opcode.GetOpcode32(); in EvaluateInstruction() local
391 Opcode *opcode_data = GetOpcodeForInstruction(opcode); in EvaluateInstruction()
416 success = (this->*opcode_data->callback)(opcode); in EvaluateInstruction()
580 bool EmulateInstructionARM64::EmulateADDSUBImm(const uint32_t opcode) { in EmulateADDSUBImm() argument
616 const uint32_t sf = Bit32(opcode, 31); in EmulateADDSUBImm()
617 const uint32_t op = Bit32(opcode, 30); in EmulateADDSUBImm()
618 const uint32_t S = Bit32(opcode, 29); in EmulateADDSUBImm()
619 const uint32_t shift = Bits32(opcode, 23, 22); in EmulateADDSUBImm()
[all …]
/freebsd/sys/netgraph/bluetooth/hci/
H A Dng_hci_cmds.c178 if (ep->opcode == 0x0000) { in ng_hci_process_command_complete()
184 error = complete_command(unit, ep->opcode, &cp); in ng_hci_process_command_complete()
196 ep->opcode = le16toh(ep->opcode); in ng_hci_process_command_complete()
200 switch (NG_HCI_OGF(ep->opcode)) { in ng_hci_process_command_complete()
203 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
208 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
213 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
218 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
223 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
228 NG_HCI_OCF(ep->opcode), cp, e); in ng_hci_process_command_complete()
[all …]
/freebsd/sbin/ipfw/
H A Dipv6.c93 if (cmd->o.opcode == O_IP6_SRC_ME || cmd->o.opcode == O_IP6_DST_ME) { in print_ip6()
97 if (cmd->o.opcode == O_IP6) { in print_ip6()
110 mb = (cmd->o.opcode == O_IP6_SRC || in print_ip6()
111 cmd->o.opcode == O_IP6_DST) ? 128: in print_ip6()
161 cmd->o.opcode = O_ICMP6TYPE; in fill_icmp6types()
252 cmd->opcode = O_EXT_HDR; in fill_ext6hdr()
468 cmd->o.opcode = O_FLOW6ID; in fill_flow6()
482 if (cmd->opcode == O_IP_DST_SET) /* set */ in add_srcip6()
483 cmd->opcode = O_IP_SRC_SET; in add_srcip6()
484 else if (cmd->opcode == O_IP_DST_LOOKUP) /* table */ in add_srcip6()
[all …]
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dinsns.py71 def __init__(self, opcode, is_or, is_not, arg1): argument
72 if isinstance(opcode, Enum):
73 self.obj_type = opcode.value
74 self._enum = opcode
76 self.obj_type = opcode
121 return cls(opcode=insn.opcode, is_or=is_or, is_not=is_not, arg1=insn.arg1)
126 opcode = cls._parse(data)
127 opcode._enum = attr_type_enum
128 return opcode
170 attr = attr_map.get(hdr.opcode, None)
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def25 #define HANDLE_TERM_INST(num, opcode, Class)
27 #define HANDLE_TERM_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
39 #define HANDLE_UNARY_INST(num, opcode, instclass)
41 #define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
53 #define HANDLE_BINARY_INST(num, opcode, instclass)
55 #define HANDLE_BINARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
67 #define HANDLE_MEMORY_INST(num, opcode, Class)
69 #define HANDLE_MEMORY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
81 #define HANDLE_CAST_INST(num, opcode, Class)
83 #define HANDLE_CAST_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_response.c48 uint8_t opcode = 0xFF; in pqisrc_get_cmd_from_rcb() local
52 opcode = rcb->cdbp[0]; in pqisrc_get_cmd_from_rcb()
53 if (IS_BMIC_OPCODE(opcode)) in pqisrc_get_cmd_from_rcb()
57 return opcode; in pqisrc_get_cmd_from_rcb()
151 uint8_t opcode = rcb->cdbp ? rcb->cdbp[0] : 0xFF; in suppress_innocuous_error_prints() local
153 if ((opcode == SCSI_INQUIRY || /* 0x12 */ in suppress_innocuous_error_prints()
154 opcode == SCSI_MODE_SENSE || /* 0x1a */ in suppress_innocuous_error_prints()
155 opcode == SCSI_REPORT_LUNS || /* 0xa0 */ in suppress_innocuous_error_prints()
156 opcode == SCSI_LOG_SENSE || /* 0x4d */ in suppress_innocuous_error_prints()
157 opcode == SCSI_ATA_PASSTHRU16) /* 0x85 */ in suppress_innocuous_error_prints()
[all …]

12345678910>>...27