/original-bsd/sys/luna68k/stand/ |
H A D | st.c | 326 cdb->cdb[0] = CMD_READ; 331 cdb->cdb[4] = (nblk & 0x0000ff); 378 cdb->cdb[0] = CMD_WRITE; 383 cdb->cdb[4] = (nblk & 0x0000ff); 428 cdb->cdb[0] = CMD_REWIND; 431 cdb->cdb[2] = 0; 432 cdb->cdb[3] = 0; 433 cdb->cdb[4] = 0; 472 cdb->cdb[0] = CMD_WRITE_FILEMARK; 505 cdb->cdb[0] = CMD_SPACE; [all …]
|
H A D | scsi.c | 146 cdb->cdb[0] = CMD_READ_EXT; 148 cdb->cdb[2] = (blk & 0xff000000) >> 24; 149 cdb->cdb[3] = (blk & 0x00ff0000) >> 16; 150 cdb->cdb[4] = (blk & 0x0000ff00) >> 8; 151 cdb->cdb[5] = (blk & 0x000000ff); 153 cdb->cdb[7] = (nblk & 0xff00) >> 8; 154 cdb->cdb[8] = (nblk & 0x00ff); 181 cdb->cdb[0] = CMD_WRITE_EXT; 183 cdb->cdb[2] = (blk & 0xff000000) >> 24; 184 cdb->cdb[3] = (blk & 0x00ff0000) >> 16; [all …]
|
H A D | sd.c | 248 cdb->cdb[2] = (blk & 0xff000000) >> 24; 249 cdb->cdb[3] = (blk & 0x00ff0000) >> 16; 250 cdb->cdb[4] = (blk & 0x0000ff00) >> 8; 251 cdb->cdb[5] = (blk & 0x000000ff); 254 cdb->cdb[8] = ((nblk >> DEV_BSHIFT) & 0x00ff); 307 cdb->cdb[2] = (blk & 0xff000000) >> 24; 308 cdb->cdb[3] = (blk & 0x00ff0000) >> 16; 309 cdb->cdb[4] = (blk & 0x0000ff00) >> 8; 310 cdb->cdb[5] = (blk & 0x000000ff); 312 cdb->cdb[7] = (nblk & 0xff00) >> 8; [all …]
|
H A D | sc.c | 195 scrun(ctlr, slave, cdb, cdblen, buf, len, lock) in scrun() argument 197 u_char *cdb; 214 hs->sc_cdb = cdb; 331 cdb.lun = unit; 376 cdb.lun = unit; 377 cdb.len = len; 404 struct scsi_fmt_cdb *cdb; 412 ctlr, slave, unit, cdb->len, len); 415 cdb->cdb[1] |= unit << 5; 417 if (!(scrun(ctlr, slave, &cdb->cdb[0], cdb->len, buf, len, &lock))) { [all …]
|
H A D | ufs_disksubr.c | 42 static struct scsi_fmt_cdb cdb = { local 54 if (scsi_immed_command(0, dev, 0, &cdb, bp, DEV_BSIZE) != 0) {
|
/original-bsd/sys/hp300/stand/ |
H A D | scsi.c | 355 return (scsiicmd(hs, slave, &cdb, sizeof(cdb), (u_char *)0, 0, 368 cdb.len = len; 369 return (scsiicmd(hs, slave, &cdb, sizeof(cdb), buf, len, 382 return (scsiicmd(hs, slave, &cdb, sizeof(cdb), buf, len, 397 bzero(&cdb, sizeof(cdb)); 399 cdb.lbah = blk >> 24; 402 cdb.lbal = blk; 405 return (scsiicmd(hs, slave, &cdb, sizeof(cdb), buf, len, 420 bzero(&cdb, sizeof(cdb)); 425 cdb.lbal = blk; [all …]
|
/original-bsd/sys/luna68k/dev/ |
H A D | st.c | 553 cdb->cdb[0] = CMD_REWIND; 557 cdb->cdb[2] = 0; 558 cdb->cdb[3] = 0; 559 cdb->cdb[4] = 0; 561 cdb->cdb[5] = 0; /* unknown setup */ 599 cdb->cdb[0] = CMD_WRITE_FILEMARK; 601 cdb->cdb[1] = 0; 603 cdb->cdb[2] = 0; 604 cdb->cdb[3] = 0; 605 cdb->cdb[4] = marks; [all …]
|
H A D | sc.c | 516 if (dq->dq_cdb->cdb[0] & 0xE0) { 922 scsi_command(hq->dq_forw->dq_cdb->cdb[0])); 989 scsi_command(dq->dq_cdb->cdb[0])); 1023 scsi_immed_command(ctlr, slave, lun, cdb, buf, len) in scsi_immed_command() argument 1025 struct scsi_fmt_cdb *cdb; 1038 ctlr, slave, lun, cdb->len, scsi_command(cdb->cdb[0]), len); 1049 dq->dq_cdb = cdb; 1100 &cdb, (u_char *) 0, 0)) == SC_BUSY) { 1124 req_cmd.cdb[1] = lun; 1125 req_cmd.cdb[4] = len; [all …]
|
H A D | sd.c | 337 *(int *)(&cmd->cdb[2]) = bp->b_lba; 338 *(u_short *)(&cmd->cdb[7]) = howmany(bp->b_bcount, DEV_BSIZE);
|
H A D | scsireg.h | 425 u_char cdb[28]; /* cdb to use on next read/write */ member
|
H A D | screg.h | 425 u_char cdb[28]; /* cdb to use on next read/write */ member
|
/original-bsd/sys/hp300/dev/ |
H A D | scsi.c | 780 cdb.lun = unit; 794 cdb.lun = unit; 795 cdb.len = len; 808 cdb->cdb[1] |= unit << 5; 809 return (scsiicmd(hs, slave, cdb->cdb, cdb->len, buf, len, 833 bzero(&cdb, sizeof(cdb)); 835 cdb.lun = unit; 863 bzero(&cdb, sizeof(cdb)); 927 cdb->cdb[1] |= unit << 5; 957 if (ixfer_out(hd, cdb->len, cdb->cdb)) [all …]
|
H A D | st.c | 243 st_inq.cdb[4] = 0x05; 274 st_inq.cdb[4] = inqlen; 408 modsense.cdb[4] = modlen; 414 modsense.cdb[4] = modlen; 508 modsel.cdb[4] = modlen; 753 cmd->cdb[1] &= 0xfe; 785 cmd->len, cmd->cdb[0], cmd->cdb[1], cmd->cdb[2], 786 cmd->cdb[3], cmd->cdb[4], cmd->cdb[5]); 1121 cmd->cdb[2] = cmd->cdb[3] = cmd->cdb[4] = cmd->cdb[5] = 0; 1142 cmd->cdb[5] |= 0x80; [all …]
|
H A D | ac.c | 298 bzero((caddr_t)cmd->cdb, sizeof(cmd->cdb)); 299 cmd->cdb[0] = command; 307 *(short *)&cmd->cdb[2] = 0; 308 *(short *)&cmd->cdb[4] = 311 cmd->cdb[7] = buflen >> 16; 312 cmd->cdb[8] = buflen >> 8; 313 cmd->cdb[9] = buflen; 317 cmd->cdb[2] = 0x3F; /* all pages */ 318 cmd->cdb[4] = buflen; 322 *(short *)&cmd->cdb[2] = sc->sc_picker; [all …]
|
H A D | sd.c | 823 if (sc->sc_format_pid >= 0 && legal_cmds[sdcmd[unit].cdb[0]] > 0) { 873 *(int *)(&cmd->cdb[2]) = bp->b_cylin; 875 *(u_short *)(&cmd->cdb[7]) = pad; 1064 if (legal_cmds[((struct scsi_fmt_cdb *)data)->cdb[0]] == 0)
|
H A D | scsireg.h | 441 u_char cdb[28]; /* cdb to use on next read/write */ member
|
/original-bsd/sys/dev/scsi/ |
H A D | sd.c | 580 sdigo(sc0, cdb) in sdigo() argument 582 struct scsi_cdb *cdb; 616 sdgo(sc0, cdb) in sdgo() argument 627 *cdb = sc->sc_cmd; 637 CDB10(cdb)->cdb_lbal = u; 638 CDB10(cdb)->cdb_xxx = 0; 775 sc->sc_cmd = *cdb; in sdioctl() 779 #undef cdb in sdioctl() 832 struct scsi_cdb cdb; in sddump() local 857 CDB10(&cdb)->cdb_xxx = 0; in sddump() [all …]
|
H A D | scsi_subr.c | 106 struct scsi_cdb cdb; local 108 CDB6(&cdb)->cdb_cmd = CMD_TEST_UNIT_READY; 109 CDB6(&cdb)->cdb_lun_lbah = unit << 5; 110 *(short *)&CDB6(&cdb)->cdb_lbam = 0; 111 *(short *)&CDB6(&cdb)->cdb_len = 0; 126 struct scsi_cdb cdb; local 128 CDB6(&cdb)->cdb_cmd = CMD_REQUEST_SENSE; 129 CDB6(&cdb)->cdb_lun_lbah = unit << 5; 130 *(short *)&CDB6(&cdb)->cdb_lbam = 0; 131 CDB6(&cdb)->cdb_len = len; [all …]
|
H A D | scsi.h | 60 #define CDB6(cdb) ((struct scsi_cdb6 *)&(cdb)->cdb_bytes[0]) argument 61 #define CDB10(cdb) ((struct scsi_cdb10 *)&(cdb)->cdb_bytes[0]) argument
|
/original-bsd/sys/sparc/sbus/ |
H A D | esp.c | 599 espselect(sc, targ, cdb) in espselect() argument 602 register struct scsi_cdb *cdb; 609 sc->sc_curcdb = cdb; 628 esp->esp_fifo = cdb->cdb_bytes[i]; 652 register struct scsi_cdb *cdb; local 961 cdb = sc->sc_curcdb; 964 esp->esp_fifo = cdb->cdb_bytes[i]; 1005 struct scsi_cdb *cdb; 1039 espselect(sc, targ, cdb); 1106 espdump(hba, targ, cdb, buf, len) in espdump() argument [all …]
|
/original-bsd/sbin/scsiformat/ |
H A D | scsiformat.c | 585 do_command(fd, cdb, buf, len) in do_command() argument 587 struct scsi_cdb *cdb; 603 ret = ioctl(fd, SDIOCSCSICOMMAND, cdb); 610 u_char cdb[28]; member 614 sc.len = SCSICMDLEN(cdb->cdb_bytes[0]); 615 bcopy(cdb->cdb_bytes, sc.cdb, sc.len);
|
/original-bsd/sys/pmax/dev/ |
H A D | rz.c | 170 0, 0, (ScsiGroup0Cmd *)sc->sc_cdb.cdb); 177 sc->sc_cmd.cmd = sc->sc_cdb.cdb; 207 cp = (ScsiStartStopCmd *)sc->sc_cdb.cdb; 238 (ScsiGroup1Cmd *)sc->sc_cdb.cdb); 285 (ScsiGroup0Cmd *)sc->sc_cdb.cdb); 548 sc->sc_cmd.cmd = sc->sc_cdb.cdb; 650 (ScsiGroup0Cmd *)sc->sc_cdb.cdb); 917 if (legal_cmds[((struct scsi_fmt_cdb *)data)->cdb[0]] == 0)
|
H A D | tz.c | 103 (ScsiGroup0Cmd *)sc->sc_cdb.cdb); 121 (ScsiGroup0Cmd *)sc->sc_cdb.cdb); 223 c = (ScsiGroup0Cmd *)sc->sc_cdb.cdb; 281 sc->sc_cmd.cmd = sc->sc_cdb.cdb; 448 (ScsiGroup0Cmd *)sc->sc_cdb.cdb);
|
H A D | scsi.h | 509 u_char cdb[28]; /* cdb to use on next read/write */ member
|