Lines Matching refs:this_len
874 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
876 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
881 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
882 if (!this_len) { in mem_rw()
888 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
893 buf += this_len; in mem_rw()
894 addr += this_len; in mem_rw()
895 copied += this_len; in mem_rw()
896 count -= this_len; in mem_rw()
982 size_t this_len, max_len; in environ_read() local
988 this_len = env_end - (env_start + src); in environ_read()
991 this_len = min(max_len, this_len); in environ_read()
993 retval = access_remote_vm(mm, (env_start + src), page, this_len, FOLL_ANON); in environ_read()