Lines Matching refs:task
261 rpcauth_bindcred(struct rpc_task *task) in rpcauth_bindcred() argument
263 struct rpc_auth *auth = task->tk_auth; in rpcauth_bindcred()
266 task->tk_pid, task->tk_auth->au_ops->au_name); in rpcauth_bindcred()
267 task->tk_msg.rpc_cred = rpcauth_lookup_credcache(auth, task->tk_flags); in rpcauth_bindcred()
268 if (task->tk_msg.rpc_cred == 0) in rpcauth_bindcred()
269 task->tk_status = -ENOMEM; in rpcauth_bindcred()
270 return task->tk_msg.rpc_cred; in rpcauth_bindcred()
282 rpcauth_holdcred(struct rpc_task *task) in rpcauth_holdcred() argument
285 task->tk_pid, task->tk_auth->au_ops->au_name, task->tk_msg.rpc_cred); in rpcauth_holdcred()
286 if (task->tk_msg.rpc_cred) in rpcauth_holdcred()
287 get_rpccred(task->tk_msg.rpc_cred); in rpcauth_holdcred()
309 rpcauth_unbindcred(struct rpc_task *task) in rpcauth_unbindcred() argument
311 struct rpc_auth *auth = task->tk_auth; in rpcauth_unbindcred()
312 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_unbindcred()
315 task->tk_pid, auth->au_ops->au_name, cred); in rpcauth_unbindcred()
318 task->tk_msg.rpc_cred = NULL; in rpcauth_unbindcred()
322 rpcauth_marshcred(struct rpc_task *task, u32 *p) in rpcauth_marshcred() argument
324 struct rpc_auth *auth = task->tk_auth; in rpcauth_marshcred()
325 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_marshcred()
328 task->tk_pid, auth->au_ops->au_name, cred); in rpcauth_marshcred()
329 return cred->cr_ops->crmarshal(task, p, in rpcauth_marshcred()
330 task->tk_flags & RPC_CALL_REALUID); in rpcauth_marshcred()
334 rpcauth_checkverf(struct rpc_task *task, u32 *p) in rpcauth_checkverf() argument
336 struct rpc_auth *auth = task->tk_auth; in rpcauth_checkverf()
337 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_checkverf()
340 task->tk_pid, auth->au_ops->au_name, cred); in rpcauth_checkverf()
341 return cred->cr_ops->crvalidate(task, p); in rpcauth_checkverf()
345 rpcauth_refreshcred(struct rpc_task *task) in rpcauth_refreshcred() argument
347 struct rpc_auth *auth = task->tk_auth; in rpcauth_refreshcred()
348 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_refreshcred()
351 task->tk_pid, auth->au_ops->au_name, cred); in rpcauth_refreshcred()
352 task->tk_status = cred->cr_ops->crrefresh(task); in rpcauth_refreshcred()
353 return task->tk_status; in rpcauth_refreshcred()
357 rpcauth_invalcred(struct rpc_task *task) in rpcauth_invalcred() argument
360 task->tk_pid, task->tk_auth->au_ops->au_name, task->tk_msg.rpc_cred); in rpcauth_invalcred()
362 if (task->tk_msg.rpc_cred) in rpcauth_invalcred()
363 task->tk_msg.rpc_cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE; in rpcauth_invalcred()
368 rpcauth_uptodatecred(struct rpc_task *task) in rpcauth_uptodatecred() argument
372 retval = !(task->tk_msg.rpc_cred) || in rpcauth_uptodatecred()
373 (task->tk_msg.rpc_cred->cr_flags & RPCAUTH_CRED_UPTODATE); in rpcauth_uptodatecred()