Home
last modified time | relevance | path

Searched refs:LDT_ENTRY_SIZE (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/arch/x86/kernel/
Dldt.c35 #define LDT_SLOT_STRIDE (LDT_ENTRIES * LDT_ENTRY_SIZE)
161 BUILD_BUG_ON(LDT_ENTRY_SIZE != sizeof(struct desc_struct)); in alloc_ldt_struct()
162 alloc_size = num_entries * LDT_ENTRY_SIZE; in alloc_ldt_struct()
309 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in map_ldt_struct()
361 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in unmap_ldt_struct()
438 if (ldt->nr_entries * LDT_ENTRY_SIZE > PAGE_SIZE) in free_ldt_struct()
468 new_ldt->nr_entries * LDT_ENTRY_SIZE); in ldt_dup_context()
513 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt()
514 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt()
516 entries_size = mm->context.ldt->nr_entries * LDT_ENTRY_SIZE; in read_ldt()
[all …]
/linux-6.1.9/arch/x86/um/asm/
Dmm_context.h17 ((LDT_ENTRIES * LDT_ENTRY_SIZE)/PAGE_SIZE)
19 (PAGE_SIZE/LDT_ENTRY_SIZE)
21 ((LDT_PAGES_MAX*sizeof(void *))/LDT_ENTRY_SIZE)
/linux-6.1.9/arch/x86/um/
Dldt.c64 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) in read_ldt()
65 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; in read_ldt()
70 size = LDT_ENTRY_SIZE*LDT_DIRECT_ENTRIES; in read_ldt()
108 if (bytecount > 5*LDT_ENTRY_SIZE) in read_default_ldt()
109 bytecount = 5*LDT_ENTRY_SIZE; in read_default_ldt()
272 for (i=0, size=0; i<ret/LDT_ENTRY_SIZE; i++) { in ldt_get_host_info()
290 for (i=0, k=0; i<ret/LDT_ENTRY_SIZE; i++) { in ldt_get_host_info()
/linux-6.1.9/arch/x86/include/uapi/asm/
Dldt.h13 #define LDT_ENTRY_SIZE 8 macro
/linux-6.1.9/arch/x86/include/asm/
Ddesc.h201 entries * LDT_ENTRY_SIZE - 1); in native_set_ldt()
/linux-6.1.9/arch/x86/xen/
Denlighten_pv.c379 const unsigned entries_per_page = PAGE_SIZE / LDT_ENTRY_SIZE; in xen_alloc_ldt()
399 const unsigned entries_per_page = PAGE_SIZE / LDT_ENTRY_SIZE; in xen_free_ldt()