cdb 232 drivers/ata/acard-ahci.c memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); cdb 1646 drivers/ata/libahci.c memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); cdb 1548 drivers/ata/libata-core.c struct ata_taskfile *tf, const u8 *cdb, cdb 1595 drivers/ata/libata-core.c if (cdb) cdb 1596 drivers/ata/libata-core.c memcpy(qc->cdb, cdb, ATAPI_CDB_LEN); cdb 1724 drivers/ata/libata-core.c struct ata_taskfile *tf, const u8 *cdb, cdb 1738 drivers/ata/libata-core.c return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, cdb 1493 drivers/ata/libata-eh.c u8 cdb[ATAPI_CDB_LEN] = { TEST_UNIT_READY, 0, 0, 0, 0, 0 }; cdb 1503 drivers/ata/libata-eh.c err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); cdb 1577 drivers/ata/libata-eh.c u8 cdb[ATAPI_CDB_LEN] = cdb 1608 drivers/ata/libata-eh.c return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, cdb 2539 drivers/ata/libata-eh.c const u8 *cdb = qc->cdb; cdb 2543 drivers/ata/libata-eh.c cdb = qc->scsicmd->cmnd; cdb 2547 drivers/ata/libata-eh.c cdb, cdb_len); cdb 1462 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 1473 drivers/ata/libata-scsi.c if (cdb[1] & 0x1) { cdb 1476 drivers/ata/libata-scsi.c if (cdb[4] & 0x2) { cdb 1481 drivers/ata/libata-scsi.c if (((cdb[4] >> 4) & 0xf) != 0) { cdb 1487 drivers/ata/libata-scsi.c if (cdb[4] & 0x1) { cdb 1580 drivers/ata/libata-scsi.c static void scsi_6_lba_len(const u8 *cdb, u64 *plba, u32 *plen) cdb 1587 drivers/ata/libata-scsi.c lba |= ((u64)(cdb[1] & 0x1f)) << 16; cdb 1588 drivers/ata/libata-scsi.c lba |= ((u64)cdb[2]) << 8; cdb 1589 drivers/ata/libata-scsi.c lba |= ((u64)cdb[3]); cdb 1591 drivers/ata/libata-scsi.c len = cdb[4]; cdb 1607 drivers/ata/libata-scsi.c static void scsi_10_lba_len(const u8 *cdb, u64 *plba, u32 *plen) cdb 1614 drivers/ata/libata-scsi.c lba |= ((u64)cdb[2]) << 24; cdb 1615 drivers/ata/libata-scsi.c lba |= ((u64)cdb[3]) << 16; cdb 1616 drivers/ata/libata-scsi.c lba |= ((u64)cdb[4]) << 8; cdb 1617 drivers/ata/libata-scsi.c lba |= ((u64)cdb[5]); cdb 1619 drivers/ata/libata-scsi.c len |= ((u32)cdb[7]) << 8; cdb 1620 drivers/ata/libata-scsi.c len |= ((u32)cdb[8]); cdb 1636 drivers/ata/libata-scsi.c static void scsi_16_lba_len(const u8 *cdb, u64 *plba, u32 *plen) cdb 1643 drivers/ata/libata-scsi.c lba |= ((u64)cdb[2]) << 56; cdb 1644 drivers/ata/libata-scsi.c lba |= ((u64)cdb[3]) << 48; cdb 1645 drivers/ata/libata-scsi.c lba |= ((u64)cdb[4]) << 40; cdb 1646 drivers/ata/libata-scsi.c lba |= ((u64)cdb[5]) << 32; cdb 1647 drivers/ata/libata-scsi.c lba |= ((u64)cdb[6]) << 24; cdb 1648 drivers/ata/libata-scsi.c lba |= ((u64)cdb[7]) << 16; cdb 1649 drivers/ata/libata-scsi.c lba |= ((u64)cdb[8]) << 8; cdb 1650 drivers/ata/libata-scsi.c lba |= ((u64)cdb[9]); cdb 1652 drivers/ata/libata-scsi.c len |= ((u32)cdb[10]) << 24; cdb 1653 drivers/ata/libata-scsi.c len |= ((u32)cdb[11]) << 16; cdb 1654 drivers/ata/libata-scsi.c len |= ((u32)cdb[12]) << 8; cdb 1655 drivers/ata/libata-scsi.c len |= ((u32)cdb[13]); cdb 1679 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 1687 drivers/ata/libata-scsi.c if (cdb[0] == VERIFY) { cdb 1692 drivers/ata/libata-scsi.c scsi_10_lba_len(cdb, &block, &n_block); cdb 1693 drivers/ata/libata-scsi.c } else if (cdb[0] == VERIFY_16) { cdb 1698 drivers/ata/libata-scsi.c scsi_16_lba_len(cdb, &block, &n_block); cdb 1825 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 1834 drivers/ata/libata-scsi.c if (cdb[0] == WRITE_10 || cdb[0] == WRITE_6 || cdb[0] == WRITE_16) cdb 1838 drivers/ata/libata-scsi.c switch (cdb[0]) { cdb 1845 drivers/ata/libata-scsi.c scsi_10_lba_len(cdb, &block, &n_block); cdb 1846 drivers/ata/libata-scsi.c if (cdb[1] & (1 << 3)) cdb 1857 drivers/ata/libata-scsi.c scsi_6_lba_len(cdb, &block, &n_block); cdb 1873 drivers/ata/libata-scsi.c scsi_16_lba_len(cdb, &block, &n_block); cdb 1874 drivers/ata/libata-scsi.c if (cdb[1] & (1 << 3)) cdb 1935 drivers/ata/libata-scsi.c u8 *cdb = cmd->cmnd; cdb 1947 drivers/ata/libata-scsi.c if (((cdb[0] == ATA_16) || (cdb[0] == ATA_12)) && cdb 1948 drivers/ata/libata-scsi.c ((cdb[2] & 0x20) || need_sense)) cdb 2834 drivers/ata/libata-scsi.c memset(&qc->cdb, 0, qc->dev->cdb_len); cdb 2835 drivers/ata/libata-scsi.c qc->cdb[0] = REQUEST_SENSE; cdb 2836 drivers/ata/libata-scsi.c qc->cdb[4] = SCSI_SENSE_BUFFERSIZE; cdb 2911 drivers/ata/libata-scsi.c if (qc->cdb[0] == ALLOW_MEDIUM_REMOVAL && qc->dev->sdev) cdb 2957 drivers/ata/libata-scsi.c memset(qc->cdb, 0, dev->cdb_len); cdb 2958 drivers/ata/libata-scsi.c memcpy(qc->cdb, scmd->cmnd, scmd->cmd_len); cdb 3147 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 3152 drivers/ata/libata-scsi.c if (cdb[0] == VARIABLE_LENGTH_CMD) cdb 3155 drivers/ata/libata-scsi.c tf->protocol = ata_scsi_map_proto(cdb[1 + cdb_offset]); cdb 3161 drivers/ata/libata-scsi.c if (ata_is_ncq(tf->protocol) && (cdb[2 + cdb_offset] & 0x3) == 0) cdb 3171 drivers/ata/libata-scsi.c if (cdb[0] == ATA_16) { cdb 3177 drivers/ata/libata-scsi.c if (cdb[1] & 0x01) { cdb 3178 drivers/ata/libata-scsi.c tf->hob_feature = cdb[3]; cdb 3179 drivers/ata/libata-scsi.c tf->hob_nsect = cdb[5]; cdb 3180 drivers/ata/libata-scsi.c tf->hob_lbal = cdb[7]; cdb 3181 drivers/ata/libata-scsi.c tf->hob_lbam = cdb[9]; cdb 3182 drivers/ata/libata-scsi.c tf->hob_lbah = cdb[11]; cdb 3190 drivers/ata/libata-scsi.c tf->feature = cdb[4]; cdb 3191 drivers/ata/libata-scsi.c tf->nsect = cdb[6]; cdb 3192 drivers/ata/libata-scsi.c tf->lbal = cdb[8]; cdb 3193 drivers/ata/libata-scsi.c tf->lbam = cdb[10]; cdb 3194 drivers/ata/libata-scsi.c tf->lbah = cdb[12]; cdb 3195 drivers/ata/libata-scsi.c tf->device = cdb[13]; cdb 3196 drivers/ata/libata-scsi.c tf->command = cdb[14]; cdb 3197 drivers/ata/libata-scsi.c } else if (cdb[0] == ATA_12) { cdb 3203 drivers/ata/libata-scsi.c tf->feature = cdb[3]; cdb 3204 drivers/ata/libata-scsi.c tf->nsect = cdb[4]; cdb 3205 drivers/ata/libata-scsi.c tf->lbal = cdb[5]; cdb 3206 drivers/ata/libata-scsi.c tf->lbam = cdb[6]; cdb 3207 drivers/ata/libata-scsi.c tf->lbah = cdb[7]; cdb 3208 drivers/ata/libata-scsi.c tf->device = cdb[8]; cdb 3209 drivers/ata/libata-scsi.c tf->command = cdb[9]; cdb 3216 drivers/ata/libata-scsi.c if (cdb[10] & 0x01) { cdb 3217 drivers/ata/libata-scsi.c tf->hob_feature = cdb[20]; cdb 3218 drivers/ata/libata-scsi.c tf->hob_nsect = cdb[22]; cdb 3219 drivers/ata/libata-scsi.c tf->hob_lbal = cdb[16]; cdb 3220 drivers/ata/libata-scsi.c tf->hob_lbam = cdb[15]; cdb 3221 drivers/ata/libata-scsi.c tf->hob_lbah = cdb[14]; cdb 3226 drivers/ata/libata-scsi.c tf->feature = cdb[21]; cdb 3227 drivers/ata/libata-scsi.c tf->nsect = cdb[23]; cdb 3228 drivers/ata/libata-scsi.c tf->lbal = cdb[19]; cdb 3229 drivers/ata/libata-scsi.c tf->lbam = cdb[18]; cdb 3230 drivers/ata/libata-scsi.c tf->lbah = cdb[17]; cdb 3231 drivers/ata/libata-scsi.c tf->device = cdb[24]; cdb 3232 drivers/ata/libata-scsi.c tf->command = cdb[25]; cdb 3233 drivers/ata/libata-scsi.c tf->auxiliary = get_unaligned_be32(&cdb[28]); cdb 3328 drivers/ata/libata-scsi.c if ((cdb[1] & 0xe0) && !is_multi_taskfile(tf)) { cdb 3334 drivers/ata/libata-scsi.c unsigned int multi_count = 1 << (cdb[1] >> 5); cdb 3353 drivers/ata/libata-scsi.c fp = (cdb[0] == ATA_16) ? 4 : 3; cdb 3373 drivers/ata/libata-scsi.c fp = (cdb[0] == ATA_16) ? 14 : 9; cdb 3456 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 3463 drivers/ata/libata-scsi.c u8 unmap = cdb[1] & 0x8; cdb 3481 drivers/ata/libata-scsi.c scsi_16_lba_len(cdb, &block, &n_block); cdb 3565 drivers/ata/libata-scsi.c u8 *cdb = args->cmd->cmnd; cdb 3569 drivers/ata/libata-scsi.c if (cdb[2] != 1) { cdb 3570 drivers/ata/libata-scsi.c ata_dev_warn(dev, "invalid command format %d\n", cdb[2]); cdb 3574 drivers/ata/libata-scsi.c switch (cdb[3]) { cdb 3698 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 3710 drivers/ata/libata-scsi.c scsi_16_lba_len(cdb, &block, &n_block); cdb 3716 drivers/ata/libata-scsi.c sa = cdb[1] & 0x1f; cdb 3731 drivers/ata/libata-scsi.c options = cdb[14] & 0xbf; cdb 3782 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 3793 drivers/ata/libata-scsi.c sa = cdb[1] & 0x1f; cdb 3800 drivers/ata/libata-scsi.c scsi_16_lba_len(cdb, &block, &n_block); cdb 3808 drivers/ata/libata-scsi.c all = cdb[14] & 0x1; cdb 3980 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 3990 drivers/ata/libata-scsi.c six_byte = (cdb[0] == MODE_SELECT); cdb 3997 drivers/ata/libata-scsi.c len = cdb[4]; cdb 4005 drivers/ata/libata-scsi.c len = (cdb[7] << 8) + cdb[8]; cdb 4010 drivers/ata/libata-scsi.c if ((cdb[1] & 0x11) != 0x10) { cdb 4012 drivers/ata/libata-scsi.c bp = (cdb[1] & 0x01) ? 1 : 5; cdb 4138 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 4140 drivers/ata/libata-scsi.c u8 secp = cdb[1]; cdb 4141 drivers/ata/libata-scsi.c bool send = (cdb[0] == SECURITY_PROTOCOL_OUT); cdb 4142 drivers/ata/libata-scsi.c u16 spsp = get_unaligned_be16(&cdb[2]); cdb 4143 drivers/ata/libata-scsi.c u32 len = get_unaligned_be32(&cdb[6]); cdb 4154 drivers/ata/libata-scsi.c if (cdb[4] & 7) { /* INC_512 */ cdb 4204 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; cdb 4205 drivers/ata/libata-scsi.c const u16 sa = get_unaligned_be16(&cdb[8]); cdb 741 drivers/ata/libata-sff.c ap->ops->sff_data_xfer(qc, qc->cdb, qc->dev->cdb_len, 1); cdb 38 drivers/ata/libata-zpodd.c static const char cdb[ATAPI_CDB_LEN] = { GPCMD_START_STOP_UNIT, cdb 49 drivers/ata/libata-zpodd.c return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); cdb 59 drivers/ata/libata-zpodd.c static const char cdb[ATAPI_CDB_LEN] = { GPCMD_GET_CONFIGURATION, cdb 78 drivers/ata/libata-zpodd.c ret = ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, cdb 50 drivers/ata/libata.h struct ata_taskfile *tf, const u8 *cdb, cdb 54 drivers/ata/libata.h struct ata_taskfile *tf, const u8 *cdb, cdb 336 drivers/ata/pata_ali.c if (atapi_cmd_type(qc->cdb[0]) == ATAPI_MISC) cdb 535 drivers/ata/sata_fsl.c memcpy((void *)&cd->acmd, qc->cdb, qc->dev->cdb_len); cdb 230 drivers/ata/sata_inic162x.c u8 cdb[ATAPI_CDB_LEN]; cdb 453 drivers/ata/sata_inic162x.c if (atapi_cmd_type(qc->cdb[0]) == READ) cdb 526 drivers/ata/sata_inic162x.c memcpy(pkt->cdb, qc->cdb, ATAPI_CDB_LEN); cdb 528 drivers/ata/sata_inic162x.c offsetof(struct inic_pkt, cdb)); cdb 490 drivers/ata/sata_promise.c u8 *cdb = qc->cdb; cdb 558 drivers/ata/sata_promise.c memcpy(buf+31, cdb, cdb_len); cdb 252 drivers/ata/sata_sil24.c u8 cdb[16]; cdb 861 drivers/ata/sata_sil24.c memset(cb->atapi.cdb, 0, sizeof(cb->atapi.cdb)); cdb 862 drivers/ata/sata_sil24.c memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); cdb 407 drivers/block/skd_main.c scsi_req->cdb[0] = READ_10; cdb 409 drivers/block/skd_main.c scsi_req->cdb[0] = WRITE_10; cdb 411 drivers/block/skd_main.c scsi_req->cdb[1] = 0; cdb 412 drivers/block/skd_main.c scsi_req->cdb[2] = (lba & 0xff000000) >> 24; cdb 413 drivers/block/skd_main.c scsi_req->cdb[3] = (lba & 0xff0000) >> 16; cdb 414 drivers/block/skd_main.c scsi_req->cdb[4] = (lba & 0xff00) >> 8; cdb 415 drivers/block/skd_main.c scsi_req->cdb[5] = (lba & 0xff); cdb 416 drivers/block/skd_main.c scsi_req->cdb[6] = 0; cdb 417 drivers/block/skd_main.c scsi_req->cdb[7] = (count & 0xff00) >> 8; cdb 418 drivers/block/skd_main.c scsi_req->cdb[8] = count & 0xff; cdb 419 drivers/block/skd_main.c scsi_req->cdb[9] = 0; cdb 428 drivers/block/skd_main.c scsi_req->cdb[0] = SYNCHRONIZE_CACHE; cdb 429 drivers/block/skd_main.c scsi_req->cdb[1] = 0; cdb 430 drivers/block/skd_main.c scsi_req->cdb[2] = 0; cdb 431 drivers/block/skd_main.c scsi_req->cdb[3] = 0; cdb 432 drivers/block/skd_main.c scsi_req->cdb[4] = 0; cdb 433 drivers/block/skd_main.c scsi_req->cdb[5] = 0; cdb 434 drivers/block/skd_main.c scsi_req->cdb[6] = 0; cdb 435 drivers/block/skd_main.c scsi_req->cdb[7] = 0; cdb 436 drivers/block/skd_main.c scsi_req->cdb[8] = 0; cdb 437 drivers/block/skd_main.c scsi_req->cdb[9] = 0; cdb 571 drivers/block/skd_main.c scsi_req->cdb[1] |= SKD_FUA_NV; cdb 933 drivers/block/skd_main.c memset(scsi->cdb, 0, sizeof(scsi->cdb)); cdb 937 drivers/block/skd_main.c scsi->cdb[0] = TEST_UNIT_READY; cdb 943 drivers/block/skd_main.c scsi->cdb[0] = READ_CAPACITY; cdb 949 drivers/block/skd_main.c scsi->cdb[0] = INQUIRY; cdb 950 drivers/block/skd_main.c scsi->cdb[1] = 0x01; /* evpd */ cdb 951 drivers/block/skd_main.c scsi->cdb[2] = 0x80; /* serial number page */ cdb 952 drivers/block/skd_main.c scsi->cdb[4] = 0x10; cdb 958 drivers/block/skd_main.c scsi->cdb[0] = SYNCHRONIZE_CACHE; cdb 964 drivers/block/skd_main.c scsi->cdb[0] = WRITE_BUFFER; cdb 965 drivers/block/skd_main.c scsi->cdb[1] = 0x02; cdb 966 drivers/block/skd_main.c scsi->cdb[7] = (WR_BUF_SIZE & 0xFF00) >> 8; cdb 967 drivers/block/skd_main.c scsi->cdb[8] = WR_BUF_SIZE & 0xFF; cdb 976 drivers/block/skd_main.c scsi->cdb[0] = READ_BUFFER; cdb 977 drivers/block/skd_main.c scsi->cdb[1] = 0x02; cdb 978 drivers/block/skd_main.c scsi->cdb[7] = (WR_BUF_SIZE & 0xFF00) >> 8; cdb 979 drivers/block/skd_main.c scsi->cdb[8] = WR_BUF_SIZE & 0xFF; cdb 1040 drivers/block/skd_main.c dev_dbg(&skdev->pdev->dev, "complete internal %x\n", scsi->cdb[0]); cdb 1055 drivers/block/skd_main.c switch (scsi->cdb[0]) { cdb 298 drivers/block/skd_s1120.h unsigned char cdb[16]; cdb 325 drivers/dma/fsl_raid.c u32 cdb; cdb 347 drivers/dma/fsl_raid.c cdb = FSL_RE_XOR_OPCODE << FSL_RE_CDB_OPCODE_SHIFT; cdb 348 drivers/dma/fsl_raid.c cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; cdb 349 drivers/dma/fsl_raid.c cdb |= FSL_RE_BLOCK_SIZE << FSL_RE_CDB_BLKSIZE_SHIFT; cdb 350 drivers/dma/fsl_raid.c cdb |= FSL_RE_INTR_ON_ERROR << FSL_RE_CDB_ERROR_SHIFT; cdb 351 drivers/dma/fsl_raid.c cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; cdb 353 drivers/dma/fsl_raid.c xor->cdb32 = cdb; cdb 412 drivers/dma/fsl_raid.c u32 cdb; cdb 466 drivers/dma/fsl_raid.c cdb = FSL_RE_PQ_OPCODE << FSL_RE_CDB_OPCODE_SHIFT; cdb 467 drivers/dma/fsl_raid.c cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; cdb 468 drivers/dma/fsl_raid.c cdb |= FSL_RE_BLOCK_SIZE << FSL_RE_CDB_BLKSIZE_SHIFT; cdb 469 drivers/dma/fsl_raid.c cdb |= FSL_RE_BUFFER_OUTPUT << FSL_RE_CDB_BUFFER_SHIFT; cdb 470 drivers/dma/fsl_raid.c cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; cdb 473 drivers/dma/fsl_raid.c pq->cdb32 = cdb; cdb 535 drivers/dma/fsl_raid.c u32 cdb; cdb 550 drivers/dma/fsl_raid.c cdb = FSL_RE_MOVE_OPCODE << FSL_RE_CDB_OPCODE_SHIFT; cdb 551 drivers/dma/fsl_raid.c cdb |= FSL_RE_BLOCK_SIZE << FSL_RE_CDB_BLKSIZE_SHIFT; cdb 552 drivers/dma/fsl_raid.c cdb |= FSL_RE_INTR_ON_ERROR << FSL_RE_CDB_ERROR_SHIFT; cdb 553 drivers/dma/fsl_raid.c cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; cdb 556 drivers/dma/fsl_raid.c move->cdb32 = cdb; cdb 131 drivers/dma/ppc4xx/adma.c struct dma_cdb *cdb; cdb 138 drivers/dma/ppc4xx/adma.c cdb = block; cdb 145 drivers/dma/ppc4xx/adma.c cdb, chan->device->id, cdb 146 drivers/dma/ppc4xx/adma.c cdb->attr, cdb->opc, le32_to_cpu(cdb->cnt), cdb 147 drivers/dma/ppc4xx/adma.c le32_to_cpu(cdb->sg1u), le32_to_cpu(cdb->sg1l), cdb 148 drivers/dma/ppc4xx/adma.c le32_to_cpu(cdb->sg2u), le32_to_cpu(cdb->sg2l), cdb 149 drivers/dma/ppc4xx/adma.c le32_to_cpu(cdb->sg3u), le32_to_cpu(cdb->sg3l) cdb 904 drivers/dma/ppc4xx/adma.c struct dma_cdb *cdb; cdb 914 drivers/dma/ppc4xx/adma.c cdb = (struct dma_cdb *)&p[i - cdb 920 drivers/dma/ppc4xx/adma.c cdb->opc = 0; cdb 929 drivers/dma/ppc4xx/adma.c if (le32_to_cpu(cdb->sg1u) & cdb 1515 drivers/dma/ppc4xx/adma.c struct dma_cdb *cdb = desc->hw_desc; cdb 1516 drivers/dma/ppc4xx/adma.c if (cdb->opc == DMA_CDB_OPC_DCHECK128) cdb 2385 drivers/infiniband/ulp/srp/ib_srp.c memcpy(cmd->cdb, scmnd->cmnd, scmnd->cmd_len); cdb 2386 drivers/infiniband/ulp/srp/ib_srp.c if (unlikely(scmnd->cmd_len > sizeof(cmd->cdb))) { cdb 2387 drivers/infiniband/ulp/srp/ib_srp.c cmd->add_cdb_len = round_up(scmnd->cmd_len - sizeof(cmd->cdb), cdb 3792 drivers/infiniband/ulp/srp/ib_srp.c target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; cdb 1530 drivers/infiniband/ulp/srpt/ib_srpt.c rc = target_submit_cmd_map_sgls(cmd, ch->sess, srp_cmd->cdb, cdb 569 drivers/isdn/capi/capiutil.c static _cdebbuf *bufprint(_cdebbuf *cdb, char *fmt, ...) cdb 574 drivers/isdn/capi/capiutil.c if (!cdb) cdb 577 drivers/isdn/capi/capiutil.c r = cdb->size - cdb->pos; cdb 578 drivers/isdn/capi/capiutil.c n = vsnprintf(cdb->p, r, fmt, f); cdb 582 drivers/isdn/capi/capiutil.c size_t ns = 2 * cdb->size; cdb 585 drivers/isdn/capi/capiutil.c while ((ns - cdb->pos) <= n) cdb 589 drivers/isdn/capi/capiutil.c cdebbuf_free(cdb); cdb 592 drivers/isdn/capi/capiutil.c memcpy(nb, cdb->buf, cdb->pos); cdb 593 drivers/isdn/capi/capiutil.c kfree(cdb->buf); cdb 594 drivers/isdn/capi/capiutil.c nb[cdb->pos] = 0; cdb 595 drivers/isdn/capi/capiutil.c cdb->buf = nb; cdb 596 drivers/isdn/capi/capiutil.c cdb->p = cdb->buf + cdb->pos; cdb 597 drivers/isdn/capi/capiutil.c cdb->size = ns; cdb 599 drivers/isdn/capi/capiutil.c r = cdb->size - cdb->pos; cdb 600 drivers/isdn/capi/capiutil.c n = vsnprintf(cdb->p, r, fmt, f); cdb 603 drivers/isdn/capi/capiutil.c cdb->p += n; cdb 604 drivers/isdn/capi/capiutil.c cdb->pos += n; cdb 605 drivers/isdn/capi/capiutil.c return cdb; cdb 608 drivers/isdn/capi/capiutil.c static _cdebbuf *printstructlen(_cdebbuf *cdb, u8 *m, unsigned len) cdb 612 drivers/isdn/capi/capiutil.c if (!cdb) cdb 617 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, ">"); cdb 618 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%c", *m); cdb 622 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "<%02x", *m); cdb 624 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, " %02x", *m); cdb 628 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, ">"); cdb 629 drivers/isdn/capi/capiutil.c return cdb; cdb 632 drivers/isdn/capi/capiutil.c static _cdebbuf *printstruct(_cdebbuf *cdb, u8 *m) cdb 643 drivers/isdn/capi/capiutil.c cdb = printstructlen(cdb, m, len); cdb 644 drivers/isdn/capi/capiutil.c return cdb; cdb 650 drivers/isdn/capi/capiutil.c static _cdebbuf *protocol_message_2_pars(_cdebbuf *cdb, _cmsg *cmsg, int level) cdb 659 drivers/isdn/capi/capiutil.c if (!cdb) cdb 661 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, " "); cdb 663 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, " "); cdb 667 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u8 *) (cmsg->m + cmsg->l)); cdb 671 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u16 *) (cmsg->m + cmsg->l)); cdb 675 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s = 0x%lx\n", slen, NAME, *(u32 *) (cmsg->m + cmsg->l)); cdb 679 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s = ", slen, NAME); cdb 681 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "default"); cdb 683 drivers/isdn/capi/capiutil.c cdb = printstruct(cdb, cmsg->m + cmsg->l); cdb 684 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "\n"); cdb 695 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s = default\n", slen, NAME); cdb 701 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-*s\n", slen, name); cdb 704 drivers/isdn/capi/capiutil.c cdb = protocol_message_2_pars(cdb, cmsg, level + 1); cdb 709 drivers/isdn/capi/capiutil.c return cdb; cdb 719 drivers/isdn/capi/capiutil.c _cdebbuf *cdb; cdb 722 drivers/isdn/capi/capiutil.c cdb = g_debbuf; cdb 725 drivers/isdn/capi/capiutil.c cdb = kmalloc(sizeof(_cdebbuf), GFP_ATOMIC); cdb 726 drivers/isdn/capi/capiutil.c if (!cdb) cdb 728 drivers/isdn/capi/capiutil.c cdb->buf = kmalloc(CDEBUG_SIZE, GFP_ATOMIC); cdb 729 drivers/isdn/capi/capiutil.c if (!cdb->buf) { cdb 730 drivers/isdn/capi/capiutil.c kfree(cdb); cdb 733 drivers/isdn/capi/capiutil.c cdb->size = CDEBUG_SIZE; cdb 735 drivers/isdn/capi/capiutil.c cdb->buf[0] = 0; cdb 736 drivers/isdn/capi/capiutil.c cdb->p = cdb->buf; cdb 737 drivers/isdn/capi/capiutil.c cdb->pos = 0; cdb 738 drivers/isdn/capi/capiutil.c return cdb; cdb 746 drivers/isdn/capi/capiutil.c void cdebbuf_free(_cdebbuf *cdb) cdb 748 drivers/isdn/capi/capiutil.c if (likely(cdb == g_debbuf)) { cdb 752 drivers/isdn/capi/capiutil.c if (likely(cdb)) cdb 753 drivers/isdn/capi/capiutil.c kfree(cdb->buf); cdb 754 drivers/isdn/capi/capiutil.c kfree(cdb); cdb 770 drivers/isdn/capi/capiutil.c _cdebbuf *cdb; cdb 773 drivers/isdn/capi/capiutil.c cdb = cdebbuf_alloc(); cdb 774 drivers/isdn/capi/capiutil.c if (unlikely(!cdb)) cdb 776 drivers/isdn/capi/capiutil.c if (likely(cdb == g_debbuf)) cdb 781 drivers/isdn/capi/capiutil.c cdebbuf_free(cdb); cdb 791 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%-26s ID=%03d #0x%04x LEN=%04d\n", cdb 797 drivers/isdn/capi/capiutil.c cdb = protocol_message_2_pars(cdb, cmsg, 1); cdb 800 drivers/isdn/capi/capiutil.c return cdb; cdb 816 drivers/isdn/capi/capiutil.c _cdebbuf *cdb; cdb 820 drivers/isdn/capi/capiutil.c cdb = cdebbuf_alloc(); cdb 821 drivers/isdn/capi/capiutil.c if (!cdb) cdb 825 drivers/isdn/capi/capiutil.c cdb = bufprint(cdb, "%s ID=%03d #0x%04x LEN=%04d\n", cdb 830 drivers/isdn/capi/capiutil.c cdb = protocol_message_2_pars(cdb, cmsg, 1); cdb 831 drivers/isdn/capi/capiutil.c return cdb; cdb 879 drivers/isdn/capi/capiutil.c void cdebbuf_free(_cdebbuf *cdb) cdb 349 drivers/isdn/capi/kcapi.c _cdebbuf *cdb; cdb 352 drivers/isdn/capi/kcapi.c cdb = capi_message2str(skb->data); cdb 353 drivers/isdn/capi/kcapi.c if (cdb) { cdb 355 drivers/isdn/capi/kcapi.c ctr->cnr, cdb->buf); cdb 356 drivers/isdn/capi/kcapi.c cdebbuf_free(cdb); cdb 382 drivers/isdn/capi/kcapi.c cdb = capi_message2str(skb->data); cdb 383 drivers/isdn/capi/kcapi.c if (cdb) { cdb 385 drivers/isdn/capi/kcapi.c ctr->cnr, cdb->buf); cdb 386 drivers/isdn/capi/kcapi.c cdebbuf_free(cdb); cdb 400 drivers/isdn/capi/kcapi.c cdb = capi_message2str(skb->data); cdb 401 drivers/isdn/capi/kcapi.c if (cdb) { cdb 403 drivers/isdn/capi/kcapi.c CAPIMSG_APPID(skb->data), cdb->buf); cdb 404 drivers/isdn/capi/kcapi.c cdebbuf_free(cdb); cdb 820 drivers/isdn/capi/kcapi.c _cdebbuf *cdb = capi_message2str(skb->data); cdb 821 drivers/isdn/capi/kcapi.c if (cdb) { cdb 824 drivers/isdn/capi/kcapi.c cdb->buf); cdb 825 drivers/isdn/capi/kcapi.c cdebbuf_free(cdb); cdb 224 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .cdb = true, cdb 456 drivers/net/wireless/intel/iwlwifi/iwl-config.h cdb:1, cdb 147 drivers/scsi/3w-9xxx.c unsigned char *cdb, int use_sg, cdb 283 drivers/scsi/3w-9xxx.c unsigned char cdb[TW_MAX_CDB_LEN]; cdb 300 drivers/scsi/3w-9xxx.c memset(&cdb, 0, TW_MAX_CDB_LEN); cdb 301 drivers/scsi/3w-9xxx.c cdb[0] = REQUEST_SENSE; /* opcode */ cdb 302 drivers/scsi/3w-9xxx.c cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ cdb 319 drivers/scsi/3w-9xxx.c if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { cdb 428 drivers/scsi/3w-9xxx.c unsigned char cdb[TW_MAX_CDB_LEN]; cdb 437 drivers/scsi/3w-9xxx.c memset(&cdb, 0, TW_MAX_CDB_LEN); cdb 438 drivers/scsi/3w-9xxx.c cdb[0] = REQUEST_SENSE; /* opcode */ cdb 439 drivers/scsi/3w-9xxx.c cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ cdb 450 drivers/scsi/3w-9xxx.c if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { cdb 1804 drivers/scsi/3w-9xxx.c unsigned char *cdb, int use_sg, cdb 1832 drivers/scsi/3w-9xxx.c if (!cdb) cdb 1833 drivers/scsi/3w-9xxx.c memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); cdb 1835 drivers/scsi/3w-9xxx.c memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); cdb 517 drivers/scsi/3w-9xxx.h unsigned char cdb[16]; cdb 291 drivers/scsi/3w-sas.c unsigned char *cdb, int use_sg, cdb 318 drivers/scsi/3w-sas.c if (!cdb) cdb 319 drivers/scsi/3w-sas.c memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); cdb 321 drivers/scsi/3w-sas.c memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); cdb 377 drivers/scsi/3w-sas.c unsigned char cdb[TW_MAX_CDB_LEN]; cdb 386 drivers/scsi/3w-sas.c memset(&cdb, 0, TW_MAX_CDB_LEN); cdb 387 drivers/scsi/3w-sas.c cdb[0] = REQUEST_SENSE; /* opcode */ cdb 388 drivers/scsi/3w-sas.c cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ cdb 399 drivers/scsi/3w-sas.c if (twl_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { cdb 559 drivers/scsi/3w-sas.c unsigned char cdb[TW_MAX_CDB_LEN]; cdb 576 drivers/scsi/3w-sas.c memset(&cdb, 0, TW_MAX_CDB_LEN); cdb 577 drivers/scsi/3w-sas.c cdb[0] = REQUEST_SENSE; /* opcode */ cdb 578 drivers/scsi/3w-sas.c cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ cdb 590 drivers/scsi/3w-sas.c if (twl_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { cdb 248 drivers/scsi/3w-sas.h unsigned char cdb[16]; cdb 2835 drivers/scsi/BusLogic.c blogic_notice(" %02X", adapter, ccb->cdb[i]); cdb 2850 drivers/scsi/BusLogic.c if (ccb->cdb[0] == INQUIRY && ccb->cdb[1] == 0 && cdb 3028 drivers/scsi/BusLogic.c unsigned char *cdb = command->cmnd; cdb 3043 drivers/scsi/BusLogic.c if (cdb[0] == REQUEST_SENSE && command->sense_buffer[0] != 0) { cdb 3096 drivers/scsi/BusLogic.c switch (cdb[0]) { cdb 3179 drivers/scsi/BusLogic.c memcpy(ccb->cdb, cdb, cdblen); cdb 826 drivers/scsi/BusLogic.h unsigned char cdb[BLOGIC_CDB_MAXLEN]; /* Bytes 18-29 */ cdb 900 drivers/scsi/a100u2w.c memcpy(scb->cdb, cmd->cmnd, scb->cdb_len); cdb 165 drivers/scsi/a100u2w.h u8 cdb[IMAX_CDB]; /*24 SCSI CDBs */ cdb 1548 drivers/scsi/aacraid/aachba.c memcpy(hbacmd->cdb, cmd->cmnd, cmd->cmd_len); cdb 1572 drivers/scsi/aacraid/aachba.c memset(srbcmd->cdb, 0, sizeof(srbcmd->cdb)); cdb 1573 drivers/scsi/aacraid/aachba.c memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); cdb 1603 drivers/scsi/aacraid/aachba.c memset(srbcmd->cdb, 0, sizeof(srbcmd->cdb)); cdb 1604 drivers/scsi/aacraid/aachba.c memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); cdb 1779 drivers/scsi/aacraid/aachba.c srbcmd->cdb[0] = 0x26; cdb 1780 drivers/scsi/aacraid/aachba.c srbcmd->cdb[2] = (u8)((AAC_MAX_LUN + target) & 0x00FF); cdb 1781 drivers/scsi/aacraid/aachba.c srbcmd->cdb[6] = CISS_IDENTIFY_PHYSICAL_DEVICE; cdb 1827 drivers/scsi/aacraid/aachba.c srbcmd->cdb[0] = CISS_REPORT_PHYSICAL_LUNS; cdb 1828 drivers/scsi/aacraid/aachba.c srbcmd->cdb[1] = 2; /* extended reporting */ cdb 1829 drivers/scsi/aacraid/aachba.c srbcmd->cdb[8] = (u8)(datasize >> 8); cdb 1830 drivers/scsi/aacraid/aachba.c srbcmd->cdb[9] = (u8)(datasize); cdb 199 drivers/scsi/aacraid/aacraid.h u8 cdb[16]; /* SCSI CDB of the command */ cdb 1991 drivers/scsi/aacraid/aacraid.h u8 cdb[16]; cdb 2010 drivers/scsi/aacraid/aacraid.h u8 cdb[16]; cdb 601 drivers/scsi/aacraid/commctrl.c memcpy(hbacmd->cdb, user_srbcmd->cdb, sizeof(hbacmd->cdb)); cdb 632 drivers/scsi/aacraid/commctrl.c memcpy(srbcmd->cdb, user_srbcmd->cdb, sizeof(srbcmd->cdb)); cdb 2329 drivers/scsi/aacraid/commsup.c memset(srbcmd->cdb, 0, sizeof(srbcmd->cdb)); cdb 2330 drivers/scsi/aacraid/commsup.c srbcmd->cdb[0] = BMIC_OUT; cdb 2331 drivers/scsi/aacraid/commsup.c srbcmd->cdb[6] = WRITE_HOST_WELLNESS; cdb 286 drivers/scsi/advansys.c uchar cdb[ASC_MAX_CDB_LEN]; cdb 338 drivers/scsi/advansys.c uchar cdb[ASC_MAX_CDB_LEN]; cdb 1764 drivers/scsi/advansys.c uchar cdb[12]; /* SCSI CDB bytes 0-11. */ cdb 2149 drivers/scsi/advansys.c #define ASC_DBG_PRT_CDB(lvl, cdb, len) cdb 2203 drivers/scsi/advansys.c #define ASC_DBG_PRT_CDB(lvl, cdb, len) \ cdb 2204 drivers/scsi/advansys.c ASC_DBG_PRT_HEX((lvl), "CDB", (uchar *) (cdb), (len)); cdb 7780 drivers/scsi/advansys.c memcpy(scsiqp->cdb, scp->cmnd, scp->cmd_len < 12 ? scp->cmd_len : 12); cdb 362 drivers/scsi/aha1542.c memcpy(tmp_cmd->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], cdb 380 drivers/scsi/aha1542.c print_hex_dump_bytes("sense: ", DUMP_PREFIX_NONE, &ccb[mbo].cdb[ccb[mbo].cdblen], 12); cdb 477 drivers/scsi/aha1542.c memcpy(ccb[mbo].cdb, cmd->cmnd, ccb[mbo].cdblen); cdb 96 drivers/scsi/aha1542.h u8 cdb[MAX_CDB+MAX_SENSE]; /* SCSI Command Descriptor Block */ cdb 383 drivers/scsi/aha1740.c memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); cdb 134 drivers/scsi/aha1740.h u8 cdb[MAX_CDB]; /* CDB area */ cdb 425 drivers/scsi/aic7xxx/aic79xx.h uint8_t cdb[MAX_CDB_LEN]; cdb 427 drivers/scsi/aic7xxx/aic79xx.h uint8_t cdb[MAX_CDB_LEN_WITH_SENSE_ADDR]; cdb 3605 drivers/scsi/aic7xxx/aic79xx_core.c for (i = 0; i < sizeof(hscb->shared_data.idata.cdb); i++) cdb 3606 drivers/scsi/aic7xxx/aic79xx_core.c printk("%#02x", hscb->shared_data.idata.cdb[i]); cdb 7382 drivers/scsi/aic7xxx/aic79xx_core.c shared_data.idata.cdb)); cdb 9004 drivers/scsi/aic7xxx/aic79xx_core.c sc = (struct scsi_sense *)hscb->shared_data.idata.cdb; cdb 1627 drivers/scsi/aic7xxx/aic79xx_osm.c memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); cdb 412 drivers/scsi/aic7xxx/aic7xxx.h uint8_t cdb[12]; cdb 1074 drivers/scsi/aic7xxx/aic7xxx_core.c sc = (struct scsi_sense *)(&hscb->shared_data.cdb); cdb 2107 drivers/scsi/aic7xxx/aic7xxx_core.c for (i = 0; i < sizeof(hscb->shared_data.cdb); i++) cdb 2108 drivers/scsi/aic7xxx/aic7xxx_core.c printk("%#02x", hscb->shared_data.cdb[i]); cdb 1508 drivers/scsi/aic7xxx/aic7xxx_osm.c memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); cdb 490 drivers/scsi/aic94xx/aic94xx_task.c memcpy(scb->ssp_task.ssp_cmd.cdb, task->ssp_task.cmd->cmnd, cdb 1075 drivers/scsi/bfa/bfa_fc.h struct scsi_cdb_s cdb; cdb 2560 drivers/scsi/bfa/bfa_fcpim.c m->cmnd.cdb = *(struct scsi_cdb_s *) cmnd->cmnd; cdb 250 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 cdb[4]; cdb 1145 drivers/scsi/bnx2i/bnx2i_iscsi.c dstp = (u32 *) cmd->req.cdb; cdb 324 drivers/scsi/cxlflash/main.c __func__, cmd->rcb.cdb[0], room); cdb 410 drivers/scsi/cxlflash/main.c __func__, cmd->rcb.cdb[0], cmd->sa.ioasc); cdb 506 drivers/scsi/cxlflash/main.c memcpy(cmd->rcb.cdb, &tmfcmd, sizeof(tmfcmd)); cdb 636 drivers/scsi/cxlflash/main.c memcpy(cmd->rcb.cdb, scp->cmnd, sizeof(cmd->rcb.cdb)); cdb 2342 drivers/scsi/cxlflash/main.c __func__, afu, cmd, cmd->rcb.cdb[0], nretry); cdb 2411 drivers/scsi/cxlflash/main.c rcb.cdb[0] = SISL_AFU_CMD_SYNC; cdb 2412 drivers/scsi/cxlflash/main.c rcb.cdb[1] = mode; cdb 2413 drivers/scsi/cxlflash/main.c put_unaligned_be16(ctx, &rcb.cdb[2]); cdb 2414 drivers/scsi/cxlflash/main.c put_unaligned_be32(res, &rcb.cdb[4]); cdb 3369 drivers/scsi/cxlflash/main.c rcb.cdb[0] = SISL_AFU_CMD_LUN_PROVISION; cdb 3370 drivers/scsi/cxlflash/main.c rcb.cdb[1] = type; cdb 3371 drivers/scsi/cxlflash/main.c rcb.cdb[2] = port; cdb 3372 drivers/scsi/cxlflash/main.c put_unaligned_be64(size, &rcb.cdb[8]); cdb 3459 drivers/scsi/cxlflash/main.c rcb.cdb[0] = SISL_AFU_CMD_DEBUG; cdb 3460 drivers/scsi/cxlflash/main.c memcpy(&rcb.cdb[4], afu_dbg->afu_subcmd, cdb 70 drivers/scsi/cxlflash/sislite.h u8 cdb[16]; /* must be in big endian */ cdb 128 drivers/scsi/device_handler/scsi_dh_alua.c u8 cdb[MAX_COMMAND_SIZE]; cdb 133 drivers/scsi/device_handler/scsi_dh_alua.c memset(cdb, 0x0, MAX_COMMAND_SIZE); cdb 134 drivers/scsi/device_handler/scsi_dh_alua.c cdb[0] = MAINTENANCE_IN; cdb 136 drivers/scsi/device_handler/scsi_dh_alua.c cdb[1] = MI_REPORT_TARGET_PGS | MI_EXT_HDR_PARAM_FMT; cdb 138 drivers/scsi/device_handler/scsi_dh_alua.c cdb[1] = MI_REPORT_TARGET_PGS; cdb 139 drivers/scsi/device_handler/scsi_dh_alua.c put_unaligned_be32(bufflen, &cdb[6]); cdb 141 drivers/scsi/device_handler/scsi_dh_alua.c return scsi_execute(sdev, cdb, DMA_FROM_DEVICE, buff, bufflen, NULL, cdb 156 drivers/scsi/device_handler/scsi_dh_alua.c u8 cdb[MAX_COMMAND_SIZE]; cdb 168 drivers/scsi/device_handler/scsi_dh_alua.c memset(cdb, 0x0, MAX_COMMAND_SIZE); cdb 169 drivers/scsi/device_handler/scsi_dh_alua.c cdb[0] = MAINTENANCE_OUT; cdb 170 drivers/scsi/device_handler/scsi_dh_alua.c cdb[1] = MO_SET_TARGET_PGS; cdb 171 drivers/scsi/device_handler/scsi_dh_alua.c put_unaligned_be32(stpg_len, &cdb[6]); cdb 173 drivers/scsi/device_handler/scsi_dh_alua.c return scsi_execute(sdev, cdb, DMA_TO_DEVICE, stpg_data, stpg_len, NULL, cdb 239 drivers/scsi/device_handler/scsi_dh_emc.c unsigned char cdb[MAX_COMMAND_SIZE]; cdb 251 drivers/scsi/device_handler/scsi_dh_emc.c cdb[0] = MODE_SELECT; cdb 252 drivers/scsi/device_handler/scsi_dh_emc.c cdb[1] = 0x10; cdb 253 drivers/scsi/device_handler/scsi_dh_emc.c cdb[4] = len; cdb 260 drivers/scsi/device_handler/scsi_dh_emc.c cdb[0] = MODE_SELECT_10; cdb 261 drivers/scsi/device_handler/scsi_dh_emc.c cdb[8] = len; cdb 266 drivers/scsi/device_handler/scsi_dh_emc.c err = scsi_execute(sdev, cdb, DMA_TO_DEVICE, csdev->buffer, len, NULL, cdb 266 drivers/scsi/device_handler/scsi_dh_rdac.c unsigned char *cdb) cdb 306 drivers/scsi/device_handler/scsi_dh_rdac.c cdb[0] = MODE_SELECT_10; cdb 307 drivers/scsi/device_handler/scsi_dh_rdac.c cdb[7] = data_size >> 8; cdb 308 drivers/scsi/device_handler/scsi_dh_rdac.c cdb[8] = data_size & 0xff; cdb 310 drivers/scsi/device_handler/scsi_dh_rdac.c cdb[0] = MODE_SELECT; cdb 311 drivers/scsi/device_handler/scsi_dh_rdac.c cdb[4] = data_size; cdb 536 drivers/scsi/device_handler/scsi_dh_rdac.c unsigned char cdb[MAX_COMMAND_SIZE]; cdb 549 drivers/scsi/device_handler/scsi_dh_rdac.c memset(cdb, 0, sizeof(cdb)); cdb 551 drivers/scsi/device_handler/scsi_dh_rdac.c data_size = rdac_failover_get(ctlr, &list, cdb); cdb 558 drivers/scsi/device_handler/scsi_dh_rdac.c if (scsi_execute(sdev, cdb, DMA_TO_DEVICE, &h->ctlr->mode_select, cdb 445 drivers/scsi/esas2r/atioctl.h u8 cdb[16]; cdb 841 drivers/scsi/esas2r/atioctl.h u8 cdb[32]; cdb 1030 drivers/scsi/esas2r/atioctl.h u8 cdb[16]; cdb 1059 drivers/scsi/esas2r/atvda.h u8 cdb[FCP_CDB_SIZE]; cdb 533 drivers/scsi/esas2r/esas2r_io.c u8 *cdb = (u8 *)&rq->vrq->scsi.cdb[0]; cdb 545 drivers/scsi/esas2r/esas2r_io.c switch (rq->vrq->scsi.cdb[0]) { cdb 550 drivers/scsi/esas2r/esas2r_io.c MAKEDWORD(MAKEWORD(cdb[9], cdb 551 drivers/scsi/esas2r/esas2r_io.c cdb[8]), cdb 552 drivers/scsi/esas2r/esas2r_io.c MAKEWORD(cdb[7], cdb 553 drivers/scsi/esas2r/esas2r_io.c cdb[6])); cdb 564 drivers/scsi/esas2r/esas2r_io.c MAKEDWORD(MAKEWORD(cdb[5], cdb 565 drivers/scsi/esas2r/esas2r_io.c cdb[4]), cdb 566 drivers/scsi/esas2r/esas2r_io.c MAKEWORD(cdb[3], cdb 567 drivers/scsi/esas2r/esas2r_io.c cdb[2])); cdb 576 drivers/scsi/esas2r/esas2r_io.c MAKEDWORD(MAKEWORD(cdb[3], cdb 577 drivers/scsi/esas2r/esas2r_io.c cdb[2]), cdb 578 drivers/scsi/esas2r/esas2r_io.c MAKEWORD(cdb[1] & 0x1F, cdb 807 drivers/scsi/esas2r/esas2r_io.c memset(rqaux->vrq->scsi.cdb, 0, sizeof(rqaux->vrq->scsi.cdb)); cdb 1014 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(rq->vrq->scsi.cdb, spt->cdb, 16); cdb 845 drivers/scsi/esas2r/esas2r_main.c memcpy(rq->vrq->scsi.cdb, cmd->cmnd, cmd->cmd_len); cdb 942 drivers/scsi/esas2r/esas2r_main.c memset(ar->vrq->scsi.cdb, 0, cdb 943 drivers/scsi/esas2r/esas2r_main.c sizeof(ar->vrq->scsi.cdb)); cdb 1208 drivers/scsi/esas2r/esas2r_main.c rq->vrq->scsi.cdb[0]); cdb 1212 drivers/scsi/esas2r/esas2r_main.c rq->vrq->scsi.cdb[0]); cdb 1214 drivers/scsi/esas2r/esas2r_main.c } else if ((rq->vrq->scsi.cdb[0] != INQUIRY cdb 1215 drivers/scsi/esas2r/esas2r_main.c && rq->vrq->scsi.cdb[0] != REPORT_LUNS) cdb 1219 drivers/scsi/esas2r/esas2r_main.c (rq->vrq->scsi.cdb[0] == INQUIRY)) { cdb 1224 drivers/scsi/esas2r/esas2r_main.c rq->vrq->scsi.cdb[0], reqstatus, cdb 316 drivers/scsi/hpsa.c struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, cdb 1108 drivers/scsi/hpsa.c static int is_firmware_flash_cmd(u8 *cdb) cdb 1110 drivers/scsi/hpsa.c return cdb[0] == BMIC_WRITE && cdb[6] == BMIC_FLASH_FIRMWARE; cdb 2903 drivers/scsi/hpsa.c const u8 *cdb = c->Request.CDB; cdb 2907 drivers/scsi/hpsa.c txt, lun, cdb); cdb 4616 drivers/scsi/hpsa.c u8 *cdb, int cdb_len, cdb 4621 drivers/scsi/hpsa.c func, cdb_len, cdb); cdb 4626 drivers/scsi/hpsa.c static bool is_zero_length_transfer(u8 *cdb) cdb 4631 drivers/scsi/hpsa.c switch (cdb[0]) { cdb 4636 drivers/scsi/hpsa.c block_cnt = get_unaligned_be16(&cdb[7]); cdb 4642 drivers/scsi/hpsa.c block_cnt = get_unaligned_be32(&cdb[6]); cdb 4647 drivers/scsi/hpsa.c block_cnt = get_unaligned_be32(&cdb[10]); cdb 4656 drivers/scsi/hpsa.c static int fixup_ioaccel_cdb(u8 *cdb, int *cdb_len) cdb 4663 drivers/scsi/hpsa.c switch (cdb[0]) { cdb 4671 drivers/scsi/hpsa.c block = (((cdb[1] & 0x1F) << 16) | cdb 4672 drivers/scsi/hpsa.c (cdb[2] << 8) | cdb 4673 drivers/scsi/hpsa.c cdb[3]); cdb 4674 drivers/scsi/hpsa.c block_cnt = cdb[4]; cdb 4679 drivers/scsi/hpsa.c block = get_unaligned_be32(&cdb[2]); cdb 4680 drivers/scsi/hpsa.c block_cnt = get_unaligned_be32(&cdb[6]); cdb 4685 drivers/scsi/hpsa.c cdb[0] = is_write ? WRITE_10 : READ_10; cdb 4686 drivers/scsi/hpsa.c cdb[1] = 0; cdb 4687 drivers/scsi/hpsa.c cdb[2] = (u8) (block >> 24); cdb 4688 drivers/scsi/hpsa.c cdb[3] = (u8) (block >> 16); cdb 4689 drivers/scsi/hpsa.c cdb[4] = (u8) (block >> 8); cdb 4690 drivers/scsi/hpsa.c cdb[5] = (u8) (block); cdb 4691 drivers/scsi/hpsa.c cdb[6] = 0; cdb 4692 drivers/scsi/hpsa.c cdb[7] = (u8) (block_cnt >> 8); cdb 4693 drivers/scsi/hpsa.c cdb[8] = (u8) (block_cnt); cdb 4694 drivers/scsi/hpsa.c cdb[9] = 0; cdb 4702 drivers/scsi/hpsa.c struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, cdb 4723 drivers/scsi/hpsa.c if (is_zero_length_transfer(cdb)) { cdb 4724 drivers/scsi/hpsa.c warn_zero_length_transfer(h, cdb, cdb_len, __func__); cdb 4729 drivers/scsi/hpsa.c if (fixup_ioaccel_cdb(cdb, &cdb_len)) { cdb 4787 drivers/scsi/hpsa.c memcpy(cp->CDB, cdb, cdb_len); cdb 4876 drivers/scsi/hpsa.c struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, cdb 4896 drivers/scsi/hpsa.c if (is_zero_length_transfer(cdb)) { cdb 4897 drivers/scsi/hpsa.c warn_zero_length_transfer(h, cdb, cdb_len, __func__); cdb 4902 drivers/scsi/hpsa.c if (fixup_ioaccel_cdb(cdb, &cdb_len)) { cdb 4983 drivers/scsi/hpsa.c memcpy(cp->cdb, cdb, sizeof(cp->cdb)); cdb 5015 drivers/scsi/hpsa.c struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, cdb 5035 drivers/scsi/hpsa.c cdb, cdb_len, scsi3addr, cdb 5039 drivers/scsi/hpsa.c cdb, cdb_len, scsi3addr, cdb 5099 drivers/scsi/hpsa.c u8 cdb[16]; cdb 5375 drivers/scsi/hpsa.c cdb[0] = is_write ? WRITE_16 : READ_16; cdb 5376 drivers/scsi/hpsa.c cdb[1] = 0; cdb 5377 drivers/scsi/hpsa.c cdb[2] = (u8) (disk_block >> 56); cdb 5378 drivers/scsi/hpsa.c cdb[3] = (u8) (disk_block >> 48); cdb 5379 drivers/scsi/hpsa.c cdb[4] = (u8) (disk_block >> 40); cdb 5380 drivers/scsi/hpsa.c cdb[5] = (u8) (disk_block >> 32); cdb 5381 drivers/scsi/hpsa.c cdb[6] = (u8) (disk_block >> 24); cdb 5382 drivers/scsi/hpsa.c cdb[7] = (u8) (disk_block >> 16); cdb 5383 drivers/scsi/hpsa.c cdb[8] = (u8) (disk_block >> 8); cdb 5384 drivers/scsi/hpsa.c cdb[9] = (u8) (disk_block); cdb 5385 drivers/scsi/hpsa.c cdb[10] = (u8) (disk_block_cnt >> 24); cdb 5386 drivers/scsi/hpsa.c cdb[11] = (u8) (disk_block_cnt >> 16); cdb 5387 drivers/scsi/hpsa.c cdb[12] = (u8) (disk_block_cnt >> 8); cdb 5388 drivers/scsi/hpsa.c cdb[13] = (u8) (disk_block_cnt); cdb 5389 drivers/scsi/hpsa.c cdb[14] = 0; cdb 5390 drivers/scsi/hpsa.c cdb[15] = 0; cdb 5393 drivers/scsi/hpsa.c cdb[0] = is_write ? WRITE_10 : READ_10; cdb 5394 drivers/scsi/hpsa.c cdb[1] = 0; cdb 5395 drivers/scsi/hpsa.c cdb[2] = (u8) (disk_block >> 24); cdb 5396 drivers/scsi/hpsa.c cdb[3] = (u8) (disk_block >> 16); cdb 5397 drivers/scsi/hpsa.c cdb[4] = (u8) (disk_block >> 8); cdb 5398 drivers/scsi/hpsa.c cdb[5] = (u8) (disk_block); cdb 5399 drivers/scsi/hpsa.c cdb[6] = 0; cdb 5400 drivers/scsi/hpsa.c cdb[7] = (u8) (disk_block_cnt >> 8); cdb 5401 drivers/scsi/hpsa.c cdb[8] = (u8) (disk_block_cnt); cdb 5402 drivers/scsi/hpsa.c cdb[9] = 0; cdb 5405 drivers/scsi/hpsa.c return hpsa_scsi_ioaccel_queue_command(h, c, disk_handle, cdb, cdb_len, cdb 9921 drivers/scsi/hpsa.c VERIFY_OFFSET(cdb, 16); cdb 581 drivers/scsi/hpsa_cmd.h u8 cdb[16]; /* SCSI Command Descriptor Block */ cdb 1057 drivers/scsi/hptiop.c memcpy(req->cdb, scp->cmnd, sizeof(req->cdb)); cdb 229 drivers/scsi/hptiop.h u8 cdb[16]; cdb 160 drivers/scsi/ibmvscsi/ibmvfc.c entry->op_code = vfc_cmd->iu.cdb[0]; cdb 193 drivers/scsi/ibmvscsi/ibmvfc.c entry->op_code = vfc_cmd->iu.cdb[0]; cdb 1636 drivers/scsi/ibmvscsi/ibmvfc.c memcpy(vfc_cmd->iu.cdb, cmnd->cmnd, cmnd->cmd_len); cdb 423 drivers/scsi/ibmvscsi/ibmvfc.h u8 cdb[IBMVFC_MAX_CDB_LEN]; cdb 1042 drivers/scsi/ibmvscsi/ibmvscsi.c memcpy(srp_cmd->cdb, cmnd->cmnd, sizeof(srp_cmd->cdb)); cdb 2732 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = target_submit_cmd(&cmd->se_cmd, nexus->se_sess, srp->cdb, cdb 3067 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (vscsi->fast_fail && (READ_CMD(srp->cdb) || WRITE_CMD(srp->cdb))) cdb 337 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define READ_CMD(cdb) (((cdb)[0] & 0x1F) == 8) cdb 338 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define WRITE_CMD(cdb) (((cdb)[0] & 0x1F) == 0xA) cdb 1107 drivers/scsi/initio.c scb->cdb[0] = SCSICMD_RequestSense; cdb 1108 drivers/scsi/initio.c scb->cdb[1] = 0; cdb 1109 drivers/scsi/initio.c scb->cdb[2] = 0; cdb 1110 drivers/scsi/initio.c scb->cdb[3] = 0; cdb 1111 drivers/scsi/initio.c scb->cdb[4] = len; cdb 1112 drivers/scsi/initio.c scb->cdb[5] = 0; cdb 1391 drivers/scsi/initio.c outb(scb->cdb[i], host->addr + TUL_SFifo); cdb 2324 drivers/scsi/initio.c outb(scb->cdb[i], host->addr + TUL_SFifo); cdb 2341 drivers/scsi/initio.c outb(scb->cdb[i], host->addr + TUL_SFifo); cdb 2563 drivers/scsi/initio.c memcpy(cblk->cdb, cmnd->cmnd, cmnd->cmd_len); cdb 381 drivers/scsi/initio.h u8 cdb[12]; /*38 */ cdb 596 drivers/scsi/ipr.c trace_entry->op_code = ipr_cmd->ioarcb.cmd_pkt.cdb[0]; cdb 1124 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = IPR_HOST_CONTROLLED_ASYNC; cdb 1125 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = type; cdb 1126 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[7] = (sizeof(hostrcb->hcam) >> 8) & 0xff; cdb 1127 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[8] = sizeof(hostrcb->hcam) & 0xff; cdb 2467 drivers/scsi/ipr.c ipr_log_hex_data(ioa_cfg, error->cdb, sizeof(error->cdb)); cdb 5237 drivers/scsi/ipr.c cmd_pkt->cdb[0] = IPR_RESET_DEVICE; cdb 5239 drivers/scsi/ipr.c cmd_pkt->cdb[2] = IPR_ATA_PHY_RESET; cdb 5474 drivers/scsi/ipr.c cmd_pkt->cdb[0] = IPR_RESET_DEVICE; cdb 5475 drivers/scsi/ipr.c cmd_pkt->cdb[2] = IPR_RESET_TYPE_SELECT | IPR_BUS_RESET; cdb 5545 drivers/scsi/ipr.c cmd_pkt->cdb[0] = IPR_CANCEL_ALL_REQUESTS; cdb 6133 drivers/scsi/ipr.c cmd_pkt->cdb[0] = REQUEST_SENSE; cdb 6134 drivers/scsi/ipr.c cmd_pkt->cdb[4] = SCSI_SENSE_BUFFERSIZE; cdb 6195 drivers/scsi/ipr.c cmd_pkt->cdb[0] = IPR_CANCEL_ALL_REQUESTS; cdb 6603 drivers/scsi/ipr.c memcpy(ioarcb->cmd_pkt.cdb, scsi_cmd->cmnd, scsi_cmd->cmd_len); cdb 7086 drivers/scsi/ipr.c memcpy(ioarcb->cmd_pkt.cdb, qc->cdb, IPR_MAX_CDB_LEN); cdb 7355 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = IPR_SET_SUPPORTED_DEVICES; cdb 7356 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = IPR_SET_ALL_SUPPORTED_DEVICES; cdb 7357 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[7] = (sizeof(struct ipr_supported_device) >> 8) & 0xff; cdb 7358 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[8] = sizeof(struct ipr_supported_device) & 0xff; cdb 7545 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = MODE_SELECT; cdb 7546 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = parm; cdb 7547 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[4] = xfer_len; cdb 7606 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = MODE_SENSE; cdb 7607 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[2] = parm; cdb 7608 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[4] = xfer_len; cdb 7630 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[0], ioasc); cdb 7898 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = IPR_QUERY_IOA_CONFIG; cdb 7899 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[6] = (ioa_cfg->cfg_table_size >> 16) & 0xff; cdb 7900 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[7] = (ioa_cfg->cfg_table_size >> 8) & 0xff; cdb 7901 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[8] = ioa_cfg->cfg_table_size & 0xff; cdb 7930 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = IPR_IOA_SERVICE_ACTION; cdb 7931 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = sa_code; cdb 7957 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[2] = 0x40; cdb 7989 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = INQUIRY; cdb 7990 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = flags; cdb 7991 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[2] = page; cdb 7992 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[4] = xfer_len; cdb 8204 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[0] = IPR_ID_HOST_RR_Q; cdb 8209 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] = 0x1; cdb 8212 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] &= ~IPR_ID_HRRQ_SELE_ENABLE; cdb 8214 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[1] |= IPR_ID_HRRQ_SELE_ENABLE; cdb 8216 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[2] = cdb 8218 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[3] = cdb 8220 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[4] = cdb 8222 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[5] = cdb 8224 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[7] = cdb 8226 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[8] = cdb 8229 drivers/scsi/ipr.c if (ioarcb->cmd_pkt.cdb[1] & IPR_ID_HRRQ_SELE_ENABLE) cdb 8230 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[9] = cdb 8234 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[10] = cdb 8236 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[11] = cdb 8238 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[12] = cdb 8240 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[13] = cdb 8244 drivers/scsi/ipr.c if (ioarcb->cmd_pkt.cdb[1] & IPR_ID_HRRQ_SELE_ENABLE) cdb 8245 drivers/scsi/ipr.c ioarcb->cmd_pkt.cdb[14] = cdb 9043 drivers/scsi/ipr.c if (hcam_cmd->ioarcb.cmd_pkt.cdb[0] != IPR_HOST_CONTROLLED_ASYNC) cdb 9050 drivers/scsi/ipr.c cmd_pkt->cdb[0] = IPR_CANCEL_REQUEST; cdb 9051 drivers/scsi/ipr.c cmd_pkt->cdb[1] = IPR_CANCEL_64BIT_IOARCB; cdb 9052 drivers/scsi/ipr.c cmd_pkt->cdb[10] = ((u64) hcam_cmd->dma_addr >> 56) & 0xff; cdb 9053 drivers/scsi/ipr.c cmd_pkt->cdb[11] = ((u64) hcam_cmd->dma_addr >> 48) & 0xff; cdb 9054 drivers/scsi/ipr.c cmd_pkt->cdb[12] = ((u64) hcam_cmd->dma_addr >> 40) & 0xff; cdb 9055 drivers/scsi/ipr.c cmd_pkt->cdb[13] = ((u64) hcam_cmd->dma_addr >> 32) & 0xff; cdb 9056 drivers/scsi/ipr.c cmd_pkt->cdb[2] = ((u64) hcam_cmd->dma_addr >> 24) & 0xff; cdb 9057 drivers/scsi/ipr.c cmd_pkt->cdb[3] = ((u64) hcam_cmd->dma_addr >> 16) & 0xff; cdb 9058 drivers/scsi/ipr.c cmd_pkt->cdb[4] = ((u64) hcam_cmd->dma_addr >> 8) & 0xff; cdb 9059 drivers/scsi/ipr.c cmd_pkt->cdb[5] = ((u64) hcam_cmd->dma_addr) & 0xff; cdb 9120 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[0] = WRITE_BUFFER; cdb 9121 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[1] = IPR_WR_BUF_DOWNLOAD_AND_SAVE; cdb 9122 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[6] = (sglist->buffer_len & 0xff0000) >> 16; cdb 9123 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[7] = (sglist->buffer_len & 0x00ff00) >> 8; cdb 9124 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[8] = sglist->buffer_len & 0x0000ff; cdb 9164 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[0] = IPR_IOA_SHUTDOWN; cdb 9165 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[1] = shutdown_type; cdb 10823 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[0] = IPR_IOA_SHUTDOWN; cdb 10824 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[1] = IPR_SHUTDOWN_PREPARE_FOR_NORMAL; cdb 544 drivers/scsi/ipr.h u8 cdb[16]; cdb 924 drivers/scsi/ipr.h __be32 cdb[4]; cdb 672 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FLUSH; cdb 741 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FLUSH; cdb 896 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FLUSH; cdb 2334 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_RW_BIOSFW; cdb 2658 drivers/scsi/ips.c memcpy(scb->cdb, SC->cmnd, SC->cmd_len); cdb 3089 drivers/scsi/ips.c if ((ha->waitflag == TRUE) && (ha->cmd_in_progress == scb->cdb[0])) { cdb 3389 drivers/scsi/ips.c ha->cmd_in_progress = scb->cdb[0]; cdb 3466 drivers/scsi/ips.c (ha->cmd_in_progress == scb->cdb[0])) { cdb 3860 drivers/scsi/ips.c scb->cdb[0], cdb 4569 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FLUSH; cdb 5283 drivers/scsi/ips.c scb->cdb[0], cdb 5337 drivers/scsi/ips.c scb->cdb[0], cdb 5388 drivers/scsi/ips.c scb->cdb[0], cdb 5420 drivers/scsi/ips.c scb->cdb[0], cdb 5668 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_ENQUIRY; cdb 5711 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_GET_SUBSYS; cdb 5760 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_READ_CONF; cdb 5813 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_RW_NVRAM_PAGE; cdb 5863 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_CONFIG_SYNC; cdb 5883 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_ERROR_TABLE; cdb 5925 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FFDC; cdb 5961 drivers/scsi/ips.c scb->cdb[0] = IPS_CMD_FFDC; cdb 1070 drivers/scsi/ips.h uint8_t cdb[12]; cdb 1097 drivers/scsi/ips.h uint8_t cdb[12]; cdb 187 drivers/scsi/isci/request.c sci_swab32_cpy(&cmd_iu->cdb, task->ssp_task.cmd->cmnd, cdb 94 drivers/scsi/isci/sas.h u8 cdb[16]; cdb 346 drivers/scsi/libiscsi.c memset(&hdr->cdb[cmd_len], 0, ISCSI_CDB_SIZE - cmd_len); cdb 353 drivers/scsi/libiscsi.c memcpy(hdr->cdb, sc->cmnd, cmd_len); cdb 200 drivers/scsi/libsas/sas_ata.c memcpy(task->ata_task.atapi_packet, qc->cdb, qc->dev->cdb_len); cdb 704 drivers/scsi/megaraid.c memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); cdb 972 drivers/scsi/megaraid.c memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); cdb 1036 drivers/scsi/megaraid.c memcpy(epthru->cdb, cmd->cmnd, cmd->cmd_len); cdb 4039 drivers/scsi/megaraid.c pthru->cdb[0] = INQUIRY; cdb 4040 drivers/scsi/megaraid.c pthru->cdb[1] = 0; cdb 4041 drivers/scsi/megaraid.c pthru->cdb[2] = 0; cdb 4042 drivers/scsi/megaraid.c pthru->cdb[3] = 0; cdb 4043 drivers/scsi/megaraid.c pthru->cdb[4] = 255; cdb 4044 drivers/scsi/megaraid.c pthru->cdb[5] = 0; cdb 136 drivers/scsi/megaraid.h u8 cdb[MAX_CDB_LEN]; cdb 164 drivers/scsi/megaraid.h u8 cdb[MAX_EXT_CDB_LEN]; cdb 236 drivers/scsi/megaraid/mbox_defs.h uint8_t cdb[10]; cdb 292 drivers/scsi/megaraid/mbox_defs.h uint8_t cdb[16]; cdb 1621 drivers/scsi/megaraid/megaraid_mbox.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cdb 1958 drivers/scsi/megaraid/megaraid_mbox.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cdb 2007 drivers/scsi/megaraid/megaraid_mbox.c memcpy(epthru->cdb, scp->cmnd, scp->cmd_len); cdb 1889 drivers/scsi/megaraid/megaraid_sas.h u8 cdb[16]; /*20h */ cdb 2095 drivers/scsi/megaraid/megaraid_sas.h u8 cdb[16]; cdb 1419 drivers/scsi/megaraid/megaraid_sas_base.c memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); cdb 2385 drivers/scsi/megaraid/megaraid_sas_fusion.c u8 *cdb = io_request->CDB.CDB32; cdb 2393 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(cdb, 0, sizeof(io_request->CDB.CDB32)); cdb 2394 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[0] = MEGASAS_SCSI_VARIABLE_LENGTH_CMD; cdb 2395 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[7] = MEGASAS_SCSI_ADDL_CDB_LEN; cdb 2398 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[9] = MEGASAS_SCSI_SERVICE_ACTION_READ32; cdb 2400 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[9] = MEGASAS_SCSI_SERVICE_ACTION_WRITE32; cdb 2401 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[10] = MEGASAS_RD_WR_PROTECT_CHECK_ALL; cdb 2404 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[12] = (u8)((start_blk >> 56) & 0xff); cdb 2405 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[13] = (u8)((start_blk >> 48) & 0xff); cdb 2406 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[14] = (u8)((start_blk >> 40) & 0xff); cdb 2407 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[15] = (u8)((start_blk >> 32) & 0xff); cdb 2408 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[16] = (u8)((start_blk >> 24) & 0xff); cdb 2409 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[17] = (u8)((start_blk >> 16) & 0xff); cdb 2410 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[18] = (u8)((start_blk >> 8) & 0xff); cdb 2411 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[19] = (u8)(start_blk & 0xff); cdb 2420 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[28] = (u8)((num_blocks >> 24) & 0xff); cdb 2421 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[29] = (u8)((num_blocks >> 16) & 0xff); cdb 2422 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[30] = (u8)((num_blocks >> 8) & 0xff); cdb 2423 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[31] = (u8)(num_blocks & 0xff); cdb 2446 drivers/scsi/megaraid/megaraid_sas_fusion.c opcode = cdb[0] == READ_16 ? READ_10 : WRITE_10; cdb 2447 drivers/scsi/megaraid/megaraid_sas_fusion.c flagvals = cdb[1]; cdb 2448 drivers/scsi/megaraid/megaraid_sas_fusion.c groupnum = cdb[14]; cdb 2449 drivers/scsi/megaraid/megaraid_sas_fusion.c control = cdb[15]; cdb 2451 drivers/scsi/megaraid/megaraid_sas_fusion.c opcode = cdb[0] == READ_12 ? READ_10 : WRITE_10; cdb 2452 drivers/scsi/megaraid/megaraid_sas_fusion.c flagvals = cdb[1]; cdb 2453 drivers/scsi/megaraid/megaraid_sas_fusion.c groupnum = cdb[10]; cdb 2454 drivers/scsi/megaraid/megaraid_sas_fusion.c control = cdb[11]; cdb 2457 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(cdb, 0, sizeof(io_request->CDB.CDB32)); cdb 2459 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[0] = opcode; cdb 2460 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[1] = flagvals; cdb 2461 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[6] = groupnum; cdb 2462 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[9] = control; cdb 2465 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[8] = (u8)(num_blocks & 0xff); cdb 2466 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[7] = (u8)((num_blocks >> 8) & 0xff); cdb 2474 drivers/scsi/megaraid/megaraid_sas_fusion.c opcode = cdb[0] == READ_6 ? READ_16 : WRITE_16; cdb 2475 drivers/scsi/megaraid/megaraid_sas_fusion.c control = cdb[5]; cdb 2479 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[0] == READ_10 ? READ_16 : WRITE_16; cdb 2480 drivers/scsi/megaraid/megaraid_sas_fusion.c flagvals = cdb[1]; cdb 2481 drivers/scsi/megaraid/megaraid_sas_fusion.c groupnum = cdb[6]; cdb 2482 drivers/scsi/megaraid/megaraid_sas_fusion.c control = cdb[9]; cdb 2486 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[0] == READ_12 ? READ_16 : WRITE_16; cdb 2487 drivers/scsi/megaraid/megaraid_sas_fusion.c flagvals = cdb[1]; cdb 2488 drivers/scsi/megaraid/megaraid_sas_fusion.c groupnum = cdb[10]; cdb 2489 drivers/scsi/megaraid/megaraid_sas_fusion.c control = cdb[11]; cdb 2493 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(cdb, 0, sizeof(io_request->CDB.CDB32)); cdb 2495 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[0] = opcode; cdb 2496 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[1] = flagvals; cdb 2497 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[14] = groupnum; cdb 2498 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[15] = control; cdb 2501 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[13] = (u8)(num_blocks & 0xff); cdb 2502 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[12] = (u8)((num_blocks >> 8) & 0xff); cdb 2503 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[11] = (u8)((num_blocks >> 16) & 0xff); cdb 2504 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[10] = (u8)((num_blocks >> 24) & 0xff); cdb 2514 drivers/scsi/megaraid/megaraid_sas_fusion.c u8 val = cdb[1] & 0xE0; cdb 2515 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[3] = (u8)(start_blk & 0xff); cdb 2516 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[2] = (u8)((start_blk >> 8) & 0xff); cdb 2517 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[1] = val | ((u8)(start_blk >> 16) & 0x1f); cdb 2521 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[5] = (u8)(start_blk & 0xff); cdb 2522 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[4] = (u8)((start_blk >> 8) & 0xff); cdb 2523 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[3] = (u8)((start_blk >> 16) & 0xff); cdb 2524 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[2] = (u8)((start_blk >> 24) & 0xff); cdb 2527 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[5] = (u8)(start_blk & 0xff); cdb 2528 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[4] = (u8)((start_blk >> 8) & 0xff); cdb 2529 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[3] = (u8)((start_blk >> 16) & 0xff); cdb 2530 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[2] = (u8)((start_blk >> 24) & 0xff); cdb 2533 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[9] = (u8)(start_blk & 0xff); cdb 2534 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[8] = (u8)((start_blk >> 8) & 0xff); cdb 2535 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[7] = (u8)((start_blk >> 16) & 0xff); cdb 2536 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[6] = (u8)((start_blk >> 24) & 0xff); cdb 2537 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[5] = (u8)((start_blk >> 32) & 0xff); cdb 2538 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[4] = (u8)((start_blk >> 40) & 0xff); cdb 2539 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[3] = (u8)((start_blk >> 48) & 0xff); cdb 2540 drivers/scsi/megaraid/megaraid_sas_fusion.c cdb[2] = (u8)((start_blk >> 56) & 0xff); cdb 274 drivers/scsi/mpt3sas/mpt3sas_scsih.c u8 cdb[32]; cdb 797 drivers/scsi/mvumi.c memset(frame->cdb, 0, MAX_COMMAND_SIZE); cdb 798 drivers/scsi/mvumi.c frame->cdb[0] = SCSI_CMD_MARVELL_SPECIFIC; cdb 799 drivers/scsi/mvumi.c frame->cdb[1] = CDB_CORE_MODULE; cdb 800 drivers/scsi/mvumi.c frame->cdb[2] = CDB_CORE_SHUTDOWN; cdb 1437 drivers/scsi/mvumi.c memset(frame->cdb, 0, frame->cdb_length); cdb 1438 drivers/scsi/mvumi.c frame->cdb[0] = INQUIRY; cdb 1439 drivers/scsi/mvumi.c frame->cdb[4] = frame->data_transfer_length; cdb 1716 drivers/scsi/mvumi.c memset(frame->cdb, 0, MAX_COMMAND_SIZE); cdb 1717 drivers/scsi/mvumi.c frame->cdb[0] = APICDB0_EVENT; cdb 1718 drivers/scsi/mvumi.c frame->cdb[1] = msg; cdb 1725 drivers/scsi/mvumi.c mvumi_notification(mhba, cmd->frame->cdb[1], cmd->data_buf); cdb 2055 drivers/scsi/mvumi.c memcpy(pframe->cdb, scmd->cmnd, pframe->cdb_length); cdb 272 drivers/scsi/mvumi.h u8 cdb[MAX_COMMAND_SIZE]; cdb 1331 drivers/scsi/myrb.c memcpy(&dcdb->cdb, scmd->cmnd, scmd->cmd_len); cdb 554 drivers/scsi/myrb.h unsigned char cdb[12]; /* Bytes 10-21 */ cdb 1670 drivers/scsi/myrs.c memcpy(&mbox->SCSI_10.cdb, scmd->cmnd, scmd->cmd_len); cdb 711 drivers/scsi/myrs.h unsigned char cdb[10]; /* Bytes 22-31 */ cdb 506 drivers/scsi/nsp32.c param->cdb[4 * i] = SCpnt->cmnd[i]; cdb 453 drivers/scsi/nsp32.h u8 cdb[4 * 0x10]; /* SCSI Command */ cdb 4331 drivers/scsi/pm8001/pm8001_hwi.c memcpy(ssp_cmd.ssp_iu.cdb, task->ssp_task.cmd->cmnd, cdb 559 drivers/scsi/pm8001/pm8001_hwi.h u8 cdb[16];/* The SCSI CDB up to 16 bytes length */ cdb 4078 drivers/scsi/pm8001/pm80xx_hwi.c memcpy(ssp_cmd.ssp_iu.cdb, task->ssp_task.cmd->cmnd, cdb 787 drivers/scsi/pm8001/pm80xx_hwi.h u8 cdb[16];/* The SCSI CDB up to 16 bytes length */ cdb 313 drivers/scsi/pmcraid.c memset(&cmd->ioa_cb->ioarcb.cdb, 0, PMCRAID_MAX_CDB_LEN); cdb 694 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0]); cdb 762 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 800 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 831 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], ioasc); cdb 940 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 950 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0] = PMCRAID_IOA_SHUTDOWN; cdb 951 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[1] = PMCRAID_SHUTDOWN_NORMAL; cdb 1013 drivers/scsi/pmcraid.c ioarcb->cdb[0] = INQUIRY; cdb 1014 drivers/scsi/pmcraid.c ioarcb->cdb[1] = 1; cdb 1015 drivers/scsi/pmcraid.c ioarcb->cdb[2] = 0xD0; cdb 1016 drivers/scsi/pmcraid.c ioarcb->cdb[3] = (data_size >> 8) & 0xFF; cdb 1017 drivers/scsi/pmcraid.c ioarcb->cdb[4] = data_size & 0xFF; cdb 1070 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_IDENTIFY_HRRQ; cdb 1071 drivers/scsi/pmcraid.c ioarcb->cdb[1] = index; cdb 1079 drivers/scsi/pmcraid.c memcpy(&(ioarcb->cdb[2]), &hrrq_addr, sizeof(hrrq_addr)); cdb 1080 drivers/scsi/pmcraid.c memcpy(&(ioarcb->cdb[10]), &hrrq_size, sizeof(hrrq_size)); cdb 1104 drivers/scsi/pmcraid.c if (cmd->ioa_cb->ioarcb.cdb[1] == PMCRAID_HCAM_CODE_CONFIG_CHANGE) cdb 1167 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_HOST_CONTROLLED_ASYNC; cdb 1168 drivers/scsi/pmcraid.c ioarcb->cdb[1] = type; cdb 1169 drivers/scsi/pmcraid.c ioarcb->cdb[7] = (rcb_size >> 8) & 0xFF; cdb 1170 drivers/scsi/pmcraid.c ioarcb->cdb[8] = (rcb_size) & 0xFF; cdb 1224 drivers/scsi/pmcraid.c memset(ioarcb->cdb, 0, PMCRAID_MAX_CDB_LEN); cdb 1225 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_ABORT_CMD; cdb 1227 drivers/scsi/pmcraid.c memcpy(&(ioarcb->cdb[2]), &ioarcb_addr, sizeof(ioarcb_addr)); cdb 1274 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 1685 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 2025 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 2439 drivers/scsi/pmcraid.c memset(ioarcb->cdb, 0, PMCRAID_MAX_CDB_LEN); cdb 2444 drivers/scsi/pmcraid.c ioarcb->cdb[0] = REQUEST_SENSE; cdb 2445 drivers/scsi/pmcraid.c ioarcb->cdb[4] = SCSI_SENSE_BUFFERSIZE; cdb 2481 drivers/scsi/pmcraid.c memset(ioarcb->cdb, 0, PMCRAID_MAX_CDB_LEN); cdb 2484 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_CANCEL_ALL_REQUESTS; cdb 2487 drivers/scsi/pmcraid.c ioarcb->cdb[1] = PMCRAID_SYNC_COMPLETE_AFTER_CANCEL; cdb 2751 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_RESET_DEVICE; cdb 2757 drivers/scsi/pmcraid.c ioarcb->cdb[1] = modifier; cdb 2763 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 2816 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 2878 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 2886 drivers/scsi/pmcraid.c cancel_cmd->ioa_cb->ioarcb.cdb[0], cdb 3377 drivers/scsi/pmcraid.c memcpy(ioarcb->cdb, scsi_cmd->cmnd, scsi_cmd->cmd_len); cdb 3672 drivers/scsi/pmcraid.c memcpy(ioarcb->cdb, buffer->ioarcb.cdb, PMCRAID_MAX_CDB_LEN); cdb 3725 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0], cdb 3752 drivers/scsi/pmcraid.c cmd->ioa_cb->ioarcb.cdb[0]); cdb 5390 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_SET_SUPPORTED_DEVICES; cdb 5391 drivers/scsi/pmcraid.c ioarcb->cdb[1] = ALL_DEVICES_SUPPORTED; cdb 5442 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_SCSI_SET_TIMESTAMP; cdb 5443 drivers/scsi/pmcraid.c ioarcb->cdb[1] = PMCRAID_SCSI_SERVICE_ACTION; cdb 5444 drivers/scsi/pmcraid.c memcpy(&(ioarcb->cdb[6]), &time_stamp_len, sizeof(time_stamp_len)); cdb 5615 drivers/scsi/pmcraid.c ioarcb->cdb[0] = PMCRAID_QUERY_IOA_CONFIG; cdb 5618 drivers/scsi/pmcraid.c memcpy(&(ioarcb->cdb[10]), &cfg_table_size, sizeof(cfg_table_size)); cdb 245 drivers/scsi/pmcraid.h __u8 cdb[PMCRAID_MAX_CDB_LEN]; cdb 2085 drivers/scsi/qedi/qedi_fw.c if (hdr->cdb[0] != TEST_UNIT_READY) { cdb 2106 drivers/scsi/qedi/qedi_fw.c qedi_cpy_scsi_cdb(sc, (u32 *)cmd_pdu_header.cdb); cdb 794 drivers/scsi/qla1280.h uint8_t cdb[26]; cdb 1483 drivers/scsi/qla2xxx/qla_iocb.c memcpy(fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); cdb 1548 drivers/scsi/qla2xxx/qla_iocb.c fcp_dl = (uint32_t *)(crc_ctx_pkt->fcp_cmnd.cdb + 16 + cdb 3269 drivers/scsi/qla2xxx/qla_iocb.c memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); cdb 3271 drivers/scsi/qla2xxx/qla_iocb.c fcp_dl = (uint32_t *)(ctx->fcp_cmnd->cdb + 16 + cdb 857 drivers/scsi/qla2xxx/qla_nx.h uint8_t cdb[260]; /* 256 for CDB len and 4 for FCP_DL */ cdb 2714 drivers/scsi/qla2xxx/qla_target.c ql_dump_buffer(ql_dbg_tgt_dif, vha, 0xe011, cmd->cdb, 16); cdb 3467 drivers/scsi/qla2xxx/qla_target.c cmd->cdb[0], lba, (lba+cmd->num_blks), cmd->num_blks, cdb 3483 drivers/scsi/qla2xxx/qla_target.c cmd->cdb[0], lba, (lba+cmd->num_blks), cmd->num_blks, cdb 3500 drivers/scsi/qla2xxx/qla_target.c cmd->cdb[0], lba, (lba+cmd->num_blks), cmd->num_blks, cdb 4087 drivers/scsi/qla2xxx/qla_target.c unsigned char *cdb; cdb 4104 drivers/scsi/qla2xxx/qla_target.c cdb = &atio->u.isp24.fcp_cmnd.cdb[0]; cdb 4122 drivers/scsi/qla2xxx/qla_target.c ret = ha->tgt.tgt_ops->handle_cmd(vha, cmd, cdb, data_length, cdb 302 drivers/scsi/qla2xxx/qla_target.h uint8_t cdb[16]; cdb 331 drivers/scsi/qla2xxx/qla_target.h uint8_t cdb[MAX_CMDSZ]; cdb 915 drivers/scsi/qla2xxx/qla_target.h const uint8_t *cdb; cdb 421 drivers/scsi/qla2xxx/tcm_qla2xxx.c unsigned char *cdb, uint32_t data_length, int fcp_task_attr, cdb 461 drivers/scsi/qla2xxx/tcm_qla2xxx.c return target_submit_cmd(se_cmd, se_sess, cdb, &cmd->sense_buffer[0], cdb 1132 drivers/scsi/qla4xxx/ql4_fw.h uint8_t cdb[IOCB_MAX_CDB_LEN]; /* 10-1F */ cdb 330 drivers/scsi/qla4xxx/ql4_iocb.c memcpy(cmd_entry->cdb, cmd->cmnd, cmd->cmd_len); cdb 894 drivers/scsi/qlogicpti.c memcpy(cmd->cdb, Cmnd->cmnd, Cmnd->cmd_len); cdb 113 drivers/scsi/qlogicpti.h u8 cdb[12]; cdb 141 drivers/scsi/qlogicpti.h u8 cdb[44]; cdb 39 drivers/scsi/scsi_debugfs.c const u8 *const cdb = READ_ONCE(cmd->cmnd); cdb 42 drivers/scsi/scsi_debugfs.c if (cdb) cdb 43 drivers/scsi/scsi_debugfs.c __scsi_format_command(buf, sizeof(buf), cdb, cmd->cmd_len); cdb 155 drivers/scsi/scsi_logging.c const unsigned char *cdb, size_t cdb_len) cdb 160 drivers/scsi/scsi_logging.c off = scsi_format_opcode_name(logbuf, logbuf_len, cdb); cdb 163 drivers/scsi/scsi_logging.c len = scsi_command_size(cdb); cdb 171 drivers/scsi/scsi_logging.c " %02x", cdb[k]); cdb 11 drivers/scsi/scsi_trace.c #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f) cdb 12 drivers/scsi/scsi_trace.c #define SERVICE_ACTION32(cdb) (get_unaligned_be16(&cdb[8])) cdb 18 drivers/scsi/scsi_trace.c scsi_trace_rw6(struct trace_seq *p, unsigned char *cdb, int len) cdb 23 drivers/scsi/scsi_trace.c lba |= ((cdb[1] & 0x1F) << 16); cdb 24 drivers/scsi/scsi_trace.c lba |= (cdb[2] << 8); cdb 25 drivers/scsi/scsi_trace.c lba |= cdb[3]; cdb 30 drivers/scsi/scsi_trace.c txlen = cdb[4] ? cdb[4] : 256; cdb 39 drivers/scsi/scsi_trace.c scsi_trace_rw10(struct trace_seq *p, unsigned char *cdb, int len) cdb 44 drivers/scsi/scsi_trace.c lba = get_unaligned_be32(&cdb[2]); cdb 45 drivers/scsi/scsi_trace.c txlen = get_unaligned_be16(&cdb[7]); cdb 48 drivers/scsi/scsi_trace.c cdb[1] >> 5); cdb 50 drivers/scsi/scsi_trace.c if (cdb[0] == WRITE_SAME) cdb 51 drivers/scsi/scsi_trace.c trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); cdb 59 drivers/scsi/scsi_trace.c scsi_trace_rw12(struct trace_seq *p, unsigned char *cdb, int len) cdb 64 drivers/scsi/scsi_trace.c lba = get_unaligned_be32(&cdb[2]); cdb 65 drivers/scsi/scsi_trace.c txlen = get_unaligned_be32(&cdb[6]); cdb 68 drivers/scsi/scsi_trace.c cdb[1] >> 5); cdb 75 drivers/scsi/scsi_trace.c scsi_trace_rw16(struct trace_seq *p, unsigned char *cdb, int len) cdb 81 drivers/scsi/scsi_trace.c lba = get_unaligned_be64(&cdb[2]); cdb 82 drivers/scsi/scsi_trace.c txlen = get_unaligned_be32(&cdb[10]); cdb 85 drivers/scsi/scsi_trace.c cdb[1] >> 5); cdb 87 drivers/scsi/scsi_trace.c if (cdb[0] == WRITE_SAME_16) cdb 88 drivers/scsi/scsi_trace.c trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); cdb 96 drivers/scsi/scsi_trace.c scsi_trace_rw32(struct trace_seq *p, unsigned char *cdb, int len) cdb 102 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION32(cdb)) { cdb 120 drivers/scsi/scsi_trace.c lba = get_unaligned_be64(&cdb[12]); cdb 121 drivers/scsi/scsi_trace.c ei_lbrt = get_unaligned_be32(&cdb[20]); cdb 122 drivers/scsi/scsi_trace.c txlen = get_unaligned_be32(&cdb[28]); cdb 125 drivers/scsi/scsi_trace.c cmd, lba, txlen, cdb[10] >> 5, ei_lbrt); cdb 127 drivers/scsi/scsi_trace.c if (SERVICE_ACTION32(cdb) == WRITE_SAME_32) cdb 128 drivers/scsi/scsi_trace.c trace_seq_printf(p, " unmap=%u", cdb[10] >> 3 & 1); cdb 137 drivers/scsi/scsi_trace.c scsi_trace_unmap(struct trace_seq *p, unsigned char *cdb, int len) cdb 140 drivers/scsi/scsi_trace.c unsigned int regions = get_unaligned_be16(&cdb[7]); cdb 149 drivers/scsi/scsi_trace.c scsi_trace_service_action_in(struct trace_seq *p, unsigned char *cdb, int len) cdb 155 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION16(cdb)) { cdb 167 drivers/scsi/scsi_trace.c lba = get_unaligned_be64(&cdb[2]); cdb 168 drivers/scsi/scsi_trace.c alloc_len = get_unaligned_be32(&cdb[10]); cdb 179 drivers/scsi/scsi_trace.c scsi_trace_maintenance_in(struct trace_seq *p, unsigned char *cdb, int len) cdb 184 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION16(cdb)) { cdb 214 drivers/scsi/scsi_trace.c alloc_len = get_unaligned_be32(&cdb[6]); cdb 225 drivers/scsi/scsi_trace.c scsi_trace_maintenance_out(struct trace_seq *p, unsigned char *cdb, int len) cdb 230 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION16(cdb)) { cdb 254 drivers/scsi/scsi_trace.c alloc_len = get_unaligned_be32(&cdb[6]); cdb 265 drivers/scsi/scsi_trace.c scsi_trace_zbc_in(struct trace_seq *p, unsigned char *cdb, int len) cdb 272 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION16(cdb)) { cdb 281 drivers/scsi/scsi_trace.c zone_id = get_unaligned_be64(&cdb[2]); cdb 282 drivers/scsi/scsi_trace.c alloc_len = get_unaligned_be32(&cdb[10]); cdb 283 drivers/scsi/scsi_trace.c options = cdb[14] & 0x3f; cdb 287 drivers/scsi/scsi_trace.c options, (cdb[14] >> 7) & 1); cdb 296 drivers/scsi/scsi_trace.c scsi_trace_zbc_out(struct trace_seq *p, unsigned char *cdb, int len) cdb 301 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION16(cdb)) { cdb 319 drivers/scsi/scsi_trace.c zone_id = get_unaligned_be64(&cdb[2]); cdb 322 drivers/scsi/scsi_trace.c (unsigned long long)zone_id, cdb[14] & 1); cdb 331 drivers/scsi/scsi_trace.c scsi_trace_varlen(struct trace_seq *p, unsigned char *cdb, int len) cdb 333 drivers/scsi/scsi_trace.c switch (SERVICE_ACTION32(cdb)) { cdb 338 drivers/scsi/scsi_trace.c return scsi_trace_rw32(p, cdb, len); cdb 340 drivers/scsi/scsi_trace.c return scsi_trace_misc(p, cdb, len); cdb 345 drivers/scsi/scsi_trace.c scsi_trace_misc(struct trace_seq *p, unsigned char *cdb, int len) cdb 356 drivers/scsi/scsi_trace.c scsi_trace_parse_cdb(struct trace_seq *p, unsigned char *cdb, int len) cdb 358 drivers/scsi/scsi_trace.c switch (cdb[0]) { cdb 361 drivers/scsi/scsi_trace.c return scsi_trace_rw6(p, cdb, len); cdb 366 drivers/scsi/scsi_trace.c return scsi_trace_rw10(p, cdb, len); cdb 370 drivers/scsi/scsi_trace.c return scsi_trace_rw12(p, cdb, len); cdb 375 drivers/scsi/scsi_trace.c return scsi_trace_rw16(p, cdb, len); cdb 377 drivers/scsi/scsi_trace.c return scsi_trace_unmap(p, cdb, len); cdb 379 drivers/scsi/scsi_trace.c return scsi_trace_service_action_in(p, cdb, len); cdb 381 drivers/scsi/scsi_trace.c return scsi_trace_varlen(p, cdb, len); cdb 383 drivers/scsi/scsi_trace.c return scsi_trace_maintenance_in(p, cdb, len); cdb 385 drivers/scsi/scsi_trace.c return scsi_trace_maintenance_out(p, cdb, len); cdb 387 drivers/scsi/scsi_trace.c return scsi_trace_zbc_in(p, cdb, len); cdb 389 drivers/scsi/scsi_trace.c return scsi_trace_zbc_out(p, cdb, len); cdb 391 drivers/scsi/scsi_trace.c return scsi_trace_misc(p, cdb, len); cdb 655 drivers/scsi/sd.c u8 cdb[12] = { 0, }; cdb 658 drivers/scsi/sd.c cdb[0] = send ? SECURITY_PROTOCOL_OUT : SECURITY_PROTOCOL_IN; cdb 659 drivers/scsi/sd.c cdb[1] = secp; cdb 660 drivers/scsi/sd.c put_unaligned_be16(spsp, &cdb[2]); cdb 661 drivers/scsi/sd.c put_unaligned_be32(len, &cdb[6]); cdb 663 drivers/scsi/sd.c ret = scsi_execute_req(sdev, cdb, cdb 279 drivers/scsi/smartpqi/smartpqi.h u8 cdb[32]; cdb 302 drivers/scsi/smartpqi/smartpqi.h u8 cdb[16]; cdb 67 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, cdb 454 drivers/scsi/smartpqi/smartpqi_init.c u8 *cdb; cdb 468 drivers/scsi/smartpqi/smartpqi_init.c cdb = request->cdb; cdb 473 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = INQUIRY; cdb 475 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = 0x1; cdb 476 drivers/scsi/smartpqi/smartpqi_init.c cdb[2] = (u8)vpd_page; cdb 478 drivers/scsi/smartpqi/smartpqi_init.c cdb[4] = (u8)cdb_length; cdb 483 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = cmd; cdb 485 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = CISS_REPORT_PHYS_EXTENDED; cdb 487 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = CISS_REPORT_LOG_EXTENDED; cdb 488 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be32(cdb_length, &cdb[6]); cdb 492 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = CISS_READ; cdb 493 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = CISS_GET_RAID_MAP; cdb 494 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be32(cdb_length, &cdb[6]); cdb 498 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = BMIC_WRITE; cdb 499 drivers/scsi/smartpqi/smartpqi_init.c cdb[6] = BMIC_FLUSH_CACHE; cdb 500 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be16(cdb_length, &cdb[7]); cdb 509 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = BMIC_READ; cdb 510 drivers/scsi/smartpqi/smartpqi_init.c cdb[6] = cmd; cdb 511 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be16(cdb_length, &cdb[7]); cdb 518 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = BMIC_WRITE; cdb 519 drivers/scsi/smartpqi/smartpqi_init.c cdb[6] = cmd; cdb 520 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be16(cdb_length, &cdb[7]); cdb 524 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = BMIC_WRITE; cdb 525 drivers/scsi/smartpqi/smartpqi_init.c cdb[5] = CSMI_CC_SAS_SMP_PASSTHRU; cdb 526 drivers/scsi/smartpqi/smartpqi_init.c cdb[6] = cmd; cdb 527 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be16(cdb_length, &cdb[7]); cdb 668 drivers/scsi/smartpqi/smartpqi_init.c request.cdb[2] = (u8)bmic_device_index; cdb 669 drivers/scsi/smartpqi/smartpqi_init.c request.cdb[9] = (u8)(bmic_device_index >> 8); cdb 2302 drivers/scsi/smartpqi/smartpqi_init.c u8 cdb[16]; cdb 2561 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = is_write ? WRITE_16 : READ_16; cdb 2562 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = 0; cdb 2563 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be64(disk_block, &cdb[2]); cdb 2564 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be32(disk_block_cnt, &cdb[10]); cdb 2565 drivers/scsi/smartpqi/smartpqi_init.c cdb[14] = 0; cdb 2566 drivers/scsi/smartpqi/smartpqi_init.c cdb[15] = 0; cdb 2569 drivers/scsi/smartpqi/smartpqi_init.c cdb[0] = is_write ? WRITE_10 : READ_10; cdb 2570 drivers/scsi/smartpqi/smartpqi_init.c cdb[1] = 0; cdb 2571 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be32((u32)disk_block, &cdb[2]); cdb 2572 drivers/scsi/smartpqi/smartpqi_init.c cdb[6] = 0; cdb 2573 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_be16((u16)disk_block_cnt, &cdb[7]); cdb 2574 drivers/scsi/smartpqi/smartpqi_init.c cdb[9] = 0; cdb 2588 drivers/scsi/smartpqi/smartpqi_init.c cdb, cdb_length, queue_group, encryption_info_ptr, true); cdb 4951 drivers/scsi/smartpqi/smartpqi_init.c cdb_length = min_t(size_t, scmd->cmd_len, sizeof(request->cdb)); cdb 4952 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->cdb, scmd->cmnd, cdb_length); cdb 5213 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, cdb 5236 drivers/scsi/smartpqi/smartpqi_init.c if (cdb_length > sizeof(request->cdb)) cdb 5237 drivers/scsi/smartpqi/smartpqi_init.c cdb_length = sizeof(request->cdb); cdb 5239 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->cdb, cdb, cdb_length); cdb 5952 drivers/scsi/smartpqi/smartpqi_init.c if (iocommand.Request.CDBLen > sizeof(request.cdb)) cdb 5989 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request.cdb, iocommand.Request.CDB, iocommand.Request.CDBLen); cdb 8700 drivers/scsi/smartpqi/smartpqi_init.c cdb) != 32); cdb 8727 drivers/scsi/smartpqi/smartpqi_init.c cdb) != 32); cdb 277 drivers/scsi/snic/snic_fwint.h u8 cdb[SNIC_CDB_LEN]; cdb 480 drivers/scsi/snic/snic_io.c req->u.icmnd.cdb[0]); cdb 510 drivers/scsi/snic/snic_io.c rqi->req->u.icmnd.cdb[0]); cdb 40 drivers/scsi/snic/snic_res.h memset(req->u.icmnd.cdb, 0, SNIC_CDB_LEN); cdb 41 drivers/scsi/snic/snic_res.h memcpy(req->u.icmnd.cdb, scsi_cdb, cdb_len); cdb 238 drivers/scsi/stex.c u8 cdb[STEX_CDB_LENGTH]; cdb 705 drivers/scsi/stex.c memcpy(req->cdb, cmd->cmnd, STEX_CDB_LENGTH); cdb 1879 drivers/scsi/stex.c req->cdb[0] = MGT_CMD; cdb 1880 drivers/scsi/stex.c req->cdb[1] = MGT_CMD_SIGNATURE; cdb 1881 drivers/scsi/stex.c req->cdb[2] = CTLR_CONFIG_CMD; cdb 1882 drivers/scsi/stex.c req->cdb[3] = CTLR_SHUTDOWN; cdb 1885 drivers/scsi/stex.c req->cdb[0] = MGT_CMD; cdb 1886 drivers/scsi/stex.c req->cdb[1] = MGT_CMD_SIGNATURE; cdb 1887 drivers/scsi/stex.c req->cdb[2] = CTLR_CONFIG_CMD; cdb 1888 drivers/scsi/stex.c req->cdb[3] = PMIC_SHUTDOWN; cdb 1889 drivers/scsi/stex.c req->cdb[4] = st_sleep_mic; cdb 1891 drivers/scsi/stex.c req->cdb[0] = CONTROLLER_CMD; cdb 1892 drivers/scsi/stex.c req->cdb[1] = CTLR_POWER_STATE_CHANGE; cdb 1893 drivers/scsi/stex.c req->cdb[2] = CTLR_POWER_SAVING; cdb 208 drivers/scsi/storvsc_drv.c u8 cdb[STORVSC_MAX_CMD_LEN]; cdb 1071 drivers/scsi/storvsc_drv.c if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || cdb 1072 drivers/scsi/storvsc_drv.c (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) { cdb 1088 drivers/scsi/storvsc_drv.c stor_pkt->vm_srb.cdb[0], cdb 1636 drivers/scsi/storvsc_drv.c memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length); cdb 307 drivers/scsi/ufs/ufshcd.c trace_ufshcd_upiu(dev_name(hba->dev), str, &rq->header, &rq->sc.cdb); cdb 2261 drivers/scsi/ufs/ufshcd.c memset(ucd_req_ptr->sc.cdb, 0, UFS_CDB_SIZE); cdb 2262 drivers/scsi/ufs/ufshcd.c memcpy(ucd_req_ptr->sc.cdb, lrbp->cmd->cmnd, cdb_len); cdb 567 drivers/scsi/virtio_scsi.c memcpy(cmd->req.cmd_pi.cdb, sc->cmnd, sc->cmd_len); cdb 573 drivers/scsi/virtio_scsi.c memcpy(cmd->req.cmd.cdb, sc->cmnd, sc->cmd_len); cdb 728 drivers/scsi/vmw_pvscsi.c memcpy(e->cdb, cmd->cmnd, e->cdbLen); cdb 330 drivers/scsi/vmw_pvscsi.h u8 cdb[16]; cdb 210 drivers/staging/isdn/gigaset/capi.c _cdebbuf *cdb; cdb 217 drivers/staging/isdn/gigaset/capi.c cdb = capi_cmsg2str(p); cdb 218 drivers/staging/isdn/gigaset/capi.c if (cdb) { cdb 219 drivers/staging/isdn/gigaset/capi.c gig_dbg(level, "%s: [%d] %s", tag, p->ApplId, cdb->buf); cdb 220 drivers/staging/isdn/gigaset/capi.c cdebbuf_free(cdb); cdb 750 drivers/staging/sm750fb/sm750.c int cdb[] = {ARRAY_SIZE(lynx750_ext), 0, VESA_MODEDB_SIZE}; cdb 813 drivers/staging/sm750fb/sm750.c pdb[i], cdb[i], NULL, 8); cdb 510 drivers/staging/unisys/visorhba/visorhba_main.c unsigned char *cdb = scsicmd->cmnd; cdb 542 drivers/staging/unisys/visorhba/visorhba_main.c memcpy(cmdrsp->scsi.cmnd, cdb, MAX_CMND_SIZE); cdb 1035 drivers/target/iscsi/iscsi_target.c " CDB: 0x%02x, Fixing up flags\n", hdr->cdb[0]); cdb 1177 drivers/target/iscsi/iscsi_target.c cmd->sense_reason = target_setup_cmd_from_cdb(&cmd->se_cmd, hdr->cdb); cdb 449 drivers/target/target_core_alua.c unsigned char *cdb, cdb 537 drivers/target/target_core_alua.c unsigned char *cdb) cdb 543 drivers/target/target_core_alua.c switch (cdb[0]) { cdb 555 drivers/target/target_core_alua.c switch (cdb[1] & 0x1f) { cdb 563 drivers/target/target_core_alua.c switch (cdb[1] & 0x1f) { cdb 571 drivers/target/target_core_alua.c switch (cdb[1]) { cdb 594 drivers/target/target_core_alua.c unsigned char *cdb) cdb 600 drivers/target/target_core_alua.c switch (cdb[0]) { cdb 605 drivers/target/target_core_alua.c switch (cdb[1] & 0x1f) { cdb 613 drivers/target/target_core_alua.c switch (cdb[1]) { cdb 634 drivers/target/target_core_alua.c unsigned char *cdb) cdb 640 drivers/target/target_core_alua.c switch (cdb[0]) { cdb 645 drivers/target/target_core_alua.c switch (cdb[1] & 0x1f) { cdb 673 drivers/target/target_core_alua.c unsigned char *cdb = cmd->t_task_cdb; cdb 715 drivers/target/target_core_alua.c core_alua_state_nonoptimized(cmd, cdb, nonop_delay_msecs); cdb 718 drivers/target/target_core_alua.c if (core_alua_state_standby(cmd, cdb)) cdb 722 drivers/target/target_core_alua.c if (core_alua_state_unavailable(cmd, cdb)) cdb 726 drivers/target/target_core_alua.c if (core_alua_state_transition(cmd, cdb)) cdb 1073 drivers/target/target_core_device.c unsigned char *cdb = cmd->t_task_cdb; cdb 1081 drivers/target/target_core_device.c if (cdb[0] == REPORT_LUNS) { cdb 1091 drivers/target/target_core_device.c ((cdb[0] == PERSISTENT_RESERVE_IN) || cdb 1092 drivers/target/target_core_device.c (cdb[0] == PERSISTENT_RESERVE_OUT) || cdb 1093 drivers/target/target_core_device.c (cdb[0] == RELEASE || cdb[0] == RELEASE_10) || cdb 1094 drivers/target/target_core_device.c (cdb[0] == RESERVE || cdb[0] == RESERVE_10))) { cdb 1105 drivers/target/target_core_device.c if (cdb[0] == PERSISTENT_RESERVE_IN) { cdb 1107 drivers/target/target_core_device.c size = get_unaligned_be16(&cdb[7]); cdb 1110 drivers/target/target_core_device.c if (cdb[0] == PERSISTENT_RESERVE_OUT) { cdb 1112 drivers/target/target_core_device.c size = get_unaligned_be32(&cdb[5]); cdb 1116 drivers/target/target_core_device.c if (cdb[0] == RELEASE || cdb[0] == RELEASE_10) { cdb 1118 drivers/target/target_core_device.c if (cdb[0] == RELEASE_10) cdb 1119 drivers/target/target_core_device.c size = get_unaligned_be16(&cdb[7]); cdb 1124 drivers/target/target_core_device.c if (cdb[0] == RESERVE || cdb[0] == RESERVE_10) { cdb 1126 drivers/target/target_core_device.c if (cdb[0] == RESERVE_10) cdb 1127 drivers/target/target_core_device.c size = get_unaligned_be16(&cdb[7]); cdb 1135 drivers/target/target_core_device.c switch (cdb[0]) { cdb 1152 drivers/target/target_core_device.c switch (get_unaligned_be16(&cdb[8])) { cdb 314 drivers/target/target_core_pr.c unsigned char *cdb = cmd->t_task_cdb; cdb 370 drivers/target/target_core_pr.c switch (cdb[0]) { cdb 397 drivers/target/target_core_pr.c switch (cdb[1] & 0x1f) { cdb 416 drivers/target/target_core_pr.c " action: 0x%02x\n", cdb[1] & 0x1f); cdb 434 drivers/target/target_core_pr.c switch (cdb[1] & 0x1f) { cdb 463 drivers/target/target_core_pr.c (cdb[1] & 0x1f)); cdb 487 drivers/target/target_core_pr.c " reservation holder\n", cdb[0], cdb 504 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, cdb[0], cdb 521 drivers/target/target_core_pr.c " nexus\n", cdb[0], cdb 535 drivers/target/target_core_pr.c " reservation\n", cdb[0], cdb 547 drivers/target/target_core_pr.c " reservation\n", cdb[0], cdb 556 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, cdb[0], cdb 3545 drivers/target/target_core_pr.c unsigned char *cdb = &cmd->t_task_cdb[0]; cdb 3584 drivers/target/target_core_pr.c sa = (cdb[1] & 0x1f); cdb 3585 drivers/target/target_core_pr.c scope = (cdb[2] & 0xf0); cdb 3586 drivers/target/target_core_pr.c type = (cdb[2] & 0x0f); cdb 139 drivers/target/target_core_pscsi.c unsigned char cdb[MAX_COMMAND_SIZE], *buf; cdb 146 drivers/target/target_core_pscsi.c memset(cdb, 0, MAX_COMMAND_SIZE); cdb 147 drivers/target/target_core_pscsi.c cdb[0] = MODE_SENSE; cdb 148 drivers/target/target_core_pscsi.c cdb[4] = 0x0c; /* 12 bytes */ cdb 150 drivers/target/target_core_pscsi.c ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL, cdb 188 drivers/target/target_core_pscsi.c unsigned char cdb[MAX_COMMAND_SIZE], *buf; cdb 195 drivers/target/target_core_pscsi.c memset(cdb, 0, MAX_COMMAND_SIZE); cdb 196 drivers/target/target_core_pscsi.c cdb[0] = INQUIRY; cdb 197 drivers/target/target_core_pscsi.c cdb[1] = 0x01; /* Query VPD */ cdb 198 drivers/target/target_core_pscsi.c cdb[2] = 0x80; /* Unit Serial Number */ cdb 199 drivers/target/target_core_pscsi.c put_unaligned_be16(INQUIRY_VPD_SERIAL_LEN, &cdb[3]); cdb 201 drivers/target/target_core_pscsi.c ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, cdb 222 drivers/target/target_core_pscsi.c unsigned char cdb[MAX_COMMAND_SIZE], *buf, *page_83; cdb 230 drivers/target/target_core_pscsi.c memset(cdb, 0, MAX_COMMAND_SIZE); cdb 231 drivers/target/target_core_pscsi.c cdb[0] = INQUIRY; cdb 232 drivers/target/target_core_pscsi.c cdb[1] = 0x01; /* Query VPD */ cdb 233 drivers/target/target_core_pscsi.c cdb[2] = 0x83; /* Device Identifier */ cdb 234 drivers/target/target_core_pscsi.c put_unaligned_be16(INQUIRY_VPD_DEVICE_IDENTIFIER_LEN, &cdb[3]); cdb 236 drivers/target/target_core_pscsi.c ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, cdb 599 drivers/target/target_core_pscsi.c unsigned char *cdb; cdb 607 drivers/target/target_core_pscsi.c cdb = &pt->pscsi_cdb[0]; cdb 615 drivers/target/target_core_pscsi.c if (((cdb[0] == MODE_SENSE) || (cdb[0] == MODE_SENSE_10)) && cdb 626 drivers/target/target_core_pscsi.c if (cdb[0] == MODE_SENSE_10) { cdb 650 drivers/target/target_core_pscsi.c if (((cdb[0] == MODE_SELECT) || (cdb[0] == MODE_SELECT_10)) && cdb 662 drivers/target/target_core_pscsi.c if (cdb[0] == MODE_SELECT) cdb 670 drivers/target/target_core_pscsi.c if (cdb[0] == MODE_SELECT) cdb 35 drivers/target/target_core_sbc.c unsigned char *cdb = cmd->t_task_cdb; cdb 53 drivers/target/target_core_sbc.c if (!(cdb[8] & 1) && !!(cdb[2] | cdb[3] | cdb[4] | cdb[5])) cdb 140 drivers/target/target_core_sbc.c unsigned char *cdb = cmd->t_task_cdb; cdb 147 drivers/target/target_core_sbc.c if (!(cdb[1] & 1) || cdb[2] || cdb[3]) cdb 154 drivers/target/target_core_sbc.c if (cdb[4] >> 4 & 0xf) cdb 162 drivers/target/target_core_sbc.c if (!(cdb[4] & 1) || (cdb[4] & 2) || (cdb[4] & 4)) cdb 221 drivers/target/target_core_sbc.c static inline u32 transport_get_sectors_6(unsigned char *cdb) cdb 231 drivers/target/target_core_sbc.c return cdb[4] ? : 256; cdb 234 drivers/target/target_core_sbc.c static inline u32 transport_get_sectors_10(unsigned char *cdb) cdb 236 drivers/target/target_core_sbc.c return get_unaligned_be16(&cdb[7]); cdb 239 drivers/target/target_core_sbc.c static inline u32 transport_get_sectors_12(unsigned char *cdb) cdb 241 drivers/target/target_core_sbc.c return get_unaligned_be32(&cdb[6]); cdb 244 drivers/target/target_core_sbc.c static inline u32 transport_get_sectors_16(unsigned char *cdb) cdb 246 drivers/target/target_core_sbc.c return get_unaligned_be32(&cdb[10]); cdb 252 drivers/target/target_core_sbc.c static inline u32 transport_get_sectors_32(unsigned char *cdb) cdb 254 drivers/target/target_core_sbc.c return get_unaligned_be32(&cdb[28]); cdb 258 drivers/target/target_core_sbc.c static inline u32 transport_lba_21(unsigned char *cdb) cdb 260 drivers/target/target_core_sbc.c return get_unaligned_be24(&cdb[1]) & 0x1fffff; cdb 263 drivers/target/target_core_sbc.c static inline u32 transport_lba_32(unsigned char *cdb) cdb 265 drivers/target/target_core_sbc.c return get_unaligned_be32(&cdb[2]); cdb 268 drivers/target/target_core_sbc.c static inline unsigned long long transport_lba_64(unsigned char *cdb) cdb 270 drivers/target/target_core_sbc.c return get_unaligned_be64(&cdb[2]); cdb 276 drivers/target/target_core_sbc.c static inline unsigned long long transport_lba_64_ext(unsigned char *cdb) cdb 278 drivers/target/target_core_sbc.c return get_unaligned_be64(&cdb[12]); cdb 689 drivers/target/target_core_sbc.c sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb, cdb 692 drivers/target/target_core_sbc.c u8 protect = cdb[1] >> 5; cdb 740 drivers/target/target_core_sbc.c "PROTECT: 0x%02x\n", cdb[0], protect); cdb 768 drivers/target/target_core_sbc.c sbc_check_dpofua(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) cdb 770 drivers/target/target_core_sbc.c if (cdb[1] & 0x10) { cdb 774 drivers/target/target_core_sbc.c " does not advertise support for DPO\n", cdb[0]); cdb 778 drivers/target/target_core_sbc.c if (cdb[1] & 0x8) { cdb 782 drivers/target/target_core_sbc.c cdb[0]); cdb 794 drivers/target/target_core_sbc.c unsigned char *cdb = cmd->t_task_cdb; cdb 801 drivers/target/target_core_sbc.c switch (cdb[0]) { cdb 803 drivers/target/target_core_sbc.c sectors = transport_get_sectors_6(cdb); cdb 804 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_21(cdb); cdb 809 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 810 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 812 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 815 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, false); cdb 823 drivers/target/target_core_sbc.c sectors = transport_get_sectors_12(cdb); cdb 824 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 826 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 829 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, false); cdb 837 drivers/target/target_core_sbc.c sectors = transport_get_sectors_16(cdb); cdb 838 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_64(cdb); cdb 840 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 843 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, false); cdb 851 drivers/target/target_core_sbc.c sectors = transport_get_sectors_6(cdb); cdb 852 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_21(cdb); cdb 858 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 859 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 861 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 864 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, true); cdb 872 drivers/target/target_core_sbc.c sectors = transport_get_sectors_12(cdb); cdb 873 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 875 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 878 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, true); cdb 887 drivers/target/target_core_sbc.c sectors = transport_get_sectors_16(cdb); cdb 888 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_64(cdb); cdb 890 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 893 drivers/target/target_core_sbc.c ret = sbc_check_prot(dev, cmd, cdb, sectors, true); cdb 904 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 906 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 909 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 920 drivers/target/target_core_sbc.c u16 service_action = get_unaligned_be16(&cdb[8]); cdb 923 drivers/target/target_core_sbc.c sectors = transport_get_sectors_32(cdb); cdb 925 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 931 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_64_ext(cdb); cdb 942 drivers/target/target_core_sbc.c sectors = transport_get_sectors_32(cdb); cdb 950 drivers/target/target_core_sbc.c cmd->t_task_lba = get_unaligned_be64(&cdb[12]); cdb 952 drivers/target/target_core_sbc.c ret = sbc_setup_write_same(cmd, &cdb[10], ops); cdb 971 drivers/target/target_core_sbc.c sectors = cdb[13]; cdb 980 drivers/target/target_core_sbc.c if (sbc_check_dpofua(dev, cmd, cdb)) cdb 988 drivers/target/target_core_sbc.c cmd->t_task_lba = get_unaligned_be64(&cdb[2]); cdb 1011 drivers/target/target_core_sbc.c size = get_unaligned_be32(&cdb[10]); cdb 1015 drivers/target/target_core_sbc.c if (cdb[0] == SYNCHRONIZE_CACHE) { cdb 1016 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 1017 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 1019 drivers/target/target_core_sbc.c sectors = transport_get_sectors_16(cdb); cdb 1020 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_64(cdb); cdb 1038 drivers/target/target_core_sbc.c size = get_unaligned_be16(&cdb[7]); cdb 1042 drivers/target/target_core_sbc.c sectors = transport_get_sectors_16(cdb); cdb 1049 drivers/target/target_core_sbc.c cmd->t_task_lba = get_unaligned_be64(&cdb[2]); cdb 1051 drivers/target/target_core_sbc.c ret = sbc_setup_write_same(cmd, &cdb[1], ops); cdb 1056 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 1063 drivers/target/target_core_sbc.c cmd->t_task_lba = get_unaligned_be32(&cdb[2]); cdb 1069 drivers/target/target_core_sbc.c ret = sbc_setup_write_same(cmd, &cdb[1], ops); cdb 1076 drivers/target/target_core_sbc.c if (cdb[0] == VERIFY) { cdb 1077 drivers/target/target_core_sbc.c sectors = transport_get_sectors_10(cdb); cdb 1078 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_32(cdb); cdb 1080 drivers/target/target_core_sbc.c sectors = transport_get_sectors_16(cdb); cdb 1081 drivers/target/target_core_sbc.c cmd->t_task_lba = transport_lba_64(cdb); cdb 706 drivers/target/target_core_spc.c unsigned char *cdb = cmd->t_task_cdb; cdb 723 drivers/target/target_core_spc.c if (!(cdb[1] & 0x1)) { cdb 724 drivers/target/target_core_spc.c if (cdb[2]) { cdb 726 drivers/target/target_core_spc.c cdb[2]); cdb 737 drivers/target/target_core_spc.c if (cdb[2] == evpd_handlers[p].page) { cdb 738 drivers/target/target_core_spc.c buf[1] = cdb[2]; cdb 745 drivers/target/target_core_spc.c pr_err("Unknown VPD Code: 0x%02x\n", cdb[2]); cdb 984 drivers/target/target_core_spc.c char *cdb = cmd->t_task_cdb; cdb 988 drivers/target/target_core_spc.c bool dbd = !!(cdb[1] & 0x08); cdb 989 drivers/target/target_core_spc.c bool llba = ten ? !!(cdb[1] & 0x10) : false; cdb 990 drivers/target/target_core_spc.c u8 pc = cdb[2] >> 6; cdb 991 drivers/target/target_core_spc.c u8 page = cdb[2] & 0x3f; cdb 992 drivers/target/target_core_spc.c u8 subpage = cdb[3]; cdb 1108 drivers/target/target_core_spc.c char *cdb = cmd->t_task_cdb; cdb 1109 drivers/target/target_core_spc.c bool ten = cdb[0] == MODE_SELECT_10; cdb 1111 drivers/target/target_core_spc.c bool pf = !!(cdb[1] & 0x10); cdb 1169 drivers/target/target_core_spc.c unsigned char *cdb = cmd->t_task_cdb; cdb 1177 drivers/target/target_core_spc.c if (cdb[1] & 0x01) { cdb 1279 drivers/target/target_core_spc.c unsigned char *cdb = cmd->t_task_cdb; cdb 1282 drivers/target/target_core_spc.c ((cdb[0] == PERSISTENT_RESERVE_IN) || cdb 1283 drivers/target/target_core_spc.c (cdb[0] == PERSISTENT_RESERVE_OUT) || cdb 1284 drivers/target/target_core_spc.c (cdb[0] == RELEASE || cdb[0] == RELEASE_10) || cdb 1285 drivers/target/target_core_spc.c (cdb[0] == RESERVE || cdb[0] == RESERVE_10))) { cdb 1289 drivers/target/target_core_spc.c switch (cdb[0]) { cdb 1291 drivers/target/target_core_spc.c *size = cdb[4]; cdb 1295 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1299 drivers/target/target_core_spc.c *size = cdb[4]; cdb 1303 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1308 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1311 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1315 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[5]); cdb 1320 drivers/target/target_core_spc.c if (cdb[0] == RELEASE_10) cdb 1321 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1333 drivers/target/target_core_spc.c if (cdb[0] == RESERVE_10) cdb 1334 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[7]); cdb 1341 drivers/target/target_core_spc.c *size = cdb[4]; cdb 1345 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[3]); cdb 1356 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[6]); cdb 1359 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[10]); cdb 1363 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[10]); cdb 1368 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[10]); cdb 1372 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[3]); cdb 1375 drivers/target/target_core_spc.c *size = get_unaligned_be24(&cdb[6]); cdb 1379 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[6]); cdb 1396 drivers/target/target_core_spc.c if ((cdb[1] & 0x1f) == MI_REPORT_TARGET_PGS) { cdb 1400 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[6]); cdb 1405 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[8]); cdb 1414 drivers/target/target_core_spc.c if (cdb[1] == MO_SET_TARGET_PGS) { cdb 1418 drivers/target/target_core_spc.c *size = get_unaligned_be32(&cdb[6]); cdb 1423 drivers/target/target_core_spc.c *size = get_unaligned_be16(&cdb[8]); cdb 1400 drivers/target/target_core_transport.c target_setup_cmd_from_cdb(struct se_cmd *cmd, unsigned char *cdb) cdb 1409 drivers/target/target_core_transport.c if (scsi_command_size(cdb) > SCSI_MAX_VARLEN_CDB_SIZE) { cdb 1412 drivers/target/target_core_transport.c scsi_command_size(cdb), SCSI_MAX_VARLEN_CDB_SIZE); cdb 1420 drivers/target/target_core_transport.c if (scsi_command_size(cdb) > sizeof(cmd->__t_task_cdb)) { cdb 1421 drivers/target/target_core_transport.c cmd->t_task_cdb = kzalloc(scsi_command_size(cdb), cdb 1426 drivers/target/target_core_transport.c scsi_command_size(cdb), cdb 1435 drivers/target/target_core_transport.c memcpy(cmd->t_task_cdb, cdb, scsi_command_size(cdb)); cdb 1558 drivers/target/target_core_transport.c unsigned char *cdb, unsigned char *sense, u64 unpacked_lun, cdb 1611 drivers/target/target_core_transport.c rc = target_setup_cmd_from_cdb(se_cmd, cdb); cdb 1700 drivers/target/target_core_transport.c unsigned char *cdb, unsigned char *sense, u64 unpacked_lun, cdb 1703 drivers/target/target_core_transport.c return target_submit_cmd_map_sgls(se_cmd, se_sess, cdb, sense, cdb 2909 drivers/target/target_core_transport.c const u8 *cdb = cmd->t_task_cdb; cdb 2914 drivers/target/target_core_transport.c pfx, cdb[0], cdb[1], cmd->tag, cdb 517 drivers/target/target_core_xcopy.c unsigned char *cdb, cdb 539 drivers/target/target_core_xcopy.c sense_rc = target_setup_cmd_from_cdb(cmd, cdb); cdb 612 drivers/target/target_core_xcopy.c unsigned char cdb[16]; cdb 623 drivers/target/target_core_xcopy.c memset(&cdb[0], 0, 16); cdb 624 drivers/target/target_core_xcopy.c cdb[0] = READ_16; cdb 625 drivers/target/target_core_xcopy.c put_unaligned_be64(src_lba, &cdb[2]); cdb 626 drivers/target/target_core_xcopy.c put_unaligned_be32(src_sectors, &cdb[10]); cdb 634 drivers/target/target_core_xcopy.c rc = target_xcopy_setup_pt_cmd(xpt_cmd, xop, src_dev, &cdb[0], cdb 674 drivers/target/target_core_xcopy.c unsigned char cdb[16]; cdb 685 drivers/target/target_core_xcopy.c memset(&cdb[0], 0, 16); cdb 686 drivers/target/target_core_xcopy.c cdb[0] = WRITE_16; cdb 687 drivers/target/target_core_xcopy.c put_unaligned_be64(dst_lba, &cdb[2]); cdb 688 drivers/target/target_core_xcopy.c put_unaligned_be32(dst_sectors, &cdb[10]); cdb 696 drivers/target/target_core_xcopy.c rc = target_xcopy_setup_pt_cmd(xpt_cmd, xop, dst_dev, &cdb[0], cdb 1054 drivers/target/target_core_xcopy.c unsigned char *cdb = &se_cmd->t_task_cdb[0]; cdb 1055 drivers/target/target_core_xcopy.c int sa = (cdb[1] & 0x1f), list_id = cdb[2]; cdb 890 drivers/usb/gadget/function/f_tcm.c static int get_cmd_dir(const unsigned char *cdb) cdb 894 drivers/usb/gadget/function/f_tcm.c switch (cdb[0]) { cdb 945 drivers/usb/gadget/function/f_tcm.c pr_warn(CMD_DIR_MSG, cdb[0]); cdb 1123 drivers/usb/gadget/function/f_tcm.c memcpy(cmd->cmd_buf, cmd_iu->cdb, cmd_len); cdb 677 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cdb 681 drivers/usb/storage/ene_ub6250.c u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | cdb 682 drivers/usb/storage/ene_ub6250.c ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); cdb 683 drivers/usb/storage/ene_ub6250.c u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); cdb 717 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cdb 721 drivers/usb/storage/ene_ub6250.c u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | cdb 722 drivers/usb/storage/ene_ub6250.c ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); cdb 723 drivers/usb/storage/ene_ub6250.c u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); cdb 1640 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cdb 1644 drivers/usb/storage/ene_ub6250.c u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | cdb 1645 drivers/usb/storage/ene_ub6250.c ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); cdb 1646 drivers/usb/storage/ene_ub6250.c u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); cdb 1740 drivers/usb/storage/ene_ub6250.c unsigned char *cdb = srb->cmnd; cdb 1743 drivers/usb/storage/ene_ub6250.c u32 bn = ((cdb[2] << 24) & 0xff000000) | cdb 1744 drivers/usb/storage/ene_ub6250.c ((cdb[3] << 16) & 0x00ff0000) | cdb 1745 drivers/usb/storage/ene_ub6250.c ((cdb[4] << 8) & 0x0000ff00) | cdb 1746 drivers/usb/storage/ene_ub6250.c ((cdb[5] << 0) & 0x000000ff); cdb 1747 drivers/usb/storage/ene_ub6250.c u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); cdb 520 drivers/usb/storage/uas.c memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len); cdb 570 drivers/vhost/scsi.c unsigned char *cdb, u64 scsi_tag, u16 lun, u8 task_attr, cdb 611 drivers/vhost/scsi.c memcpy(cmd->tvc_cdb, cdb, VHOST_SCSI_MAX_CDB_SIZE); cdb 925 drivers/vhost/scsi.c void *cdb; cdb 1047 drivers/vhost/scsi.c cdb = &v_req_pi.cdb[0]; cdb 1052 drivers/vhost/scsi.c cdb = &v_req.cdb[0]; cdb 1062 drivers/vhost/scsi.c if (unlikely(scsi_command_size(cdb) > VHOST_SCSI_MAX_CDB_SIZE)) { cdb 1065 drivers/vhost/scsi.c scsi_command_size(cdb), VHOST_SCSI_MAX_CDB_SIZE); cdb 1068 drivers/vhost/scsi.c cmd = vhost_scsi_get_tag(vq, tpg, cdb, tag, lun, task_attr, cdb 185 include/linux/isdn/capiutil.h void cdebbuf_free(_cdebbuf *cdb); cdb 621 include/linux/libata.h u8 cdb[ATAPI_CDB_LEN]; cdb 304 include/linux/qed/iscsi_common.h __le32 cdb[4]; cdb 55 include/linux/usb/uas.h __u8 cdb[16]; /* XXX: Overflow-checking tools may misunderstand */ cdb 149 include/scsi/iscsi_proto.h uint8_t cdb[ISCSI_CDB_SIZE]; /* SCSI Command Block */ cdb 348 include/scsi/sas.h u8 cdb[16]; cdb 579 include/scsi/sas.h u8 cdb[16]; cdb 246 include/scsi/srp.h u8 cdb[16]; cdb 198 include/trace/events/scsi.h #define __parse_cdb(cdb, len) scsi_trace_parse_cdb(p, cdb, len) cdb 143 include/trace/events/target.h __array( unsigned char, cdb, TCM_MAX_COMMAND_SIZE ) cdb 152 include/trace/events/target.h memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE); cdb 159 include/trace/events/target.h __entry->data_length, __print_hex(__entry->cdb, 16), cdb 161 include/trace/events/target.h scsi_command_size(__entry->cdb) <= 16 ? cdb 162 include/trace/events/target.h __entry->cdb[scsi_command_size(__entry->cdb) - 1] : cdb 163 include/trace/events/target.h __entry->cdb[1] cdb 180 include/trace/events/target.h __array( unsigned char, cdb, TCM_MAX_COMMAND_SIZE ) cdb 193 include/trace/events/target.h memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE); cdb 204 include/trace/events/target.h __entry->data_length, __print_hex(__entry->cdb, 16), cdb 206 include/trace/events/target.h scsi_command_size(__entry->cdb) <= 16 ? cdb 207 include/trace/events/target.h __entry->cdb[scsi_command_size(__entry->cdb) - 1] : cdb 208 include/trace/events/target.h __entry->cdb[1] cdb 50 include/uapi/linux/virtio_scsi.h __u8 cdb[VIRTIO_SCSI_CDB_SIZE]; cdb 62 include/uapi/linux/virtio_scsi.h __u8 cdb[VIRTIO_SCSI_CDB_SIZE]; cdb 63 include/uapi/scsi/scsi_bsg_ufs.h __u8 cdb[UFS_CDB_SIZE]; cdb 150 tools/lib/traceevent/plugins/plugin_scsi.c #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f) cdb 151 tools/lib/traceevent/plugins/plugin_scsi.c #define SERVICE_ACTION32(cdb) ((cdb[8] << 8) | cdb[9]) cdb 157 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_rw6(struct trace_seq *p, unsigned char *cdb, int len) cdb 162 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((cdb[1] & 0x1F) << 16); cdb 163 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[2] << 8); cdb 164 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[3]; cdb 165 tools/lib/traceevent/plugins/plugin_scsi.c txlen = cdb[4]; cdb 174 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_rw10(struct trace_seq *p, unsigned char *cdb, int len) cdb 179 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[2] << 24); cdb 180 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[3] << 16); cdb 181 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[4] << 8); cdb 182 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[5]; cdb 183 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[7] << 8); cdb 184 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= cdb[8]; cdb 188 tools/lib/traceevent/plugins/plugin_scsi.c cdb[1] >> 5); cdb 190 tools/lib/traceevent/plugins/plugin_scsi.c if (cdb[0] == WRITE_SAME) cdb 191 tools/lib/traceevent/plugins/plugin_scsi.c trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); cdb 198 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_rw12(struct trace_seq *p, unsigned char *cdb, int len) cdb 203 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[2] << 24); cdb 204 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[3] << 16); cdb 205 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[4] << 8); cdb 206 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[5]; cdb 207 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[6] << 24); cdb 208 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[7] << 16); cdb 209 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[8] << 8); cdb 210 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= cdb[9]; cdb 214 tools/lib/traceevent/plugins/plugin_scsi.c cdb[1] >> 5); cdb 220 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_rw16(struct trace_seq *p, unsigned char *cdb, int len) cdb 225 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[2] << 56); cdb 226 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[3] << 48); cdb 227 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[4] << 40); cdb 228 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[5] << 32); cdb 229 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[6] << 24); cdb 230 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[7] << 16); cdb 231 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[8] << 8); cdb 232 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[9]; cdb 233 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[10] << 24); cdb 234 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[11] << 16); cdb 235 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[12] << 8); cdb 236 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= cdb[13]; cdb 240 tools/lib/traceevent/plugins/plugin_scsi.c cdb[1] >> 5); cdb 242 tools/lib/traceevent/plugins/plugin_scsi.c if (cdb[0] == WRITE_SAME_16) cdb 243 tools/lib/traceevent/plugins/plugin_scsi.c trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); cdb 250 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_rw32(struct trace_seq *p, unsigned char *cdb, int len) cdb 256 tools/lib/traceevent/plugins/plugin_scsi.c switch (SERVICE_ACTION32(cdb)) { cdb 274 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[12] << 56); cdb 275 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[13] << 48); cdb 276 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[14] << 40); cdb 277 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[15] << 32); cdb 278 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[16] << 24); cdb 279 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[17] << 16); cdb 280 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[18] << 8); cdb 281 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[19]; cdb 282 tools/lib/traceevent/plugins/plugin_scsi.c ei_lbrt |= (cdb[20] << 24); cdb 283 tools/lib/traceevent/plugins/plugin_scsi.c ei_lbrt |= (cdb[21] << 16); cdb 284 tools/lib/traceevent/plugins/plugin_scsi.c ei_lbrt |= (cdb[22] << 8); cdb 285 tools/lib/traceevent/plugins/plugin_scsi.c ei_lbrt |= cdb[23]; cdb 286 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[28] << 24); cdb 287 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[29] << 16); cdb 288 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= (cdb[30] << 8); cdb 289 tools/lib/traceevent/plugins/plugin_scsi.c txlen |= cdb[31]; cdb 293 tools/lib/traceevent/plugins/plugin_scsi.c (unsigned long long)txlen, cdb[10] >> 5, ei_lbrt); cdb 295 tools/lib/traceevent/plugins/plugin_scsi.c if (SERVICE_ACTION32(cdb) == WRITE_SAME_32) cdb 296 tools/lib/traceevent/plugins/plugin_scsi.c trace_seq_printf(p, " unmap=%u", cdb[10] >> 3 & 1); cdb 304 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_unmap(struct trace_seq *p, unsigned char *cdb, int len) cdb 307 tools/lib/traceevent/plugins/plugin_scsi.c unsigned int regions = cdb[7] << 8 | cdb[8]; cdb 315 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_service_action_in(struct trace_seq *p, unsigned char *cdb, int len) cdb 321 tools/lib/traceevent/plugins/plugin_scsi.c switch (SERVICE_ACTION16(cdb)) { cdb 333 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[2] << 56); cdb 334 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[3] << 48); cdb 335 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[4] << 40); cdb 336 tools/lib/traceevent/plugins/plugin_scsi.c lba |= ((u64)cdb[5] << 32); cdb 337 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[6] << 24); cdb 338 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[7] << 16); cdb 339 tools/lib/traceevent/plugins/plugin_scsi.c lba |= (cdb[8] << 8); cdb 340 tools/lib/traceevent/plugins/plugin_scsi.c lba |= cdb[9]; cdb 341 tools/lib/traceevent/plugins/plugin_scsi.c alloc_len |= (cdb[10] << 24); cdb 342 tools/lib/traceevent/plugins/plugin_scsi.c alloc_len |= (cdb[11] << 16); cdb 343 tools/lib/traceevent/plugins/plugin_scsi.c alloc_len |= (cdb[12] << 8); cdb 344 tools/lib/traceevent/plugins/plugin_scsi.c alloc_len |= cdb[13]; cdb 355 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_varlen(struct trace_seq *p, unsigned char *cdb, int len) cdb 357 tools/lib/traceevent/plugins/plugin_scsi.c switch (SERVICE_ACTION32(cdb)) { cdb 362 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_rw32(p, cdb, len); cdb 364 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_misc(p, cdb, len); cdb 369 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_misc(struct trace_seq *p, unsigned char *cdb, int len) cdb 379 tools/lib/traceevent/plugins/plugin_scsi.c scsi_trace_parse_cdb(struct trace_seq *p, unsigned char *cdb, int len) cdb 381 tools/lib/traceevent/plugins/plugin_scsi.c switch (cdb[0]) { cdb 384 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_rw6(p, cdb, len); cdb 389 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_rw10(p, cdb, len); cdb 393 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_rw12(p, cdb, len); cdb 398 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_rw16(p, cdb, len); cdb 400 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_unmap(p, cdb, len); cdb 402 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_service_action_in(p, cdb, len); cdb 404 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_varlen(p, cdb, len); cdb 406 tools/lib/traceevent/plugins/plugin_scsi.c return scsi_trace_misc(p, cdb, len);