TWA_Q_LENGTH
if (twa_alloc_req_pkts(sc, TWA_Q_LENGTH)) {
TWA_Q_LENGTH, M_DEVBUF, M_WAITOK)) == NULL) {
memset(aen_queue, 0, sizeof(struct tw_cl_event_packet) * TWA_Q_LENGTH);
for (i = 0; i < TWA_Q_LENGTH; i++)
(sc->twa_aen_head - 1 + TWA_Q_LENGTH) % TWA_Q_LENGTH;
% TWA_Q_LENGTH;
% TWA_Q_LENGTH;
if ((sc->twa_aen_head + 1) == TWA_Q_LENGTH)
sc->twa_aen_head = (sc->twa_aen_head + 1) % TWA_Q_LENGTH;
i = (i + TWA_Q_LENGTH - 1) % TWA_Q_LENGTH;
openings = (TWA_Q_LENGTH - 2) * td->td_size
struct twa_request *twa_lookup[TWA_Q_LENGTH];/* requests indexed by request_id */
struct tw_cl_event_packet *twa_aen_queue[TWA_Q_LENGTH];/* circular queue of AENs from firmware */