Searched refs:ccb_h (Results 1 - 25 of 120) sorted by relevance

12345

/freebsd-10.1-release/sys/dev/twa/
H A Dtw_osl_cam.c202 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local
209 if (ccb_h->target_id >= TW_CL_MAX_NUM_UNITS) {
211 ccb_h->path_id, ccb_h->target_id, ccb_h->target_lun);
212 ccb_h->status |= CAM_TID_INVALID;
216 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) {
218 ccb_h->path_id, ccb_h
314 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local
544 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local
[all...]
/freebsd-10.1-release/sys/cam/scsi/
H A Dscsi_targ_bh.c183 bus_path_id = cpi->ccb_h.path_id;
242 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
243 immed_ccb.ccb_h.func_code = XPT_EN_LUN;
250 status = immed_ccb.ccb_h.status;
274 atio->ccb_h.ccb_descr = targbhallocdescr();
276 if (atio->ccb_h.ccb_descr == NULL) {
282 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL);
283 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
284 atio->ccb_h.cbfcnp = targbhdone;
285 ((struct targbh_cmd_desc*)atio->ccb_h
345 struct ccb_hdr *ccb_h; local
[all...]
H A Dscsi_target.c279 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL);
280 cdbg.ccb_h.func_code = XPT_DEBUG;
281 cdbg.ccb_h.cbfcnp = targdone;
283 status = cdbg.ccb_h.status & CAM_STATUS_MASK;
365 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL);
366 en_ccb.ccb_h.func_code = XPT_EN_LUN;
372 status = en_ccb.ccb_h.status & CAM_STATUS_MASK;
393 xpt_setup_ccb(&cpi.ccb_h, path, CAM_PRIORITY_NORMAL);
394 cpi.ccb_h.func_code = XPT_PATH_INQ;
396 status = cpi.ccb_h
493 struct ccb_hdr *ccb_h; local
677 struct ccb_hdr *ccb_h; local
709 struct ccb_hdr *ccb_h; local
804 struct ccb_hdr *ccb_h; local
1016 struct ccb_hdr *ccb_h; local
[all...]
H A Dscsi_xpt.c637 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h,
671 xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE);
672 cpi.ccb_h.func_code = XPT_PATH_INQ;
693 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0)
694 && (ccb->ccb_h.target_lun == 0)) {
724 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n"));
964 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE;
974 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE);
975 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
981 cts.ccb_h
[all...]
/freebsd-10.1-release/sys/dev/isci/
H A Disci_io_request.c97 ccb->ccb_h.status &= ~CAM_STATUS_MASK;
103 if (ccb->ccb_h.func_code == XPT_SMP_IO) {
112 ccb->ccb_h.status |= CAM_REQ_CMP;
116 ccb->ccb_h.status |= CAM_REQ_CMP;
142 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
143 ccb->ccb_h.status |= CAM_AUTOSNS_VALID;
148 ccb->ccb_h.path_id, ccb->ccb_h.target_id,
149 ccb->ccb_h.target_lun, csio->cdb_io.cdb_bytes[0],
156 ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/dev/iscsi_initiator/
H A Disc_cam.c66 debug(3, "sid=%d target=%d lun=%d", sp->sid, ccb->ccb_h.target_id, ccb->ccb_h.target_lun);
82 cpi->ccb_h.status = CAM_REQ_CMP;
124 isc_session_t *sp = (isc_session_t *)ccb->ccb_h.spriv_ptr0;
148 ccb->ccb_h.path = sp->cam_path;
149 ccb->ccb_h.cbfcnp = scan_callback;
150 ccb->ccb_h.spriv_ptr0 = sp;
171 struct ccb_hdr *ccb_h = &ccb->ccb_h; local
175 ccb_h
[all...]
/freebsd-10.1-release/sys/dev/mpt/
H A Dmpt_cam.h120 if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) {
121 ccb->ccb_h.status |= CAM_DEV_QFRZN;
122 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1);
129 ccb->ccb_h.status &= ~CAM_STATUS_MASK;
130 ccb->ccb_h.status |= status;
/freebsd-10.1-release/share/examples/scsi_target/
H A Dscsi_target.c336 struct ccb_hdr *ccb_h; local
346 while ((ccb_h = TAILQ_FIRST(&pending_queue)) != NULL) {
347 TAILQ_REMOVE(&pending_queue, ccb_h, periph_links.tqe);
348 free_ccb((union ccb *)ccb_h);
350 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) {
351 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe);
352 free_ccb((union ccb *)ccb_h);
381 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
382 atio->ccb_h.targ_descr = a_descr;
390 inot->ccb_h
424 struct ccb_hdr *ccb_h; local
686 struct ccb_hdr *ccb_h; local
724 struct ccb_hdr *ccb_h; local
959 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/sys/dev/advansys/
H A Dadvansys.c160 cinfo = (struct adv_ccb_info *)ccb->ccb_h.ccb_cinfo_ptr;
162 struct ccb_hdr *ccb_h; local
168 ccb_h = LIST_FIRST(&adv->pending_ccbs);
169 while (ccb_h != NULL) {
170 cinfo = ccb_h->ccb_cinfo_ptr;
172 ccb_h->timeout * hz / 1000, adv_timeout,
173 ccb_h);
174 ccb_h = LIST_NEXT(ccb_h, sim_links.le);
181 ccb->ccb_h
207 struct ccb_hdr *ccb_h; local
462 struct ccb_hdr *ccb_h; local
627 struct ccb_hdr *ccb_h; local
[all...]
H A Dadwcam.c131 LIST_REMOVE(&acb->ccb->ccb_h, sim_links.le);
133 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
135 && (acb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) {
136 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
234 adw = (struct adw_softc *)ccb->ccb_h.ccb_adw_ptr;
242 if (ccb->ccb_h.status == CAM_REQ_INPROG) {
243 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1);
244 ccb->ccb_h.status = CAM_REQ_TOO_BIG|CAM_DEV_QFRZN;
297 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
314 if (ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/dev/aic/
H A Daic.c96 (scb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) {
97 scb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
109 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aic_action\n"));
114 switch (ccb->ccb_h.func_code) {
123 ccb->ccb_h.status = CAM_REQUEUE_REQ;
129 ccb->ccb_h.ccb_scb_ptr = scb;
130 ccb->ccb_h.ccb_aic_ptr = aic;
132 scb->target = ccb->ccb_h.target_id;
133 scb->lun = ccb->ccb_h.target_lun;
135 if (ccb->ccb_h
334 struct ccb_hdr *ccb_h; local
493 struct ccb_hdr *ccb_h; local
603 struct ccb_hdr *ccb_h; local
1053 struct ccb_hdr *ccb_h; local
1142 struct ccb_hdr *ccb_h = &scb->ccb->ccb_h; local
1377 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/sys/cam/
H A Dcam_periph.c677 ccb.ccb_h.func_code = XPT_GDEV_TYPE;
678 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
683 ccb.ccb_h.func_code = XPT_PATH_INQ;
684 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
718 switch(ccb->ccb_h.func_code) {
747 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE)
749 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR)
753 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK;
757 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE)
759 if ((ccb->ccb_h
1114 struct ccb_hdr ccb_h; local
[all...]
H A Dcam_ccb.h244 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED)
246 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0)
341 struct ccb_hdr ccb_h; member in struct:ccb_getdev
352 struct ccb_hdr ccb_h; member in struct:ccb_getdevstats
377 struct ccb_hdr ccb_h; member in struct:ccb_getdevlist
544 struct ccb_hdr ccb_h; member in struct:ccb_dev_match
610 struct ccb_hdr ccb_h; member in struct:ccb_pathinq
648 struct ccb_hdr ccb_h; member in struct:ccb_pathstats
668 struct ccb_hdr ccb_h; member in struct:ccb_smpio
698 struct ccb_hdr ccb_h; member in struct:ccb_scsiio
729 struct ccb_hdr ccb_h; member in struct:ccb_ataio
748 struct ccb_hdr ccb_h; member in struct:ccb_accept_tio
760 struct ccb_hdr ccb_h; member in struct:ccb_relsim
816 struct ccb_hdr ccb_h; member in struct:ccb_setasync
824 struct ccb_hdr ccb_h; member in struct:ccb_setdev
832 struct ccb_hdr ccb_h; member in struct:ccb_abort
838 struct ccb_hdr ccb_h; member in struct:ccb_resetbus
843 struct ccb_hdr ccb_h; member in struct:ccb_resetdev
848 struct ccb_hdr ccb_h; member in struct:ccb_termio
950 struct ccb_hdr ccb_h; member in struct:ccb_trans_settings
977 struct ccb_hdr ccb_h; member in struct:ccb_calc_geometry
1019 struct ccb_hdr ccb_h; member in struct:ccb_sim_knob
1033 struct ccb_hdr ccb_h; member in struct:ccb_rescan
1041 struct ccb_hdr ccb_h; member in struct:ccb_debug
1048 struct ccb_hdr ccb_h; member in struct:ccb_en_lun
1056 struct ccb_hdr ccb_h; member in struct:ccb_immed_notify
1064 struct ccb_hdr ccb_h; member in struct:ccb_notify_ack
1070 struct ccb_hdr ccb_h; member in struct:ccb_immediate_notify
1078 struct ccb_hdr ccb_h; member in struct:ccb_notify_acknowledge
1102 struct ccb_hdr ccb_h; member in struct:ccb_eng_inq
1110 struct ccb_hdr ccb_h; member in struct:ccb_eng_exec
1146 struct ccb_hdr ccb_h; member in struct:ccb_dev_advinfo
1165 struct ccb_hdr ccb_h; member in struct:ccb_async
1178 struct ccb_hdr ccb_h; /* For convenience */ member in union:ccb
[all...]
/freebsd-10.1-release/sys/dev/amr/
H A Damr_cam.c121 TAILQ_INSERT_TAIL(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe);
128 TAILQ_INSERT_HEAD(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe);
137 TAILQ_REMOVE(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe);
247 switch(ccb->ccb_h.func_code) {
254 struct ccb_hdr *ccbh = &ccb->ccb_h;
288 if (csio->ccb_h.target_lun != 0)
295 csio->ccb_h.sim_priv.entries[0].field= cam_sim_bus(sim);
336 cpi->ccb_h.status = CAM_REQ_CMP;
346 cpi->ccb_h.status = CAM_REQ_CMP;
353 ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/dev/aic7xxx/
H A Daic79xx_osm.c270 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5);
271 csa.ccb_h.func_code = XPT_SASYNC_CB;
318 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE,
328 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
331 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
340 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
349 ccb_path = ccb->ccb_h.path;
353 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) {
356 xpt_print_path(ccb->ccb_h.path);
363 ccb->ccb_h
1073 struct ccb_hdr *ccb_h; local
[all...]
H A Daic7xxx_osm.c220 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5);
221 csa.ccb_h.func_code = XPT_SASYNC_CB;
261 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5);
262 csa.ccb_h.func_code = XPT_SASYNC_CB;
320 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE,
340 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
343 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
360 ccb_path = ccb->ccb_h.path;
364 if ((ccb->ccb_h
1140 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/usr.bin/iscsictl/
H A Dperiphs.c83 ccb.ccb_h.path_id = CAM_XPT_PATH_ID;
84 ccb.ccb_h.target_id = CAM_TARGET_WILDCARD;
85 ccb.ccb_h.target_lun = CAM_LUN_WILDCARD;
87 ccb.ccb_h.func_code = XPT_DEV_MATCH;
118 if ((ccb.ccb_h.status != CAM_REQ_CMP)
122 ccb.ccb_h.status, ccb.cdm.status);
181 } while ((ccb.ccb_h.status == CAM_REQ_CMP)
/freebsd-10.1-release/sys/dev/ahb/
H A Dahb.c583 struct ccb_hdr *ccb_h; local
594 ccb_h = LIST_FIRST(&ahb->pending_ccbs);
595 while (ccb_h != NULL) {
599 pending_ecb = (struct ecb *)ccb_h->ccb_ecb_ptr;
601 ccb_h = LIST_NEXT(ccb_h, sim_links.le);
602 if (ccb->ccb_h.target_id == target_id
605 LIST_REMOVE(&ccb->ccb_h, sim_links.le);
606 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE)
610 ccb->ccb_h
1243 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/sys/cam/ata/
H A Data_xpt.c241 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h,
291 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n"));
294 path = start_ccb->ccb_h.path;
354 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE);
355 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
377 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE);
378 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
390 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE);
391 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
486 xpt_setup_ccb(&cts.ccb_h, pat
[all...]
/freebsd-10.1-release/sys/dev/aac/
H A Daac_cam.c132 if (xpt_create_path(&ccb->ccb_h.path, NULL,
155 camsc = ccb->ccb_h.sim_priv.entries[0].ptr;
158 ccb->ccb_h.status = CAM_REQUEUE_REQ;
270 switch(ccb->ccb_h.func_code) {
297 ccb->ccb_h.status = CAM_REQ_CMP;
328 ccb->ccb_h.status = CAM_REQ_CMP;
342 if (ccb->ccb_h.target_lun != CAM_LUN_WILDCARD) {
348 ccb->ccb_h.status = CAM_REQ_CMP;
353 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
358 ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/powerpc/ps3/
H A Dps3cdrom.c264 xpt_setup_ccb(&csa.ccb_h, sc->sc_path, 5);
265 csa.ccb_h.func_code = XPT_SASYNC_CB;
346 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE,
347 ("function code 0x%02x\n", ccb->ccb_h.func_code));
349 switch (ccb->ccb_h.func_code) {
351 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_INPROG)
354 if(ccb->ccb_h.target_id > 0) {
355 ccb->ccb_h.status = CAM_TID_INVALID;
359 if(ccb->ccb_h.target_lun > 0) {
360 ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/cam/ctl/
H A Dscsi_ctl.c311 xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
313 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB;
319 if ((ccb->ccb_h.status & CAM_STATUS_MASK) !=
324 cpi->unit_number, cpi->ccb_h.path_id,
325 ccb->ccb_h.status);
330 cpi->unit_number, cpi->ccb_h.path_id);
357 bus_softc->path_id = cpi->ccb_h.path_id;
537 xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
538 en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
543 status = (en_lun_ccb.ccb_h
768 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/sys/dev/buslogic/
H A Dbt.c1078 LIST_REMOVE(&bccb->ccb->ccb_h, sim_links.le);
1080 && (bccb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) {
1081 bccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
1116 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("btaction\n"));
1121 switch (ccb->ccb_h.func_code) {
1136 ccb->ccb_h.status = CAM_REQUEUE_REQ;
1147 ccb->ccb_h.ccb_bccb_ptr = bccb;
1148 ccb->ccb_h.ccb_bt_ptr = bt;
1153 hccb->target_id = ccb->ccb_h.target_id;
1154 hccb->target_lun = ccb->ccb_h
1580 struct ccb_hdr *ccb_h; local
1777 struct ccb_hdr *ccb_h; local
2326 struct ccb_hdr *ccb_h; local
[all...]
/freebsd-10.1-release/sys/dev/ata/
H A Data-all.c277 if (xpt_create_path(&ccb->ccb_h.path, NULL,
655 ccb->ccb_h.status = CAM_REQ_INVALID;
664 request->unit = ccb->ccb_h.target_id;
665 if (ccb->ccb_h.func_code == XPT_ATA_IO) {
688 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE &&
691 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
693 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT)
700 ch->curr[ccb->ccb_h.target_id].bytecount);
706 bcopy((ccb->ccb_h.flags & CAM_CDB_POINTER) ?
710 if (ch->curr[ccb->ccb_h
[all...]
/freebsd-10.1-release/sys/dev/ppbus/
H A Dvpo.c193 csio->ccb_h.target_id,
199 csio->ccb_h.target_id,
218 csio->ccb_h.status = CAM_CMD_TIMEOUT;
228 csio->ccb_h.status = CAM_CMD_TIMEOUT;
245 csio->ccb_h.target_id,
253 csio->ccb_h.target_id,
270 csio->ccb_h.status = CAM_AUTOSNS_VALID | CAM_SCSI_STATUS_ERROR;
283 csio->ccb_h.status = CAM_AUTOSENSE_FAIL;
287 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR;
294 csio->ccb_h
[all...]

Completed in 331 milliseconds

12345