Lines Matching refs:this_len
924 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
926 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
931 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
932 if (!this_len) { in mem_rw()
938 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
943 buf += this_len; in mem_rw()
944 addr += this_len; in mem_rw()
945 copied += this_len; in mem_rw()
946 count -= this_len; in mem_rw()
1033 size_t this_len, max_len; in environ_read() local
1039 this_len = env_end - (env_start + src); in environ_read()
1042 this_len = min(max_len, this_len); in environ_read()
1044 retval = access_remote_vm(mm, (env_start + src), page, this_len, FOLL_ANON); in environ_read()