* Internal inline routines. */
| 242 | * Internal inline routines. |
| 243 | */ |
| 244 | static inline unsigned |
| 245 | ccp_queue_get_active(struct ccp_queue *qp) |
| 246 | { |
| 247 | struct ccp_softc *sc; |
| 248 | |
| 249 | sc = qp->cq_softc; |
| 250 | return ((qp->cq_tail - qp->cq_head) & ((1 << sc->ring_size_order) - 1)); |
| 251 | } |
| 252 | |
| 253 | static inline unsigned |
| 254 | ccp_queue_get_ring_space(struct ccp_queue *qp) |
no outgoing calls
no test coverage detected