• Home
  • Raw
  • Download

Lines Matching full:p

47 static __be32 *nlm_decode_cookie(__be32 *p, struct nlm_cookie *c)  in nlm_decode_cookie()  argument
51 len = ntohl(*p++); in nlm_decode_cookie()
61 memcpy(c->data, p, len); in nlm_decode_cookie()
62 p+=XDR_QUADLEN(len); in nlm_decode_cookie()
71 return p; in nlm_decode_cookie()
75 nlm_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_encode_cookie() argument
77 *p++ = htonl(c->len); in nlm_encode_cookie()
78 memcpy(p, c->data, c->len); in nlm_encode_cookie()
79 p+=XDR_QUADLEN(c->len); in nlm_encode_cookie()
80 return p; in nlm_encode_cookie()
84 nlm_decode_fh(__be32 *p, struct nfs_fh *f) in nlm_decode_fh() argument
88 if ((len = ntohl(*p++)) != NFS2_FHSIZE) { in nlm_decode_fh()
95 memcpy(f->data, p, NFS2_FHSIZE); in nlm_decode_fh()
96 return p + XDR_QUADLEN(NFS2_FHSIZE); in nlm_decode_fh()
103 nlm_decode_oh(__be32 *p, struct xdr_netobj *oh) in nlm_decode_oh() argument
105 return xdr_decode_netobj(p, oh); in nlm_decode_oh()
109 nlm_encode_oh(__be32 *p, struct xdr_netobj *oh) in nlm_encode_oh() argument
111 return xdr_encode_netobj(p, oh); in nlm_encode_oh()
115 nlm_decode_lock(__be32 *p, struct nlm_lock *lock) in nlm_decode_lock() argument
120 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm_decode_lock()
123 || !(p = nlm_decode_fh(p, &lock->fh)) in nlm_decode_lock()
124 || !(p = nlm_decode_oh(p, &lock->oh))) in nlm_decode_lock()
126 lock->svid = ntohl(*p++); in nlm_decode_lock()
131 start = ntohl(*p++); in nlm_decode_lock()
132 len = ntohl(*p++); in nlm_decode_lock()
141 return p; in nlm_decode_lock()
148 nlm_encode_testres(__be32 *p, struct nlm_res *resp) in nlm_encode_testres() argument
152 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
154 *p++ = resp->status; in nlm_encode_testres()
159 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm_encode_testres()
160 *p++ = htonl(resp->lock.svid); in nlm_encode_testres()
163 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm_encode_testres()
172 *p++ = htonl(start); in nlm_encode_testres()
173 *p++ = htonl(len); in nlm_encode_testres()
176 return p; in nlm_encode_testres()
184 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_testargs() argument
189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
192 exclusive = ntohl(*p++); in nlmsvc_decode_testargs()
193 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
198 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_testargs()
202 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_testres() argument
206 if (!(p = nlm_encode_testres(p, resp))) in nlmsvc_encode_testres()
208 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_testres()
212 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_lockargs() argument
217 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
219 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
220 exclusive = ntohl(*p++); in nlmsvc_decode_lockargs()
221 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
225 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
226 argp->state = ntohl(*p++); in nlmsvc_decode_lockargs()
229 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_lockargs()
233 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_cancargs() argument
238 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
240 argp->block = ntohl(*p++); in nlmsvc_decode_cancargs()
241 exclusive = ntohl(*p++); in nlmsvc_decode_cancargs()
242 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_cancargs()
246 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_cancargs()
250 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_unlockargs() argument
254 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
255 || !(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_unlockargs()
258 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_unlockargs()
262 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_shareargs() argument
271 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
272 || !(p = xdr_decode_string_inplace(p, &lock->caller, in nlmsvc_decode_shareargs()
274 || !(p = nlm_decode_fh(p, &lock->fh)) in nlmsvc_decode_shareargs()
275 || !(p = nlm_decode_oh(p, &lock->oh))) in nlmsvc_decode_shareargs()
277 argp->fsm_mode = ntohl(*p++); in nlmsvc_decode_shareargs()
278 argp->fsm_access = ntohl(*p++); in nlmsvc_decode_shareargs()
279 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_shareargs()
283 nlmsvc_encode_shareres(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_shareres() argument
287 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_shareres()
289 *p++ = resp->status; in nlmsvc_encode_shareres()
290 *p++ = xdr_zero; /* sequence argument */ in nlmsvc_encode_shareres()
291 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_shareres()
295 nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_res() argument
299 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_res()
301 *p++ = resp->status; in nlmsvc_encode_res()
302 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_res()
306 nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_notify() argument
311 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlmsvc_decode_notify()
314 argp->state = ntohl(*p++); in nlmsvc_decode_notify()
315 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_notify()
319 nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_reboot() argument
323 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlmsvc_decode_reboot()
325 argp->state = ntohl(*p++); in nlmsvc_decode_reboot()
326 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlmsvc_decode_reboot()
327 p += XDR_QUADLEN(SM_PRIV_SIZE); in nlmsvc_decode_reboot()
328 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_reboot()
332 nlmsvc_decode_res(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_res() argument
336 if (!(p = nlm_decode_cookie(p, &resp->cookie))) in nlmsvc_decode_res()
338 resp->status = *p++; in nlmsvc_decode_res()
339 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_res()
343 nlmsvc_decode_void(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_void() argument
345 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_void()
349 nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_void() argument
351 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_void()