Home
last modified time | relevance | path

Searched refs:csio (Results 1 – 25 of 99) sorted by relevance

1234

/freebsd/tools/tools/vhba/lots/
H A Dvhba_lots.c97 vhbalots_act(vhbalots_t *vhbas, struct ccb_scsiio *csio) in vhbalots_act() argument
107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbalots_act()
108 cdb = csio->cdb_io.cdb_bytes; in vhbalots_act()
110 if (csio->ccb_h.target_id >= MAX_TGT) { in vhbalots_act()
111 csio->ccb_h.status = CAM_SEL_TIMEOUT; in vhbalots_act()
112 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbalots_act()
115 …if (csio->ccb_h.target_lun >= MAX_LUN && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != R… in vhbalots_act()
116 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x25, 0x0); in vhbalots_act()
117 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbalots_act()
137 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x24, 0x0); in vhbalots_act()
[all …]
/freebsd/tools/tools/vhba/medium/
H A Dvhba_medium.c97 vhbamedium_act(vhbamedium_t *vhbas, struct ccb_scsiio *csio) in vhbamedium_act() argument
107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbamedium_act()
108 cdb = csio->cdb_io.cdb_bytes; in vhbamedium_act()
110 if (csio->ccb_h.target_id >= MAX_TGT) { in vhbamedium_act()
111 csio->ccb_h.status = CAM_SEL_TIMEOUT; in vhbamedium_act()
112 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbamedium_act()
115 …if (csio->ccb_h.target_lun >= MAX_LUN && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != R… in vhbamedium_act()
116 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x25, 0x0); in vhbamedium_act()
117 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbamedium_act()
137 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x24, 0x0); in vhbamedium_act()
[all …]
/freebsd/tools/tools/vhba/simple/
H A Dvhba_simple.c97 vhbasimple_act(vhbasimple_t *vhbas, struct ccb_scsiio *csio) in vhbasimple_act() argument
107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbasimple_act()
108 cdb = csio->cdb_io.cdb_bytes; in vhbasimple_act()
110 if (csio->ccb_h.target_id >= MAX_TGT) { in vhbasimple_act()
111 csio->ccb_h.status = CAM_SEL_TIMEOUT; in vhbasimple_act()
112 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbasimple_act()
115 …if (csio->ccb_h.target_lun >= MAX_LUN && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != R… in vhbasimple_act()
116 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x25, 0x0); in vhbasimple_act()
117 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbasimple_act()
137 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x24, 0x0); in vhbasimple_act()
[all …]
/freebsd/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c118 vhbarptluns_act(vhbarptluns_t *vhbas, struct ccb_scsiio *csio) in vhbarptluns_act() argument
129 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbarptluns_act()
130 cdb = csio->cdb_io.cdb_bytes; in vhbarptluns_act()
132 if (csio->ccb_h.target_id >= MAX_TGT) { in vhbarptluns_act()
133 csio->ccb_h.status = CAM_SEL_TIMEOUT; in vhbarptluns_act()
134 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in vhbarptluns_act()
138 if (csio->ccb_h.target_lun < MAX_LUN) { in vhbarptluns_act()
139 i = csio->ccb_h.target_lun & 0x7; in vhbarptluns_act()
140 if (vhbas->rpbitmap[csio->ccb_h.target_lun >> 3] & (1 << i)) { in vhbarptluns_act()
145 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x25, 0x0); in vhbarptluns_act()
[all …]
/freebsd/tools/tools/vhba/faulty/
H A Dvhba_faulty.c104 faulty_act(faulty_t *vhbas, struct ccb_scsiio *csio) in faulty_act() argument
115 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in faulty_act()
116 cdb = csio->cdb_io.cdb_bytes; in faulty_act()
118 if (csio->ccb_h.target_id >= MAX_TGT) { in faulty_act()
119 vhba_set_status(&csio->ccb_h, CAM_SEL_TIMEOUT); in faulty_act()
120 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in faulty_act()
125 vhba_set_status(&csio->ccb_h, CAM_SEL_TIMEOUT); in faulty_act()
126 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in faulty_act()
129 …if (csio->ccb_h.target_lun >= MAX_LUN && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != R… in faulty_act()
130 vhba_fill_sense(csio, SSD_KEY_ILLEGAL_REQUEST, 0x25, 0x0); in faulty_act()
[all …]
/freebsd/tools/tools/vhba/mptest/
H A Dvhba_mptest.c131 mptest_act(mptest_t *vhbas, struct ccb_scsiio *csio) in mptest_act() argument
142 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in mptest_act()
143 cdb = csio->cdb_io.cdb_bytes; in mptest_act()
145 if (csio->ccb_h.target_id >= MAX_TGT) { in mptest_act()
146 vhba_set_status(&csio->ccb_h, CAM_SEL_TIMEOUT); in mptest_act()
147 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in mptest_act()
150 …if (vhba_inject_hwerr && csio->ccb_h.target_lun < MAX_LUN && vhbas->luns[csio->ccb_h.target_lun] =… in mptest_act()
151 vhba_fill_sense(csio, SSD_KEY_HARDWARE_ERROR, 0x44, 0x0); in mptest_act()
152 TAILQ_INSERT_TAIL(&vhbas->vhba->done, &csio->ccb_h, sim_links.tqe); in mptest_act()
155 …if ((csio->ccb_h.target_lun >= MAX_LUN || vhbas->luns[csio->ccb_h.target_lun] == 0) && cdb[0] != I… in mptest_act()
[all …]
/freebsd/tools/tools/vhba/
H A Dvhba.c154 vhba_fill_sense(struct ccb_scsiio *csio, uint8_t key, uint8_t asc, uint8_t ascq) in vhba_fill_sense() argument
156 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR|CAM_AUTOSNS_VALID; in vhba_fill_sense()
157 csio->scsi_status = SCSI_STATUS_CHECK_COND; in vhba_fill_sense()
158 csio->sense_data.error_code = SSD_ERRCODE_VALID|SSD_CURRENT_ERROR; in vhba_fill_sense()
159 csio->sense_data.flags = key; in vhba_fill_sense()
160 csio->sense_data.extra_len = 10; in vhba_fill_sense()
161 csio->sense_data.add_sense_code = asc; in vhba_fill_sense()
162 csio->sense_data.add_sense_code_qual = ascq; in vhba_fill_sense()
163 csio->sense_len = sizeof (csio->sense_data); in vhba_fill_sense()
233 vhba_default_cmd(struct ccb_scsiio *csio, lun_id_t max_lun, uint8_t *sparse_lun_map) in vhba_default_cmd() argument
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_cam.c175 struct ccb_scsiio *csio; in pqi_release_camq() local
177 csio = (struct ccb_scsiio *)&rcb->cm_ccb->csio; in pqi_release_camq()
184 if (csio->ccb_h.status & CAM_RELEASE_SIMQ) in pqi_release_camq()
185 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0); in pqi_release_camq()
187 csio->ccb_h.status |= CAM_RELEASE_SIMQ; in pqi_release_camq()
240 smartpqi_fix_ld_inquiry(pqisrc_softstate_t *softs, struct ccb_scsiio *csio) in smartpqi_fix_ld_inquiry() argument
251 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ? in smartpqi_fix_ld_inquiry()
252 (uint8_t *)csio->cdb_io.cdb_ptr : csio->cdb_io.cdb_bytes; in smartpqi_fix_ld_inquiry()
256 (csio->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN && in smartpqi_fix_ld_inquiry()
257 csio->dxfer_len >= SHORT_INQUIRY_LENGTH) { in smartpqi_fix_ld_inquiry()
[all …]
/freebsd/sys/dev/mfi/
H A Dmfi_cam.c271 struct ccb_scsiio *csio = &ccb->csio; in mfip_cam_action() local
274 if (csio->cdb_len > MFI_SCSI_MAX_CDB_LEN) { in mfip_cam_action()
344 struct ccb_scsiio *csio = &ccb->csio; in mfip_start() local
368 pt->header.data_len = csio->dxfer_len; in mfip_start()
370 pt->header.cdb_len = csio->cdb_len; in mfip_start()
374 bcopy(csio->cdb_io.cdb_ptr, &pt->cdb[0], csio->cdb_len); in mfip_start()
376 bcopy(csio->cdb_io.cdb_bytes, &pt->cdb[0], csio->cdb_len); in mfip_start()
382 cm->cm_len = csio->dxfer_len; in mfip_start()
407 struct ccb_scsiio *csio = &ccb->csio; in mfip_done() local
418 csio->scsi_status = pt->header.scsi_status; in mfip_done()
[all …]
/freebsd/sys/cam/scsi/
H A Dscsi_sg.c125 static void sg_scsiio_status(struct ccb_scsiio *csio,
397 struct ccb_scsiio *csio; in sgdone() local
400 csio = &done_ccb->csio; in sgdone()
401 switch (csio->ccb_h.ccb_type) { in sgdone()
407 csio->dxfer_len, in sgdone()
408 csio->tag_action & 0xf, in sgdone()
409 ((csio->ccb_h.flags & CAM_DIR_MASK) == in sgdone()
411 (csio->ccb_h.flags & CAM_DIR_OUT) ? in sgdone()
498 struct ccb_scsiio *csio; in sgioctl() local
547 csio = &ccb->csio; in sgioctl()
[all …]
H A Dscsi_da.c1839 scsi_synchronize_cache(&ccb->csio, /*retries*/1, in daclose()
1940 struct ccb_scsiio csio; in dadump() local
1952 memset(&csio, 0, sizeof(csio)); in dadump()
1954 xpt_setup_ccb(&csio.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in dadump()
1955 csio.ccb_h.ccb_state = DA_CCB_DUMP; in dadump()
1956 scsi_read_write(&csio, in dadump()
1969 error = cam_periph_runccb((union ccb *)&csio, cam_periph_error, in dadump()
1980 xpt_setup_ccb(&csio.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in dadump()
1981 csio.ccb_h.ccb_state = DA_CCB_DUMP; in dadump()
1982 scsi_synchronize_cache(&csio, in dadump()
[all …]
H A Dscsi_cd.c892 struct ccb_scsiio *csio; in cdstart() local
906 csio = &start_ccb->csio; in cdstart()
907 scsi_test_unit_ready(csio, in cdstart()
932 scsi_read_write(&start_ccb->csio, in cdstart()
950 start_ccb->csio.cdb_io.cdb_bytes[0] = READ_CD; in cdstart()
951 start_ccb->csio.cdb_io.cdb_bytes[9] = 0xf8; in cdstart()
952 start_ccb->csio.cdb_io.cdb_bytes[10] = 0; in cdstart()
953 start_ccb->csio.cdb_io.cdb_bytes[11] = 0; in cdstart()
954 start_ccb->csio.cdb_len = 12; in cdstart()
1014 csio = &start_ccb->csio; in cdstart()
[all …]
H A Dscsi_all.c3477 scsi_error_action(struct ccb_scsiio *csio, struct scsi_inquiry_data *inq_data, in scsi_error_action() argument
3485 if (!scsi_extract_sense_ccb((union ccb *)csio, in scsi_error_action()
3648 scsi_status_string(struct ccb_scsiio *csio) in scsi_status_string() argument
3650 switch(csio->scsi_status) { in scsi_status_string()
3674 csio->scsi_status); in scsi_status_string()
3685 scsi_command_string(struct ccb_scsiio *csio, struct sbuf *sb) in scsi_command_string() argument
3688 scsi_command_string(struct cam_device *device, struct ccb_scsiio *csio, in scsi_command_string()
3704 csio->ccb_h.path, in scsi_command_string()
3725 scsi_op_desc(scsiio_cdb_ptr(csio)[0], inq_data)); in scsi_command_string()
3726 scsi_cdb_sbuf(scsiio_cdb_ptr(csio), sb); in scsi_command_string()
[all …]
/freebsd/lib/libcam/
H A Dscsi_cmdparse.c668 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_decode() argument
675 retval = do_buff_decode(csio->data_ptr, (size_t)csio->dxfer_len, in csio_decode()
684 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_decode_visit() argument
696 return (do_buff_decode(csio->data_ptr, (size_t)csio->dxfer_len, in csio_decode_visit()
736 csio_build(struct ccb_scsiio *csio, uint8_t *data_ptr, uint32_t dxfer_len, in csio_build() argument
744 if (csio == NULL) in csio_build()
747 bzero(csio, sizeof(struct ccb_scsiio)); in csio_build()
751 if ((retval = do_encode(csio->cdb_io.cdb_bytes, SCSI_MAX_CDBLEN, in csio_build()
755 cam_fill_csio(csio, in csio_build()
773 csio_build_visit(struct ccb_scsiio *csio, uint8_t *data_ptr, in csio_build_visit() argument
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend_cam_sim.c312 cam_sglist = (bus_dma_segment_t *)ccb->csio.data_ptr; in cfcs_datamove()
313 cam_sg_count = ccb->csio.sglist_cnt; in cfcs_datamove()
331 cam_sglist[0].ds_len = ccb->csio.dxfer_len; in cfcs_datamove()
332 cam_sglist[0].ds_addr = (bus_addr_t)(uintptr_t)ccb->csio.data_ptr; in cfcs_datamove()
408 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_datamove()
439 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_done()
449 ccb->csio.scsi_status = io->scsiio.scsi_status; in cfcs_done()
450 bcopy(&io->scsiio.sense_data, &ccb->csio.sense_data, in cfcs_done()
451 min(io->scsiio.sense_len, ccb->csio.sense_len)); in cfcs_done()
452 if (ccb->csio.sense_len > io->scsiio.sense_len) in cfcs_done()
[all …]
/freebsd/sys/dev/isci/
H A Disci_io_request.c89 struct ccb_scsiio *csio; in isci_io_request_complete() local
97 csio = &ccb->csio; in isci_io_request_complete()
116 ccb->csio.resid = ccb->csio.dxfer_len - in isci_io_request_complete()
134 sense_length = MIN(csio->sense_len, sense_length); in isci_io_request_complete()
136 memcpy(&csio->sense_data, response_buffer->data, sense_length); in isci_io_request_complete()
138 csio->sense_resid = csio->sense_len - sense_length; in isci_io_request_complete()
139 csio->scsi_status = response_buffer->status; in isci_io_request_complete()
142 scsi_extract_sense( &csio->sense_data, &error_code, &sense_key, in isci_io_request_complete()
147 ccb->ccb_h.target_lun, scsiio_cdb_ptr(csio), in isci_io_request_complete()
148 csio->scsi_status, sense_key, asc, ascq); in isci_io_request_complete()
[all …]
/freebsd/sys/dev/aac/
H A Daac_cam.c424 struct ccb_scsiio *csio = &ccb->csio; in aac_cam_action() local
432 srb->cdb_len = csio->cdb_len; in aac_cam_action()
434 bcopy(csio->cdb_io.cdb_ptr, (u_int8_t *)&srb->cdb[0], in aac_cam_action()
437 bcopy(csio->cdb_io.cdb_bytes, (u_int8_t *)&srb->cdb[0], in aac_cam_action()
448 srb->data_len = csio->dxfer_len; in aac_cam_action()
453 cm->cm_data = (void *)csio->data_ptr; in aac_cam_action()
454 cm->cm_datalen = csio->dxfer_len; in aac_cam_action()
462 (uint32_t)(uintptr_t)csio->data_ptr; in aac_cam_action()
464 csio->dxfer_len; in aac_cam_action()
465 srb->data_len = csio->dxfer_len; in aac_cam_action()
[all …]
/freebsd/sys/dev/aacraid/
H A Daacraid_cam.c144 (struct scsi_sense_data_fixed *)&ccb->csio.sense_data; in aac_set_scsi_error()
149 ccb->csio.scsi_status = status; in aac_set_scsi_error()
152 bzero(&ccb->csio.sense_data, ccb->csio.sense_len); in aac_set_scsi_error()
153 ccb->csio.sense_data.error_code = in aac_set_scsi_error()
156 if (ccb->csio.sense_len >= 14) { in aac_set_scsi_error()
401 cm->cm_data = (void *)ccb->csio.data_ptr; in aac_container_rw_command()
402 cm->cm_datalen = ccb->csio.dxfer_len; in aac_container_rw_command()
522 ccb->csio.dxfer_len); in aac_container_special_command()
528 if (ccb->csio.dxfer_len) in aac_container_special_command()
529 bzero(ccb->csio.data_ptr, ccb->csio.dxfer_len); in aac_container_special_command()
[all …]
/freebsd/sys/dev/mpi3mr/
H A Dmpi3mr_cam.c107 struct ccb_scsiio *csio, in mpi3mr_divert_ws() argument
112 U8 opcode = scsiio_cdb_ptr(csio)[0]; in mpi3mr_divert_ws()
113 U16 service_action = ((scsiio_cdb_ptr(csio)[8] << 8) | scsiio_cdb_ptr(csio)[9]); in mpi3mr_divert_ws()
122 unmap = scsiio_cdb_ptr(csio)[unmap_ndob_index] & 0x08; in mpi3mr_divert_ws()
123 ndob = scsiio_cdb_ptr(csio)[unmap_ndob_index] & 0x01; in mpi3mr_divert_ws()
124 num_blocks = get_unaligned_be32(scsiio_cdb_ptr(csio) + in mpi3mr_divert_ws()
319 struct ccb_scsiio *csio; in mpi3mr_allow_unmap_to_fw() local
322 csio = &ccb->csio; in mpi3mr_allow_unmap_to_fw()
323 param_list_len = (uint16_t) ((scsiio_cdb_ptr(csio)[7] << 8) | scsiio_cdb_ptr(csio)[8]); in mpi3mr_allow_unmap_to_fw()
342 scsi_set_sense_data(&ccb->csio.sense_data, in mpi3mr_allow_unmap_to_fw()
[all …]
/freebsd/sys/dev/iscsi/
H A Discsi.c918 struct ccb_scsiio *csio; in iscsi_pdu_handle_scsi_response() local
977 io->io_received = ccb->csio.dxfer_len - resid; in iscsi_pdu_handle_scsi_response()
981 io->io_received = ccb->csio.dxfer_len; in iscsi_pdu_handle_scsi_response()
1004 ccb->csio.scsi_status = bhssr->bhssr_status; in iscsi_pdu_handle_scsi_response()
1007 csio = &ccb->csio; in iscsi_pdu_handle_scsi_response()
1040 if (sense_len > csio->sense_len) { in iscsi_pdu_handle_scsi_response()
1042 sense_len, csio->sense_len); in iscsi_pdu_handle_scsi_response()
1043 sense_len = csio->sense_len; in iscsi_pdu_handle_scsi_response()
1045 icl_pdu_get_data(response, sizeof(sense_len), &csio->sense_data, sense_len); in iscsi_pdu_handle_scsi_response()
1046 csio->sense_resid = csio->sense_len - sense_len; in iscsi_pdu_handle_scsi_response()
[all …]
/freebsd/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c807 struct ccb_scsiio *csio; in vtscsi_cam_scsi_io() local
811 csio = &ccb->csio; in vtscsi_cam_scsi_io()
813 if (csio->cdb_len > VIRTIO_SCSI_CDB_SIZE) { in vtscsi_cam_scsi_io()
998 struct ccb_scsiio *csio) in vtscsi_sg_append_scsi_buf() argument
1004 ccbh = &csio->ccb_h; in vtscsi_sg_append_scsi_buf()
1009 error = sglist_append(sg, csio->data_ptr, csio->dxfer_len); in vtscsi_sg_append_scsi_buf()
1013 (vm_paddr_t)(vm_offset_t) csio->data_ptr, csio->dxfer_len); in vtscsi_sg_append_scsi_buf()
1016 for (i = 0; i < csio->sglist_cnt && error == 0; i++) { in vtscsi_sg_append_scsi_buf()
1017 dseg = &((struct bus_dma_segment *)csio->data_ptr)[i]; in vtscsi_sg_append_scsi_buf()
1023 for (i = 0; i < csio->sglist_cnt && error == 0; i++) { in vtscsi_sg_append_scsi_buf()
[all …]
/freebsd/sys/dev/mrsas/
H A Dmrsas_cam.c440 struct ccb_scsiio *csio = &(ccb->csio); in mrsas_startio() local
444 if ((csio->cdb_io.cdb_bytes[0]) == SYNCHRONIZE_CACHE && in mrsas_startio()
495 cmd->length = csio->dxfer_len; in mrsas_startio()
497 cmd->data = csio->data_ptr; in mrsas_startio()
500 cmd->length = csio->dxfer_len; in mrsas_startio()
502 cmd->data = csio->data_ptr; in mrsas_startio()
521 bcopy(csio->cdb_io.cdb_ptr, cmd->io_request->CDB.CDB32, csio->cdb_len); in mrsas_startio()
523 bcopy(csio->cdb_io.cdb_bytes, cmd->io_request->CDB.CDB32, csio->cdb_len); in mrsas_startio()
636 struct ccb_scsiio *csio = &(ccb->csio); in mrsas_find_io_type() local
638 switch (csio->cdb_io.cdb_bytes[0]) { in mrsas_find_io_type()
[all …]
/freebsd/sys/dev/mpr/
H A Dmpr_sas.c320 xpt_path_sbuf(cm->cm_ccb->csio.ccb_h.path, &sb); in mprsas_log_command()
322 scsi_command_string(&cm->cm_ccb->csio, &sb); in mprsas_log_command()
324 cm->cm_ccb->csio.dxfer_len); in mprsas_log_command()
1711 struct ccb_scsiio *csio; in mprsas_build_nvme_unmap() local
1720 csio = &ccb->csio; in mprsas_build_nvme_unmap()
1721 list_len = (scsiio_cdb_ptr(csio)[7] << 8 | scsiio_cdb_ptr(csio)[8]); in mprsas_build_nvme_unmap()
1727 plist = malloc(csio->dxfer_len, M_MPR, M_ZERO|M_NOWAIT); in mprsas_build_nvme_unmap()
1735 bcopy(csio->data_ptr, plist, csio->dxfer_len); in mprsas_build_nvme_unmap()
1801 c->nsid = htole32(csio->ccb_h.target_lun + 1); in mprsas_build_nvme_unmap()
1811 cm->cm_lun = csio->ccb_h.target_lun; in mprsas_build_nvme_unmap()
[all …]
/freebsd/sys/powerpc/ps3/
H A Dps3cdrom.c490 ccb->csio.cdb_io.cdb_ptr : in ps3cdrom_intr()
491 ccb->csio.cdb_io.cdb_bytes; in ps3cdrom_intr()
498 ccb->csio.scsi_status = SCSI_STATUS_OK; in ps3cdrom_intr()
499 ccb->csio.resid = 0; in ps3cdrom_intr()
502 ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND; in ps3cdrom_intr()
511 scsi_set_sense_data(&ccb->csio.sense_data, in ps3cdrom_intr()
518 ccb->csio.sense_len = SSD_FULL_SIZE; in ps3cdrom_intr()
524 ccb->csio.resid = ccb->csio.dxfer_len; in ps3cdrom_intr()
575 ccb->csio.cdb_io.cdb_ptr : in ps3cdrom_transfer()
576 ccb->csio.cdb_io.cdb_bytes; in ps3cdrom_transfer()
[all …]
/freebsd/sys/cam/
H A Dcam_ccb.h1361 struct ccb_scsiio csio;
1403 cam_fill_csio(struct ccb_scsiio *csio, uint32_t retries, in cam_fill_csio()
1410 csio->ccb_h.func_code = XPT_SCSI_IO;
1411 csio->ccb_h.flags = flags;
1412 csio->ccb_h.xflags = 0; in cam_fill_ctio() argument
1413 csio->ccb_h.retry_count = retries; in cam_fill_ctio()
1414 csio->ccb_h.cbfcnp = cbfcnp; in cam_fill_ctio()
1415 csio->ccb_h.timeout = timeout; in cam_fill_ctio()
1416 csio->data_ptr = data_ptr; in cam_fill_ctio()
1417 csio in cam_fill_ctio()
1345 struct ccb_scsiio csio; global() member
1387 cam_fill_csio(struct ccb_scsiio * csio,uint32_t retries,void (* cbfcnp)(struct cam_periph *,union ccb *),uint32_t flags,uint8_t tag_action,uint8_t * data_ptr,uint32_t dxfer_len,uint8_t sense_len,uint8_t cdb_len,uint32_t timeout) cam_fill_csio() argument
[all...]

1234