Home
last modified time | relevance | path

Searched refs:desc_struct (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/arch/x86/include/asm/
Ddesc.h15 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 …]
Dstackprotector.h92 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()
Dparavirt_types.h53 struct desc_struct;
130 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum,
132 void (*write_gdt_entry)(struct desc_struct *,
136 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
137 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
Dkvm_emulate.h196 struct desc_struct *desc, u32 *base3, int seg);
198 struct desc_struct *desc, u32 base3, int seg);
Ddesc_defs.h16 struct desc_struct { struct
Dparavirt.h201 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt()
206 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt()
244 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry()
250 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
Dmmu_context.h54 struct desc_struct *entries;
/Linux-v4.19/arch/x86/math-emu/
Dfpu_system.h23 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()
Dget_address.c140 struct desc_struct descriptor; in pm_address()
/Linux-v4.19/arch/x86/xen/
Denlighten_pv.c99 struct desc_struct desc[3];
397 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt()
417 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt()
473 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt()
499 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
503 static inline bool desc_equal(const struct desc_struct *d1, in desc_equal()
504 const struct desc_struct *d2) in desc_equal()
512 struct desc_struct *shadow = &per_cpu(shadow_tls_desc, cpu).desc[i]; in load_TLS_descriptor()
513 struct desc_struct *gdt; in load_TLS_descriptor()
574 static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum, in xen_write_ldt_entry()
[all …]
Dsmp_pv.c283 struct desc_struct *gdt; in cpu_initialize_context()
/Linux-v4.19/drivers/pnp/pnpbios/
Dbioscalls.c58 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()
/Linux-v4.19/arch/x86/kernel/
Dtls.c87 struct desc_struct *desc = &t->tls_array[idx - GDT_ENTRY_TLS_MIN]; in set_tls_desc()
201 const struct desc_struct *desc) in fill_user_desc()
257 const struct desc_struct *tls; in regset_tls_get()
Dldt.c77 BUILD_BUG_ON(LDT_ENTRY_SIZE != sizeof(struct desc_struct)); in alloc_ldt_struct()
437 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt()
454 struct desc_struct ldt; in write_ldt()
Ddoublefault.c33 tss = get_desc_base((struct desc_struct *)gdt); in doublefault_fn()
Dapm_32.c437 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
607 struct desc_struct save_desc_40; in __apm_bios_call()
608 struct desc_struct *gdt; in __apm_bios_call()
685 struct desc_struct save_desc_40; in __apm_bios_call_simple()
686 struct desc_struct *gdt; in __apm_bios_call_simple()
2263 struct desc_struct *gdt; in apm_init()
Dstep.c31 struct desc_struct *desc; in convert_ip_to_linear()
Dsetup_percpu.c159 struct desc_struct d = GDT_ENTRY_INIT(0x8092, per_cpu_offset(cpu), in setup_percpu_segment()
/Linux-v4.19/arch/x86/lib/
Dinsn-eval.c570 static struct desc_struct *get_desc(unsigned short sel) in get_desc()
577 struct desc_struct *desc = NULL; in get_desc()
607 return (struct desc_struct *)(gdt_desc.address + desc_base); in get_desc()
629 struct desc_struct *desc; in insn_get_seg_base()
693 struct desc_struct *desc; in get_seg_limit()
742 struct desc_struct *desc; in insn_get_code_seg_params()
/Linux-v4.19/include/trace/events/
Dxen.h399 TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc),
402 __field(struct desc_struct *, dt)
440 TP_PROTO(struct desc_struct *dt, int entrynum, const void *desc, int type),
444 __field(struct desc_struct *, dt)
/Linux-v4.19/arch/x86/kvm/
Demulate.c530 struct desc_struct ss; in stack_mask()
577 static u32 desc_limit_scaled(struct desc_struct *desc) in desc_limit_scaled()
640 struct desc_struct desc; in get_segment_selector()
651 struct desc_struct desc; in set_segment_selector()
691 struct desc_struct desc; in __linearize()
785 const struct desc_struct *cs_desc) in assign_eip_far()
1501 u16 index, struct desc_struct *desc) in read_interrupt_descriptor()
1522 struct desc_struct desc; in get_descriptor_table_ptr()
1566 u16 selector, struct desc_struct *desc, in read_segment_descriptor()
1580 u16 selector, struct desc_struct *desc) in write_segment_descriptor()
[all …]
/Linux-v4.19/arch/x86/power/
Dcpu.c156 struct desc_struct *desc = get_cpu_gdt_rw(cpu); in fix_processor_context()
/Linux-v4.19/arch/x86/entry/vdso/
Dvma.c341 struct desc_struct d = { }; in vgetcpu_cpu_init()
/Linux-v4.19/arch/x86/boot/compressed/
Deboot.c738 struct desc_struct *desc; in efi_main()
816 desc = (struct desc_struct *)gdt->address; in efi_main()
/Linux-v4.19/arch/x86/include/asm/xen/
Dhypercall.h468 struct desc_struct desc) in MULTI_update_descriptor()

12