Lines Matching defs:req

59 static TW_INT32	tw_osli_execute_scsi(struct tw_osli_req_context *req,
190 * Input: req -- ptr to OSL internal request context
197 tw_osli_execute_scsi(struct tw_osli_req_context *req, union ccb *ccb)
199 struct twa_softc *sc = req->ctlr;
245 req->flags |= TW_OSLI_REQ_FLAGS_DATA_IN;
247 req->flags |= TW_OSLI_REQ_FLAGS_DATA_OUT;
251 req_pkt = &req->req_pkt;
279 if ((req->length = csio->dxfer_len) != 0) {
280 req->data = csio->data_ptr;
284 req->flags |= TW_OSLI_REQ_FLAGS_CCB;
285 req->deadline = tw_osl_get_local_time() + (ccb_h->timeout / 1000);
291 error = tw_osli_map_request(req);
292 if ((error) && (req->flags & TW_OSLI_REQ_FLAGS_FAILED)) {
293 req->deadline = 0;
321 struct tw_osli_req_context *req;
323 req = tw_osli_get_request(sc);
324 if (req == NULL) {
336 if ((tw_cl_is_reset_needed(&(req->ctlr->ctlr_handle)))) {
340 tw_osli_req_q_insert_tail(req, TW_OSLI_FREE_Q);
344 req->req_handle.osl_req_ctxt = req;
345 req->req_handle.is_io = TW_CL_TRUE;
346 req->orig_req = ccb;
347 if (tw_osli_execute_scsi(req, ccb))
348 tw_osli_req_q_insert_tail(req, TW_OSLI_FREE_Q);
523 struct tw_osli_req_context *req = req_handle->osl_req_ctxt;
524 union ccb *ccb = (union ccb *)(req->orig_req);
544 struct tw_osli_req_context *req = req_handle->osl_req_ctxt;
545 union ccb *ccb = (union ccb *)(req->orig_req);
548 req->deadline = tw_osl_get_local_time() + (ccb_h->timeout / 1000);
564 struct tw_osli_req_context *req = req_handle->osl_req_ctxt;
566 req->deadline = 0;
607 struct tw_osli_req_context *req = req_handle->osl_req_ctxt;
609 (struct tw_cl_req_packet *)(&req->req_pkt);
611 struct twa_softc *sc = req->ctlr;
612 union ccb *ccb = (union ccb *)(req->orig_req);
616 if (req->state != TW_OSLI_REQ_STATE_BUSY)
622 req, req->state);
629 req->state = TW_OSLI_REQ_STATE_COMPLETE;
630 tw_osli_req_q_remove_item(req, TW_OSLI_BUSY_Q);
632 tw_osli_unmap_request(req);
634 req->deadline = 0;
635 if (req->error_code) {
637 if (req->error_code == EBUSY) {
645 else if (req->error_code == EFBIG)
682 if (! req->error_code)
684 tw_osli_req_q_insert_tail(req, TW_OSLI_FREE_Q);