Lines Matching refs:sz
44 unsigned long sz; in size_inside_page() local
46 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1)); in size_inside_page()
48 return min(sz, size); in size_inside_page()
108 ssize_t read, sz; in read_mem() local
122 sz = size_inside_page(p, count); in read_mem()
123 if (sz > 0) { in read_mem()
124 if (clear_user(buf, sz)) in read_mem()
126 buf += sz; in read_mem()
127 p += sz; in read_mem()
128 count -= sz; in read_mem()
129 read += sz; in read_mem()
142 sz = size_inside_page(p, count); in read_mem()
152 remaining = clear_user(buf, sz); in read_mem()
163 probe = copy_from_kernel_nofault(bounce, ptr, sz); in read_mem()
168 remaining = copy_to_user(buf, bounce, sz); in read_mem()
174 buf += sz; in read_mem()
175 p += sz; in read_mem()
176 count -= sz; in read_mem()
177 read += sz; in read_mem()
195 ssize_t written, sz; in write_mem() local
210 sz = size_inside_page(p, count); in write_mem()
212 buf += sz; in write_mem()
213 p += sz; in write_mem()
214 count -= sz; in write_mem()
215 written += sz; in write_mem()
222 sz = size_inside_page(p, count); in write_mem()
242 copied = copy_from_user(ptr, buf, sz); in write_mem()
245 written += sz - copied; in write_mem()
252 buf += sz; in write_mem()
253 p += sz; in write_mem()
254 count -= sz; in write_mem()
255 written += sz; in write_mem()