Lines Matching refs:user_desc
31 static bool tls_desc_okay(const struct user_desc *info) in tls_desc_okay()
84 const struct user_desc *info, int n) in set_tls_desc()
114 struct user_desc __user *u_info, in do_set_thread_area()
117 struct user_desc info; in do_set_thread_area()
190 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
200 static void fill_user_desc(struct user_desc *info, int idx, in fill_user_desc()
220 struct user_desc __user *u_info) in do_get_thread_area()
222 struct user_desc info; in do_get_thread_area()
238 SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
259 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_get()
260 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_get()
261 (count % sizeof(struct user_desc)) != 0) in regset_tls_get()
264 pos /= sizeof(struct user_desc); in regset_tls_get()
265 count /= sizeof(struct user_desc); in regset_tls_get()
270 struct user_desc *info = kbuf; in regset_tls_get()
275 struct user_desc __user *u_info = ubuf; in regset_tls_get()
277 struct user_desc info; in regset_tls_get()
291 struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; in regset_tls_set()
292 const struct user_desc *info; in regset_tls_set()
295 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_set()
296 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_set()
297 (count % sizeof(struct user_desc)) != 0) in regset_tls_set()
307 for (i = 0; i < count / sizeof(struct user_desc); i++) in regset_tls_set()
312 GDT_ENTRY_TLS_MIN + (pos / sizeof(struct user_desc)), in regset_tls_set()
313 info, count / sizeof(struct user_desc)); in regset_tls_set()