• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/

Lines Matching refs:cred

124 	struct rpc_cred *cred;
127 cred = hlist_entry(head->first, struct rpc_cred, cr_hash);
128 hlist_del_init(&cred->cr_hash);
129 put_rpccred(cred);
143 struct rpc_cred *cred;
149 cred = hlist_entry(pos, struct rpc_cred, cr_hash);
150 __hlist_del(&cred->cr_hash);
151 hlist_add_head(&cred->cr_hash, &free);
159 rpcauth_prune_expired(struct rpc_auth *auth, struct rpc_cred *cred, struct hlist_head *free)
161 if (atomic_read(&cred->cr_count) != 1)
163 if (time_after(jiffies, cred->cr_expire + auth->au_credcache->expire))
164 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
165 if (!(cred->cr_flags & RPCAUTH_CRED_UPTODATE)) {
166 __hlist_del(&cred->cr_hash);
167 hlist_add_head(&cred->cr_hash, free);
179 struct rpc_cred *cred;
185 cred = hlist_entry(pos, struct rpc_cred, cr_hash);
186 rpcauth_prune_expired(auth, cred, free);
203 *cred = NULL;
217 cred = entry;
223 if (cred)
226 cred = new;
228 if (cred) {
229 hlist_add_head(&cred->cr_hash, &cache->hashtable[nr]);
230 get_rpccred(cred);
236 if (!cred) {
244 cred = new;
245 } else if ((cred->cr_flags & RPCAUTH_CRED_NEW)
246 && cred->cr_ops->cr_init != NULL
248 int res = cred->cr_ops->cr_init(auth, cred);
250 put_rpccred(cred);
251 cred = ERR_PTR(res);
255 return (struct rpc_cred *) cred;
268 dprintk("RPC: looking up %s cred\n",
288 dprintk("RPC: %5u looking up %s cred\n",
305 dprintk("RPC: %5u holding %s cred %p\n",
313 put_rpccred(struct rpc_cred *cred)
315 cred->cr_expire = jiffies;
316 if (!atomic_dec_and_test(&cred->cr_count))
318 cred->cr_ops->crdestroy(cred);
324 struct rpc_cred *cred = task->tk_msg.rpc_cred;
326 dprintk("RPC: %5u releasing %s cred %p\n",
327 task->tk_pid, task->tk_auth->au_ops->au_name, cred);
329 put_rpccred(cred);
336 struct rpc_cred *cred = task->tk_msg.rpc_cred;
338 dprintk("RPC: %5u marshaling %s cred %p\n",
339 task->tk_pid, task->tk_auth->au_ops->au_name, cred);
341 return cred->cr_ops->crmarshal(task, p);
347 struct rpc_cred *cred = task->tk_msg.rpc_cred;
349 dprintk("RPC: %5u validating %s cred %p\n",
350 task->tk_pid, task->tk_auth->au_ops->au_name, cred);
352 return cred->cr_ops->crvalidate(task, p);
359 struct rpc_cred *cred = task->tk_msg.rpc_cred;
361 dprintk("RPC: %5u using %s cred %p to wrap rpc data\n",
362 task->tk_pid, cred->cr_ops->cr_name, cred);
363 if (cred->cr_ops->crwrap_req)
364 return cred->cr_ops->crwrap_req(task, encode, rqstp, data, obj);
373 struct rpc_cred *cred = task->tk_msg.rpc_cred;
375 dprintk("RPC: %5u using %s cred %p to unwrap rpc data\n",
376 task->tk_pid, cred->cr_ops->cr_name, cred);
377 if (cred->cr_ops->crunwrap_resp)
378 return cred->cr_ops->crunwrap_resp(task, decode, rqstp,
387 struct rpc_cred *cred = task->tk_msg.rpc_cred;
390 dprintk("RPC: %5u refreshing %s cred %p\n",
391 task->tk_pid, task->tk_auth->au_ops->au_name, cred);
393 err = cred->cr_ops->crrefresh(task);
402 dprintk("RPC: %5u invalidating %s cred %p\n",