Lines Matching refs:fl
117 struct file_lock *fl = &lock->fl; in nlm_decode_lock() local
128 locks_init_lock(fl); in nlm_decode_lock()
129 fl->fl_flags = FL_POSIX; in nlm_decode_lock()
130 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock()
135 fl->fl_start = s32_to_loff_t(start); in nlm_decode_lock()
138 fl->fl_end = OFFSET_MAX; in nlm_decode_lock()
140 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock()
157 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres() local
159 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm_encode_testres()
166 start = loff_t_to_s32(fl->fl_start); in nlm_encode_testres()
167 if (fl->fl_end == OFFSET_MAX) in nlm_encode_testres()
170 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_encode_testres()
196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
224 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
245 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
257 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
268 locks_init_lock(&lock->fl); in nlmsvc_decode_shareargs()