Lines Matching refs:desc
138 static inline uint32_t x86_segment_base(x86_segment_descriptor *desc) in x86_segment_base() argument
140 return (uint32_t)((desc->base2 << 24) | (desc->base1 << 16) | desc->base0); in x86_segment_base()
143 static inline void x86_set_segment_base(x86_segment_descriptor *desc, in x86_set_segment_base() argument
146 desc->base2 = base >> 24; in x86_set_segment_base()
147 desc->base1 = (base >> 16) & 0xff; in x86_set_segment_base()
148 desc->base0 = base & 0xffff; in x86_set_segment_base()
151 static inline uint32_t x86_segment_limit(x86_segment_descriptor *desc) in x86_segment_limit() argument
153 uint32_t limit = (uint32_t)((desc->limit1 << 16) | desc->limit0); in x86_segment_limit()
154 if (desc->g) { in x86_segment_limit()
160 static inline void x86_set_segment_limit(x86_segment_descriptor *desc, in x86_set_segment_limit() argument
163 desc->limit0 = limit & 0xffff; in x86_set_segment_limit()
164 desc->limit1 = limit >> 16; in x86_set_segment_limit()
252 struct x86_segment_descriptor *desc,
255 struct x86_segment_descriptor *desc,