Searched refs:cdb (Results 26 - 50 of 116) sorted by relevance

12345

/freebsd-9.3-release/tools/tools/vhba/mptest/
H A Dvhba_mptest.c136 uint8_t *cdb, *ptr, status; local
144 cdb = csio->cdb_io.cdb_bytes;
156 if ((csio->ccb_h.target_lun >= MAX_LUN || vhbas->luns[csio->ccb_h.target_lun] == 0) && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != REQUEST_SENSE) {
162 switch (cdb[0]) {
167 uint8_t page = cdb[2] & SMS_PAGE_CODE;
168 uint8_t pgctl = cdb[2] & SMS_PAGE_CTRL_MASK;
183 if (cdb[1] & SMS_DBD) {
293 if (cdb[
[all...]
/freebsd-9.3-release/sys/dev/isci/scil/
H A Dsati_mode_sense_10.c99 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
128 if (sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_DBD_ENABLE)
134 if (sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_LLBAA_ENABLE)
218 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
227 if ((sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_DBD_ENABLE) == 0)
231 if (sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_LLBAA_ENABLE)
269 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
274 sequence->allocation_length = (sati_get_cdb_byte(cdb, 7) << 8) |
275 (sati_get_cdb_byte(cdb, 8));
H A Dsati_atapi.c88 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
115 if (sati_get_cdb_byte(cdb, 0) == SCSI_REPORT_LUNS)
143 //set the cdb for Request Sense using command_specific_data field.
236 U8* cdb = sati_cb_get_cdb_address(scsi_io); local
240 switch(cdb[0])
H A Dsati_mode_sense_6.c99 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
115 if (sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_DBD_ENABLE)
148 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
157 if ((sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SENSE_DBD_ENABLE) == 0)
190 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
193 sequence->allocation_length = sati_get_cdb_byte(cdb, 4);
H A Dsati_inquiry.c662 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
668 if ( ((sati_get_cdb_byte(cdb, 1) & SCSI_INQUIRY_EVPD_ENABLE) == 0)
669 && (sati_get_cdb_byte(cdb, 2) != 0) )
683 sequence->allocation_length = (sati_get_cdb_byte(cdb, 3) << 8) |
684 (sati_get_cdb_byte(cdb, 4));
688 if (sati_get_cdb_byte(cdb, 1) & SCSI_INQUIRY_EVPD_ENABLE)
691 switch (sati_get_cdb_byte(cdb, 2))
H A Dsati_log_sense.c601 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
604 if(SATI_LOG_SENSE_GET_PC_FIELD(cdb) == 1 &&
605 (sati_get_cdb_byte(cdb, 3) == 0))
607 sequence->allocation_length = (sati_get_cdb_byte(cdb, 7) << 8) |
608 (sati_get_cdb_byte(cdb, 8));
610 switch(SATI_LOG_SENSE_GET_PAGE_CODE(cdb))
H A Dsati_mode_select.c835 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
855 data_transfer_length = sati_get_cdb_byte(cdb, 4);
860 data_transfer_length = (sati_get_cdb_byte(cdb, 7) << 8) + sati_get_cdb_byte(cdb, 8);
969 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
972 if ((sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SELECT_PF_MASK) == !SCSI_MODE_SELECT_PF_BIT)
1029 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
1032 if ((sati_get_cdb_byte(cdb, 1) & SCSI_MODE_SELECT_PF_MASK) == !SCSI_MODE_SELECT_PF_BIT)
H A Dsati_request_sense.c97 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
166 sequence->allocation_length = sati_get_cdb_byte(cdb, 4);
H A Dsati_unmap.c229 U8 * cdb; local
257 // get the amount of data being sent from the cdb
258 cdb = sati_cb_get_cdb_address(scsi_io);
259 unmap_length = (sati_get_cdb_byte(cdb, 7) << 8) | sati_get_cdb_byte(cdb, 8);
H A Dsati_reassign_blocks.c279 U8 * cdb = sati_cb_get_cdb_address(scsi_io); local
283 if ((sati_get_cdb_byte(cdb, 1) & SCSI_REASSIGN_BLOCKS_LONGLBA_BIT) == 0)
295 if ((sati_get_cdb_byte(cdb, 1) & SCSI_REASSIGN_BLOCKS_LONGLIST_BIT) == 0)
/freebsd-9.3-release/sys/powerpc/ps3/
H A Dps3cdrom.c473 u_int8_t *cdb, sense_key, asc, ascq; local
490 cdb = (ccb->ccb_h.flags & CAM_CDB_POINTER) ?
496 cdb[0], tag, status));
556 u_int8_t *cdb; local
574 cdb = (ccb->ccb_h.flags & CAM_CDB_POINTER) ?
579 ("ATAPI command 0x%02x cdb_len %d dxfer_len %d\n ", cdb[0],
582 switch (cdb[0]) {
584 start_sector = (cdb[2] << 24) | (cdb[3] << 16) |
585 (cdb[
[all...]
/freebsd-9.3-release/sbin/camcontrol/
H A Dfwdownload.c244 struct scsi_write_buffer cdb; local
321 bzero(&cdb, sizeof(cdb));
323 cdb.opcode = WRITE_BUFFER;
324 cdb.control = 0;
326 scsi_ulto3b(pkt_size, &cdb.length[0]);
328 scsi_ulto3b(offset, &cdb.offset[0]);
329 cdb.byte2 = last_pkt ? vp->cdb_byte2_last : vp->cdb_byte2;
330 cdb.buffer_id = vp->inc_cdb_buffer_id ? pkt_count : 0;
334 /* Copy previously constructed cdb int
[all...]
/freebsd-9.3-release/sys/dev/twa/
H A Dtw_cl_misc.c944 TW_UINT8 *cdb; local
980 cdb = (TW_UINT8 *)(cmd9k->cdb);
984 cdb[0], cdb[1], cdb[2], cdb[3],
985 cdb[4], cdb[5], cdb[
[all...]
/freebsd-9.3-release/sys/cam/ctl/
H A Dctl.c385 struct scsi_per_res_out *cdb,
521 printf("%s: type %d msg %d cdb %x iptl: "
527 tmp_io->scsiio.cdb[0],
629 memcpy(io->scsiio.cdb, msg_info.scsi.cdb,
635 opcode = io->scsiio.cdb[0];
2015 bcopy(io->scsiio.cdb, entry->cdb, io->scsiio.cdb_len);
3603 "msg %d cdb %x iptl: "
3609 tmp_io->scsiio.cdb[
5010 struct scsi_release *cdb; local
5026 struct scsi_release_10 *cdb; local
5147 struct scsi_reserve *cdb; local
5165 struct scsi_reserve_10 *cdb; local
5260 struct scsi_start_stop_unit *cdb; local
5440 struct scsi_sync_cache *cdb; local
5454 struct scsi_sync_cache_16 *cdb; local
5554 struct scsi_format *cdb; local
5654 struct scsi_write_buffer *cdb; local
6307 struct scsi_mode_select_6 *cdb; local
6319 struct scsi_mode_select_10 *cdb; local
6454 struct scsi_mode_sense_6 *cdb; local
6471 struct scsi_mode_sense_10 *cdb; local
6755 struct scsi_read_capacity *cdb; local
6814 struct scsi_read_capacity_16 *cdb; local
6874 struct scsi_service_action_in *cdb; local
6904 struct scsi_maintenance_in *cdb; local
7053 struct scsi_per_res_in *cdb; local
7281 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key, uint64_t sa_res_key, uint8_t type, uint32_t residx, struct ctl_scsiio *ctsio, struct scsi_per_res_out *cdb, struct scsi_per_res_out_parms* param) argument
7755 struct scsi_per_res_out *cdb; local
8395 struct scsi_rw_6 *cdb; local
8412 struct scsi_rw_10 *cdb; local
8432 struct scsi_write_verify_10 *cdb; local
8452 struct scsi_rw_12 *cdb; local
8467 struct scsi_write_verify_12 *cdb; local
8481 struct scsi_rw_16 *cdb; local
8497 struct scsi_write_verify_16 *cdb; local
8580 struct scsi_report_luns *cdb; local
8742 struct scsi_request_sense *cdb; local
9228 struct scsi_inquiry *cdb; local
9266 struct scsi_inquiry *cdb; local
9491 struct scsi_inquiry *cdb; local
9549 struct scsi_rw_6 *cdb; local
9561 struct scsi_rw_10 *cdb; local
9570 struct scsi_write_verify_10 *cdb; local
9580 struct scsi_rw_12 *cdb; local
9589 struct scsi_write_verify_12 *cdb; local
9599 struct scsi_rw_16 *cdb; local
9608 struct scsi_write_verify_16 *cdb; local
[all...]
H A Dctl_scsi_all.c106 scsi_op_desc(ctsio->cdb[0], inq_data),
107 scsi_cdb_string(ctsio->cdb, cdb_str, sizeof(cdb_str)));
168 path_str, inq_data, ctsio->cdb, ctsio->cdb_len);
H A Dscsi_ctl.c987 printf("%s: tag %04x cdb %02x flags %#x dxfer_len "
1095 struct scsi_rw_6 *cdb = (struct scsi_rw_6 *)cmdbyt; local
1096 lba = scsi_3btoul(cdb->addr);
1098 num_blocks = cdb->length;
1103 scsi_ulto3b(lba, cdb->addr);
1104 cdb->length = num_blocks;
1110 struct scsi_rw_10 *cdb = (struct scsi_rw_10 *)cmdbyt; local
1111 lba = scsi_4btoul(cdb->addr);
1112 num_blocks = scsi_2btoul(cdb->length);
1115 scsi_ulto4b(lba, cdb
1122 struct scsi_rw_12 *cdb = (struct scsi_rw_12 *)cmdbyt; local
1134 struct scsi_rw_16 *cdb = (struct scsi_rw_16 *)cmdbyt; local
[all...]
H A Dctl_io.h301 uint8_t cdb[CTL_MAX_CDBLEN]; /* CDB */ member in struct:ctl_scsiio
414 uint8_t cdb[CTL_MAX_CDBLEN]; /* CDB */ member in struct:ctl_ha_msg_scsi
/freebsd-9.3-release/share/examples/scsi_target/
H A Dscsi_cmds.c79 static void cdb_debug(u_int8_t *cdb, const char *msg, ...);
150 if (last_cmd == NULL || last_cmd->cmd != a_descr->cdb[0]) {
154 if (a_descr->cdb[0] == h->cmd)
171 warnx("no done func for %#x???", a_descr->cdb[0]);
175 warnx("cdb %#x not handled", a_descr->cdb[0]);
189 a_descr->cdb[0] != INQUIRY) {
194 cdb_debug(a_descr->cdb, "UA active for %u: ",
304 inq = (struct scsi_inquiry *)a_descr->cdb;
307 cdb_debug(a_descr->cdb, "INQUIR
518 u_int8_t *cdb; local
801 cdb_debug(u_int8_t *cdb, const char *msg, ...) argument
[all...]
H A Dscsi_target.h60 u_int8_t *cdb; /* Pointer to received CDB */ member in struct:atio_descr
/freebsd-9.3-release/sys/dev/ciss/
H A Dciss.c1333 cc->cdb.cdb_length = sizeof(*crc);
1334 cc->cdb.type = CISS_CDB_TYPE_COMMAND;
1335 cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
1336 cc->cdb.direction = CISS_CDB_DIRECTION_READ;
1337 cc->cdb.timeout = 30; /* XXX better suggestions? */
1339 crc = (struct ciss_report_cdb *)&(cc->cdb.cdb[0]);
1657 cc->cdb.cdb_length = 6;
1658 cc->cdb.type = CISS_CDB_TYPE_COMMAND;
1659 cc->cdb
3375 uint8_t *cdb; local
[all...]
/freebsd-9.3-release/sys/dev/hpt27xx/
H A Dhpt27xx_osm_bsd.c534 HPT_U8 *cdb; local
537 cdb = ccb->csio.cdb_io.cdb_ptr;
539 cdb = ccb->csio.cdb_io.cdb_bytes;
541 KdPrint(("hpt_scsi_io: ccb %x id %d lun %d cdb %x-%x-%x",
544 *(HPT_U32 *)&cdb[0], *(HPT_U32 *)&cdb[4], *(HPT_U32 *)&cdb[8]
565 switch (cdb[0]) {
659 switch (cdb[0]) {
663 pCmd->uCmd.Ide.Lba = ((HPT_U32)cdb[
[all...]
/freebsd-9.3-release/sys/dev/hptnr/
H A Dhptnr_osm_bsd.c547 HPT_U8 *cdb; local
550 cdb = ccb->csio.cdb_io.cdb_ptr;
552 cdb = ccb->csio.cdb_io.cdb_bytes;
554 KdPrint(("hpt_scsi_io: ccb %x id %d lun %d cdb %x-%x-%x",
557 *(HPT_U32 *)&cdb[0], *(HPT_U32 *)&cdb[4], *(HPT_U32 *)&cdb[8]
578 switch (cdb[0]) {
671 switch (cdb[0]) {
675 pCmd->uCmd.Ide.Lba = ((HPT_U32)cdb[
[all...]
/freebsd-9.3-release/sys/dev/hptrr/
H A Dhptrr_osm_bsd.c540 HPT_U8 *cdb; local
543 cdb = ccb->csio.cdb_io.cdb_ptr;
545 cdb = ccb->csio.cdb_io.cdb_bytes;
547 KdPrint(("hpt_scsi_io: ccb %x id %d lun %d cdb %x-%x-%x",
550 *(HPT_U32 *)&cdb[0], *(HPT_U32 *)&cdb[4], *(HPT_U32 *)&cdb[8]
571 switch (cdb[0]) {
665 switch (cdb[0]) {
669 pCmd->uCmd.Ide.Lba = ((HPT_U32)cdb[
[all...]
/freebsd-9.3-release/sys/dev/firewire/
H A Dsbp.h181 uint32_t cdb; member in struct:sbp_cmd_status
/freebsd-9.3-release/sys/dev/virtio/scsi/
H A Dvirtio_scsi.h49 uint8_t cdb[VIRTIO_SCSI_CDB_SIZE]; member in struct:virtio_scsi_cmd_req

Completed in 197 milliseconds

12345