Lines Matching refs:seg
82 u16 seg; in ds() local
83 asm("movw %%ds,%0" : "=rm" (seg)); in ds()
84 return seg; in ds()
87 static inline void set_fs(u16 seg) in set_fs() argument
89 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs()
93 u16 seg; in fs() local
94 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs()
95 return seg; in fs()
98 static inline void set_gs(u16 seg) in set_gs() argument
100 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs()
104 u16 seg; in gs() local
105 asm volatile("movw %%gs,%0" : "=rm" (seg)); in gs()
106 return seg; in gs()