Lines Matching refs:seg
49 u16 seg; in ds() local
50 asm("movw %%ds,%0" : "=rm" (seg)); in ds()
51 return seg; in ds()
54 static inline void set_fs(u16 seg) in set_fs() argument
56 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs()
60 u16 seg; in fs() local
61 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs()
62 return seg; in fs()
65 static inline void set_gs(u16 seg) in set_gs() argument
67 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs()
71 u16 seg; in gs() local
72 asm volatile("movw %%gs,%0" : "=rm" (seg)); in gs()
73 return seg; in gs()