Lines Matching refs:info
30 static bool tls_desc_okay(const struct user_desc *info) in tls_desc_okay() argument
53 if (LDT_empty(info) || LDT_zero(info)) in tls_desc_okay()
60 if (!info->seg_32bit) in tls_desc_okay()
64 if (info->contents > 1) in tls_desc_okay()
76 if (info->seg_not_present) in tls_desc_okay()
83 const struct user_desc *info, int n) in set_tls_desc() argument
95 if (LDT_empty(info) || LDT_zero(info)) in set_tls_desc()
98 fill_ldt(desc, info); in set_tls_desc()
99 ++info; in set_tls_desc()
116 struct user_desc info; in do_set_thread_area() local
118 if (copy_from_user(&info, u_info, sizeof(info))) in do_set_thread_area()
121 if (!tls_desc_okay(&info)) in do_set_thread_area()
125 idx = info.entry_number; in do_set_thread_area()
142 set_tls_desc(p, idx, &info, 1); in do_set_thread_area()
157 static void fill_user_desc(struct user_desc *info, int idx, in fill_user_desc() argument
161 memset(info, 0, sizeof(*info)); in fill_user_desc()
162 info->entry_number = idx; in fill_user_desc()
163 info->base_addr = get_desc_base(desc); in fill_user_desc()
164 info->limit = get_desc_limit(desc); in fill_user_desc()
165 info->seg_32bit = desc->d; in fill_user_desc()
166 info->contents = desc->type >> 2; in fill_user_desc()
167 info->read_exec_only = !(desc->type & 2); in fill_user_desc()
168 info->limit_in_pages = desc->g; in fill_user_desc()
169 info->seg_not_present = !desc->p; in fill_user_desc()
170 info->useable = desc->avl; in fill_user_desc()
172 info->lm = desc->l; in fill_user_desc()
179 struct user_desc info; in do_get_thread_area() local
187 fill_user_desc(&info, idx, in do_get_thread_area()
190 if (copy_to_user(u_info, &info, sizeof(info))) in do_get_thread_area()
227 struct user_desc *info = kbuf; in regset_tls_get() local
229 fill_user_desc(info++, GDT_ENTRY_TLS_MIN + pos++, in regset_tls_get()
234 struct user_desc info; in regset_tls_get() local
235 fill_user_desc(&info, GDT_ENTRY_TLS_MIN + pos++, tls++); in regset_tls_get()
236 if (__copy_to_user(u_info++, &info, sizeof(info))) in regset_tls_get()
249 const struct user_desc *info; in regset_tls_set() local
258 info = kbuf; in regset_tls_set()
262 info = infobuf; in regset_tls_set()
265 if (!tls_desc_okay(info + i)) in regset_tls_set()
270 info, count / sizeof(struct user_desc)); in regset_tls_set()