MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_initialize_queues

Function ccp_initialize_queues

freebsd/crypto/ccp/ccp.c:136–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static void
137ccp_initialize_queues(struct ccp_softc *sc)
138{
139 struct ccp_queue *qp;
140 size_t i;
141
142 for (i = 0; i < nitems(sc->queues); i++) {
143 qp = &sc->queues[i];
144
145 qp->cq_softc = sc;
146 qp->cq_qindex = i;
147 mtx_init(&qp->cq_lock, "ccp queue", NULL, MTX_DEF);
148 /* XXX - arbitrarily chosen sizes */
149 qp->cq_sg_crp = sglist_alloc(32, M_WAITOK);
150 /* Two more SGEs than sg_crp to accommodate ipad. */
151 qp->cq_sg_ulptx = sglist_alloc(34, M_WAITOK);
152 qp->cq_sg_dst = sglist_alloc(2, M_WAITOK);
153 }
154}
155
156static void
157ccp_free_queues(struct ccp_softc *sc)

Callers 1

ccp_attachFunction · 0.85

Calls 2

mtx_initFunction · 0.85
sglist_allocFunction · 0.85

Tested by

no test coverage detected