Lines Matching refs:cbp
298 struct bio *cbp; in g_shsec_start() local
340 cbp = g_clone_bio(bp); in g_shsec_start()
341 if (cbp == NULL) { in g_shsec_start()
345 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); in g_shsec_start()
350 cbp->bio_done = g_shsec_done; in g_shsec_start()
351 cbp->bio_caller2 = sc->sc_disks[no]; in g_shsec_start()
353 cbp->bio_data = uma_zalloc(g_shsec_zone, M_NOWAIT); in g_shsec_start()
354 if (cbp->bio_data == NULL) { in g_shsec_start()
361 dst = (uint32_t *)cbp->bio_data; in g_shsec_start()
364 g_shsec_xor2((uint32_t *)cbp->bio_data, in g_shsec_start()
373 while ((cbp = TAILQ_FIRST(&queue)) != NULL) { in g_shsec_start()
376 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
377 cp = cbp->bio_caller2; in g_shsec_start()
378 cbp->bio_caller2 = NULL; in g_shsec_start()
379 cbp->bio_to = cp->provider; in g_shsec_start()
380 G_SHSEC_LOGREQ(2, cbp, "Sending request."); in g_shsec_start()
381 g_io_request(cbp, cp); in g_shsec_start()
385 while ((cbp = TAILQ_FIRST(&queue)) != NULL) { in g_shsec_start()
386 TAILQ_REMOVE(&queue, cbp, bio_queue); in g_shsec_start()
388 if (cbp->bio_data != NULL) { in g_shsec_start()
389 explicit_bzero(cbp->bio_data, cbp->bio_length); in g_shsec_start()
390 uma_zfree(g_shsec_zone, cbp->bio_data); in g_shsec_start()
392 g_destroy_bio(cbp); in g_shsec_start()