Lines Matching refs:d
44 static inline unsigned long seg_get_base(struct desc_struct *d) in seg_get_base() argument
46 unsigned long base = (unsigned long)d->base2 << 24; in seg_get_base()
48 return base | ((unsigned long)d->base1 << 16) | d->base0; in seg_get_base()
51 static inline unsigned long seg_get_limit(struct desc_struct *d) in seg_get_limit() argument
53 return ((unsigned long)d->limit1 << 16) | d->limit0; in seg_get_limit()
56 static inline unsigned long seg_get_granularity(struct desc_struct *d) in seg_get_granularity() argument
58 return d->g ? 4096 : 1; in seg_get_granularity()
61 static inline bool seg_expands_down(struct desc_struct *d) in seg_expands_down() argument
63 return (d->type & SEG_TYPE_EXPAND_MASK) == SEG_TYPE_EXPANDS_DOWN; in seg_expands_down()
66 static inline bool seg_execute_only(struct desc_struct *d) in seg_execute_only() argument
68 return (d->type & SEG_TYPE_EXECUTE_MASK) == SEG_TYPE_EXECUTE; in seg_execute_only()
71 static inline bool seg_writable(struct desc_struct *d) in seg_writable() argument
73 return (d->type & SEG_TYPE_EXECUTE_MASK) == SEG_TYPE_WRITABLE; in seg_writable()