Lines Matching defs:rqno
499 int lcv, rqno, error;
636 rqno = xdc_cmd(xdc, XDCMD_RDP, XDFUN_CTL, 0, 0, 0, 0, XD_SUB_POLL);
637 if (rqno == XD_ERR_FAIL) {
641 ctl = (struct xd_iopb_ctrl *) &xdc->iopbase[rqno];
643 if (xdc->reqs[rqno].errnum)
644 printf(": %s: ", xdc_e2str(xdc->reqs[rqno].errnum));
646 XDC_DONE(xdc, rqno, error);
651 XDC_DONE(xdc, rqno, error);
655 rqno = xdc_cmd(xdc, XDCMD_WRP, XDFUN_CTL, 0, 0, 0, 0, XD_SUB_POLL);
656 XDC_DONE(xdc, rqno, error);
714 int rqno, spt = 0, mb, blk, lcv, fmode, s = 0, newstate;
774 rqno = xdc_cmd(xdc, XDCMD_RST, 0, xd->xd_drive, 0, 0, 0, fmode);
775 XDC_DONE(xdc, rqno, error);
788 rqno = xdc_cmd(xdc, XDCMD_WRP, XDFUN_FMT, xd->xd_drive, 0, 0, 0, fmode);
789 XDC_DONE(xdc, rqno, error);
797 rqno = xdc_cmd(xdc, XDCMD_RDP, XDFUN_DRV, xd->xd_drive, 0, 0, 0, fmode);
798 if (rqno != XD_ERR_FAIL) {
799 driopb = (struct xd_iopb_drive *) &xdc->iopbase[rqno];
802 XDC_DONE(xdc, rqno, error);
820 rqno = xdc_cmd(xdc, XDCMD_WRP, XDFUN_DRV, xd->xd_drive, 0, 0, 0, fmode);
821 XDC_DONE(xdc, rqno, error);
829 rqno = xdc_cmd(xdc, XDCMD_RD, 0, xd->xd_drive, 0, 1, dmaddr, fmode);
830 XDC_DONE(xdc, rqno, error);
856 rqno = xdc_cmd(xdc, XDCMD_WRP, XDFUN_DRV, xd->xd_drive, 0, 0, 0, fmode);
857 XDC_DONE(xdc, rqno, error);
872 rqno = xdc_cmd(xdc, XDCMD_RD, 0, xd->xd_drive, blk, 1, dmaddr, fmode);
873 XDC_DONE(xdc, rqno, error);
1482 * xdc_cmd: front end for POLL'd and WAIT'd commands. Returns rqno.
1490 int rqno, submode = XD_STATE(fullmode), retry;
1522 rqno = XDC_RQALLOC(xdcsc);
1523 iorq = &xdcsc->reqs[rqno];
1539 xdc_submit_iorq(xdcsc, rqno, fullmode); /* error code will be in iorq */
1541 return (rqno);
1551 int rqno, partno;
1560 rqno = XDC_RQALLOC(xdcsc);
1561 iorq = &xdcsc->reqs[rqno];
1595 XDC_FREE(xdcsc, rqno);
1618 xdc_submit_iorq(xdcsc, rqno, XD_SUB_NORM);
1941 int rqno;
1944 XDC_GET_WAITER(xdcsc, rqno); /* note: rqno is an "out"
1946 if (xdc_submit_iorq(xdcsc, rqno, XD_SUB_NOQ) != XD_ERR_AOK)
1958 int errnum, rqno, comm, errs;
1984 * registers and calculate the rqno directly from that. that worked
1997 for (rqno = 0; rqno < XDC_MAXIOPB; rqno++) {
1998 iorq = &xdcsc->reqs[rqno];
2001 iopb = &xdcsc->iopbase[rqno];
2009 printf("%s: rio #%d [", device_xname(xdcsc->sc_dev), rqno);
2029 xdc_error(xdcsc, iorq, iopb, rqno, comm) == XD_ERR_AOK)
2069 XDC_HWAIT(xdcsc, rqno);
2095 XDC_FREE(xdcsc, rqno);
2154 int rqno, int comm)
2194 XDC_HWAIT(xdcsc, rqno);
2214 XDC_HWAIT(xdcsc, rqno);
2322 int s, rqno, dummy;
2433 rqno = xdc_cmd(xdcsc, xio->cmd, xio->subfn, xd->xd_drive, xio->block,
2435 if (rqno == XD_ERR_FAIL) {
2439 xio->errnum = xdcsc->reqs[rqno].errnum;
2440 xio->tries = xdcsc->reqs[rqno].tries;
2441 XDC_DONE(xdcsc, rqno, dummy);