Lines Matching refs:call
47 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock);
48 static void nlmsvc_freegrantargs(struct nlm_rqst *call);
221 struct nlm_rqst *call = NULL; in nlmsvc_create_block() local
223 call = nlm_alloc_call(host); in nlmsvc_create_block()
224 if (call == NULL) in nlmsvc_create_block()
235 if (!nlmsvc_setgrantargs(call, lock)) in nlmsvc_create_block()
239 call->a_args.lock.fl.fl_flags |= FL_SLEEP; in nlmsvc_create_block()
240 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations; in nlmsvc_create_block()
241 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
255 block->b_call = call; in nlmsvc_create_block()
256 call->a_flags = RPC_TASK_ASYNC; in nlmsvc_create_block()
257 call->a_block = block; in nlmsvc_create_block()
264 nlmsvc_release_call(call); in nlmsvc_create_block()
408 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock) in nlmsvc_setgrantargs() argument
410 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmsvc_setgrantargs()
411 memcpy(&call->a_args.lock.fh, &lock->fh, sizeof(call->a_args.lock.fh)); in nlmsvc_setgrantargs()
412 call->a_args.lock.caller = utsname()->nodename; in nlmsvc_setgrantargs()
413 call->a_args.lock.oh.len = lock->oh.len; in nlmsvc_setgrantargs()
416 call->a_args.lock.oh.data = call->a_owner; in nlmsvc_setgrantargs()
417 call->a_args.lock.svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid; in nlmsvc_setgrantargs()
423 call->a_args.lock.oh.data = (u8 *) data; in nlmsvc_setgrantargs()
426 memcpy(call->a_args.lock.oh.data, lock->oh.data, lock->oh.len); in nlmsvc_setgrantargs()
430 static void nlmsvc_freegrantargs(struct nlm_rqst *call) in nlmsvc_freegrantargs() argument
432 if (call->a_args.lock.oh.data != call->a_owner) in nlmsvc_freegrantargs()
433 kfree(call->a_args.lock.oh.data); in nlmsvc_freegrantargs()
435 locks_release_private(&call->a_args.lock.fl); in nlmsvc_freegrantargs()
883 struct nlm_rqst *call = data; in nlmsvc_grant_callback() local
884 struct nlm_block *block = call->a_block; in nlmsvc_grant_callback()
923 struct nlm_rqst *call = data; in nlmsvc_grant_release() local
924 nlmsvc_release_block(call->a_block); in nlmsvc_grant_release()