Home
last modified time | relevance | path

Searched refs:bp2 (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/sys/geom/uzip/
H A Dg_uzip.c224 struct bio *bp2; in g_uzip_request() local
283 bp2 = g_clone_bio(bp); in g_uzip_request()
284 if (bp2 == NULL) { in g_uzip_request()
288 bp2->bio_done = g_uzip_read_done; in g_uzip_request()
290 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk); in g_uzip_request()
292 bp2->bio_length = TLEN_2_BLEN(sc, pp, bp2, end_blk - 1); in g_uzip_request()
293 if (bp2->bio_length <= maxphys) { in g_uzip_request()
304 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
306 bp2->bio_data = malloc(bp2->bio_length, M_GEOM_UZIP, M_NOWAIT); in g_uzip_request()
307 if (bp2->bio_data == NULL) { in g_uzip_request()
[all …]
/freebsd/sys/geom/
H A Dgeom_slice.c156 struct bio *bp2; in g_slice_finish_hot() local
174 bp2 = g_clone_bio(bp); in g_slice_finish_hot()
175 if (bp2 == NULL) { in g_slice_finish_hot()
179 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
180 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
181 bp2->bio_done = g_std_done; in g_slice_finish_hot()
182 bp2->bio_offset += gsl->offset; in g_slice_finish_hot()
183 g_io_request(bp2, cp); in g_slice_finish_hot()
212 struct bio *bp2; in g_slice_start() local
274 bp2 = g_clone_bio(bp); in g_slice_start()
[all …]
H A Dgeom_disk.c230 struct bio *bp2; in g_disk_done() local
235 bp2 = bp->bio_parent; in g_disk_done()
238 if (bp2->bio_error == 0) in g_disk_done()
239 bp2->bio_error = bp->bio_error; in g_disk_done()
240 bp2->bio_completed += bp->bio_length - bp->bio_resid; in g_disk_done()
243 kmsan_check(bp2->bio_data, bp2->bio_completed, "g_disk_done"); in g_disk_done()
247 bcopy(&bp->bio_zone, &bp2->bio_zone, sizeof(bp->bio_zone)); in g_disk_done()
258 bp2->bio_inbed++; in g_disk_done()
259 if (bp2->bio_children == bp2->bio_inbed) { in g_disk_done()
261 bp2->bio_resid = bp2->bio_bcount - bp2->bio_completed; in g_disk_done()
[all …]
H A Dgeom_io.c197 struct bio *bp2; in g_clone_bio() local
199 bp2 = uma_zalloc(biozone, M_NOWAIT | M_ZERO); in g_clone_bio()
200 if (bp2 != NULL) { in g_clone_bio()
201 bp2->bio_parent = bp; in g_clone_bio()
202 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
210 bp2->bio_flags = bp->bio_flags & in g_clone_bio()
212 bp2->bio_length = bp->bio_length; in g_clone_bio()
213 bp2->bio_offset = bp->bio_offset; in g_clone_bio()
214 bp2->bio_data = bp->bio_data; in g_clone_bio()
215 bp2->bio_ma = bp->bio_ma; in g_clone_bio()
[all …]
H A Dgeom_dev.c716 g_dev_done(struct bio *bp2) in g_dev_done() argument
723 cp = bp2->bio_from; in g_dev_done()
725 bp = bp2->bio_parent; in g_dev_done()
726 bp->bio_error = bp2->bio_error; in g_dev_done()
727 bp->bio_completed = bp2->bio_completed; in g_dev_done()
728 bp->bio_resid = bp->bio_length - bp2->bio_completed; in g_dev_done()
729 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
730 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone)); in g_dev_done()
732 if (bp2->bio_error != 0) { in g_dev_done()
734 bp2, bp2->bio_error); in g_dev_done()
[all …]
H A Dgeom_subr.c1152 struct bio *bp2; in g_std_done() local
1154 bp2 = bp->bio_parent; in g_std_done()
1155 if (bp2->bio_error == 0) in g_std_done()
1156 bp2->bio_error = bp->bio_error; in g_std_done()
1157 bp2->bio_completed += bp->bio_completed; in g_std_done()
1159 bp2->bio_inbed++; in g_std_done()
1160 if (bp2->bio_children == bp2->bio_inbed) { in g_std_done()
1161 if (bp2->bio_cmd == BIO_SPEEDUP) in g_std_done()
1162 bp2->bio_completed = bp2->bio_length; in g_std_done()
1163 g_io_deliver(bp2, bp2->bio_error); in g_std_done()
/freebsd/sys/fs/cd9660/
H A Dcd9660_node.c101 struct buf *bp2 = NULL; in cd9660_defattr() local
123 &bp2); in cd9660_defattr()
124 bp = bp2; in cd9660_defattr()
152 if (bp2) in cd9660_defattr()
153 brelse(bp2); in cd9660_defattr()
163 struct buf *bp2 = NULL; in cd9660_deftstamp() local
172 &bp2); in cd9660_deftstamp()
173 bp = bp2; in cd9660_deftstamp()
194 if (bp2) in cd9660_deftstamp()
195 brelse(bp2); in cd9660_deftstamp()
H A Dcd9660_vfsops.c807 struct buf *bp2; in cd9660_vget_internal() local
812 &bp2); in cd9660_vget_internal()
814 bp2 = NULL; in cd9660_vget_internal()
815 cd9660_defattr(isodir, ip, bp2, ISO_FTYPE_9660); in cd9660_vget_internal()
816 cd9660_deftstamp(isodir, ip, bp2, ISO_FTYPE_9660); in cd9660_vget_internal()
817 if (bp2) in cd9660_vget_internal()
818 brelse(bp2); in cd9660_vget_internal()
/freebsd/contrib/tcpdump/
H A Dprint-frag6.c34 frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) in frag6_print() argument
41 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
47 if ((bp - bp2) + sizeof(struct ip6_frag) > in frag6_print()
53 (bp - bp2) - sizeof(struct ip6_frag)); in frag6_print()
H A Dprint-sunrpc.c157 u_int length, const u_char *bp2) in sunrpc_print() argument
179 switch (IP_V((const struct ip *)bp2)) { in sunrpc_print()
181 ip = (const struct ip *)bp2; in sunrpc_print()
187 ip6 = (const struct ip6_hdr *)bp2; in sunrpc_print()
H A Dprint-vrrp.c106 const u_char *bp2, int ttl, in vrrp_print() argument
152 cksum = nextproto4_cksum(ndo, (const struct ip *)bp2, bp, in vrrp_print()
155 cksum = nextproto6_cksum(ndo, (const struct ip6_hdr *)bp2, bp, in vrrp_print()
H A Dprint-pim.c453 const u_char *bp, u_int len, const u_char *bp2) in pim_print() argument
474 pimv2_print(ndo, bp, len, bp2); in pim_print()
654 const u_char *bp2, u_int len) in pimv2_check_checksum() argument
663 ip = (const struct ip *)bp2; in pimv2_check_checksum()
674 ip6 = (const struct ip6_hdr *)bp2; in pimv2_check_checksum()
684 const u_char *bp, u_int len, const u_char *bp2) in pimv2_print() argument
719 cksum_status = pimv2_check_checksum(ndo, bp, bp2, 8); in pimv2_print()
727 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len); in pimv2_print()
733 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len); in pimv2_print()
H A Dprint-isakmp.c626 const u_char *bp2, const struct isakmp *base);
762 cookie_record(netdissect_options *ndo, const cookie_t *in, const u_char *bp2) in cookie_record() argument
774 ip = (const struct ip *)bp2; in cookie_record()
784 ip6 = (const struct ip6_hdr *)bp2; in cookie_record()
801 cookie_sidecheck(netdissect_options *ndo, int i, const u_char *bp2, int initiator) in cookie_sidecheck() argument
806 ip = (const struct ip *)bp2; in cookie_sidecheck()
822 ip6 = (const struct ip6_hdr *)bp2; in cookie_sidecheck()
2817 const u_char *bp2, const struct isakmp *base) in ikev1_print() argument
2840 if (bp2) in ikev1_print()
2841 cookie_record(ndo, &base->i_ck, bp2); in ikev1_print()
[all …]
H A Dprint-udp.c367 const u_char *bp2, int fragmented, u_int ttl_hl) in udp_print() argument
379 ip = (const struct ip *)bp2; in udp_print()
381 ip6 = (const struct ip6_hdr *)bp2; in udp_print()
496 pgm_print(ndo, cp, length, bp2); in udp_print()
616 isakmp_print(ndo, cp, length, bp2); in udp_print()
644 isakmp_rfc3948_print(ndo, cp, length, bp2, IP_V(ip), fragmented, ttl_hl); in udp_print()
646 isakmp_print(ndo, cp, length, bp2); in udp_print()
H A Dprint-esp.c733 const u_char *bp2 USED_IF_LIBCRYPTO, in esp_print()
779 ip = (const struct ip *)bp2; in esp_print()
782 ip6 = (const struct ip6_hdr *)bp2; in esp_print()
921 ttl_hl, nh, bp2); in esp_print()
H A Dprint-sctp.c451 const u_char *bp2, /* beginning of enclosing */ in sctp_print() argument
479 ip = (const struct ip *)bp2; in sctp_print()
481 ip6 = (const struct ip6_hdr *)bp2; in sctp_print()
H A Dprint-rt6.c35 rt6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2 _U_) in rt6_print()
H A Dprint-nfs.c333 const u_char *bp2) in nfsreply_print() argument
350 nfsaddr_print(ndo, bp2, srcid, dstid); in nfsreply_print()
352 nfsreply_noaddr_print(ndo, bp, length, bp2); in nfsreply_print()
358 const u_char *bp2) in nfsreply_noaddr_print() argument
376 if (xid_map_find(ndo, rp, bp2, &proc, &vers) >= 0) in nfsreply_noaddr_print()
562 const u_char *bp2) in nfsreq_noaddr_print() argument
576 if (!xid_map_enter(ndo, rp, bp2)) /* record proc number for later on */ in nfsreq_noaddr_print()
H A Dprint-pgm.c146 const u_char *bp2) in pgm_print() argument
160 ip = (const struct ip *)bp2; in pgm_print()
162 ip6 = (const struct ip6_hdr *)bp2; in pgm_print()
/freebsd/crypto/openssl/crypto/objects/
H A Dobjxref.pl66 my$bp2 = $oid_tbl{$xref_tbl{$b}[1]};
68 return $ap2 - $bp2;
/freebsd/sys/cam/nvme/
H A Dnvme_da.c1225 struct bio *bp1, *bp2; in ndadone() local
1250 while ((bp2 = TAILQ_FIRST(&queue)) != NULL) { in ndadone()
1251 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()
1252 bp2->bio_error = error; in ndadone()
1254 bp2->bio_flags |= BIO_ERROR; in ndadone()
1255 bp2->bio_resid = bp1->bio_bcount; in ndadone()
1257 bp2->bio_resid = 0; in ndadone()
1258 if (bp1 != bp2) in ndadone()
1259 cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL); in ndadone()
1260 biodone(bp2); in ndadone()
/freebsd/sys/geom/cache/
H A Dg_cache.c217 struct bio *bp2, *tmpbp; in g_cache_done() local
223 bp2 = dp->d_biolist; in g_cache_done()
224 while (bp2 != NULL) { in g_cache_done()
225 KASSERT(G_CACHE_NEXT_BIO1(bp2) == sc, ("corrupt bio_driver in g_cache_done()")); in g_cache_done()
226 tmpbp = G_CACHE_NEXT_BIO2(bp2); in g_cache_done()
227 g_cache_deliver(sc, bp2, dp, bp->bio_error); in g_cache_done()
228 bp2 = tmpbp; in g_cache_done()
/freebsd/sys/net/
H A Dbridgestp.c919 struct bstp_port *bp2; in bstp_update_state() local
927 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_update_state()
928 if (!(bp2->bp_synced || in bstp_update_state()
929 bp2->bp_role == BSTP_ROLE_ROOT)) { in bstp_update_state()
1185 struct bstp_port *bp2; in bstp_set_other_tcprop() local
1189 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_set_other_tcprop()
1190 if (bp2 == bp) in bstp_set_other_tcprop()
1192 bp2->bp_tc_prop = 1; in bstp_set_other_tcprop()
1477 struct bstp_port *bp2; in bstp_rerooted() local
1480 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_rerooted()
[all …]
/freebsd/sys/geom/part/
H A Dg_part.c2223 struct bio *bp2; in g_part_start() local
2257 bp2 = g_clone_bio(bp); in g_part_start()
2258 if (bp2 == NULL) { in g_part_start()
2262 if (bp2->bio_offset + bp2->bio_length > pp->mediasize) in g_part_start()
2263 bp2->bio_length = pp->mediasize - bp2->bio_offset; in g_part_start()
2264 bp2->bio_done = g_std_done; in g_part_start()
2265 bp2->bio_offset += entry->gpe_offset; in g_part_start()
2266 g_io_request(bp2, cp); in g_part_start()
2327 bp2 = g_clone_bio(bp); in g_part_start()
2328 if (bp2 == NULL) { in g_part_start()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa.h546 #define BP_EQUAL(bp1, bp2) \ argument
547 (BP_GET_BIRTH(bp1) == BP_GET_BIRTH(bp2) && \
548 BP_GET_LOGICAL_BIRTH(bp1) == BP_GET_LOGICAL_BIRTH(bp2) && \
549 DVA_EQUAL(&(bp1)->blk_dva[0], &(bp2)->blk_dva[0]) && \
550 DVA_EQUAL(&(bp1)->blk_dva[1], &(bp2)->blk_dva[1]) && \
551 DVA_EQUAL(&(bp1)->blk_dva[2], &(bp2)->blk_dva[2]))

12