Lines Matching refs:this_len
840 int this_len = min_t(int, count, PAGE_SIZE); in mem_rw() local
842 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
847 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
848 if (!this_len) { in mem_rw()
854 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
859 buf += this_len; in mem_rw()
860 addr += this_len; in mem_rw()
861 copied += this_len; in mem_rw()
862 count -= this_len; in mem_rw()
948 size_t this_len, max_len; in environ_read() local
954 this_len = env_end - (env_start + src); in environ_read()
957 this_len = min(max_len, this_len); in environ_read()
959 retval = access_remote_vm(mm, (env_start + src), page, this_len, FOLL_ANON); in environ_read()