Lines Matching defs:cq
47 struct tws_circular_q *cq, struct tws_event_packet *aen);
371 tws_circular_aenq_insert(struct tws_softc *sc, struct tws_circular_q *cq,
375 struct tws_event_packet *q = (struct tws_event_packet *)cq->q;
380 head = cq->head;
381 tail = cq->tail;
385 tail = (tail+1) % cq->depth;
389 cq->overflow = 1;
390 cq->head = (head+1) % cq->depth;
392 cq->tail = tail;