Lines Matching refs:argp

42 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp)  in nfsd_proc_null()  argument
52 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_getattr() argument
55 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
57 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
66 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, in nfsd_proc_setattr() argument
70 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
73 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
74 return nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr()
84 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument
90 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
93 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
96 fh_put(&argp->fh); in nfsd_proc_lookup()
104 nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_readlink() argument
110 dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_readlink()
117 nfserr = nfsd_readlink(rqstp, &argp->fh, (char *) path, &resp->len); in nfsd_proc_readlink()
119 fh_put(&argp->fh); in nfsd_proc_readlink()
128 nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, in nfsd_proc_read() argument
135 SVCFH_fmt(&argp->fh), in nfsd_proc_read()
136 argp->count, argp->offset); in nfsd_proc_read()
143 if ((avail << 2) < argp->count) { in nfsd_proc_read()
148 argp->count); in nfsd_proc_read()
149 argp->count = avail << 2; in nfsd_proc_read()
151 svc_reserve(rqstp, (19<<2) + argp->count + 4); in nfsd_proc_read()
153 resp->count = argp->count; in nfsd_proc_read()
154 nfserr = nfsd_read(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_read()
155 argp->offset, in nfsd_proc_read()
167 nfsd_proc_write(struct svc_rqst *rqstp, struct nfsd_writeargs *argp, in nfsd_proc_write() argument
174 SVCFH_fmt(&argp->fh), in nfsd_proc_write()
175 argp->len, argp->offset); in nfsd_proc_write()
177 nfserr = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_write()
178 argp->offset, in nfsd_proc_write()
179 argp->data, in nfsd_proc_write()
180 argp->len, in nfsd_proc_write()
192 nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, in nfsd_proc_create() argument
195 svc_fh *dirfhp = &argp->fh; in nfsd_proc_create()
197 struct iattr *attr = &argp->attrs; in nfsd_proc_create()
204 SVCFH_fmt(dirfhp), argp->len, argp->name); in nfsd_proc_create()
214 if (!argp->len) in nfsd_proc_create()
217 if (isdotent(argp->name, argp->len)) in nfsd_proc_create()
220 dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); in nfsd_proc_create()
324 nfserr = nfsd_create(rqstp, dirfhp, argp->name, argp->len, in nfsd_proc_create()
328 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
348 nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_remove() argument
353 dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), in nfsd_proc_remove()
354 argp->len, argp->name); in nfsd_proc_remove()
357 nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); in nfsd_proc_remove()
358 fh_put(&argp->fh); in nfsd_proc_remove()
363 nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, in nfsd_proc_rename() argument
369 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename()
371 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
373 nfserr = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename()
374 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
375 fh_put(&argp->ffh); in nfsd_proc_rename()
376 fh_put(&argp->tfh); in nfsd_proc_rename()
381 nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, in nfsd_proc_link() argument
387 SVCFH_fmt(&argp->ffh)); in nfsd_proc_link()
389 SVCFH_fmt(&argp->tfh), in nfsd_proc_link()
390 argp->tlen, in nfsd_proc_link()
391 argp->tname); in nfsd_proc_link()
393 nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
394 &argp->ffh); in nfsd_proc_link()
395 fh_put(&argp->ffh); in nfsd_proc_link()
396 fh_put(&argp->tfh); in nfsd_proc_link()
401 nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, in nfsd_proc_symlink() argument
408 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink()
409 argp->tlen, argp->tname); in nfsd_proc_symlink()
415 nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
416 argp->tname, argp->tlen, in nfsd_proc_symlink()
417 &newfh, &argp->attrs); in nfsd_proc_symlink()
420 fh_put(&argp->ffh); in nfsd_proc_symlink()
430 nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, in nfsd_proc_mkdir() argument
435 dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_mkdir()
442 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
444 nfserr = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_mkdir()
445 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
446 fh_put(&argp->fh); in nfsd_proc_mkdir()
454 nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_rmdir() argument
459 dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_rmdir()
461 nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); in nfsd_proc_rmdir()
462 fh_put(&argp->fh); in nfsd_proc_rmdir()
470 nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, in nfsd_proc_readdir() argument
477 SVCFH_fmt(&argp->fh), in nfsd_proc_readdir()
478 argp->count, argp->cookie); in nfsd_proc_readdir()
484 if (count > (argp->count >> 2)) in nfsd_proc_readdir()
485 count = argp->count >> 2; in nfsd_proc_readdir()
493 nfserr = nfsd_readdir(rqstp, &argp->fh, (loff_t) argp->cookie, in nfsd_proc_readdir()
498 fh_put(&argp->fh); in nfsd_proc_readdir()
506 nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd_proc_statfs() argument
511 dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_statfs()
513 nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats); in nfsd_proc_statfs()
514 fh_put(&argp->fh); in nfsd_proc_statfs()