Lines Matching refs:req

333 	request_t *req;		/* pointer to currently active assist request */
361 #define MPT_MAKE_TAGID(mpt, req, ioindex) \
362 ((ioindex << 18) | (((mpt->sequence++) & 0x3f) << 12) | (req->index & 0xfff))
370 #define MPT_TGT_STATE(mpt, req) ((mpt_tgt_state_t *) \
371 (&((uint8_t *)req->req_vbuf)[MPT_RQSL(mpt) - sizeof (mpt_tgt_state_t)]))
748 mpt_assign_serno(struct mpt_softc *mpt, request_t *req)
750 if ((req->serno = mpt->sequence++) == 0) {
751 req->serno = mpt->sequence++;
772 #define mpt_req_timeout(req, sbt, func, arg) \
773 callout_reset_sbt(&(req)->callout, (sbt), 0, (func), (arg), 0)
774 #define mpt_req_untimeout(req, func, arg) \
775 callout_stop(&(req)->callout)
970 mpt_req_on_free_list(struct mpt_softc *mpt, request_t *req)
975 if (lrq == req) {
986 mpt_req_on_pending_list(struct mpt_softc *mpt, request_t *req)
991 if (lrq == req) {
1005 * Make sure that req *is* part of one of the special lists
1008 mpt_req_spcl(struct mpt_softc *mpt, request_t *req, const char *s, int line)
1012 if (req == mpt->els_cmd_ptrs[i]) {
1017 if (req == mpt->tgt_cmd_ptrs[i]) {
1021 panic("%s(%d): req %p:%u function %x not in els or tgt ptrs",
1022 s, line, req, req->serno,
1023 ((PTR_MSG_REQUEST_HEADER)req->req_vbuf)->Function);
1027 * Make sure that req is *not* part of one of the special lists.
1030 mpt_req_not_spcl(struct mpt_softc *mpt, request_t *req, const char *s, int line)
1034 KASSERT(req != mpt->els_cmd_ptrs[i],
1035 ("%s(%d): req %p:%u func %x in els ptrs at ioindex %d",
1036 s, line, req, req->serno,
1037 ((PTR_MSG_REQUEST_HEADER)req->req_vbuf)->Function, i));
1040 KASSERT(req != mpt->tgt_cmd_ptrs[i],
1041 ("%s(%d): req %p:%u func %x in tgt ptrs at ioindex %d",
1042 s, line, req, req->serno,
1043 ((PTR_MSG_REQUEST_HEADER)req->req_vbuf)->Function, i));
1063 void mpt_send_cmd(struct mpt_softc *mpt, request_t *req);
1066 int mpt_wait_req(struct mpt_softc *mpt, request_t *req,
1077 void mpt_free_request(struct mpt_softc *mpt, request_t *req);
1083 int mpt_issue_cfg_req(struct mpt_softc */*mpt*/, request_t */*req*/,