Lines Matching refs:size
33 set_ldt(pc->ldt->entries, pc->ldt->size); in flush_ldt()
37 static struct ldt_struct *alloc_ldt_struct(int size) in alloc_ldt_struct() argument
42 if (size > LDT_ENTRIES) in alloc_ldt_struct()
50 alloc_size = size * LDT_ENTRY_SIZE; in alloc_ldt_struct()
68 new_ldt->size = size; in alloc_ldt_struct()
75 paravirt_alloc_ldt(ldt->entries, ldt->size); in finalize_ldt_struct()
94 paravirt_free_ldt(ldt->entries, ldt->size); in free_ldt_struct()
95 if (ldt->size * LDT_ENTRY_SIZE > PAGE_SIZE) in free_ldt_struct()
125 new_ldt = alloc_ldt_struct(old_mm->context.ldt->size); in init_new_context()
132 new_ldt->size * LDT_ENTRY_SIZE); in init_new_context()
156 unsigned long size; in read_ldt() local
169 size = mm->context.ldt->size * LDT_ENTRY_SIZE; in read_ldt()
170 if (size > bytecount) in read_ldt()
171 size = bytecount; in read_ldt()
173 if (copy_to_user(ptr, mm->context.ldt->entries, size)) { in read_ldt()
178 if (size != bytecount) { in read_ldt()
180 if (clear_user(ptr + size, bytecount - size)) { in read_ldt()
196 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt() local
198 unsigned long size = 128; in read_default_ldt()
200 if (bytecount > size) in read_default_ldt()
201 bytecount = size; in read_default_ldt()
251 oldsize = old_ldt ? old_ldt->size : 0; in write_ldt()