• Home
  • Raw
  • Download

Lines Matching refs:size

57 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
58 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
59 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
60 static ssize_t write_threads(struct file *file, char *buf, size_t size);
61 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
62 static ssize_t write_versions(struct file *file, char *buf, size_t size);
63 static ssize_t write_ports(struct file *file, char *buf, size_t size);
64 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
66 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
67 static ssize_t write_gracetime(struct file *file, char *buf, size_t size);
68 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size);
87 static ssize_t nfsctl_transaction_write(struct file *file, const char __user *buf, size_t size, lof… in nfsctl_transaction_write() argument
96 data = simple_transaction_get(file, buf, size); in nfsctl_transaction_write()
100 rv = write_op[ino](file, data, size); in nfsctl_transaction_write()
103 rv = size; in nfsctl_transaction_write()
108 static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *po… in nfsctl_transaction_read() argument
119 return simple_transaction_read(file, buf, size, pos); in nfsctl_transaction_read()
243 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size) in write_unlock_ip() argument
252 if (size == 0) in write_unlock_ip()
255 if (buf[size-1] != '\n') in write_unlock_ip()
259 if (qword_get(&buf, fo_path, size) < 0) in write_unlock_ip()
262 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
282 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size) in write_unlock_fs() argument
289 if (size == 0) in write_unlock_fs()
292 if (buf[size-1] != '\n') in write_unlock_fs()
296 if (qword_get(&buf, fo_path, size) < 0) in write_unlock_fs()
339 static ssize_t write_filehandle(struct file *file, char *buf, size_t size) in write_filehandle() argument
349 if (size == 0) in write_filehandle()
352 if (buf[size-1] != '\n') in write_filehandle()
354 buf[size-1] = 0; in write_filehandle()
357 len = qword_get(&mesg, dname, size); in write_filehandle()
362 len = qword_get(&mesg, path, size); in write_filehandle()
375 if (qword_get(&mesg, mesg, size)>0) in write_filehandle()
423 static ssize_t write_threads(struct file *file, char *buf, size_t size) in write_threads() argument
429 if (size > 0) { in write_threads()
467 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size) in write_pool_threads() argument
498 if (size > 0) { in write_pool_threads()
519 size = SIMPLE_TRANSACTION_LIMIT; in write_pool_threads()
520 for (i = 0; i < npools && size > 0; i++) { in write_pool_threads()
521 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); in write_pool_threads()
523 size -= len; in write_pool_threads()
533 static ssize_t __write_versions(struct file *file, char *buf, size_t size) in __write_versions() argument
544 if (size>0) { in __write_versions()
551 if (buf[size-1] != '\n') in __write_versions()
553 buf[size-1] = 0; in __write_versions()
556 len = qword_get(&mesg, vers, size); in __write_versions()
586 } while ((len = qword_get(&mesg, vers, size)) > 0); in __write_versions()
664 static ssize_t write_versions(struct file *file, char *buf, size_t size) in write_versions() argument
669 rv = __write_versions(file, buf, size); in write_versions()
762 static ssize_t __write_ports(struct file *file, char *buf, size_t size, in __write_ports() argument
765 if (size == 0) in __write_ports()
820 static ssize_t write_ports(struct file *file, char *buf, size_t size) in write_ports() argument
826 rv = __write_ports(file, buf, size, net); in write_ports()
855 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size) in write_maxblksize() argument
861 if (size > 0) { in write_maxblksize()
888 static ssize_t __nfsd4_write_time(struct file *file, char *buf, size_t size, in __nfsd4_write_time() argument
894 if (size > 0) { in __nfsd4_write_time()
920 static ssize_t nfsd4_write_time(struct file *file, char *buf, size_t size, in nfsd4_write_time() argument
926 rv = __nfsd4_write_time(file, buf, size, time, nn); in nfsd4_write_time()
952 static ssize_t write_leasetime(struct file *file, char *buf, size_t size) in write_leasetime() argument
956 return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease, nn); in write_leasetime()
969 static ssize_t write_gracetime(struct file *file, char *buf, size_t size) in write_gracetime() argument
973 return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace, nn); in write_gracetime()
976 static ssize_t __write_recoverydir(struct file *file, char *buf, size_t size, in __write_recoverydir() argument
983 if (size > 0) { in __write_recoverydir()
986 if (size > PATH_MAX || buf[size-1] != '\n') in __write_recoverydir()
988 buf[size-1] = 0; in __write_recoverydir()
991 len = qword_get(&mesg, recdir, size); in __write_recoverydir()
1025 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size) in write_recoverydir() argument
1032 rv = __write_recoverydir(file, buf, size, nn); in write_recoverydir()
1160 .size = sizeof(struct nfsd_net),