• 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()
123 p = xdr_decode_hyper(p, &start); in nlm4_decode_lock()
124 p = xdr_decode_hyper(p, &len); in nlm4_decode_lock()
133 return p; in nlm4_decode_lock()
140 nlm4_encode_testres(__be32 *p, struct nlm_res *resp) in nlm4_encode_testres() argument
144 dprintk("xdr: before encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
145 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
147 *p++ = resp->status; in nlm4_encode_testres()
152 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
153 *p++ = htonl(resp->lock.svid); in nlm4_encode_testres()
156 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm4_encode_testres()
165 p = xdr_encode_hyper(p, start); in nlm4_encode_testres()
166 p = xdr_encode_hyper(p, len); in nlm4_encode_testres()
172 dprintk("xdr: after encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
173 return p; in nlm4_encode_testres()
181 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_testargs() argument
186 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
189 exclusive = ntohl(*p++); in nlm4svc_decode_testargs()
190 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
195 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_testargs()
199 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_testres() argument
203 if (!(p = nlm4_encode_testres(p, resp))) in nlm4svc_encode_testres()
205 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_testres()
209 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_lockargs() argument
214 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
216 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
217 exclusive = ntohl(*p++); in nlm4svc_decode_lockargs()
218 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
222 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
223 argp->state = ntohl(*p++); in nlm4svc_decode_lockargs()
226 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_lockargs()
230 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_cancargs() argument
235 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
237 argp->block = ntohl(*p++); in nlm4svc_decode_cancargs()
238 exclusive = ntohl(*p++); in nlm4svc_decode_cancargs()
239 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_cancargs()
243 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_cancargs()
247 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_unlockargs() argument
251 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
252 || !(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_unlockargs()
255 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_unlockargs()
259 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_shareargs() argument
268 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
269 || !(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_shareargs()
271 || !(p = nlm4_decode_fh(p, &lock->fh)) in nlm4svc_decode_shareargs()
272 || !(p = nlm4_decode_oh(p, &lock->oh))) in nlm4svc_decode_shareargs()
274 argp->fsm_mode = ntohl(*p++); in nlm4svc_decode_shareargs()
275 argp->fsm_access = ntohl(*p++); in nlm4svc_decode_shareargs()
276 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_shareargs()
280 nlm4svc_encode_shareres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_shareres() argument
284 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_shareres()
286 *p++ = resp->status; in nlm4svc_encode_shareres()
287 *p++ = xdr_zero; /* sequence argument */ in nlm4svc_encode_shareres()
288 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_shareres()
292 nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_res() argument
296 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_res()
298 *p++ = resp->status; in nlm4svc_encode_res()
299 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_res()
303 nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_notify() argument
308 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_notify()
311 argp->state = ntohl(*p++); in nlm4svc_decode_notify()
312 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_notify()
316 nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_reboot() argument
320 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlm4svc_decode_reboot()
322 argp->state = ntohl(*p++); in nlm4svc_decode_reboot()
323 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlm4svc_decode_reboot()
324 p += XDR_QUADLEN(SM_PRIV_SIZE); in nlm4svc_decode_reboot()
325 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_reboot()
329 nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_res() argument
333 if (!(p = nlm4_decode_cookie(p, &resp->cookie))) in nlm4svc_decode_res()
335 resp->status = *p++; in nlm4svc_decode_res()
336 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_res()
340 nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_void() argument
342 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_void()
346 nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_void() argument
348 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_void()