Lines Matching refs:task
607 rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags) in rpcauth_bind_root_cred() argument
609 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred()
615 if (RPC_IS_ASYNC(task)) in rpcauth_bind_root_cred()
623 rpcauth_bind_machine_cred(struct rpc_task *task, int lookupflags) in rpcauth_bind_machine_cred() argument
625 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_machine_cred()
627 .principal = task->tk_client->cl_principal, in rpcauth_bind_machine_cred()
633 if (RPC_IS_ASYNC(task)) in rpcauth_bind_machine_cred()
639 rpcauth_bind_new_cred(struct rpc_task *task, int lookupflags) in rpcauth_bind_new_cred() argument
641 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred()
647 rpcauth_bindcred(struct rpc_task *task, const struct cred *cred, int flags) in rpcauth_bindcred() argument
649 struct rpc_rqst *req = task->tk_rqstp; in rpcauth_bindcred()
652 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bindcred()
659 if (task->tk_op_cred) in rpcauth_bindcred()
661 new = get_rpccred(task->tk_op_cred); in rpcauth_bindcred()
665 new = rpcauth_bind_machine_cred(task, lookupflags); in rpcauth_bindcred()
671 new = rpcauth_bind_root_cred(task, lookupflags); in rpcauth_bindcred()
675 new = rpcauth_bind_new_cred(task, lookupflags); in rpcauth_bindcred()
724 int rpcauth_marshcred(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_marshcred() argument
726 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_marshcred()
728 return ops->crmarshal(task, xdr); in rpcauth_marshcred()
739 int rpcauth_wrap_req_encode(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_wrap_req_encode() argument
741 kxdreproc_t encode = task->tk_msg.rpc_proc->p_encode; in rpcauth_wrap_req_encode()
743 encode(task->tk_rqstp, xdr, task->tk_msg.rpc_argp); in rpcauth_wrap_req_encode()
757 int rpcauth_wrap_req(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_wrap_req() argument
759 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_wrap_req()
761 return ops->crwrap_req(task, xdr); in rpcauth_wrap_req()
779 rpcauth_checkverf(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_checkverf() argument
781 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_checkverf()
783 return ops->crvalidate(task, xdr); in rpcauth_checkverf()
794 rpcauth_unwrap_resp_decode(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_unwrap_resp_decode() argument
796 kxdrdproc_t decode = task->tk_msg.rpc_proc->p_decode; in rpcauth_unwrap_resp_decode()
798 return decode(task->tk_rqstp, xdr, task->tk_msg.rpc_resp); in rpcauth_unwrap_resp_decode()
810 rpcauth_unwrap_resp(struct rpc_task *task, struct xdr_stream *xdr) in rpcauth_unwrap_resp() argument
812 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops; in rpcauth_unwrap_resp()
814 return ops->crunwrap_resp(task, xdr); in rpcauth_unwrap_resp()
818 rpcauth_xmit_need_reencode(struct rpc_task *task) in rpcauth_xmit_need_reencode() argument
820 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_xmit_need_reencode()
824 return cred->cr_ops->crneed_reencode(task); in rpcauth_xmit_need_reencode()
828 rpcauth_refreshcred(struct rpc_task *task) in rpcauth_refreshcred() argument
833 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
835 err = rpcauth_bindcred(task, task->tk_msg.rpc_cred, task->tk_flags); in rpcauth_refreshcred()
838 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
841 err = cred->cr_ops->crrefresh(task); in rpcauth_refreshcred()
844 task->tk_status = err; in rpcauth_refreshcred()
849 rpcauth_invalcred(struct rpc_task *task) in rpcauth_invalcred() argument
851 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_invalcred()
858 rpcauth_uptodatecred(struct rpc_task *task) in rpcauth_uptodatecred() argument
860 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_uptodatecred()