Lines Matching defs:req
58 /* Possible values of req->state. */
64 /* Possible values of req->flags. */
75 #define TW_OSLI_REQ_FLAGS_CCB (1<<8) /* req is ccb. */
93 struct tw_cl_req_handle req_handle;/* tag to track req b/w OSL & CL */
114 /* ptr to orig req for use during callback */
119 struct tw_cl_req_packet req_pkt;/* req pkt understood by CL */
230 tw_osli_req_q_insert_head(struct tw_osli_req_context *req, TW_UINT8 q_type)
232 mtx_lock_spin(req->ctlr->q_lock);
233 TW_CL_Q_INSERT_HEAD(&(req->ctlr->req_q_head[q_type]), &(req->link));
234 TW_OSLI_Q_INSERT(req->ctlr, q_type);
235 mtx_unlock_spin(req->ctlr->q_lock);
242 tw_osli_req_q_insert_tail(struct tw_osli_req_context *req, TW_UINT8 q_type)
244 mtx_lock_spin(req->ctlr->q_lock);
245 TW_CL_Q_INSERT_TAIL(&(req->ctlr->req_q_head[q_type]), &(req->link));
246 TW_OSLI_Q_INSERT(req->ctlr, q_type);
247 mtx_unlock_spin(req->ctlr->q_lock);
256 struct tw_osli_req_context *req = NULL;
262 req = TW_CL_STRUCT_HEAD(link,
264 TW_CL_Q_REMOVE_ITEM(&(sc->req_q_head[q_type]), &(req->link));
268 return(req);
275 tw_osli_req_q_remove_item(struct tw_osli_req_context *req, TW_UINT8 q_type)
277 mtx_lock_spin(req->ctlr->q_lock);
278 TW_CL_Q_REMOVE_ITEM(&(req->ctlr->req_q_head[q_type]), &(req->link));
279 TW_OSLI_Q_REMOVE(req->ctlr, q_type);
280 mtx_unlock_spin(req->ctlr->q_lock);