Lines Matching refs:argp

249 nlm4svc_decode_testargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp)  in nlm4svc_decode_testargs()  argument
253 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
257 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
260 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
274 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlm4svc_decode_lockargs() argument
278 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
280 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
282 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
285 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
286 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
287 argp->state = ntohl(*p++); in nlm4svc_decode_lockargs()
288 argp->monitor = 1; /* monitor client by default */ in nlm4svc_decode_lockargs()
294 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlm4svc_decode_cancargs() argument
298 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
300 argp->block = ntohl(*p++); in nlm4svc_decode_cancargs()
302 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_cancargs()
305 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
310 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlm4svc_decode_unlockargs() argument
312 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
313 || !(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_unlockargs()
315 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
320 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, u32 *p, nlm_args *argp) in nlm4svc_decode_shareargs() argument
322 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_shareargs()
328 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
334 argp->fsm_mode = ntohl(*p++); in nlm4svc_decode_shareargs()
335 argp->fsm_access = ntohl(*p++); in nlm4svc_decode_shareargs()
359 nlm4svc_decode_notify(struct svc_rqst *rqstp, u32 *p, struct nlm_args *argp) in nlm4svc_decode_notify() argument
361 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_notify()
366 argp->state = ntohl(*p++); in nlm4svc_decode_notify()
371 nlm4svc_decode_reboot(struct svc_rqst *rqstp, u32 *p, struct nlm_reboot *argp) in nlm4svc_decode_reboot() argument
373 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlm4svc_decode_reboot()
375 argp->state = ntohl(*p++); in nlm4svc_decode_reboot()
377 argp->addr = *p++; in nlm4svc_decode_reboot()
419 nlm4clt_encode_testargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlm4clt_encode_testargs() argument
421 struct nlm_lock *lock = &argp->lock; in nlm4clt_encode_testargs()
423 if (!(p = nlm4_encode_cookie(p, &argp->cookie))) in nlm4clt_encode_testargs()
467 nlm4clt_encode_lockargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlm4clt_encode_lockargs() argument
469 struct nlm_lock *lock = &argp->lock; in nlm4clt_encode_lockargs()
471 if (!(p = nlm4_encode_cookie(p, &argp->cookie))) in nlm4clt_encode_lockargs()
473 *p++ = argp->block? xdr_one : xdr_zero; in nlm4clt_encode_lockargs()
477 *p++ = argp->reclaim? xdr_one : xdr_zero; in nlm4clt_encode_lockargs()
478 *p++ = htonl(argp->state); in nlm4clt_encode_lockargs()
484 nlm4clt_encode_cancargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlm4clt_encode_cancargs() argument
486 struct nlm_lock *lock = &argp->lock; in nlm4clt_encode_cancargs()
488 if (!(p = nlm4_encode_cookie(p, &argp->cookie))) in nlm4clt_encode_cancargs()
490 *p++ = argp->block? xdr_one : xdr_zero; in nlm4clt_encode_cancargs()
499 nlm4clt_encode_unlockargs(struct rpc_rqst *req, u32 *p, nlm_args *argp) in nlm4clt_encode_unlockargs() argument
501 struct nlm_lock *lock = &argp->lock; in nlm4clt_encode_unlockargs()
503 if (!(p = nlm4_encode_cookie(p, &argp->cookie))) in nlm4clt_encode_unlockargs()