Lines Matching defs:info
16 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info)
18 desc->limit0 = info->limit & 0x0ffff;
20 desc->base0 = (info->base_addr & 0x0000ffff);
21 desc->base1 = (info->base_addr & 0x00ff0000) >> 16;
23 desc->type = (info->read_exec_only ^ 1) << 1;
24 desc->type |= info->contents << 2;
30 desc->p = info->seg_not_present ^ 1;
31 desc->limit1 = (info->limit & 0xf0000) >> 16;
32 desc->avl = info->useable;
33 desc->d = info->seg_32bit;
34 desc->g = info->limit_in_pages;
36 desc->base2 = (info->base_addr & 0xff000000) >> 24;
354 #define LDT_empty(info) \
355 ((info)->base_addr == 0 && \
356 (info)->limit == 0 && \
357 (info)->contents == 0 && \
358 (info)->read_exec_only == 1 && \
359 (info)->seg_32bit == 0 && \
360 (info)->limit_in_pages == 0 && \
361 (info)->seg_not_present == 1 && \
362 (info)->useable == 0)
365 static inline bool LDT_zero(const struct user_desc *info)
367 return (info->base_addr == 0 &&
368 info->limit == 0 &&
369 info->contents == 0 &&
370 info->read_exec_only == 0 &&
371 info->seg_32bit == 0 &&
372 info->limit_in_pages == 0 &&
373 info->seg_not_present == 0 &&
374 info->useable == 0);