Lines Matching refs:desc

566 static u32 desc_limit_scaled(struct desc_struct *desc)  in desc_limit_scaled()  argument
568 u32 limit = get_desc_limit(desc); in desc_limit_scaled()
570 return desc->g ? (limit << 12) | 0xfff : limit; in desc_limit_scaled()
631 struct desc_struct desc; in get_segment_selector() local
633 ctxt->ops->get_segment(ctxt, &selector, &desc, NULL, seg); in get_segment_selector()
642 struct desc_struct desc; in set_segment_selector() local
644 ctxt->ops->get_segment(ctxt, &dummy, &desc, &base3, seg); in set_segment_selector()
645 ctxt->ops->set_segment(ctxt, selector, &desc, base3, seg); in set_segment_selector()
693 struct desc_struct desc; in __linearize() local
715 usable = ctxt->ops->get_segment(ctxt, &sel, &desc, NULL, in __linearize()
720 if ((((ctxt->mode != X86EMUL_MODE_REAL) && (desc.type & 8)) in __linearize()
721 || !(desc.type & 2)) && write) in __linearize()
724 if (!fetch && (desc.type & 8) && !(desc.type & 2)) in __linearize()
726 lim = desc_limit_scaled(&desc); in __linearize()
727 if (!(desc.type & 8) && (desc.type & 4)) { in __linearize()
731 lim = desc.d ? 0xffffffff : 0xffff; in __linearize()
1460 u16 index, struct desc_struct *desc) in read_interrupt_descriptor() argument
1471 return linear_read_system(ctxt, addr, desc, sizeof(*desc)); in read_interrupt_descriptor()
1481 struct desc_struct desc; in get_descriptor_table_ptr() local
1485 if (!ops->get_segment(ctxt, &sel, &desc, &base3, in get_descriptor_table_ptr()
1489 dt->size = desc_limit_scaled(&desc); /* what if limit > 65535? */ in get_descriptor_table_ptr()
1490 dt->address = get_desc_base(&desc) | ((u64)base3 << 32); in get_descriptor_table_ptr()
1525 u16 selector, struct desc_struct *desc, in read_segment_descriptor() argument
1534 return linear_read_system(ctxt, *desc_addr_p, desc, sizeof(*desc)); in read_segment_descriptor()
1539 u16 selector, struct desc_struct *desc) in write_segment_descriptor() argument
1548 return linear_write_system(ctxt, addr, desc, sizeof(*desc)); in write_segment_descriptor()
1554 struct desc_struct *desc) in __load_segment_descriptor() argument
1749 if (desc) in __load_segment_descriptor()
1750 *desc = seg_desc; in __load_segment_descriptor()
4769 struct desc_struct desc; in x86_decode_insn() local
4790 ctxt->ops->get_segment(ctxt, &dummy, &desc, NULL, VCPU_SREG_CS); in x86_decode_insn()
4791 if (desc.d) in x86_decode_insn()