Lines Matching refs:call
157 struct nlm_rqst *call; in nlmclnt_proc() local
160 call = nlm_alloc_call(host); in nlmclnt_proc()
161 if (call == NULL) in nlmclnt_proc()
167 nlmclnt_release_call(call); in nlmclnt_proc()
171 nlmclnt_setlockargs(call, fl); in nlmclnt_proc()
175 call->a_args.block = IS_SETLKW(cmd) ? 1 : 0; in nlmclnt_proc()
176 status = nlmclnt_lock(call, fl); in nlmclnt_proc()
178 status = nlmclnt_unlock(call, fl); in nlmclnt_proc()
180 status = nlmclnt_test(call, fl); in nlmclnt_proc()
196 struct nlm_rqst *call; in nlm_alloc_call() local
199 call = kzalloc(sizeof(*call), GFP_KERNEL); in nlm_alloc_call()
200 if (call != NULL) { in nlm_alloc_call()
201 atomic_set(&call->a_count, 1); in nlm_alloc_call()
202 locks_init_lock(&call->a_args.lock.fl); in nlm_alloc_call()
203 locks_init_lock(&call->a_res.lock.fl); in nlm_alloc_call()
204 call->a_host = nlm_get_host(host); in nlm_alloc_call()
205 return call; in nlm_alloc_call()
215 void nlmclnt_release_call(struct nlm_rqst *call) in nlmclnt_release_call() argument
217 if (!atomic_dec_and_test(&call->a_count)) in nlmclnt_release_call()
219 nlmclnt_release_host(call->a_host); in nlmclnt_release_call()
220 nlmclnt_release_lockargs(call); in nlmclnt_release_call()
221 kfree(call); in nlmclnt_release_call()