Lines Matching refs:bytes
6704 int bytes, offset; in __access_remote_vm() local
6729 bytes = 0; in __access_remote_vm()
6732 bytes = vma->vm_ops->access(vma, addr, buf, in __access_remote_vm()
6735 if (bytes <= 0) in __access_remote_vm()
6739 bytes = len; in __access_remote_vm()
6741 if (bytes > PAGE_SIZE-offset) in __access_remote_vm()
6742 bytes = PAGE_SIZE-offset; in __access_remote_vm()
6747 maddr + offset, buf, bytes); in __access_remote_vm()
6751 buf, maddr + offset, bytes); in __access_remote_vm()
6755 len -= bytes; in __access_remote_vm()
6756 buf += bytes; in __access_remote_vm()
6757 addr += bytes; in __access_remote_vm()
6830 int bytes, offset, retval; in __copy_remote_vm_str() local
6849 bytes = len; in __copy_remote_vm_str()
6851 if (bytes > PAGE_SIZE - offset) in __copy_remote_vm_str()
6852 bytes = PAGE_SIZE - offset; in __copy_remote_vm_str()
6855 retval = strscpy(buf, maddr + offset, bytes); in __copy_remote_vm_str()
6863 buf += bytes - 1; in __copy_remote_vm_str()
6869 if (bytes != len) { in __copy_remote_vm_str()
6870 addr += bytes - 1; in __copy_remote_vm_str()
6875 len -= bytes; in __copy_remote_vm_str()