Lines Matching refs:entry_count
62 if (!ldt->entry_count) in read_ldt()
69 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) { in read_ldt()
79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt()
155 if (ldt_info.entry_number >= ldt->entry_count && in write_ldt()
157 for (i=ldt->entry_count/LDT_ENTRIES_PER_PAGE; in write_ldt()
178 ldt->entry_count = (i + 1) * LDT_ENTRIES_PER_PAGE; in write_ldt()
181 if (ldt->entry_count <= ldt_info.entry_number) in write_ldt()
182 ldt->entry_count = ldt_info.entry_number + 1; in write_ldt()
184 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) in write_ldt()
326 new_mm->arch.ldt.entry_count = 0; in init_new_ldt()
338 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES) in init_new_ldt()
342 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; in init_new_ldt()
355 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count; in init_new_ldt()
367 if (mm->arch.ldt.entry_count > LDT_DIRECT_ENTRIES) { in free_ldt()
368 i = mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; in free_ldt()
372 mm->arch.ldt.entry_count = 0; in free_ldt()