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

Function ccp_free_queues

freebsd/crypto/ccp/ccp.c:156–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static void
157ccp_free_queues(struct ccp_softc *sc)
158{
159 struct ccp_queue *qp;
160 size_t i;
161
162 for (i = 0; i < nitems(sc->queues); i++) {
163 qp = &sc->queues[i];
164
165 mtx_destroy(&qp->cq_lock);
166 sglist_free(qp->cq_sg_crp);
167 sglist_free(qp->cq_sg_ulptx);
168 sglist_free(qp->cq_sg_dst);
169 }
170}
171
172static int
173ccp_attach(device_t dev)

Callers 1

ccp_detachFunction · 0.85

Calls 1

sglist_freeFunction · 0.85

Tested by

no test coverage detected