| 40 | #include "ccp_lsb.h" |
| 41 | |
| 42 | void |
| 43 | ccp_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 |
no outgoing calls
no test coverage detected