XY_ERR_FAIL
return del == 0 ? XY_ERR_FAIL : XY_ERR_AOK;
return XY_ERR_FAIL;
return XY_ERR_FAIL; /* XXX: need some sort of
return XY_ERR_FAIL; /* failed */
XY_ERR_FAIL)
if (res == XY_ERR_FAIL && nreset >= 2) {
xyc_reset(xycsc, 0, XY_RSET_ALL, XY_ERR_FAIL, 0);
return XY_ERR_FAIL;
if (res == XY_ERR_FAIL) {
XY_ERR_FAIL, 0) == XY_ERR_FAIL)
return XY_ERR_FAIL; /* flushes all but POLL
if (xyc_unbusy(xycsc->xyc, XYC_RESETUSEC) == XY_ERR_FAIL)
if (del == XY_ERR_FAIL) {
retval = XY_ERR_FAIL;
return XY_ERR_FAIL;
xyc_reset(xycsc, 0, XY_RSET_NONE, XY_ERR_FAIL, NULL);
if (rqno == XY_ERR_FAIL) {
case XY_ERR_FAIL:
case XY_ERR_FAIL:
return XY_ERR_FAIL;
return(del == 0 ? XY_ERR_FAIL : XY_ERR_AOK);
return(XY_ERR_FAIL);
return (XY_ERR_FAIL); /* XXX: need some sort of
return (XY_ERR_FAIL); /* failed */
if (xyc_unbusy(xycsc->xyc,XYC_RESETUSEC) == XY_ERR_FAIL)
if (res == XY_ERR_FAIL && nreset >= 2) {
xyc_reset(xycsc, 0, XY_RSET_ALL, XY_ERR_FAIL, 0);
return (XY_ERR_FAIL);
if (res == XY_ERR_FAIL) {
XY_ERR_FAIL,
0) == XY_ERR_FAIL)
return (XY_ERR_FAIL); /* flushes all but POLL
if (xyc_unbusy(xycsc->xyc, XYC_RESETUSEC) == XY_ERR_FAIL)
if (del == XY_ERR_FAIL) {
retval = XY_ERR_FAIL;
return (XY_ERR_FAIL);
xyc_reset(xycsc, 0, XY_RSET_NONE, XY_ERR_FAIL, NULL);
if (rqno == XY_ERR_FAIL) {
case XY_ERR_FAIL:
case XY_ERR_FAIL: case XY_ERR_DERR: case XY_ERR_IPEN:
return(XY_ERR_FAIL);
return ((xyc_unbusy(xyc, XYC_RESETUSEC) != XY_ERR_FAIL) ? 0 : EIO);