Lines Matching refs:this_len
861 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
863 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
868 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
869 if (!this_len) { in mem_rw()
875 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
880 buf += this_len; in mem_rw()
881 addr += this_len; in mem_rw()
882 copied += this_len; in mem_rw()
883 count -= this_len; in mem_rw()
969 size_t this_len, max_len; in environ_read() local
975 this_len = env_end - (env_start + src); in environ_read()
978 this_len = min(max_len, this_len); in environ_read()
980 retval = access_remote_vm(mm, (env_start + src), page, this_len, FOLL_ANON); in environ_read()