Lines Matching refs:q_type
43 u_int8_t q_type );
45 struct tws_request *req, u_int8_t q_type );
46 struct tws_request *tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type );
48 u_int8_t q_type );
49 struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
221 u_int8_t q_type )
226 sc->q_head[q_type] = sc->q_tail[q_type] = req;
233 u_int8_t q_type )
237 if ( sc->q_head[q_type] == NULL ) {
238 tws_insert2_empty_q(sc, req, q_type);
240 req->next = sc->q_head[q_type];
242 sc->q_head[q_type]->prev = req;
243 sc->q_head[q_type] = req;
251 u_int8_t q_type )
255 if ( sc->q_tail[q_type] == NULL ) {
256 tws_insert2_empty_q(sc, req, q_type);
258 req->prev = sc->q_tail[q_type];
260 sc->q_tail[q_type]->next = req;
261 sc->q_tail[q_type] = req;
268 tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type )
274 r = sc->q_head[q_type];
279 sc->q_head[q_type] = sc->q_tail[q_type] = NULL;
281 sc->q_head[q_type] = r->next;
291 tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type )
297 r = sc->q_tail[q_type];
302 sc->q_head[q_type] = sc->q_tail[q_type] = NULL;
304 sc->q_tail[q_type] = r->prev;
316 u_int8_t q_type )
323 TWS_TRACE_DEBUG(sc, "null req", 0, q_type);
327 if ( req == sc->q_head[q_type] )
328 return(tws_q_remove_head(sc, q_type));
329 if ( req == sc->q_tail[q_type] )
330 return(tws_q_remove_tail(sc, q_type));
339 TWS_TRACE_DEBUG(sc, "invalid req", 0, q_type);
344 r = sc->q_head[q_type];