• Home
  • Raw
  • Download

Lines Matching refs:dr

533 static void free_deferred(struct svc_xprt *xprt, struct svc_deferred_req *dr)  in free_deferred()  argument
535 if (!dr) in free_deferred()
538 xprt->xpt_ops->xpo_release_ctxt(xprt, dr->xprt_ctxt); in free_deferred()
539 kfree(dr); in free_deferred()
1049 struct svc_deferred_req *dr; in svc_delete_xprt() local
1066 while ((dr = svc_deferred_dequeue(xprt)) != NULL) in svc_delete_xprt()
1067 free_deferred(xprt, dr); in svc_delete_xprt()
1170 struct svc_deferred_req *dr = in svc_revisit() local
1172 struct svc_xprt *xprt = dr->xprt; in svc_revisit()
1178 trace_svc_defer_drop(dr); in svc_revisit()
1179 free_deferred(xprt, dr); in svc_revisit()
1183 dr->xprt = NULL; in svc_revisit()
1184 list_add(&dr->handle.recent, &xprt->xpt_deferred); in svc_revisit()
1186 trace_svc_defer_queue(dr); in svc_revisit()
1203 struct svc_deferred_req *dr; in svc_defer() local
1208 dr = rqstp->rq_deferred; in svc_defer()
1215 dr = kmalloc(size, GFP_KERNEL); in svc_defer()
1216 if (dr == NULL) in svc_defer()
1219 dr->handle.owner = rqstp->rq_server; in svc_defer()
1220 dr->prot = rqstp->rq_prot; in svc_defer()
1221 memcpy(&dr->addr, &rqstp->rq_addr, rqstp->rq_addrlen); in svc_defer()
1222 dr->addrlen = rqstp->rq_addrlen; in svc_defer()
1223 dr->daddr = rqstp->rq_daddr; in svc_defer()
1224 dr->argslen = rqstp->rq_arg.len >> 2; in svc_defer()
1228 memcpy(dr->args, rqstp->rq_arg.head[0].iov_base - skip, in svc_defer()
1229 dr->argslen << 2); in svc_defer()
1231 dr->xprt_ctxt = rqstp->rq_xprt_ctxt; in svc_defer()
1235 dr->xprt = rqstp->rq_xprt; in svc_defer()
1238 dr->handle.revisit = svc_revisit; in svc_defer()
1239 return &dr->handle; in svc_defer()
1247 struct svc_deferred_req *dr = rqstp->rq_deferred; in svc_deferred_recv() local
1249 trace_svc_defer_recv(dr); in svc_deferred_recv()
1252 rqstp->rq_arg.head[0].iov_base = dr->args; in svc_deferred_recv()
1254 rqstp->rq_arg.head[0].iov_len = dr->argslen << 2; in svc_deferred_recv()
1257 rqstp->rq_arg.len = dr->argslen << 2; in svc_deferred_recv()
1258 rqstp->rq_prot = dr->prot; in svc_deferred_recv()
1259 memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); in svc_deferred_recv()
1260 rqstp->rq_addrlen = dr->addrlen; in svc_deferred_recv()
1262 rqstp->rq_daddr = dr->daddr; in svc_deferred_recv()
1264 rqstp->rq_xprt_ctxt = dr->xprt_ctxt; in svc_deferred_recv()
1266 dr->xprt_ctxt = NULL; in svc_deferred_recv()
1268 return dr->argslen << 2; in svc_deferred_recv()
1274 struct svc_deferred_req *dr = NULL; in svc_deferred_dequeue() local
1280 dr = list_entry(xprt->xpt_deferred.next, in svc_deferred_dequeue()
1283 list_del_init(&dr->handle.recent); in svc_deferred_dequeue()
1287 return dr; in svc_deferred_dequeue()