Lines Matching refs:sc
80 struct rpcrdma_sendctx *sc);
155 struct rpcrdma_sendctx *sc = in rpcrdma_wc_send() local
160 trace_xprtrdma_wc_send(wc, &sc->sc_cid); in rpcrdma_wc_send()
161 rpcrdma_sendctx_put_locked(r_xprt, sc); in rpcrdma_wc_send()
630 struct rpcrdma_sendctx *sc; in rpcrdma_sendctx_create() local
632 sc = kzalloc(struct_size(sc, sc_sges, ep->re_attr.cap.max_send_sge), in rpcrdma_sendctx_create()
634 if (!sc) in rpcrdma_sendctx_create()
637 sc->sc_cqe.done = rpcrdma_wc_send; in rpcrdma_sendctx_create()
638 sc->sc_cid.ci_queue_id = ep->re_attr.send_cq->res.id; in rpcrdma_sendctx_create()
639 sc->sc_cid.ci_completion_id = in rpcrdma_sendctx_create()
641 return sc; in rpcrdma_sendctx_create()
647 struct rpcrdma_sendctx *sc; in rpcrdma_sendctxs_create() local
656 buf->rb_sc_ctxs = kcalloc(i, sizeof(sc), GFP_KERNEL); in rpcrdma_sendctxs_create()
662 sc = rpcrdma_sendctx_create(r_xprt->rx_ep); in rpcrdma_sendctxs_create()
663 if (!sc) in rpcrdma_sendctxs_create()
666 buf->rb_sc_ctxs[i] = sc; in rpcrdma_sendctxs_create()
700 struct rpcrdma_sendctx *sc; in rpcrdma_sendctx_get_locked() local
709 sc = buf->rb_sc_ctxs[next_head]; in rpcrdma_sendctx_get_locked()
716 return sc; in rpcrdma_sendctx_get_locked()
739 struct rpcrdma_sendctx *sc) in rpcrdma_sendctx_put_locked() argument
754 } while (buf->rb_sc_ctxs[next_tail] != sc); in rpcrdma_sendctx_put_locked()