Lines Matching refs:rqstp

65 static int	nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec);
285 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument
290 struct xdr_buf *buf = &rqstp->rq_arg; in nfsd_cache_csum()
315 nfsd_cache_match(struct svc_rqst *rqstp, __wsum csum, struct svc_cacherep *rp) in nfsd_cache_match() argument
318 if (rqstp->rq_xid != rp->c_xid) in nfsd_cache_match()
327 if (rqstp->rq_proc != rp->c_proc || in nfsd_cache_match()
328 rqstp->rq_prot != rp->c_prot || in nfsd_cache_match()
329 rqstp->rq_vers != rp->c_vers || in nfsd_cache_match()
330 rqstp->rq_arg.len != rp->c_len || in nfsd_cache_match()
331 !rpc_cmp_addr(svc_addr(rqstp), (struct sockaddr *)&rp->c_addr) || in nfsd_cache_match()
332 rpc_get_port(svc_addr(rqstp)) != rpc_get_port((struct sockaddr *)&rp->c_addr)) in nfsd_cache_match()
344 nfsd_cache_search(struct nfsd_drc_bucket *b, struct svc_rqst *rqstp, in nfsd_cache_search() argument
353 if (nfsd_cache_match(rqstp, csum, rp)) { in nfsd_cache_search()
381 nfsd_cache_lookup(struct svc_rqst *rqstp) in nfsd_cache_lookup() argument
384 __be32 xid = rqstp->rq_xid; in nfsd_cache_lookup()
385 u32 proto = rqstp->rq_prot, in nfsd_cache_lookup()
386 vers = rqstp->rq_vers, in nfsd_cache_lookup()
387 proc = rqstp->rq_proc; in nfsd_cache_lookup()
392 int type = rqstp->rq_cachetype; in nfsd_cache_lookup()
395 rqstp->rq_cacherep = NULL; in nfsd_cache_lookup()
401 csum = nfsd_cache_csum(rqstp); in nfsd_cache_lookup()
417 found = nfsd_cache_search(b, rqstp, csum); in nfsd_cache_lookup()
431 rqstp->rq_cacherep = rp; in nfsd_cache_lookup()
435 rpc_copy_addr((struct sockaddr *)&rp->c_addr, svc_addr(rqstp)); in nfsd_cache_lookup()
436 rpc_set_port((struct sockaddr *)&rp->c_addr, rpc_get_port(svc_addr(rqstp))); in nfsd_cache_lookup()
439 rp->c_len = rqstp->rq_arg.len; in nfsd_cache_lookup()
469 if (!test_bit(RQ_SECURE, &rqstp->rq_flags) && rp->c_secure) in nfsd_cache_lookup()
477 svc_putu32(&rqstp->rq_res.head[0], rp->c_replstat); in nfsd_cache_lookup()
481 if (!nfsd_cache_append(rqstp, &rp->c_replvec)) in nfsd_cache_lookup()
510 nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) in nfsd_cache_update() argument
512 struct svc_cacherep *rp = rqstp->rq_cacherep; in nfsd_cache_update()
513 struct kvec *resv = &rqstp->rq_res.head[0], *cachv; in nfsd_cache_update()
558 rp->c_secure = test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_cache_update()
571 nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *data) in nfsd_cache_append() argument
573 struct kvec *vec = &rqstp->rq_res.head[0]; in nfsd_cache_append()