Searched refs:ctxt (Results 1 – 6 of 6) sorted by relevance
/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 128 struct svc_rdma_recv_ctxt *ctxt; in svc_rdma_recv_ctxt_alloc() local 132 ctxt = kmalloc(sizeof(*ctxt), GFP_KERNEL); in svc_rdma_recv_ctxt_alloc() 133 if (!ctxt) in svc_rdma_recv_ctxt_alloc() 143 svc_rdma_recv_cid_init(rdma, &ctxt->rc_cid); in svc_rdma_recv_ctxt_alloc() 144 pcl_init(&ctxt->rc_call_pcl); in svc_rdma_recv_ctxt_alloc() 145 pcl_init(&ctxt->rc_read_pcl); in svc_rdma_recv_ctxt_alloc() 146 pcl_init(&ctxt->rc_write_pcl); in svc_rdma_recv_ctxt_alloc() 147 pcl_init(&ctxt->rc_reply_pcl); in svc_rdma_recv_ctxt_alloc() 149 ctxt->rc_recv_wr.next = NULL; in svc_rdma_recv_ctxt_alloc() 150 ctxt->rc_recv_wr.wr_cqe = &ctxt->rc_cqe; in svc_rdma_recv_ctxt_alloc() [all …]
|
D | svc_rdma_sendto.c | 126 struct svc_rdma_send_ctxt *ctxt; in svc_rdma_send_ctxt_alloc() local 132 size = sizeof(*ctxt); in svc_rdma_send_ctxt_alloc() 134 ctxt = kmalloc(size, GFP_KERNEL); in svc_rdma_send_ctxt_alloc() 135 if (!ctxt) in svc_rdma_send_ctxt_alloc() 145 svc_rdma_send_cid_init(rdma, &ctxt->sc_cid); in svc_rdma_send_ctxt_alloc() 147 ctxt->sc_send_wr.next = NULL; in svc_rdma_send_ctxt_alloc() 148 ctxt->sc_send_wr.wr_cqe = &ctxt->sc_cqe; in svc_rdma_send_ctxt_alloc() 149 ctxt->sc_send_wr.sg_list = ctxt->sc_sges; in svc_rdma_send_ctxt_alloc() 150 ctxt->sc_send_wr.send_flags = IB_SEND_SIGNALED; in svc_rdma_send_ctxt_alloc() 151 init_completion(&ctxt->sc_done); in svc_rdma_send_ctxt_alloc() [all …]
|
D | svc_rdma_rw.c | 56 struct svc_rdma_rw_ctxt *ctxt; in svc_rdma_get_rw_ctxt() local 63 ctxt = llist_entry(node, struct svc_rdma_rw_ctxt, rw_node); in svc_rdma_get_rw_ctxt() 65 ctxt = kmalloc(struct_size(ctxt, rw_first_sgl, SG_CHUNK_SIZE), in svc_rdma_get_rw_ctxt() 67 if (!ctxt) in svc_rdma_get_rw_ctxt() 70 INIT_LIST_HEAD(&ctxt->rw_list); in svc_rdma_get_rw_ctxt() 73 ctxt->rw_sg_table.sgl = ctxt->rw_first_sgl; in svc_rdma_get_rw_ctxt() 74 if (sg_alloc_table_chained(&ctxt->rw_sg_table, sges, in svc_rdma_get_rw_ctxt() 75 ctxt->rw_sg_table.sgl, in svc_rdma_get_rw_ctxt() 78 return ctxt; in svc_rdma_get_rw_ctxt() 81 kfree(ctxt); in svc_rdma_get_rw_ctxt() [all …]
|
D | svc_rdma_backchannel.c | 149 struct svc_rdma_send_ctxt *ctxt; in rpcrdma_bc_send_request() local 153 ctxt = svc_rdma_send_ctxt_get(rdma); in rpcrdma_bc_send_request() 154 if (!ctxt) in rpcrdma_bc_send_request() 157 p = xdr_reserve_space(&ctxt->sc_stream, RPCRDMA_HDRLEN_MIN); in rpcrdma_bc_send_request() 169 rc = svc_rdma_bc_sendto(rdma, rqst, ctxt); in rpcrdma_bc_send_request() 175 svc_rdma_send_ctxt_put(rdma, ctxt); in rpcrdma_bc_send_request()
|
/net/ipv4/ |
D | tcp_fastopen.c | 16 struct tcp_fastopen_context *ctxt; in tcp_fastopen_init_key_once() local 19 ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx); in tcp_fastopen_init_key_once() 20 if (ctxt) { in tcp_fastopen_init_key_once() 56 struct tcp_fastopen_context *ctxt; in tcp_fastopen_ctx_destroy() local 58 ctxt = xchg((__force struct tcp_fastopen_context **)&net->ipv4.tcp_fastopen_ctx, NULL); in tcp_fastopen_ctx_destroy() 60 if (ctxt) in tcp_fastopen_ctx_destroy() 61 call_rcu(&ctxt->rcu, tcp_fastopen_ctx_free); in tcp_fastopen_ctx_destroy()
|
/net/sunrpc/ |
D | svcsock.c | 119 static void svc_tcp_release_ctxt(struct svc_xprt *xprt, void *ctxt) in svc_tcp_release_ctxt() argument 129 static void svc_udp_release_ctxt(struct svc_xprt *xprt, void *ctxt) in svc_udp_release_ctxt() argument 131 struct sk_buff *skb = ctxt; in svc_udp_release_ctxt()
|