Home
last modified time | relevance | path

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

12

/freebsd-14.2/sys/geom/
H A Dgeom_slice.c158 struct bio *bp2; in g_slice_finish_hot() local
176 bp2 = g_clone_bio(bp); in g_slice_finish_hot()
177 if (bp2 == NULL) { in g_slice_finish_hot()
181 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
182 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
214 struct bio *bp2; in g_slice_start() local
277 if (bp2 == NULL) { in g_slice_start()
281 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start()
282 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
293 if (bp2 == NULL) { in g_slice_start()
[all …]
H A Dgeom_disk.c230 struct bio *bp2; in g_disk_done() local
243 kmsan_check(bp2->bio_data, bp2->bio_completed, "g_disk_done"); 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()
262 g_io_deliver(bp2, bp2->bio_error); in g_disk_done()
458 if (bp2 == NULL) { in g_disk_start()
476 bp2->bio_pblkno = bp2->bio_offset / dp->d_sectorsize; in g_disk_start()
477 bp2->bio_bcount = bp2->bio_length; in g_disk_start()
485 bp2 = bp3; in g_disk_start()
[all …]
H A Dgeom_io.c195 struct bio *bp2; in g_clone_bio() local
198 if (bp2 != NULL) { in g_clone_bio()
199 bp2->bio_parent = bp; in g_clone_bio()
200 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
213 bp2->bio_ma = bp->bio_ma; in g_clone_bio()
234 return(bp2); in g_clone_bio()
240 struct bio *bp2; in g_duplicate_bio() local
244 bp2->bio_parent = bp; in g_duplicate_bio()
245 bp2->bio_cmd = bp->bio_cmd; in g_duplicate_bio()
249 bp2->bio_ma = bp->bio_ma; in g_duplicate_bio()
[all …]
H A Dgeom_dev.c724 cp = bp2->bio_from; in g_dev_done()
726 bp = bp2->bio_parent; in g_dev_done()
735 bp2, bp2->bio_error); in g_dev_done()
743 bp2, bp, bp2->bio_resid, (intmax_t)bp2->bio_completed); in g_dev_done()
745 g_destroy_bio(bp2); in g_dev_done()
760 struct bio *bp2; in g_dev_strategy() local
792 bp2 = g_clone_bio(bp); in g_dev_strategy()
793 if (bp2 != NULL) in g_dev_strategy()
801 bp, bp2, (intmax_t)bp->bio_offset, (intmax_t)bp2->bio_length, in g_dev_strategy()
802 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
[all …]
H A Dgeom_subr.c1153 struct bio *bp2; in g_std_done() local
1155 bp2 = bp->bio_parent; in g_std_done()
1156 if (bp2->bio_error == 0) in g_std_done()
1157 bp2->bio_error = bp->bio_error; in g_std_done()
1158 bp2->bio_completed += bp->bio_completed; in g_std_done()
1160 bp2->bio_inbed++; in g_std_done()
1161 if (bp2->bio_children == bp2->bio_inbed) { in g_std_done()
1162 if (bp2->bio_cmd == BIO_SPEEDUP) in g_std_done()
1163 bp2->bio_completed = bp2->bio_length; in g_std_done()
1164 g_io_deliver(bp2, bp2->bio_error); in g_std_done()
/freebsd-14.2/sys/geom/uzip/
H A Dg_uzip.c224 struct bio *bp2; in g_uzip_request() local
292 bp2->bio_length = TLEN_2_BLEN(sc, pp, bp2, end_blk - 1); 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()
315 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
324 struct bio *bp2; in g_uzip_read_done() local
350 struct bio *bp2; in g_uzip_do() local
375 ofs = bp2->bio_offset + bp2->bio_completed; in g_uzip_do()
379 data2 = bp2->bio_data + bp2->bio_completed; in g_uzip_do()
449 if (bp2->bio_error != 0 || bp2->bio_resid == 0) in g_uzip_do()
[all …]
/freebsd-14.2/sys/fs/cd9660/
H A Dcd9660_node.c104 struct buf *bp2 = NULL; in cd9660_defattr() local
126 &bp2); in cd9660_defattr()
127 bp = bp2; in cd9660_defattr()
155 if (bp2) in cd9660_defattr()
156 brelse(bp2); in cd9660_defattr()
166 struct buf *bp2 = NULL; in cd9660_deftstamp() local
175 &bp2); in cd9660_deftstamp()
176 bp = bp2; in cd9660_deftstamp()
197 if (bp2) in cd9660_deftstamp()
198 brelse(bp2); in cd9660_deftstamp()
H A Dcd9660_vfsops.c810 struct buf *bp2; in cd9660_vget_internal() local
815 &bp2); in cd9660_vget_internal()
817 bp2 = NULL; in cd9660_vget_internal()
818 cd9660_defattr(isodir, ip, bp2, ISO_FTYPE_9660); in cd9660_vget_internal()
819 cd9660_deftstamp(isodir, ip, bp2, ISO_FTYPE_9660); in cd9660_vget_internal()
820 if (bp2) in cd9660_vget_internal()
821 brelse(bp2); in cd9660_vget_internal()
/freebsd-14.2/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.c774 ip = (const struct ip *)bp2; in cookie_record()
784 ip6 = (const struct ip6_hdr *)bp2; in cookie_record()
806 ip = (const struct ip *)bp2; in cookie_sidecheck()
822 ip6 = (const struct ip6_hdr *)bp2; in cookie_sidecheck()
2840 if (bp2) in ikev1_print()
2841 cookie_record(ndo, &base->i_ck, bp2); in ikev1_print()
2845 if (bp2 && cookie_isinitiator(ndo, i, bp2)) in ikev1_print()
2847 else if (bp2 && cookie_isresponder(ndo, i, bp2)) in ikev1_print()
3036 const u_char *bp2) in isakmp_print() argument
3084 ikev1_print(ndo, bp, length, bp2, p); in isakmp_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-14.2/crypto/openssl/crypto/objects/
H A Dobjxref.pl66 my$bp2 = $oid_tbl{$xref_tbl{$b}[1]};
68 return $ap2 - $bp2;
/freebsd-14.2/sys/cam/nvme/
H A Dnvme_da.c1214 struct bio *bp1, *bp2; in ndadone() local
1239 while ((bp2 = TAILQ_FIRST(&queue)) != NULL) { in ndadone()
1240 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()
1241 bp2->bio_error = error; in ndadone()
1243 bp2->bio_flags |= BIO_ERROR; in ndadone()
1244 bp2->bio_resid = bp1->bio_bcount; in ndadone()
1246 bp2->bio_resid = 0; in ndadone()
1247 if (bp1 != bp2) in ndadone()
1248 cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL); in ndadone()
1249 biodone(bp2); in ndadone()
/freebsd-14.2/sys/geom/cache/
H A Dg_cache.c218 struct bio *bp2, *tmpbp; in g_cache_done() local
224 bp2 = dp->d_biolist; in g_cache_done()
225 while (bp2 != NULL) { in g_cache_done()
226 KASSERT(G_CACHE_NEXT_BIO1(bp2) == sc, ("corrupt bio_driver in g_cache_done()")); in g_cache_done()
227 tmpbp = G_CACHE_NEXT_BIO2(bp2); in g_cache_done()
228 g_cache_deliver(sc, bp2, dp, bp->bio_error); in g_cache_done()
229 bp2 = tmpbp; in g_cache_done()
/freebsd-14.2/sys/net/
H A Dbridgestp.c920 struct bstp_port *bp2; in bstp_update_state() local
929 if (!(bp2->bp_synced || in bstp_update_state()
930 bp2->bp_role == BSTP_ROLE_ROOT)) { in bstp_update_state()
1186 struct bstp_port *bp2; in bstp_set_other_tcprop() local
1190 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_set_other_tcprop()
1191 if (bp2 == bp) in bstp_set_other_tcprop()
1193 bp2->bp_tc_prop = 1; in bstp_set_other_tcprop()
1478 struct bstp_port *bp2; in bstp_rerooted() local
1481 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_rerooted()
1482 if (bp2 == bp) in bstp_rerooted()
[all …]
/freebsd-14.2/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()
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()
2332 bp2->bio_done = done_func; in g_part_start()
[all …]
/freebsd-14.2/sys/contrib/openzfs/include/sys/
H A Dspa.h545 #define BP_EQUAL(bp1, bp2) \ argument
546 (BP_PHYSICAL_BIRTH(bp1) == BP_PHYSICAL_BIRTH(bp2) && \
547 (bp1)->blk_birth == (bp2)->blk_birth && \
548 DVA_EQUAL(&(bp1)->blk_dva[0], &(bp2)->blk_dva[0]) && \
549 DVA_EQUAL(&(bp1)->blk_dva[1], &(bp2)->blk_dva[1]) && \
550 DVA_EQUAL(&(bp1)->blk_dva[2], &(bp2)->blk_dva[2]))

12