Lines Matching refs:cbp

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