Lines Matching refs:user_desc
30 static bool tls_desc_okay(const struct user_desc *info) in tls_desc_okay()
83 const struct user_desc *info, int n) in set_tls_desc()
113 struct user_desc __user *u_info, in do_set_thread_area()
116 struct user_desc info; in do_set_thread_area()
147 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
157 static void fill_user_desc(struct user_desc *info, int idx, in fill_user_desc()
177 struct user_desc __user *u_info) in do_get_thread_area()
179 struct user_desc info; in do_get_thread_area()
195 SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
216 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_get()
217 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_get()
218 (count % sizeof(struct user_desc)) != 0) in regset_tls_get()
221 pos /= sizeof(struct user_desc); in regset_tls_get()
222 count /= sizeof(struct user_desc); in regset_tls_get()
227 struct user_desc *info = kbuf; in regset_tls_get()
232 struct user_desc __user *u_info = ubuf; in regset_tls_get()
234 struct user_desc info; in regset_tls_get()
248 struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; in regset_tls_set()
249 const struct user_desc *info; in regset_tls_set()
252 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_set()
253 (pos % sizeof(struct user_desc)) != 0 || in regset_tls_set()
254 (count % sizeof(struct user_desc)) != 0) in regset_tls_set()
264 for (i = 0; i < count / sizeof(struct user_desc); i++) in regset_tls_set()
269 GDT_ENTRY_TLS_MIN + (pos / sizeof(struct user_desc)), in regset_tls_set()
270 info, count / sizeof(struct user_desc)); in regset_tls_set()