Lines Matching refs:this_len
891 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
893 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
898 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
899 if (!this_len) { in mem_rw()
905 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
910 buf += this_len; in mem_rw()
911 addr += this_len; in mem_rw()
912 copied += this_len; in mem_rw()
913 count -= this_len; in mem_rw()
999 size_t this_len, max_len; in environ_read() local
1005 this_len = env_end - (env_start + src); in environ_read()
1008 this_len = min(max_len, this_len); in environ_read()
1010 retval = access_remote_vm(mm, (env_start + src), page, this_len, FOLL_ANON); in environ_read()