Lines Matching refs:argp

243 nlmsvc_decode_testargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp)  in nlmsvc_decode_testargs()  argument
247 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
251 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
254 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
268 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument
272 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
274 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
276 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
279 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
280 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
281 argp->state = ntohl(*p++); in nlmsvc_decode_lockargs()
282 argp->monitor = 1; /* monitor client by default */ in nlmsvc_decode_lockargs()
288 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlmsvc_decode_cancargs() argument
292 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
294 argp->block = ntohl(*p++); in nlmsvc_decode_cancargs()
296 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_cancargs()
299 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
304 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlmsvc_decode_unlockargs() argument
306 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
307 || !(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_unlockargs()
309 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
314 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlmsvc_decode_shareargs() argument
316 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_shareargs()
322 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
328 argp->fsm_mode = ntohl(*p++); in nlmsvc_decode_shareargs()
329 argp->fsm_access = ntohl(*p++); in nlmsvc_decode_shareargs()
353 nlmsvc_decode_notify(struct svc_rqst *rqstp, u32 *p, struct nlm_args *argp) in nlmsvc_decode_notify() argument
355 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_notify()
360 argp->state = ntohl(*p++); in nlmsvc_decode_notify()
365 nlmsvc_decode_reboot(struct svc_rqst *rqstp, u32 *p, struct nlm_reboot *argp) in nlmsvc_decode_reboot() argument
367 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlmsvc_decode_reboot()
369 argp->state = ntohl(*p++); in nlmsvc_decode_reboot()
371 argp->addr = *p++; in nlmsvc_decode_reboot()
413 nlmclt_encode_testargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlmclt_encode_testargs() argument
415 struct nlm_lock *lock = &argp->lock; in nlmclt_encode_testargs()
417 if (!(p = nlm_encode_cookie(p, &argp->cookie))) in nlmclt_encode_testargs()
461 nlmclt_encode_lockargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlmclt_encode_lockargs() argument
463 struct nlm_lock *lock = &argp->lock; in nlmclt_encode_lockargs()
465 if (!(p = nlm_encode_cookie(p, &argp->cookie))) in nlmclt_encode_lockargs()
467 *p++ = argp->block? xdr_one : xdr_zero; in nlmclt_encode_lockargs()
471 *p++ = argp->reclaim? xdr_one : xdr_zero; in nlmclt_encode_lockargs()
472 *p++ = htonl(argp->state); in nlmclt_encode_lockargs()
478 nlmclt_encode_cancargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlmclt_encode_cancargs() argument
480 struct nlm_lock *lock = &argp->lock; in nlmclt_encode_cancargs()
482 if (!(p = nlm_encode_cookie(p, &argp->cookie))) in nlmclt_encode_cancargs()
484 *p++ = argp->block? xdr_one : xdr_zero; in nlmclt_encode_cancargs()
493 nlmclt_encode_unlockargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlmclt_encode_unlockargs() argument
495 struct nlm_lock *lock = &argp->lock; in nlmclt_encode_unlockargs()
497 if (!(p = nlm_encode_cookie(p, &argp->cookie))) in nlmclt_encode_unlockargs()