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

Function ccp_queue_decode_lsb_regions

freebsd/crypto/ccp/ccp_lsb.c:42–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#include "ccp_lsb.h"
41
42void
43ccp_queue_decode_lsb_regions(struct ccp_softc *sc, uint64_t lsbmask,
44 unsigned queue)
45{
46 struct ccp_queue *qp;
47 unsigned i;
48
49 qp = &sc->queues[queue];
50
51 qp->lsb_mask = 0;
52
53 for (i = 0; i < MAX_LSB_REGIONS; i++) {
54 if (((1 << queue) & lsbmask) != 0)
55 qp->lsb_mask |= (1 << i);
56 lsbmask >>= MAX_HW_QUEUES;
57 }
58
59 /*
60 * Ignore region 0, which has special entries that cannot be used
61 * generally.
62 */
63 qp->lsb_mask &= ~(1 << 0);
64}
65
66/*
67 * Look for a private LSB for each queue. There are 7 general purpose LSBs

Callers 1

ccp_hw_attach_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected