/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | desc.h | 15 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt() 44 struct desc_struct gdt[GDT_ENTRIES]; 50 static inline struct desc_struct *get_cpu_gdt_rw(unsigned int cpu) in get_cpu_gdt_rw() 56 static inline struct desc_struct *get_current_gdt_rw(void) in get_current_gdt_rw() 62 static inline struct desc_struct *get_cpu_gdt_ro(int cpu) in get_cpu_gdt_ro() 64 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt; in get_cpu_gdt_ro() 68 static inline struct desc_struct *get_current_gdt_ro(void) in get_current_gdt_ro() 125 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 129 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 141 static inline void native_write_ldt_entry(struct desc_struct *ld [all...] |
H A D | stackprotector.h | 106 struct desc_struct *gdt_table = get_cpu_gdt_rw(cpu); in setup_stack_canary_segment() 107 struct desc_struct desc; in setup_stack_canary_segment()
|
H A D | paravirt_types.h | 53 struct desc_struct; 125 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 127 void (*write_gdt_entry)(struct desc_struct *, 131 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 132 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
H A D | paravirt.h | 241 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 246 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 283 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry() 289 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
|
/kernel/linux/linux-5.10/arch/x86/math-emu/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/x86/math-emu/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | desc.h | 16 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt() 45 struct desc_struct gdt[GDT_ENTRIES]; 51 static inline struct desc_struct *get_cpu_gdt_rw(unsigned int cpu) in get_cpu_gdt_rw() 57 static inline struct desc_struct *get_current_gdt_rw(void) in get_current_gdt_rw() 63 static inline struct desc_struct *get_cpu_gdt_ro(int cpu) in get_cpu_gdt_ro() 65 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt; in get_cpu_gdt_ro() 69 static inline struct desc_struct *get_current_gdt_ro(void) in get_current_gdt_ro() 126 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 130 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 142 static inline void native_write_ldt_entry(struct desc_struct *ld [all...] |
H A D | paravirt_types.h | 27 struct desc_struct; 81 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 83 void (*write_gdt_entry)(struct desc_struct *, 87 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 88 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
H A D | paravirt.h | 266 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() 271 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() 308 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry() 314 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | enlighten_pv.c | 100 struct desc_struct desc[3]; 392 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() 412 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() 468 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 494 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot() 498 static inline bool desc_equal(const struct desc_struct *d1, in desc_equal() 499 const struct desc_struct *d2) in desc_equal() 507 struct desc_struct *shadow = &per_cpu(shadow_tls_desc, cpu).desc[i]; in load_TLS_descriptor() 508 struct desc_struct *gdt; in load_TLS_descriptor() 549 static void xen_write_ldt_entry(struct desc_struct *d [all...] |
/kernel/linux/linux-6.6/arch/x86/xen/ |
H A D | enlighten_pv.c | 101 struct desc_struct desc[3]; 458 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() 478 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() 534 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 560 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot() 564 static inline bool desc_equal(const struct desc_struct *d1, in desc_equal() 565 const struct desc_struct *d2) in desc_equal() 573 struct desc_struct *shadow = &per_cpu(shadow_tls_desc, cpu).desc[i]; in load_TLS_descriptor() 574 struct desc_struct *gdt; in load_TLS_descriptor() 615 static void xen_write_ldt_entry(struct desc_struct *d [all...] |
/kernel/linux/linux-5.10/drivers/pnp/pnpbios/ |
H A D | bioscalls.c | 58 struct desc_struct *gdt = get_cpu_gdt_rw((cpu)); \ 63 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, 88 struct desc_struct save_desc_40; in call_pnp_bios() 481 struct desc_struct *gdt = get_cpu_gdt_rw(i); in pnpbios_calls_init()
|
/kernel/linux/linux-6.6/drivers/pnp/pnpbios/ |
H A D | bioscalls.c | 58 struct desc_struct *gdt = get_cpu_gdt_rw((cpu)); \ 63 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, 88 struct desc_struct save_desc_40; in call_pnp_bios() 480 struct desc_struct *gdt = get_cpu_gdt_rw(i); in pnpbios_calls_init()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A 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() 261 const struct desc_struct *tls; in regset_tls_get()
|
H A D | ldt.c | 161 BUILD_BUG_ON(LDT_ENTRY_SIZE != sizeof(struct desc_struct)); in alloc_ldt_struct() 537 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt() 576 struct desc_struct ldt; in write_ldt()
|
H A D | apm_32.c | 422 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, 592 struct desc_struct save_desc_40; in __apm_bios_call() 593 struct desc_struct *gdt; in __apm_bios_call() 670 struct desc_struct save_desc_40; in __apm_bios_call_simple() 671 struct desc_struct *gdt; in __apm_bios_call_simple() 2248 struct desc_struct *gdt; in apm_init()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | tls.c | 89 struct desc_struct *desc = &t->tls_array[idx - GDT_ENTRY_TLS_MIN]; in set_tls_desc() 197 const struct desc_struct *desc) in fill_user_desc() 256 const struct desc_struct *tls; in regset_tls_get()
|
H A D | ldt.c | 161 BUILD_BUG_ON(LDT_ENTRY_SIZE != sizeof(struct desc_struct)); in alloc_ldt_struct() 545 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt() 584 struct desc_struct ldt; in write_ldt()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | xen.h | 383 TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc), 386 __field(struct desc_struct *, dt) 424 TP_PROTO(struct desc_struct *dt, int entrynum, const void *desc, int type), 428 __field(struct desc_struct *, dt)
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | xen.h | 383 TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc), 386 __field(struct desc_struct *, dt) 424 TP_PROTO(struct desc_struct *dt, int entrynum, const void *desc, int type), 428 __field(struct desc_struct *, dt)
|
/kernel/linux/linux-6.6/arch/x86/hyperv/ |
H A D | hv_vtl.c | 80 struct desc_struct *gdt; in hv_vtl_bringup_vcpu() 90 gdt = (struct desc_struct *)((void *)(gdt_ptr.address)); in hv_vtl_bringup_vcpu()
|
/kernel/linux/linux-5.10/arch/x86/lib/ |
H A D | insn-eval.c | 603 static bool get_desc(struct desc_struct *out, unsigned short sel) in get_desc() 642 *out = *(struct desc_struct *)(gdt_desc.address + desc_base); in get_desc() 665 struct desc_struct desc; in insn_get_seg_base() 732 struct desc_struct desc; in get_seg_limit() 780 struct desc_struct desc; in insn_get_code_seg_params()
|
/kernel/linux/linux-6.6/arch/x86/lib/ |
H A D | insn-eval.c | 621 static bool get_desc(struct desc_struct *out, unsigned short sel) in get_desc() 660 *out = *(struct desc_struct *)(gdt_desc.address + desc_base); in get_desc() 683 struct desc_struct desc; in insn_get_seg_base() 750 struct desc_struct desc; in get_seg_limit() 798 struct desc_struct desc; in insn_get_code_seg_params()
|
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | x86-5lvl.c | 15 static const struct desc_struct gdt[] = {
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
H A D | kvm_emulate.h | 196 struct desc_struct *desc, u32 *base3, int seg); 198 struct desc_struct *desc, u32 base3, int seg);
|