Lines Matching refs:lock
107 nlm4_decode_lock(__be32 *p, struct nlm_lock *lock) in nlm4_decode_lock() argument
109 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
113 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4_decode_lock()
114 &lock->len, NLM_MAXSTRLEN)) 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()
150 struct file_lock *fl = &resp->lock.fl; 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()
168 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
190 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
218 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
239 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_cancargs()
242 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
252 || !(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_unlockargs()
254 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
262 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_shareargs() local
264 memset(lock, 0, sizeof(*lock)); in nlm4svc_decode_shareargs()
265 locks_init_lock(&lock->fl); in nlm4svc_decode_shareargs()
266 lock->svid = ~(u32) 0; in nlm4svc_decode_shareargs()
269 || !(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_shareargs()
270 &lock->len, NLM_MAXSTRLEN)) 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()
306 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_notify() local
308 if (!(p = xdr_decode_string_inplace(p, &lock->caller, in nlm4svc_decode_notify()
309 &lock->len, NLM_MAXSTRLEN))) in nlm4svc_decode_notify()