Lines Matching refs:env
260 unsigned long env[7]; in convert_fxsr_to_user() local
265 env[0] = (unsigned long)fxsave->cwd | 0xffff0000; in convert_fxsr_to_user()
266 env[1] = (unsigned long)fxsave->swd | 0xffff0000; in convert_fxsr_to_user()
267 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
268 env[3] = fxsave->fip; in convert_fxsr_to_user()
269 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
270 env[5] = fxsave->foo; in convert_fxsr_to_user()
271 env[6] = fxsave->fos; in convert_fxsr_to_user()
273 if ( __copy_to_user( buf, env, 7 * sizeof(unsigned long) ) ) in convert_fxsr_to_user()
288 unsigned long env[7]; in convert_fxsr_from_user() local
293 if ( __copy_from_user( env, buf, 7 * sizeof(long) ) ) in convert_fxsr_from_user()
296 fxsave->cwd = (unsigned short)(env[0] & 0xffff); in convert_fxsr_from_user()
297 fxsave->swd = (unsigned short)(env[1] & 0xffff); in convert_fxsr_from_user()
298 fxsave->twd = twd_i387_to_fxsr((unsigned short)(env[2] & 0xffff)); in convert_fxsr_from_user()
299 fxsave->fip = env[3]; in convert_fxsr_from_user()
300 fxsave->fop = (unsigned short)((env[4] & 0xffff0000) >> 16); in convert_fxsr_from_user()
301 fxsave->fcs = (env[4] & 0xffff); in convert_fxsr_from_user()
302 fxsave->foo = env[5]; in convert_fxsr_from_user()
303 fxsave->fos = env[6]; in convert_fxsr_from_user()