Lines Matching defs:ccb
61 _inq(struct cam_sim *sim, union ccb *ccb)
63 struct ccb_pathinq *cpi = &ccb->cpi;
67 debug(3, "sid=%d target=%d lun=%jx", sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun);
91 _scsi_encap(struct cam_sim *sim, union ccb *ccb)
97 ret = scsi_encap(sim, ccb);
119 scan_callback(struct cam_periph *periph, union ccb *ccb)
121 isc_session_t *sp = (isc_session_t *)ccb->ccb_h.spriv_ptr0;
125 xpt_free_ccb(ccb);
136 union ccb *ccb;
144 ccb = xpt_alloc_ccb();
145 ccb->ccb_h.path = sp->cam_path;
146 ccb->ccb_h.cbfcnp = scan_callback;
147 ccb->ccb_h.spriv_ptr0 = sp;
149 xpt_rescan(ccb);
165 ic_action(struct cam_sim *sim, union ccb *ccb)
168 struct ccb_hdr *ccb_h = &ccb->ccb_h;
174 ccb_h->func_code, ccb->ccb_h.flags, ccb->ccb_h.status,
175 ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun,
176 ccb->ccb_h.retry_count, ccb_h->timeout);
183 _inq(sim, ccb);
188 struct ccb_pathinq *cpi = &ccb->cpi;
197 struct ccb_scsiio* csio = &ccb->csio;
210 if(_scsi_encap(sim, ccb) != 0)
219 ccg = &ccb->ccg;
221 sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun,
232 lun = ccb->ccb_h.target_lun;
257 xpt_done(ccb);