Lines Matching refs:LDT_ENTRY_SIZE
35 #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()
440 if (ldt->nr_entries * LDT_ENTRY_SIZE > PAGE_SIZE) in free_ldt_struct()
470 new_ldt->nr_entries * LDT_ENTRY_SIZE); in ldt_dup_context()
515 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt()
516 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt()
518 entries_size = mm->context.ldt->nr_entries * LDT_ENTRY_SIZE; in read_ldt()
632 memcpy(new_ldt->entries, old_ldt->entries, old_nr_entries * LDT_ENTRY_SIZE); in write_ldt()