/arch/x86/include/asm/ |
D | desc.h | 15 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt() 49 struct desc_struct gdt[GDT_ENTRIES]; 55 static inline struct desc_struct *get_cpu_gdt_rw(unsigned int cpu) in get_cpu_gdt_rw() 61 static inline struct desc_struct *get_current_gdt_rw(void) in get_current_gdt_rw() 67 static inline struct desc_struct *get_cpu_gdt_ro(int cpu) in get_cpu_gdt_ro() 69 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt; in get_cpu_gdt_ro() 73 static inline struct desc_struct *get_current_gdt_ro(void) in get_current_gdt_ro() 130 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 134 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 146 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry() [all …]
|
D | stackprotector.h | 92 struct desc_struct *gdt_table = get_cpu_gdt_rw(cpu); in setup_stack_canary_segment() 93 struct desc_struct desc; in setup_stack_canary_segment()
|
D | paravirt_types.h | 53 struct desc_struct; 132 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 134 void (*write_gdt_entry)(struct desc_struct *, 138 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 139 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
D | desc_defs.h | 16 struct desc_struct { struct
|
D | kvm_emulate.h | 196 struct desc_struct *desc, u32 *base3, int seg); 198 struct desc_struct *desc, u32 base3, int seg);
|
D | paravirt.h | 237 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 242 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 281 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry() 287 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
|
D | mmu_context.h | 55 struct desc_struct *entries;
|
D | processor.h | 442 struct desc_struct tls_array[GDT_ENTRY_TLS_ENTRIES];
|
/arch/x86/math-emu/ |
D | fpu_system.h | 23 static inline struct desc_struct FPU_get_ldt_descriptor(unsigned seg) in FPU_get_ldt_descriptor() 25 static struct desc_struct zero_desc; in FPU_get_ldt_descriptor() 26 struct desc_struct ret = zero_desc; in FPU_get_ldt_descriptor() 44 static inline unsigned long seg_get_base(struct desc_struct *d) in seg_get_base() 51 static inline unsigned long seg_get_limit(struct desc_struct *d) in seg_get_limit() 56 static inline unsigned long seg_get_granularity(struct desc_struct *d) in seg_get_granularity() 61 static inline bool seg_expands_down(struct desc_struct *d) in seg_expands_down() 66 static inline bool seg_execute_only(struct desc_struct *d) in seg_execute_only() 71 static inline bool seg_writable(struct desc_struct *d) in seg_writable()
|
D | get_address.c | 140 struct desc_struct descriptor; in pm_address()
|
D | fpu_entry.c | 115 struct desc_struct code_descriptor; in math_emulate()
|
/arch/x86/xen/ |
D | enlighten_pv.c | 98 struct desc_struct desc[3]; 404 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() 424 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() 480 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 506 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot() 510 static inline bool desc_equal(const struct desc_struct *d1, in desc_equal() 511 const struct desc_struct *d2) in desc_equal() 519 struct desc_struct *shadow = &per_cpu(shadow_tls_desc, cpu).desc[i]; in load_TLS_descriptor() 520 struct desc_struct *gdt; in load_TLS_descriptor() 581 static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum, in xen_write_ldt_entry() [all …]
|
D | smp_pv.c | 287 struct desc_struct *gdt; in cpu_initialize_context()
|
/arch/x86/kernel/ |
D | tls.c | 88 struct desc_struct *desc = &t->tls_array[idx - GDT_ENTRY_TLS_MIN]; in set_tls_desc() 202 const struct desc_struct *desc) in fill_user_desc() 262 const struct desc_struct *tls; in regset_tls_get()
|
D | doublefault.c | 33 tss = get_desc_base((struct desc_struct *)gdt); in doublefault_fn()
|
D | ldt.c | 77 BUILD_BUG_ON(LDT_ENTRY_SIZE != sizeof(struct desc_struct)); in alloc_ldt_struct() 453 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt() 470 struct desc_struct ldt; in write_ldt()
|
D | step.c | 31 struct desc_struct *desc; in convert_ip_to_linear()
|
D | apm_32.c | 428 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, 598 struct desc_struct save_desc_40; in __apm_bios_call() 599 struct desc_struct *gdt; in __apm_bios_call() 676 struct desc_struct save_desc_40; in __apm_bios_call_simple() 677 struct desc_struct *gdt; in __apm_bios_call_simple() 2254 struct desc_struct *gdt; in apm_init()
|
D | setup_percpu.c | 161 struct desc_struct d = GDT_ENTRY_INIT(0x8092, per_cpu_offset(cpu), in setup_percpu_segment()
|
/arch/x86/lib/ |
D | insn-eval.c | 573 static bool get_desc(struct desc_struct *out, unsigned short sel) in get_desc() 612 *out = *(struct desc_struct *)(gdt_desc.address + desc_base); in get_desc() 635 struct desc_struct desc; in insn_get_seg_base() 698 struct desc_struct desc; in get_seg_limit() 746 struct desc_struct desc; in insn_get_code_seg_params()
|
/arch/x86/kvm/ |
D | emulate.c | 546 struct desc_struct ss; in stack_mask() 593 static u32 desc_limit_scaled(struct desc_struct *desc) in desc_limit_scaled() 656 struct desc_struct desc; in get_segment_selector() 667 struct desc_struct desc; in set_segment_selector() 707 struct desc_struct desc; in __linearize() 801 const struct desc_struct *cs_desc) in assign_eip_far() 1517 u16 index, struct desc_struct *desc) in read_interrupt_descriptor() 1538 struct desc_struct desc; in get_descriptor_table_ptr() 1582 u16 selector, struct desc_struct *desc, in read_segment_descriptor() 1596 u16 selector, struct desc_struct *desc) in write_segment_descriptor() [all …]
|
/arch/x86/power/ |
D | cpu.c | 153 struct desc_struct *desc = get_cpu_gdt_rw(cpu); in fix_processor_context()
|
/arch/x86/include/asm/xen/ |
D | hypercall.h | 478 struct desc_struct desc) in MULTI_update_descriptor()
|
/arch/x86/boot/compressed/ |
D | eboot.c | 746 struct desc_struct *desc; in efi_main() 835 desc = (struct desc_struct *)gdt->address; in efi_main()
|
/arch/x86/mm/ |
D | fault.c | 556 u32 offset = (index >> 3) * sizeof(struct desc_struct); in show_ldttss()
|