• Home
  • Raw
  • Download

Lines Matching refs:p

49 encode_nfstime3(__be32 *p, const struct timespec64 *time)  in encode_nfstime3()  argument
51 *p++ = cpu_to_be32((u32)time->tv_sec); in encode_nfstime3()
52 *p++ = cpu_to_be32(time->tv_nsec); in encode_nfstime3()
54 return p; in encode_nfstime3()
60 __be32 *p; in svcxdr_decode_nfstime3() local
62 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_nfstime3()
63 if (!p) in svcxdr_decode_nfstime3()
65 timep->tv_sec = be32_to_cpup(p++); in svcxdr_decode_nfstime3()
66 timep->tv_nsec = be32_to_cpup(p); in svcxdr_decode_nfstime3()
83 __be32 *p; in svcxdr_decode_nfs_fh3() local
90 p = xdr_inline_decode(xdr, size); in svcxdr_decode_nfs_fh3()
91 if (!p) in svcxdr_decode_nfs_fh3()
95 memcpy(&fhp->fh_handle.fh_base, p, size); in svcxdr_decode_nfs_fh3()
112 __be32 *p; in svcxdr_encode_nfsstat3() local
114 p = xdr_reserve_space(xdr, sizeof(status)); in svcxdr_encode_nfsstat3()
115 if (!p) in svcxdr_encode_nfsstat3()
117 *p = status; in svcxdr_encode_nfsstat3()
126 __be32 *p; in svcxdr_encode_nfs_fh3() local
128 p = xdr_reserve_space(xdr, XDR_UNIT + size); in svcxdr_encode_nfs_fh3()
129 if (!p) in svcxdr_encode_nfs_fh3()
131 *p++ = cpu_to_be32(size); in svcxdr_encode_nfs_fh3()
133 p[XDR_QUADLEN(size) - 1] = 0; in svcxdr_encode_nfs_fh3()
134 memcpy(p, &fhp->fh_handle.fh_base, size); in svcxdr_encode_nfs_fh3()
153 __be32 *p; in svcxdr_encode_cookieverf3() local
155 p = xdr_reserve_space(xdr, NFS3_COOKIEVERFSIZE); in svcxdr_encode_cookieverf3()
156 if (!p) in svcxdr_encode_cookieverf3()
158 memcpy(p, verf, NFS3_COOKIEVERFSIZE); in svcxdr_encode_cookieverf3()
166 __be32 *p; in svcxdr_encode_writeverf3() local
168 p = xdr_reserve_space(xdr, NFS3_WRITEVERFSIZE); in svcxdr_encode_writeverf3()
169 if (!p) in svcxdr_encode_writeverf3()
171 memcpy(p, verf, NFS3_WRITEVERFSIZE); in svcxdr_encode_writeverf3()
180 __be32 *p; in svcxdr_decode_filename3() local
187 p = xdr_inline_decode(xdr, size); in svcxdr_decode_filename3()
188 if (!p) in svcxdr_decode_filename3()
192 *name = (char *)p; in svcxdr_decode_filename3()
298 __be32 *p; in svcxdr_decode_sattrguard3() local
304 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_sattrguard3()
305 if (!p) in svcxdr_decode_sattrguard3()
308 args->guardtime = be32_to_cpup(p); in svcxdr_decode_sattrguard3()
318 __be32 *p; in svcxdr_decode_specdata3() local
320 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_specdata3()
321 if (!p) in svcxdr_decode_specdata3()
323 args->major = be32_to_cpup(p++); in svcxdr_decode_specdata3()
324 args->minor = be32_to_cpup(p); in svcxdr_decode_specdata3()
342 __be32 *p; in svcxdr_encode_fattr3() local
345 p = xdr_reserve_space(xdr, XDR_UNIT * 21); in svcxdr_encode_fattr3()
346 if (!p) in svcxdr_encode_fattr3()
349 *p++ = cpu_to_be32(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in svcxdr_encode_fattr3()
350 *p++ = cpu_to_be32((u32)(stat->mode & S_IALLUGO)); in svcxdr_encode_fattr3()
351 *p++ = cpu_to_be32((u32)stat->nlink); in svcxdr_encode_fattr3()
352 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr3()
353 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr3()
355 p = xdr_encode_hyper(p, (u64)NFS3_MAXPATHLEN); in svcxdr_encode_fattr3()
357 p = xdr_encode_hyper(p, (u64)stat->size); in svcxdr_encode_fattr3()
360 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in svcxdr_encode_fattr3()
363 *p++ = cpu_to_be32((u32)MAJOR(stat->rdev)); in svcxdr_encode_fattr3()
364 *p++ = cpu_to_be32((u32)MINOR(stat->rdev)); in svcxdr_encode_fattr3()
377 p = xdr_encode_hyper(p, fsid); in svcxdr_encode_fattr3()
380 p = xdr_encode_hyper(p, stat->ino); in svcxdr_encode_fattr3()
382 p = encode_nfstime3(p, &stat->atime); in svcxdr_encode_fattr3()
383 p = encode_nfstime3(p, &stat->mtime); in svcxdr_encode_fattr3()
384 encode_nfstime3(p, &stat->ctime); in svcxdr_encode_fattr3()
392 __be32 *p; in svcxdr_encode_wcc_attr() local
394 p = xdr_reserve_space(xdr, XDR_UNIT * 6); in svcxdr_encode_wcc_attr()
395 if (!p) in svcxdr_encode_wcc_attr()
397 p = xdr_encode_hyper(p, (u64)fhp->fh_pre_size); in svcxdr_encode_wcc_attr()
398 p = encode_nfstime3(p, &fhp->fh_pre_mtime); in svcxdr_encode_wcc_attr()
399 encode_nfstime3(p, &fhp->fh_pre_ctime); in svcxdr_encode_wcc_attr()
550 nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_fhandleargs() argument
559 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_sattrargs() argument
570 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_diropargs() argument
579 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_accessargs() argument
593 nfs3svc_decode_readargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readargs() argument
609 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_writeargs() argument
642 nfs3svc_decode_createargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_createargs() argument
667 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_mkdirargs() argument
678 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_symlinkargs() argument
699 args->first.iov_base = xdr->p; in nfs3svc_decode_symlinkargs()
706 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_mknodargs() argument
735 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_renameargs() argument
747 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_linkargs() argument
758 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readdirargs() argument
777 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readdirplusargs() argument
800 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_commitargs() argument
821 nfs3svc_encode_getattrres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_getattrres() argument
841 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_wccstat() argument
851 int nfs3svc_encode_lookupres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_lookupres() argument
877 nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_accessres() argument
901 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readlinkres() argument
929 nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readres() argument
962 nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_writeres() argument
990 nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_createres() argument
1016 nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_renameres() argument
1028 nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_linkres() argument
1040 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readdirres() argument
1276 __be32 *p; in svcxdr_encode_fsstat3resok() local
1278 p = xdr_reserve_space(xdr, XDR_UNIT * 13); in svcxdr_encode_fsstat3resok()
1279 if (!p) in svcxdr_encode_fsstat3resok()
1281 p = xdr_encode_hyper(p, bs * s->f_blocks); /* total bytes */ in svcxdr_encode_fsstat3resok()
1282 p = xdr_encode_hyper(p, bs * s->f_bfree); /* free bytes */ in svcxdr_encode_fsstat3resok()
1283 p = xdr_encode_hyper(p, bs * s->f_bavail); /* user available bytes */ in svcxdr_encode_fsstat3resok()
1284 p = xdr_encode_hyper(p, s->f_files); /* total inodes */ in svcxdr_encode_fsstat3resok()
1285 p = xdr_encode_hyper(p, s->f_ffree); /* free inodes */ in svcxdr_encode_fsstat3resok()
1286 p = xdr_encode_hyper(p, s->f_ffree); /* user available inodes */ in svcxdr_encode_fsstat3resok()
1287 *p = cpu_to_be32(resp->invarsec); /* mean unchanged time */ in svcxdr_encode_fsstat3resok()
1294 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_fsstatres() argument
1320 __be32 *p; in svcxdr_encode_fsinfo3resok() local
1322 p = xdr_reserve_space(xdr, XDR_UNIT * 12); in svcxdr_encode_fsinfo3resok()
1323 if (!p) in svcxdr_encode_fsinfo3resok()
1325 *p++ = cpu_to_be32(resp->f_rtmax); in svcxdr_encode_fsinfo3resok()
1326 *p++ = cpu_to_be32(resp->f_rtpref); in svcxdr_encode_fsinfo3resok()
1327 *p++ = cpu_to_be32(resp->f_rtmult); in svcxdr_encode_fsinfo3resok()
1328 *p++ = cpu_to_be32(resp->f_wtmax); in svcxdr_encode_fsinfo3resok()
1329 *p++ = cpu_to_be32(resp->f_wtpref); in svcxdr_encode_fsinfo3resok()
1330 *p++ = cpu_to_be32(resp->f_wtmult); in svcxdr_encode_fsinfo3resok()
1331 *p++ = cpu_to_be32(resp->f_dtpref); in svcxdr_encode_fsinfo3resok()
1332 p = xdr_encode_hyper(p, resp->f_maxfilesize); in svcxdr_encode_fsinfo3resok()
1333 p = encode_nfstime3(p, &nfs3svc_time_delta); in svcxdr_encode_fsinfo3resok()
1334 *p = cpu_to_be32(resp->f_properties); in svcxdr_encode_fsinfo3resok()
1341 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_fsinfores() argument
1367 __be32 *p; in svcxdr_encode_pathconf3resok() local
1369 p = xdr_reserve_space(xdr, XDR_UNIT * 6); in svcxdr_encode_pathconf3resok()
1370 if (!p) in svcxdr_encode_pathconf3resok()
1372 *p++ = cpu_to_be32(resp->p_link_max); in svcxdr_encode_pathconf3resok()
1373 *p++ = cpu_to_be32(resp->p_name_max); in svcxdr_encode_pathconf3resok()
1374 p = xdr_encode_bool(p, resp->p_no_trunc); in svcxdr_encode_pathconf3resok()
1375 p = xdr_encode_bool(p, resp->p_chown_restricted); in svcxdr_encode_pathconf3resok()
1376 p = xdr_encode_bool(p, resp->p_case_insensitive); in svcxdr_encode_pathconf3resok()
1377 xdr_encode_bool(p, resp->p_case_preserving); in svcxdr_encode_pathconf3resok()
1384 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_pathconfres() argument
1408 nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_commitres() argument