Lines Matching refs:address
123 static unsigned long vm86_segment(u_char segment, struct address *addr) in vm86_segment()
138 struct address *addr, long offset) in pm_address()
141 unsigned long base_address, limit, address, seg_top; in pm_address() local
164 address = base_address + offset; in pm_address()
180 (address <= limit) || (address >= seg_top) ? 0 : in pm_address()
181 ((seg_top - address) >= 255 ? 255 : seg_top - address); in pm_address()
184 (address > limit) || (address < base_address) ? 0 : in pm_address()
185 ((limit - address) >= 254 ? 255 : limit - address + 1); in pm_address()
191 return address; in pm_address()
211 struct address *addr, fpu_addr_modes addr_modes) in FPU_get_address()
216 int address = 0; /* Initialized just to stop compiler warnings. */ in FPU_get_address() local
230 address = sib(mod, fpu_eip); in FPU_get_address()
239 FPU_get_user(address, in FPU_get_address()
244 addr->offset = address; in FPU_get_address()
245 return (void __user *)address; in FPU_get_address()
247 address = *cpu_reg_ptr; /* Just return the contents in FPU_get_address()
249 addr->offset = address; in FPU_get_address()
250 return (void __user *)address; in FPU_get_address()
256 FPU_get_user(address, (signed char __user *)(*fpu_eip)); in FPU_get_address()
264 FPU_get_user(address, (long __user *)(*fpu_eip)); in FPU_get_address()
272 address += *cpu_reg_ptr; in FPU_get_address()
275 addr->offset = address; in FPU_get_address()
281 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address()
285 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address()
286 addr, address); in FPU_get_address()
292 return (void __user *)address; in FPU_get_address()
296 struct address *addr, fpu_addr_modes addr_modes) in FPU_get_address_16()
300 int address = 0; /* Default used for mod == 0 */ in FPU_get_address_16() local
319 FPU_get_user(address, in FPU_get_address_16()
330 FPU_get_user(address, (signed char __user *)(*fpu_eip)); in FPU_get_address_16()
338 FPU_get_user(address, (unsigned short __user *)(*fpu_eip)); in FPU_get_address_16()
349 address += FPU_info->regs->bx + FPU_info->regs->si; in FPU_get_address_16()
352 address += FPU_info->regs->bx + FPU_info->regs->di; in FPU_get_address_16()
355 address += FPU_info->regs->bp + FPU_info->regs->si; in FPU_get_address_16()
360 address += FPU_info->regs->bp + FPU_info->regs->di; in FPU_get_address_16()
365 address += FPU_info->regs->si; in FPU_get_address_16()
368 address += FPU_info->regs->di; in FPU_get_address_16()
371 address += FPU_info->regs->bp; in FPU_get_address_16()
376 address += FPU_info->regs->bx; in FPU_get_address_16()
381 address &= 0xffff; in FPU_get_address_16()
383 addr->offset = address; in FPU_get_address_16()
389 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address_16()
393 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address_16()
394 addr, address); in FPU_get_address_16()
400 return (void __user *)address; in FPU_get_address_16()