Lines Matching refs:argp
185 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_testargs() argument
189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
193 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
210 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument
214 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
216 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
218 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
222 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
223 argp->state = ntohl(*p++); in nlmsvc_decode_lockargs()
224 argp->monitor = 1; /* monitor client by default */ in nlmsvc_decode_lockargs()
230 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_cancargs() argument
234 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
236 argp->block = ntohl(*p++); in nlmsvc_decode_cancargs()
238 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_cancargs()
241 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
246 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_unlockargs() argument
248 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
249 || !(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_unlockargs()
251 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
256 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_shareargs() argument
258 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_shareargs()
265 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
271 argp->fsm_mode = ntohl(*p++); in nlmsvc_decode_shareargs()
272 argp->fsm_access = ntohl(*p++); in nlmsvc_decode_shareargs()
296 nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p, struct nlm_args *argp) in nlmsvc_decode_notify() argument
298 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_notify()
303 argp->state = ntohl(*p++); in nlmsvc_decode_notify()
308 nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp) in nlmsvc_decode_reboot() argument
310 if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) in nlmsvc_decode_reboot()
312 argp->state = ntohl(*p++); in nlmsvc_decode_reboot()
313 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlmsvc_decode_reboot()