Lines Matching defs:info
15 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info)
17 desc->limit0 = info->limit & 0x0ffff;
19 desc->base0 = (info->base_addr & 0x0000ffff);
20 desc->base1 = (info->base_addr & 0x00ff0000) >> 16;
22 desc->type = (info->read_exec_only ^ 1) << 1;
23 desc->type |= info->contents << 2;
29 desc->p = info->seg_not_present ^ 1;
30 desc->limit1 = (info->limit & 0xf0000) >> 16;
31 desc->avl = info->useable;
32 desc->d = info->seg_32bit;
33 desc->g = info->limit_in_pages;
35 desc->base2 = (info->base_addr & 0xff000000) >> 24;
333 #define LDT_empty(info) \
334 ((info)->base_addr == 0 && \
335 (info)->limit == 0 && \
336 (info)->contents == 0 && \
337 (info)->read_exec_only == 1 && \
338 (info)->seg_32bit == 0 && \
339 (info)->limit_in_pages == 0 && \
340 (info)->seg_not_present == 1 && \
341 (info)->useable == 0)
344 static inline bool LDT_zero(const struct user_desc *info)
346 return (info->base_addr == 0 &&
347 info->limit == 0 &&
348 info->contents == 0 &&
349 info->read_exec_only == 0 &&
350 info->seg_32bit == 0 &&
351 info->limit_in_pages == 0 &&
352 info->seg_not_present == 0 &&
353 info->useable == 0);