Lines Matching refs:cbp

801 	struct bio *cbp;  in g_union_start()  local
826 cbp = g_clone_bio(bp); in g_union_start()
827 if (cbp == NULL) { in g_union_start()
831 cbp->bio_offset = bp->bio_offset + sc->sc_offset; in g_union_start()
832 cbp->bio_done = g_std_done; in g_union_start()
834 switch (cbp->bio_cmd) { in g_union_start()
836 G_UNION_LOGREQ(cbp, "Delete request received."); in g_union_start()
840 G_UNION_LOGREQ(cbp, "Getattr request received."); in g_union_start()
842 if (strcmp(cbp->bio_attribute, "GEOM::kerneldump") != 0) in g_union_start()
848 G_UNION_LOGREQ(cbp, "Flush request received."); in g_union_start()
852 G_UNION_LOGREQ(cbp, "Speedup request received."); in g_union_start()
856 G_UNION_LOGREQ(cbp, "Cmd0 request received."); in g_union_start()
860 G_UNION_LOGREQ(cbp, "Cmd1 request received."); in g_union_start()
864 G_UNION_LOGREQ(cbp, "Cmd2 request received."); in g_union_start()
868 G_UNION_LOGREQ(cbp, "Unknown (%d) request received.", in g_union_start()
869 cbp->bio_cmd); in g_union_start()
872 g_io_request(cbp, sc->sc_uppercp); in g_union_start()
884 struct bio *cbp, *firstbp; in g_union_doio() local
936 cbp = g_clone_bio(wip->wip_bp); in g_union_doio()
937 if (cbp == NULL) { in g_union_doio()
947 cbp->bio_caller1 = wip; in g_union_doio()
948 cbp->bio_done = g_union_done; in g_union_doio()
949 cbp->bio_offset = wip->wip_start; in g_union_doio()
955 if (cbp->bio_cmd == BIO_WRITE) { in g_union_doio()
956 G_UNION_LOGREQ(cbp, "Sending %jd byte write request to upper " in g_union_doio()
957 "level.", cbp->bio_length); in g_union_doio()
959 atomic_add_long(&sc->sc_wrotebytes, cbp->bio_length); in g_union_doio()
960 g_io_request(cbp, sc->sc_uppercp); in g_union_doio()
978 atomic_add_long(&sc->sc_readbytes, cbp->bio_length); in g_union_doio()
979 rdlen = cbp->bio_length; in g_union_doio()
982 if (g_union_getmap(cbp, sc, &len2rd)) { in g_union_doio()
994 3 : 4, cbp, "Sending %jd byte read " in g_union_doio()
996 g_io_request(cbp, cp); in g_union_doio()
999 cbp->bio_length = len2rd; in g_union_doio()
1000 if ((cbp->bio_flags & BIO_UNMAPPED) != 0) in g_union_doio()
1001 cbp->bio_ma_offset += offset; in g_union_doio()
1003 cbp->bio_data += offset; in g_union_doio()
1006 G_UNION_LOGREQLVL(3, cbp, "Sending %jd byte read " in g_union_doio()
1016 g_io_request(cbp, cp); in g_union_doio()
1018 firstbp = cbp; in g_union_doio()
1024 cbp = g_clone_bio(wip->wip_bp); in g_union_doio()
1025 if (cbp == NULL) { in g_union_doio()
1030 cbp->bio_caller1 = wip; in g_union_doio()
1031 cbp->bio_done = g_union_done; in g_union_doio()
1032 cbp->bio_offset += offset; in g_union_doio()
1033 cbp->bio_length = rdlen; in g_union_doio()