Home
last modified time | relevance | path

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

12

/linux/arch/x86/include/asm/
H A Ddesc.h16 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt()
45 struct desc_struct gdt[GDT_ENTRIES];
52 static inline struct desc_struct *get_cpu_gdt_rw(unsigned int cpu) in get_cpu_gdt_rw()
58 static inline struct desc_struct *get_current_gdt_rw(void) in get_current_gdt_rw()
64 static inline struct desc_struct *get_cpu_gdt_ro(int cpu) in get_cpu_gdt_ro()
66 return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt; in get_cpu_gdt_ro()
70 static inline struct desc_struct *get_current_gdt_ro(void) in get_current_gdt_ro()
127 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt()
131 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt()
143 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry()
[all …]
H A Dparavirt_types.h19 struct desc_struct;
73 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum,
75 void (*write_gdt_entry)(struct desc_struct *,
79 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
80 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
H A Dparavirt.h268 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt()
273 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt()
310 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry()
316 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
H A Ddesc_defs.h66 struct desc_struct { struct
H A Dmmu_context.h37 struct desc_struct *entries;
H A Dprocessor.h458 struct desc_struct tls_array[GDT_ENTRY_TLS_ENTRIES];
/linux/arch/x86/math-emu/
H A 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()
H A Dget_address.c140 struct desc_struct descriptor; in pm_address()
/linux/arch/x86/xen/
H A Denlighten_pv.c97 struct desc_struct desc[3];
466 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt()
486 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt()
542 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt()
568 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
572 static inline bool desc_equal(const struct desc_struct *d1, in desc_equal()
573 const struct desc_struct *d2) in desc_equal()
581 struct desc_struct *shadow = &per_cpu(shadow_tls_desc, cpu).desc[i]; in load_TLS_descriptor()
582 struct desc_struct *gdt; in load_TLS_descriptor()
623 static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum, in xen_write_ldt_entry()
[all …]
H A Dsmp_pv.c228 struct desc_struct *gdt; in cpu_initialize_context()
/linux/drivers/pnp/pnpbios/
H A Dbioscalls.c58 struct desc_struct *gdt = get_cpu_gdt_rw((cpu)); \
63 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(DESC_DATA32_BIOS,
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()
/linux/arch/x86/kernel/
H A Dtls.c89 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 Dldt.c161 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()
H A Dapm_32.c423 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(DESC_DATA32_BIOS,
593 struct desc_struct save_desc_40; in __apm_bios_call()
594 struct desc_struct *gdt; in __apm_bios_call()
674 struct desc_struct save_desc_40; in __apm_bios_call_simple()
675 struct desc_struct *gdt; in __apm_bios_call_simple()
2226 struct desc_struct *gdt; in apm_init()
H A Dsetup_percpu.c109 struct desc_struct d = GDT_ENTRY_INIT(DESC_DATA32, in setup_percpu_segment()
H A Dstep.c33 struct desc_struct *desc; in convert_ip_to_linear()
H A Dhead64.c562 struct desc_struct *gdt = (void *)(__force unsigned long)init_per_cpu_var(gdt_page.gdt); in startup_64_setup_gdt_idt()
/linux/include/trace/events/
H A Dxen.h383 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)
/linux/arch/x86/lib/
H A Dinsn-eval.c621 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()
/linux/arch/x86/hyperv/
H A Dhv_vtl.c80 struct desc_struct *gdt; in hv_vtl_bringup_vcpu()
90 gdt = (struct desc_struct *)((void *)(gdt_ptr.address)); in hv_vtl_bringup_vcpu()
/linux/drivers/firmware/efi/libstub/
H A Dx86-5lvl.c15 static const struct desc_struct gdt[] = {
/linux/rust/
H A Dbindgen_parameters9 --opaque-type desc_struct
/linux/arch/x86/power/
H A Dcpu.c154 struct desc_struct *desc = get_cpu_gdt_rw(cpu); in fix_processor_context()
/linux/arch/x86/include/asm/xen/
H A Dhypercall.h346 struct desc_struct desc) in MULTI_update_descriptor()
/linux/drivers/misc/lkdtm/
H A Dbugs.c627 struct desc_struct d = { in lkdtm_DOUBLE_FAULT()

12