Home | History | Annotate | Download | only in pci

Lines Matching defs:ccb

175 	struct twe_ccb *ccb;
183 if ((ccb = twe_ccb_alloc(twe, flags)) == NULL)
186 ccb->ccb_data = data;
187 ccb->ccb_datasize = datasize;
188 tc = ccb->ccb_cmd;
202 if ((rv = twe_ccb_map(twe, ccb)) != 0) {
203 twe_ccb_free(twe, ccb);
213 rv = twe_ccb_poll(twe, ccb, 2000);
214 twe_ccb_unmap(twe, ccb);
215 twe_ccb_free(twe, ccb);
218 ccb->ccb_tx.tx_handler = ld_twe_handler;
219 ccb->ccb_tx.tx_context = bp;
220 ccb->ccb_tx.tx_dv = sc->sc_ld.sc_dv;
221 twe_ccb_enqueue(twe, ccb);
237 ld_twe_handler(struct twe_ccb *ccb, int error)
244 tx = &ccb->ccb_tx;
249 twe_ccb_unmap(twe, ccb);
250 twe_ccb_free(twe, ccb);
278 struct twe_ccb *ccb;
282 ccb = twe_ccb_alloc_wait(twe, 0);
283 KASSERT(ccb != NULL);
285 ccb->ccb_data = NULL;
286 ccb->ccb_datasize = 0;
288 tc = ccb->ccb_cmd;
300 rv = twe_ccb_poll(twe, ccb, 2000);
301 twe_ccb_unmap(twe, ccb);
302 twe_ccb_free(twe, ccb);
305 ccb->ccb_tx.tx_handler = twe_ccb_wait_handler;
306 ccb->ccb_tx.tx_context = NULL;
307 ccb->ccb_tx.tx_dv = ld->sc_dv;
308 twe_ccb_enqueue(twe, ccb);
312 while ((ccb->ccb_flags & TWE_CCB_COMPLETE) == 0)
313 if ((rv = tsleep(ccb, PRIBIO, "tweflush",
316 twe_ccb_free(twe, ccb);