Home | History | Annotate | Download | only in boot

Lines Matching defs:cdb

359 scrun(int ctlr, int target, uint8_t *cdb, int cdblen, uint8_t *buf, int len,
380 hs->sc_cdb = cdb;
487 static struct scsi_cdb6 cdb = { CMD_TEST_UNIT_READY };
495 cdb.lun = lun;
497 if (scrun(ctlr, target, (void *)&cdb, 6, NULL, 0, &lock) == 0) {
523 static struct scsi_cdb6 cdb = { CMD_REQUEST_SENSE };
533 /* ここではデーター転送数をcdbのAllocation Lengthに最低長である8バイト */
539 cdb.lun = lun;
540 cdb.len = len;
542 if (scrun(ctlr, target, (void *)&cdb, 6, buf, len, &lock) == 0) {
565 scsi_immed_command(int ctlr, int target, int lun, struct scsi_generic_cdb *cdb,
572 printf("scsi_immed_command( %d, %d, %d, cdb(%d), buf, %d): Start\n",
573 ctlr, target, lun, cdb->len, len);
576 cdb->cdb[1] |= lun << 5;
578 if (scrun(ctlr, target, (void *)&cdb->cdb[0], cdb->len, buf, len,
604 static struct scsi_cdb6 cdb = { CMD_FORMAT_UNIT, 0, 0, 0, 0, 0 };
615 cdb.lun = lun;
617 if (scrun(ctlr, target, (void *)&cdb, 6, NULL, 0, &lock) == 0) {