Home
last modified time | relevance | path

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

12

/freebsd-12-stable/sys/geom/uzip/
Dg_uzip.c221 struct bio *bp2; in g_uzip_request() local
280 bp2 = g_clone_bio(bp); in g_uzip_request()
281 if (bp2 == NULL) { in g_uzip_request()
285 bp2->bio_done = g_uzip_read_done; in g_uzip_request()
287 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk); in g_uzip_request()
289 bp2->bio_length = TLEN_2_BLEN(sc, pp, bp2, end_blk - 1); in g_uzip_request()
290 if (bp2->bio_length <= MAXPHYS) { in g_uzip_request()
301 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
303 bp2->bio_data = malloc(bp2->bio_length, M_GEOM_UZIP, M_NOWAIT); in g_uzip_request()
304 if (bp2->bio_data == NULL) { in g_uzip_request()
[all …]
/freebsd-12-stable/sys/geom/
Dgeom_slice.c162 struct bio *bp2; in g_slice_finish_hot() local
180 bp2 = g_clone_bio(bp); in g_slice_finish_hot()
181 if (bp2 == NULL) { in g_slice_finish_hot()
185 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
186 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
187 bp2->bio_done = g_std_done; in g_slice_finish_hot()
188 bp2->bio_offset += gsl->offset; in g_slice_finish_hot()
189 g_io_request(bp2, cp); in g_slice_finish_hot()
218 struct bio *bp2; in g_slice_start() local
280 bp2 = g_clone_bio(bp); in g_slice_start()
[all …]
Dgeom_io.c203 struct bio *bp2; in g_clone_bio() local
205 bp2 = uma_zalloc(biozone, M_NOWAIT | M_ZERO); in g_clone_bio()
206 if (bp2 != NULL) { in g_clone_bio()
207 bp2->bio_parent = bp; in g_clone_bio()
208 bp2->bio_cmd = bp->bio_cmd; in g_clone_bio()
216 bp2->bio_flags = bp->bio_flags & in g_clone_bio()
218 bp2->bio_length = bp->bio_length; in g_clone_bio()
219 bp2->bio_offset = bp->bio_offset; in g_clone_bio()
220 bp2->bio_data = bp->bio_data; in g_clone_bio()
221 bp2->bio_ma = bp->bio_ma; in g_clone_bio()
[all …]
Dgeom_disk.c232 struct bio *bp2; in g_disk_done() local
237 bp2 = bp->bio_parent; in g_disk_done()
240 if (bp2->bio_error == 0) in g_disk_done()
241 bp2->bio_error = bp->bio_error; in g_disk_done()
242 bp2->bio_completed += bp->bio_length - bp->bio_resid; in g_disk_done()
246 bcopy(&bp->bio_zone, &bp2->bio_zone, sizeof(bp->bio_zone)); in g_disk_done()
257 bp2->bio_inbed++; in g_disk_done()
258 if (bp2->bio_children == bp2->bio_inbed) { in g_disk_done()
260 bp2->bio_resid = bp2->bio_bcount - bp2->bio_completed; in g_disk_done()
261 g_io_deliver(bp2, bp2->bio_error); in g_disk_done()
[all …]
Dgeom_dev.c700 g_dev_done(struct bio *bp2) in g_dev_done() argument
707 cp = bp2->bio_from; in g_dev_done()
709 bp = bp2->bio_parent; in g_dev_done()
710 bp->bio_error = bp2->bio_error; in g_dev_done()
711 bp->bio_completed = bp2->bio_completed; in g_dev_done()
712 bp->bio_resid = bp->bio_length - bp2->bio_completed; in g_dev_done()
713 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
714 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone)); in g_dev_done()
716 if (bp2->bio_error != 0) { in g_dev_done()
718 bp2, bp2->bio_error); in g_dev_done()
[all …]
Dgeom_fox.c240 struct bio *bp2; in g_fox_start() local
254 bp2 = g_clone_bio(bp); in g_fox_start()
255 if (bp2 == NULL) { in g_fox_start()
259 bp2->bio_offset += sc->sectorsize; in g_fox_start()
260 bp2->bio_done = g_fox_done; in g_fox_start()
267 g_destroy_bio(bp2); in g_fox_start()
268 bp2 = NULL; in g_fox_start()
274 if (bp2 != NULL) in g_fox_start()
275 TAILQ_INSERT_TAIL(&sc->queue, bp2, in g_fox_start()
278 g_io_request(bp2, sc->path); in g_fox_start()
Dgeom_subr.c1087 struct bio *bp2; in g_std_done() local
1089 bp2 = bp->bio_parent; in g_std_done()
1090 if (bp2->bio_error == 0) in g_std_done()
1091 bp2->bio_error = bp->bio_error; in g_std_done()
1092 bp2->bio_completed += bp->bio_completed; in g_std_done()
1094 bp2->bio_inbed++; in g_std_done()
1095 if (bp2->bio_children == bp2->bio_inbed) in g_std_done()
1096 g_io_deliver(bp2, bp2->bio_error); in g_std_done()
/freebsd-12-stable/sys/fs/cd9660/
Dcd9660_node.c121 struct buf *bp2 = NULL; local
143 &bp2);
144 bp = bp2;
172 if (bp2)
173 brelse(bp2);
186 struct buf *bp2 = NULL; local
195 &bp2);
196 bp = bp2;
217 if (bp2)
218 brelse(bp2);
Dcd9660_vfsops.c820 struct buf *bp2; local
825 &bp2);
827 bp2 = NULL;
828 cd9660_defattr(isodir, ip, bp2, ISO_FTYPE_9660);
829 cd9660_deftstamp(isodir, ip, bp2, ISO_FTYPE_9660);
830 if (bp2)
831 brelse(bp2);
/freebsd-12-stable/contrib/tcpdump/
Dprint-frag6.c36 frag6_print(netdissect_options *ndo, register const u_char *bp, register const u_char *bp2) in frag6_print() argument
42 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
51 (long)(bp - bp2) - sizeof(struct ip6_frag))); in frag6_print()
56 (long)(bp - bp2) - sizeof(struct ip6_frag))); in frag6_print()
Dprint-sunrpc.c169 register u_int length, register const u_char *bp2) in sunrpcrequest_print() argument
189 switch (IP_V((const struct ip *)bp2)) { in sunrpcrequest_print()
191 ip = (const struct ip *)bp2; in sunrpcrequest_print()
197 ip6 = (const struct ip6_hdr *)bp2; in sunrpcrequest_print()
Dprint-pim.c456 register const u_char *bp, register u_int len, const u_char *bp2) in pim_print() argument
478 pimv2_print(ndo, bp, len, bp2); in pim_print()
665 const u_char *bp2, u_int len) in pimv2_check_checksum() argument
674 ip = (const struct ip *)bp2; in pimv2_check_checksum()
685 ip6 = (const struct ip6_hdr *)bp2; in pimv2_check_checksum()
695 register const u_char *bp, register u_int len, const u_char *bp2) in pimv2_print() argument
721 cksum_status = pimv2_check_checksum(ndo, bp, bp2, 8); in pimv2_print()
729 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len); in pimv2_print()
735 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len); in pimv2_print()
Dprint-esp.c657 const u_char *bp, const int length, const u_char *bp2 in esp_print()
727 ip = (const struct ip *)bp2; in esp_print()
730 ip6 = (const struct ip6_hdr *)bp2; in esp_print()
778 if (ep - bp2 < len) in esp_print()
780 if (ep - bp2 > len) { in esp_print()
782 ep = bp2 + len; in esp_print()
Dprint-isakmp.c645 const u_char *bp2, struct isakmp *base);
779 cookie_record(cookie_t *in, const u_char *bp2) in cookie_record() argument
791 ip = (const struct ip *)bp2; in cookie_record()
799 ip6 = (const struct ip6_hdr *)bp2; in cookie_record()
814 cookie_sidecheck(int i, const u_char *bp2, int initiator) in cookie_sidecheck() argument
819 ip = (const struct ip *)bp2; in cookie_sidecheck()
835 ip6 = (const struct ip6_hdr *)bp2; in cookie_sidecheck()
2815 const u_char *bp2, struct isakmp *base) in ikev1_print() argument
2837 if (bp2) in ikev1_print()
2838 cookie_record(&base->i_ck, bp2); in ikev1_print()
[all …]
Dprint-vrrp.c108 register const u_char *bp2, int ttl) in vrrp_print() argument
153 uint16_t cksum = nextproto4_cksum(ndo, (const struct ip *)bp2, bp, in vrrp_print()
Dprint-udp.c371 register const u_char *bp2, int fragmented) in udp_print() argument
383 ip = (const struct ip *)bp2; in udp_print()
385 ip6 = (const struct ip6_hdr *)bp2; in udp_print()
494 pgm_print(ndo, cp, length, bp2); in udp_print()
589 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2); in udp_print()
591 isakmp_rfc3948_print(ndo, (const u_char *)(up + 1), length, bp2); in udp_print()
594 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2); in udp_print()
Dprint-rt6.c39 rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 _U_) in rt6_print()
Dprint-sctp.c495 const u_char *bp2, /* beginning of enclosing */ in sctp_print() argument
521 ip = (const struct ip *)bp2; in sctp_print()
523 ip6 = (const struct ip6_hdr *)bp2; in sctp_print()
/freebsd-12-stable/sys/fs/nandfs/
Dnandfs_alloc.c95 struct buf *bp, *bp2; in nandfs_find_free_entry() local
105 bp = bp2 = NULL; in nandfs_find_free_entry()
134 if (bp2) in nandfs_find_free_entry()
135 brelse(bp2); in nandfs_find_free_entry()
138 NOCRED, 0, &bp2); in nandfs_find_free_entry()
145 group_block, NOCRED, 0, &bp2); in nandfs_find_free_entry()
150 mask = (uint32_t *)bp2->b_data; in nandfs_find_free_entry()
182 req->bp_bitmap = bp2; in nandfs_find_free_entry()
/freebsd-12-stable/crypto/openssl/crypto/objects/
Dobjxref.pl67 my$bp2 = $oid_tbl{$xref_tbl{$b}[1]};
69 return $ap2 - $bp2;
/freebsd-12-stable/sys/cam/nvme/
Dnvme_da.c1156 struct bio *bp1, *bp2; in ndadone() local
1181 while ((bp2 = TAILQ_FIRST(&queue)) != NULL) { in ndadone()
1182 TAILQ_REMOVE(&queue, bp2, bio_queue); in ndadone()
1183 bp2->bio_error = error; in ndadone()
1185 bp2->bio_flags |= BIO_ERROR; in ndadone()
1186 bp2->bio_resid = bp1->bio_bcount; in ndadone()
1188 bp2->bio_resid = 0; in ndadone()
1189 if (bp1 != bp2) in ndadone()
1190 cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL); in ndadone()
1191 biodone(bp2); in ndadone()
/freebsd-12-stable/sys/geom/cache/
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-12-stable/sys/net/
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()
1183 struct bstp_port *bp2; in bstp_set_other_tcprop() local
1187 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_set_other_tcprop()
1188 if (bp2 == bp) in bstp_set_other_tcprop()
1190 bp2->bp_tc_prop = 1; in bstp_set_other_tcprop()
1475 struct bstp_port *bp2; in bstp_rerooted() local
1478 LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) { in bstp_rerooted()
[all …]
/freebsd-12-stable/sys/geom/part/
Dg_part.c2220 struct bio *bp2; in g_part_start() local
2254 bp2 = g_clone_bio(bp); in g_part_start()
2255 if (bp2 == NULL) { in g_part_start()
2259 if (bp2->bio_offset + bp2->bio_length > pp->mediasize) in g_part_start()
2260 bp2->bio_length = pp->mediasize - bp2->bio_offset; in g_part_start()
2261 bp2->bio_done = g_std_done; in g_part_start()
2262 bp2->bio_offset += entry->gpe_offset; in g_part_start()
2263 g_io_request(bp2, cp); in g_part_start()
2323 bp2 = g_clone_bio(bp); in g_part_start()
2324 if (bp2 == NULL) { in g_part_start()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Dspa.h476 #define BP_EQUAL(bp1, bp2) \ argument
477 (BP_PHYSICAL_BIRTH(bp1) == BP_PHYSICAL_BIRTH(bp2) && \
478 (bp1)->blk_birth == (bp2)->blk_birth && \
479 DVA_EQUAL(&(bp1)->blk_dva[0], &(bp2)->blk_dva[0]) && \
480 DVA_EQUAL(&(bp1)->blk_dva[1], &(bp2)->blk_dva[1]) && \
481 DVA_EQUAL(&(bp1)->blk_dva[2], &(bp2)->blk_dva[2]))

12