ldt_info          469 arch/x86/kernel/ldt.c 	struct user_desc ldt_info;
ldt_info          474 arch/x86/kernel/ldt.c 	if (bytecount != sizeof(ldt_info))
ldt_info          477 arch/x86/kernel/ldt.c 	if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info)))
ldt_info          481 arch/x86/kernel/ldt.c 	if (ldt_info.entry_number >= LDT_ENTRIES)
ldt_info          483 arch/x86/kernel/ldt.c 	if (ldt_info.contents == 3) {
ldt_info          486 arch/x86/kernel/ldt.c 		if (ldt_info.seg_not_present == 0)
ldt_info          490 arch/x86/kernel/ldt.c 	if ((oldmode && !ldt_info.base_addr && !ldt_info.limit) ||
ldt_info          491 arch/x86/kernel/ldt.c 	    LDT_empty(&ldt_info)) {
ldt_info          495 arch/x86/kernel/ldt.c 		if (!IS_ENABLED(CONFIG_X86_16BIT) && !ldt_info.seg_32bit) {
ldt_info          500 arch/x86/kernel/ldt.c 		fill_ldt(&ldt, &ldt_info);
ldt_info          510 arch/x86/kernel/ldt.c 	new_nr_entries = max(ldt_info.entry_number + 1, old_nr_entries);
ldt_info          520 arch/x86/kernel/ldt.c 	new_ldt->entries[ldt_info.entry_number] = ldt;
ldt_info          126 arch/x86/um/ldt.c 	struct user_desc ldt_info;
ldt_info          131 arch/x86/um/ldt.c 	if (bytecount != sizeof(ldt_info))
ldt_info          134 arch/x86/um/ldt.c 	if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info)))
ldt_info          138 arch/x86/um/ldt.c 	if (ldt_info.entry_number >= LDT_ENTRIES)
ldt_info          140 arch/x86/um/ldt.c 	if (ldt_info.contents == 3) {
ldt_info          143 arch/x86/um/ldt.c 		if (ldt_info.seg_not_present == 0)
ldt_info          149 arch/x86/um/ldt.c 	err = write_ldt_entry(mm_idp, func, &ldt_info, &addr, 1);
ldt_info          153 arch/x86/um/ldt.c 	if (ldt_info.entry_number >= ldt->entry_count &&
ldt_info          154 arch/x86/um/ldt.c 	    ldt_info.entry_number >= LDT_DIRECT_ENTRIES) {
ldt_info          156 arch/x86/um/ldt.c 		     i*LDT_ENTRIES_PER_PAGE <= ldt_info.entry_number;
ldt_info          166 arch/x86/um/ldt.c 				memset(&ldt_info, 0, sizeof(ldt_info));
ldt_info          167 arch/x86/um/ldt.c 				write_ldt_entry(mm_idp, 1, &ldt_info, &addr, 1);
ldt_info          179 arch/x86/um/ldt.c 	if (ldt->entry_count <= ldt_info.entry_number)
ldt_info          180 arch/x86/um/ldt.c 		ldt->entry_count = ldt_info.entry_number + 1;
ldt_info          183 arch/x86/um/ldt.c 		ldt_p = ldt->u.entries + ldt_info.entry_number;
ldt_info          185 arch/x86/um/ldt.c 		ldt_p = ldt->u.pages[ldt_info.entry_number/LDT_ENTRIES_PER_PAGE] +
ldt_info          186 arch/x86/um/ldt.c 			ldt_info.entry_number%LDT_ENTRIES_PER_PAGE;
ldt_info          188 arch/x86/um/ldt.c 	if (ldt_info.base_addr == 0 && ldt_info.limit == 0 &&
ldt_info          189 arch/x86/um/ldt.c 	   (func == 1 || LDT_empty(&ldt_info))) {
ldt_info          195 arch/x86/um/ldt.c 			ldt_info.useable = 0;
ldt_info          196 arch/x86/um/ldt.c 		ldt_p->a = LDT_entry_a(&ldt_info);
ldt_info          197 arch/x86/um/ldt.c 		ldt_p->b = LDT_entry_b(&ldt_info);