Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 11 of 11) sorted by relevance

/tools/arch/x86/include/asm/
Dinsn.h23 unsigned char nbytes; member
30 p->nbytes = n; in insn_field_set()
49 unsigned char nbytes; member
57 p->nbytes = n; in insn_field_set()
173 return insn->rex_prefix.nbytes == 2; in insn_is_rex2()
192 return (insn->vex_prefix.nbytes == 4); in insn_is_evex()
202 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_m_bits()
204 else if (insn->vex_prefix.nbytes == 3) /* 3 bytes VEX */ in insn_vex_m_bits()
212 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_p_bits()
220 if (insn->vex_prefix.nbytes < 3) in insn_vex_w_bit()
[all …]
/tools/usb/
Dffs-test.c336 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
337 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
338 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
339 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
340 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
483 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes) in read_wrap() argument
485 return read(t->fd, buf, nbytes); in read_wrap()
488 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes) in write_wrap() argument
490 return write(t->fd, buf, nbytes); in write_wrap()
501 fill_in_buf(struct thread *ignore, void *buf, size_t nbytes) in fill_in_buf() argument
[all …]
/tools/usb/usbip/src/
Dusbip_network.c98 ssize_t nbytes; in usbip_net_xmit() local
106 nbytes = send(sockfd, buff, bufflen, 0); in usbip_net_xmit()
108 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); in usbip_net_xmit()
110 if (nbytes <= 0) in usbip_net_xmit()
113 buff = (void *)((intptr_t) buff + nbytes); in usbip_net_xmit()
114 bufflen -= nbytes; in usbip_net_xmit()
115 total += nbytes; in usbip_net_xmit()
/tools/perf/arch/s390/util/
Dheader.c37 size_t nbytes; in get_cpuid() local
131 nbytes = snprintf(buffer, sz, "%s,%s,%s,%s,%s", in get_cpuid()
135 nbytes = snprintf(buffer, sz, "%s,%s,%s", manufacturer, type, in get_cpuid()
137 return (nbytes >= sz) ? ENOBUFS : 0; in get_cpuid()
/tools/arch/x86/lib/
Dinsn.c160 prefixes->nbytes++; in insn_get_prefixes()
192 insn->rex_prefix.nbytes = 2; in insn_get_prefixes()
224 insn->vex_prefix.nbytes = 4; in insn_get_prefixes()
232 insn->vex_prefix.nbytes = 3; in insn_get_prefixes()
244 insn->vex_prefix.nbytes = 2; in insn_get_prefixes()
289 opcode->nbytes = 1; in insn_get_opcode()
330 opcode->bytes[opcode->nbytes++] = op; in insn_get_opcode()
421 return (modrm->nbytes && (modrm->bytes[0] & 0xc7) == 0x5); in insn_rip_relative()
447 if (insn->modrm.nbytes) { in insn_get_sib()
488 if (insn->modrm.nbytes) { in insn_get_displacement()
[all …]
/tools/perf/util/
Djit.h9 pid_t pid, pid_t tid, u64 *nbytes);
Djitdump.c827 u64 *nbytes) in jit_process() argument
876 *nbytes = 0; in jit_process()
881 *nbytes = jd.bytes_written; in jit_process()
/tools/objtool/arch/x86/
Ddecode.c145 for (i = 0; i < insn->prefixes.nbytes; i++) { in has_notrack_prefix()
183 if (ins.vex_prefix.nbytes) in arch_decode_instruction()
192 if (ins.rex_prefix.nbytes) { in arch_decode_instruction()
200 if (ins.modrm.nbytes) { in arch_decode_instruction()
207 if (ins.sib.nbytes) { in arch_decode_instruction()
559 if (ins.prefixes.nbytes == 1 && in arch_decode_instruction()
740 insn->immediate = ins.immediate.nbytes ? ins.immediate.value : 0; in arch_decode_instruction()
/tools/testing/selftests/powerpc/include/
Dutils.h183 ssize_t nbytes __attribute__((unused)); \
184 nbytes = write(STDERR_FILENO, msg, strlen(msg)); })
/tools/testing/selftests/memfd/
Dmemfd_test.c53 ssize_t nbytes; in fd2name() local
64 nbytes = readlink(buf1, buf, bufsize-1); in fd2name()
65 if (nbytes == -1) { in fd2name()
69 buf[nbytes] = '\0'; in fd2name()
70 return nbytes; in fd2name()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c172 switch (insn->immediate.nbytes) { in intel_pt_insn_decoder()