Lines Matching defs:rwcmdp

133 static void dadk_recorderr(struct cmpkt *pktp, struct dadkio_rwcmd *rwcmdp);
778 struct dadkio_rwcmd *rwcmdp;
785 rwcmdp = (struct dadkio_rwcmd *)(intptr_t)arg;
795 switch (rwcmdp->cmd) {
799 rw = ((rwcmdp->cmd == DADKIO_RWCMD_WRITE) ?
802 (opaque_t)rwcmdp, dev, ((flag &FKIOCTL) ?
1309 struct dadkio_rwcmd *rwcmdp;
1311 rwcmdp = (struct dadkio_rwcmd *)pktp->cp_passthru; /* ioctl packet */
1314 if (rwcmdp && (rwcmdp != (opaque_t)DADK_SILENT))
1315 rwcmdp->status.status = DADKIO_STAT_NO_ERROR;
1320 if (rwcmdp && (rwcmdp != (opaque_t)DADK_SILENT)) {
1322 dadk_recorderr(pktp, rwcmdp);
1478 dadk_recorderr(struct cmpkt *pktp, struct dadkio_rwcmd *rwcmdp)
1487 rwcmdp->status.failed_blk = rwcmdp->blkaddr +
1490 rwcmdp->status.resid = pktp->cp_bp->b_resid +
1495 rwcmdp->status.status = DADKIO_STAT_ILLEGAL_REQUEST;
1499 rwcmdp->status.status = DADKIO_STAT_ILLEGAL_ADDRESS;
1504 rwcmdp->status.status = DADKIO_STAT_MEDIUM_ERROR;
1505 rwcmdp->status.failed_blk_is_valid = 1;
1506 rwcmdp->status.resid = 0;
1509 rwcmdp->status.status = DADKIO_STAT_NOT_READY;
1513 rwcmdp->status.status = DADKIO_STAT_HARDWARE_ERROR;
1517 rwcmdp->status.status = DADKIO_STAT_NOT_SUPPORTED;
1520 if (rwcmdp->flags & DADKIO_FLAG_SILENT)
1523 rwcmdp->blkaddr, rwcmdp->status.failed_blk,
1738 struct dadkio_rwcmd *rwcmdp = (struct dadkio_rwcmd *)cmdp;
1748 bp->b_back = (struct buf *)rwcmdp; /* ioctl packet */
1752 aiov.iov_base = rwcmdp->bufaddr;
1753 aiov.iov_len = rwcmdp->buflen;
1757 uio->uio_resid = rwcmdp->buflen;
1787 dadk_dk(struct dadk *dadkp, struct dadkio_rwcmd *rwcmdp, struct buf *bp)
1798 pktp->cp_passthru = rwcmdp;