• Home
  • Raw
  • Download

Lines Matching refs:p

47 nlm4_decode_cookie(__be32 *p, struct nlm_cookie *c)  in nlm4_decode_cookie()  argument
51 len = ntohl(*p++); in nlm4_decode_cookie()
61 memcpy(c->data, p, len); in nlm4_decode_cookie()
62 p+=XDR_QUADLEN(len); in nlm4_decode_cookie()
71 return p; in nlm4_decode_cookie()
75 nlm4_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_encode_cookie() argument
77 *p++ = htonl(c->len); in nlm4_encode_cookie()
78 memcpy(p, c->data, c->len); in nlm4_encode_cookie()
79 p+=XDR_QUADLEN(c->len); in nlm4_encode_cookie()
80 return p; in nlm4_encode_cookie()
84 nlm4_decode_fh(__be32 *p, struct nfs_fh *f) in nlm4_decode_fh() argument
87 f->size = ntohl(*p++); in nlm4_decode_fh()
93 memcpy(f->data, p, f->size); in nlm4_decode_fh()
94 return p + XDR_QUADLEN(f->size); in nlm4_decode_fh()
101 nlm4_decode_oh(__be32 *p, struct xdr_netobj *oh) in nlm4_decode_oh() argument
103 return xdr_decode_netobj(p, oh); in nlm4_decode_oh()
107 nlm4_decode_lock(__be32 *p, struct nlm_lock *lock) in nlm4_decode_lock() argument
113 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4_decode_lock()
115 || !(p = nlm4_decode_fh(p, &lock->fh)) in nlm4_decode_lock()
116 || !(p = nlm4_decode_oh(p, &lock->oh))) in nlm4_decode_lock()
118 lock->svid = ntohl(*p++); in nlm4_decode_lock()
125 p = xdr_decode_hyper(p, &start); in nlm4_decode_lock()
126 p = xdr_decode_hyper(p, &len); in nlm4_decode_lock()
135 return p; in nlm4_decode_lock()
142 nlm4_encode_testres(__be32 *p, struct nlm_res *resp) in nlm4_encode_testres() argument
146 dprintk("xdr: before encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
147 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
149 *p++ = resp->status; in nlm4_encode_testres()
154 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
155 *p++ = htonl(resp->lock.svid); in nlm4_encode_testres()
158 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm4_encode_testres()
167 p = xdr_encode_hyper(p, start); in nlm4_encode_testres()
168 p = xdr_encode_hyper(p, len); in nlm4_encode_testres()
174 dprintk("xdr: after encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
175 return p; in nlm4_encode_testres()
183 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_testargs() argument
188 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
191 exclusive = ntohl(*p++); in nlm4svc_decode_testargs()
192 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
197 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_testargs()
201 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_testres() argument
205 if (!(p = nlm4_encode_testres(p, resp))) in nlm4svc_encode_testres()
207 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_testres()
211 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_lockargs() argument
216 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
218 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
219 exclusive = ntohl(*p++); in nlm4svc_decode_lockargs()
220 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
224 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
225 argp->state = ntohl(*p++); in nlm4svc_decode_lockargs()
228 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_lockargs()
232 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_cancargs() argument
237 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
239 argp->block = ntohl(*p++); in nlm4svc_decode_cancargs()
240 exclusive = ntohl(*p++); in nlm4svc_decode_cancargs()
241 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_cancargs()
245 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_cancargs()
249 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_unlockargs() argument
253 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
254 || !(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_unlockargs()
257 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_unlockargs()
261 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_shareargs() argument
271 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
272 || !(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_shareargs()
274 || !(p = nlm4_decode_fh(p, &lock->fh)) in nlm4svc_decode_shareargs()
275 || !(p = nlm4_decode_oh(p, &lock->oh))) in nlm4svc_decode_shareargs()
277 argp->fsm_mode = ntohl(*p++); in nlm4svc_decode_shareargs()
278 argp->fsm_access = ntohl(*p++); in nlm4svc_decode_shareargs()
279 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_shareargs()
283 nlm4svc_encode_shareres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_shareres() argument
287 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_shareres()
289 *p++ = resp->status; in nlm4svc_encode_shareres()
290 *p++ = xdr_zero; /* sequence argument */ in nlm4svc_encode_shareres()
291 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_shareres()
295 nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_res() argument
299 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_res()
301 *p++ = resp->status; in nlm4svc_encode_res()
302 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_res()
306 nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_notify() argument
311 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_notify()
314 argp->state = ntohl(*p++); in nlm4svc_decode_notify()
315 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_notify()
319 nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_reboot() argument
323 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlm4svc_decode_reboot()
325 argp->state = ntohl(*p++); in nlm4svc_decode_reboot()
326 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlm4svc_decode_reboot()
327 p += XDR_QUADLEN(SM_PRIV_SIZE); in nlm4svc_decode_reboot()
328 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_reboot()
332 nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_res() argument
336 if (!(p = nlm4_decode_cookie(p, &resp->cookie))) in nlm4svc_decode_res()
338 resp->status = *p++; in nlm4svc_decode_res()
339 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_res()
343 nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_void() argument
345 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_void()
349 nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_void() argument
351 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_void()