• Home
  • Raw
  • Download

Lines Matching refs:sc

77 static void rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc);
135 struct rpcrdma_sendctx *sc = in rpcrdma_wc_send() local
139 trace_xprtrdma_wc_send(sc, wc); in rpcrdma_wc_send()
140 rpcrdma_sendctx_put_locked(sc); in rpcrdma_wc_send()
814 struct rpcrdma_sendctx *sc; in rpcrdma_sendctx_create() local
816 sc = kzalloc(struct_size(sc, sc_sges, ia->ri_max_send_sges), in rpcrdma_sendctx_create()
818 if (!sc) in rpcrdma_sendctx_create()
821 sc->sc_wr.wr_cqe = &sc->sc_cqe; in rpcrdma_sendctx_create()
822 sc->sc_wr.sg_list = sc->sc_sges; in rpcrdma_sendctx_create()
823 sc->sc_wr.opcode = IB_WR_SEND; in rpcrdma_sendctx_create()
824 sc->sc_cqe.done = rpcrdma_wc_send; in rpcrdma_sendctx_create()
825 return sc; in rpcrdma_sendctx_create()
831 struct rpcrdma_sendctx *sc; in rpcrdma_sendctxs_create() local
841 buf->rb_sc_ctxs = kcalloc(i, sizeof(sc), GFP_KERNEL); in rpcrdma_sendctxs_create()
847 sc = rpcrdma_sendctx_create(&r_xprt->rx_ia); in rpcrdma_sendctxs_create()
848 if (!sc) in rpcrdma_sendctxs_create()
851 sc->sc_xprt = r_xprt; in rpcrdma_sendctxs_create()
852 buf->rb_sc_ctxs[i] = sc; in rpcrdma_sendctxs_create()
884 struct rpcrdma_sendctx *sc; in rpcrdma_sendctx_get_locked() local
893 sc = buf->rb_sc_ctxs[next_head]; in rpcrdma_sendctx_get_locked()
900 return sc; in rpcrdma_sendctx_get_locked()
922 rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc) in rpcrdma_sendctx_put_locked() argument
924 struct rpcrdma_buffer *buf = &sc->sc_xprt->rx_buf; in rpcrdma_sendctx_put_locked()
937 } while (buf->rb_sc_ctxs[next_tail] != sc); in rpcrdma_sendctx_put_locked()
942 xprt_write_space(&sc->sc_xprt->rx_xprt); in rpcrdma_sendctx_put_locked()