Lines Matching refs:size

82 /* Operand sizes: 8-bit operands or specified/overridden size. */
307 ".size " name ", .-" name "\n\t"
668 static unsigned insn_alignment(struct x86_emulate_ctxt *ctxt, unsigned size)
672 if (likely(size < 16))
683 return size;
689 unsigned *max_size, unsigned size,
710 if (size > *max_size)
739 if (size > *max_size)
744 if (la & (insn_alignment(ctxt, size) - 1))
756 unsigned size, bool write,
760 return __linearize(ctxt, addr, &max_size, size, write, false,
847 void *data, unsigned size)
849 return ctxt->ops->read_std(ctxt, linear, data, size, &ctxt->exception, true);
854 unsigned int size)
856 return ctxt->ops->write_std(ctxt, linear, data, size, &ctxt->exception, true);
862 unsigned size)
867 rc = linearize(ctxt, addr, size, false, &linear);
870 return ctxt->ops->read_std(ctxt, linear, data, size, &ctxt->exception, false);
876 unsigned int size)
881 rc = linearize(ctxt, addr, size, true, &linear);
884 return ctxt->ops->write_std(ctxt, linear, data, size, &ctxt->exception, false);
894 unsigned size, max_size;
906 * __linearize is called with size 0 so that it does not do any
915 size = min_t(unsigned, 15UL ^ cur_size, max_size);
916 size = min_t(unsigned, size, PAGE_SIZE - offset_in_page(linear));
924 if (unlikely(size < op_size))
928 size, &ctxt->exception);
931 ctxt->fetch.end += size;
936 unsigned size)
940 if (unlikely(done_size < size))
941 return __do_insn_fetch_bytes(ctxt, size - done_size);
989 u16 *size, unsigned long *address, int op_bytes)
996 rc = segmented_read_std(ctxt, addr, size, 2);
1356 unsigned long addr, void *dest, unsigned size)
1364 if (KVM_EMULATOR_BUG_ON((mc->end + size) >= sizeof(mc->data), ctxt))
1367 rc = ctxt->ops->read_emulated(ctxt, addr, mc->data + mc->end, size,
1372 mc->end += size;
1375 memcpy(dest, mc->data + mc->pos, size);
1376 mc->pos += size;
1383 unsigned size)
1388 rc = linearize(ctxt, addr, size, false, &linear);
1391 return read_emulated(ctxt, linear, data, size);
1397 unsigned size)
1402 rc = linearize(ctxt, addr, size, true, &linear);
1405 return ctxt->ops->write_emulated(ctxt, linear, data, size,
1412 unsigned size)
1417 rc = linearize(ctxt, addr, size, true, &linear);
1421 size, &ctxt->exception);
1425 unsigned int size, unsigned short port,
1437 n = min3(in_page, (unsigned int)sizeof(rc->data) / size, count);
1441 if (!ctxt->ops->pio_in_emulated(ctxt, size, port, rc->data, n))
1443 rc->end = n * size;
1450 ctxt->dst.count = (rc->end - rc->pos) / size;
1453 memcpy(dest, rc->data + rc->pos, size);
1454 rc->pos += size;
1467 if (dt.size < index * 8 + 7)
1489 dt->size = desc_limit_scaled(&desc); /* what if limit > 65535? */
1504 if (dt.size < index * 8 + 7)
3275 * From MOVBE definition: "...When the operand size is 16 bits,
3516 &desc_ptr.size, &desc_ptr.address,
3796 size_t size;
3802 size = fxstate_size(ctxt);
3803 rc = segmented_read_std(ctxt, ctxt->memop.addr.mem, &fx_state, size);
3809 if (size < __fxstate_size(16)) {
3810 rc = fxregs_fixup(&fx_state, size);
4546 unsigned size;
4548 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4549 if (size == 8)
4550 size = 4;
4551 return size;
4555 unsigned size, bool sign_extension)
4560 op->bytes = size;
4816 case 0x66: /* operand-size override */
4821 case 0x67: /* address-size override */
4936 size_t size = ARRAY_SIZE(opcode.u.esc->high);
4938 ctxt->modrm - 0xc0, size);