Lines Matching refs:nbytes
2302 size_t nbytes, loff_t *unused_ppos) in cgroup_write_X64() argument
2308 if (!nbytes) in cgroup_write_X64()
2310 if (nbytes >= sizeof(buffer)) in cgroup_write_X64()
2312 if (copy_from_user(buffer, userbuf, nbytes)) in cgroup_write_X64()
2315 buffer[nbytes] = 0; /* nul-terminate */ in cgroup_write_X64()
2328 retval = nbytes; in cgroup_write_X64()
2335 size_t nbytes, loff_t *unused_ppos) in cgroup_write_string() argument
2344 if (nbytes >= max_bytes) in cgroup_write_string()
2347 if (nbytes >= sizeof(local_buffer)) { in cgroup_write_string()
2348 buffer = kmalloc(nbytes + 1, GFP_KERNEL); in cgroup_write_string()
2352 if (nbytes && copy_from_user(buffer, userbuf, nbytes)) { in cgroup_write_string()
2357 buffer[nbytes] = 0; /* nul-terminate */ in cgroup_write_string()
2360 retval = nbytes; in cgroup_write_string()
2368 size_t nbytes, loff_t *ppos) in cgroup_file_write() argument
2376 return cft->write(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write()
2378 return cgroup_write_X64(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write()
2380 return cgroup_write_string(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write()
2383 return ret ? ret : nbytes; in cgroup_file_write()
2390 char __user *buf, size_t nbytes, in cgroup_read_u64() argument
2397 return simple_read_from_buffer(buf, nbytes, ppos, tmp, len); in cgroup_read_u64()
2402 char __user *buf, size_t nbytes, in cgroup_read_s64() argument
2409 return simple_read_from_buffer(buf, nbytes, ppos, tmp, len); in cgroup_read_s64()
2413 size_t nbytes, loff_t *ppos) in cgroup_file_read() argument
2422 return cft->read(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_read()
2424 return cgroup_read_u64(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_read()
2426 return cgroup_read_s64(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_read()