Lines Matching refs:CDB

1806 		bcopy(csio->cdb_io.cdb_ptr, &req->CDB.CDB32[0], csio->cdb_len);
1808 bcopy(csio->cdb_io.cdb_bytes, &req->CDB.CDB32[0],csio->cdb_len);
1814 * is formatted for EEDP support. If all of this is true, set CDB up
1817 eedp_flags = op_code_prot[req->CDB.CDB32[0]];
1833 * If CDB less than 32, fill in Primary Ref Tag with
1834 * low 4 bytes of LBA. If CDB is 32, tag stuff is
1842 ref_tag_addr = (uint8_t *)&req->CDB.EEDP32.
1846 req->CDB.CDB32[lba_byte + i];
1849 req->CDB.EEDP32.PrimaryReferenceTag =
1850 htole32(req->CDB.EEDP32.PrimaryReferenceTag);
1851 req->CDB.EEDP32.PrimaryApplicationTagMask =
1853 req->CDB.CDB32[1] = (req->CDB.CDB32[1] & 0x1F) |
1859 req->CDB.CDB32[10] = (req->CDB.CDB32[10] &
2513 uint8_t *ptrLBA, lba_idx, physLBA_byte, *CDB;
2522 CDB = pIO_req->CDB.CDB32;
2527 if ((pIO_req->DevHandle == sc->DD_dev_handle) && ((CDB[0] == READ_6) ||
2528 (CDB[0] == WRITE_6))) {
2535 * Get virtual LBA given in the CDB.
2537 virtLBA = ((uint64_t)(CDB[1] & 0x1F) << 16) |
2538 ((uint64_t)CDB[2] << 8) | (uint64_t)CDB[3];
2570 ptrLBA = &pIO_req->CDB.CDB32[1];
2573 ptrLBA = &pIO_req->CDB.CDB32[2];
2576 ptrLBA = &pIO_req->CDB.CDB32[3];
2593 if ((pIO_req->DevHandle == sc->DD_dev_handle) && ((CDB[0] == READ_10) ||
2594 (CDB[0] == WRITE_10) || (CDB[0] == READ_16) ||
2595 (CDB[0] == WRITE_16) || (CDB[0] == READ_12) ||
2596 (CDB[0] == WRITE_12))) {
2598 * For 16-byte CDB's, verify that the upper 4 bytes of the CDB
2600 * the else section. 10-byte and 12-byte CDB's are OK.
2602 * ready to accept 12byte CDB for Direct IOs.
2604 if ((CDB[0] == READ_10 || CDB[0] == WRITE_10) ||
2605 (CDB[0] == READ_12 || CDB[0] == WRITE_12) ||
2606 !(CDB[2] | CDB[3] | CDB[4] | CDB[5])) {
2614 * LBA in the CDB depending on command.
2616 lba_idx = ((CDB[0] == READ_12) ||
2617 (CDB[0] == WRITE_12) ||
2618 (CDB[0] == READ_10) ||
2619 (CDB[0] == WRITE_10))? 2 : 6;
2620 virtLBA = ((uint64_t)CDB[lba_idx] << 24) |
2621 ((uint64_t)CDB[lba_idx + 1] << 16) |
2622 ((uint64_t)CDB[lba_idx + 2] << 8) |
2623 (uint64_t)CDB[lba_idx + 3];
2661 &pIO_req->CDB.CDB32[lba_idx];
2665 &pIO_req->CDB.CDB32[lba_idx + 1];
2669 &pIO_req->CDB.CDB32[lba_idx + 2];
2673 &pIO_req->CDB.CDB32[lba_idx + 3];
2686 * 16-byte CDB and the upper 4 bytes of the CDB are not
2694 virtLBA = ((uint64_t)CDB[2] << 54) |
2695 ((uint64_t)CDB[3] << 48) |
2696 ((uint64_t)CDB[4] << 40) |
2697 ((uint64_t)CDB[5] << 32) |
2698 ((uint64_t)CDB[6] << 24) |
2699 ((uint64_t)CDB[7] << 16) |
2700 ((uint64_t)CDB[8] << 8) |
2701 (uint64_t)CDB[9];
2745 pIO_req->CDB.CDB32[2] = 0;
2746 pIO_req->CDB.CDB32[3] = 0;
2747 pIO_req->CDB.CDB32[4] = 0;
2748 pIO_req->CDB.CDB32[5] = 0;
2749 ptrLBA = &pIO_req->CDB.CDB32[6];
2752 ptrLBA = &pIO_req->CDB.CDB32[7];
2755 ptrLBA = &pIO_req->CDB.CDB32[8];
2758 ptrLBA = &pIO_req->CDB.CDB32[9];