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

12

/freebsd-12-stable/contrib/tcpdump/
H A Dprint-frag6.c36 frag6_print(netdissect_options *ndo, register const u_char *bp, register const u_char *bp2) argument
42 ip6 = (const struct ip6_hdr *)bp2;
51 (long)(bp - bp2) - sizeof(struct ip6_frag)));
56 (long)(bp - bp2) - sizeof(struct ip6_frag)));
H A Dprint-sunrpc.c169 register u_int length, register const u_char *bp2)
189 switch (IP_V((const struct ip *)bp2)) {
191 ip = (const struct ip *)bp2;
197 ip6 = (const struct ip6_hdr *)bp2;
168 sunrpcrequest_print(netdissect_options *ndo, register const u_char *bp, register u_int length, register const u_char *bp2) argument
H A Dprint-vrrp.c108 register const u_char *bp2, int ttl)
153 uint16_t cksum = nextproto4_cksum(ndo, (const struct ip *)bp2, bp,
106 vrrp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, register const u_char *bp2, int ttl) argument
H A Dprint-rt6.c39 rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 _U_)
H A Dprint-esp.c657 const u_char *bp, const int length, const u_char *bp2
727 ip = (const struct ip *)bp2;
730 ip6 = (const struct ip6_hdr *)bp2;
778 if (ep - bp2 < len)
780 if (ep - bp2 > len) {
782 ep = bp2 + len;
H A Dprint-pim.c456 register const u_char *bp, register u_int len, const u_char *bp2)
478 pimv2_print(ndo, bp, len, bp2);
665 const u_char *bp2, u_int len)
674 ip = (const struct ip *)bp2;
685 ip6 = (const struct ip6_hdr *)bp2;
695 register const u_char *bp, register u_int len, const u_char *bp2)
721 cksum_status = pimv2_check_checksum(ndo, bp, bp2, 8);
729 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len);
735 cksum_status = pimv2_check_checksum(ndo, bp, bp2, len);
455 pim_print(netdissect_options *ndo, register const u_char *bp, register u_int len, const u_char *bp2) argument
664 pimv2_check_checksum(netdissect_options *ndo, const u_char *bp, const u_char *bp2, u_int len) argument
694 pimv2_print(netdissect_options *ndo, register const u_char *bp, register u_int len, const u_char *bp2) argument
H A Dprint-isakmp.c645 const u_char *bp2, struct isakmp *base);
779 cookie_record(cookie_t *in, const u_char *bp2) argument
791 ip = (const struct ip *)bp2;
799 ip6 = (const struct ip6_hdr *)bp2;
814 cookie_sidecheck(int i, const u_char *bp2, int initiator) argument
819 ip = (const struct ip *)bp2;
835 ip6 = (const struct ip6_hdr *)bp2;
2815 const u_char *bp2, struct isakmp *base)
2837 if (bp2)
2838 cookie_record(&base->i_ck, bp2);
2813 ikev1_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2, struct isakmp *base) argument
3031 isakmp_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2) argument
3093 isakmp_rfc3948_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2) argument
[all...]
H A Dprint-udp.c371 register const u_char *bp2, int fragmented)
383 ip = (const struct ip *)bp2;
385 ip6 = (const struct ip6_hdr *)bp2;
494 pgm_print(ndo, cp, length, bp2);
589 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
591 isakmp_rfc3948_print(ndo, (const u_char *)(up + 1), length, bp2);
594 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
370 udp_print(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2, int fragmented) argument
H A Dprint-sctp.c495 const u_char *bp2, /* beginning of enclosing */
521 ip = (const struct ip *)bp2;
523 ip6 = (const struct ip6_hdr *)bp2;
493 sctp_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2, u_int sctpPacketLength) argument
H A Dprint-nfs.c324 register const u_char *bp2)
342 print_nfsaddr(ndo, bp2, srcid, dstid);
344 nfsreply_print_noaddr(ndo, bp, length, bp2);
355 register const u_char *bp2)
373 if (xid_map_find(rp, bp2, &proc, &vers) >= 0)
523 register const u_char *bp2)
537 if (!xid_map_enter(ndo, rp, bp2)) /* record proc number for later on */
322 nfsreply_print(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
353 nfsreply_print_noaddr(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
521 nfsreq_print_noaddr(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
/freebsd-12-stable/sys/geom/uzip/
H A Dg_uzip.c221 struct bio *bp2; local
280 bp2 = g_clone_bio(bp);
281 if (bp2 == NULL) {
285 bp2->bio_done = g_uzip_read_done;
287 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk);
289 bp2->bio_length = TLEN_2_BLEN(sc, pp, bp2, end_blk - 1);
290 if (bp2->bio_length <= MAXPHYS) {
299 DPRINTF(GUZ_DBG_IO, ("%s/%s: bp2->bio_length = %jd, "
300 "bp2
321 struct bio *bp2; local
347 struct bio *bp2; local
470 struct bio *bp2; local
[all...]
/freebsd-12-stable/sys/geom/
H A Dgeom_slice.c162 struct bio *bp2; local
180 bp2 = g_clone_bio(bp);
181 if (bp2 == NULL) {
185 if (bp2->bio_offset + bp2->bio_length > gsl->length)
186 bp2->bio_length = gsl->length - bp2->bio_offset;
187 bp2->bio_done = g_std_done;
188 bp2->bio_offset += gsl->offset;
189 g_io_request(bp2, c
218 struct bio *bp2; local
[all...]
H A Dgeom_disk.c232 struct bio *bp2; local
237 bp2 = bp->bio_parent;
240 if (bp2->bio_error == 0)
241 bp2->bio_error = bp->bio_error;
242 bp2->bio_completed += bp->bio_length - bp->bio_resid;
246 bcopy(&bp->bio_zone, &bp2->bio_zone, sizeof(bp->bio_zone));
257 bp2->bio_inbed++;
258 if (bp2->bio_children == bp2->bio_inbed) {
260 bp2
427 struct bio *bp2, *bp3; local
[all...]
H A Dgeom_io.c200 struct bio *bp2; local
202 bp2 = uma_zalloc(biozone, M_NOWAIT | M_ZERO);
203 if (bp2 != NULL) {
204 bp2->bio_parent = bp;
205 bp2->bio_cmd = bp->bio_cmd;
213 bp2->bio_flags = bp->bio_flags &
215 bp2->bio_length = bp->bio_length;
216 bp2->bio_offset = bp->bio_offset;
217 bp2->bio_data = bp->bio_data;
218 bp2
248 struct bio *bp2; local
[all...]
H A Dgeom_dev.c700 g_dev_done(struct bio *bp2) argument
707 cp = bp2->bio_from;
709 bp = bp2->bio_parent;
710 bp->bio_error = bp2->bio_error;
711 bp->bio_completed = bp2->bio_completed;
712 bp->bio_resid = bp->bio_length - bp2->bio_completed;
713 if (bp2->bio_cmd == BIO_ZONE)
714 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone));
716 if (bp2->bio_error != 0) {
718 bp2, bp
739 struct bio *bp2; local
[all...]
H A Dgeom_fox.c240 struct bio *bp2; local
254 bp2 = g_clone_bio(bp);
255 if (bp2 == NULL) {
259 bp2->bio_offset += sc->sectorsize;
260 bp2->bio_done = g_fox_done;
267 g_destroy_bio(bp2);
268 bp2 = NULL;
274 if (bp2 != NULL)
275 TAILQ_INSERT_TAIL(&sc->queue, bp2,
278 g_io_request(bp2, s
[all...]
H A Dgeom_subr.c1087 struct bio *bp2; local
1089 bp2 = bp->bio_parent;
1090 if (bp2->bio_error == 0)
1091 bp2->bio_error = bp->bio_error;
1092 bp2->bio_completed += bp->bio_completed;
1094 bp2->bio_inbed++;
1095 if (bp2->bio_children == bp2->bio_inbed)
1096 g_io_deliver(bp2, bp2
[all...]
/freebsd-12-stable/sys/fs/cd9660/
H A 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);
[all...]
H A Dcd9660_vfsops.c813 struct buf *bp2; local
818 &bp2);
820 bp2 = NULL;
821 cd9660_defattr(isodir, ip, bp2, ISO_FTYPE_9660);
822 cd9660_deftstamp(isodir, ip, bp2, ISO_FTYPE_9660);
823 if (bp2)
824 brelse(bp2);
/freebsd-12-stable/sys/fs/nandfs/
H A Dnandfs_alloc.c95 struct buf *bp, *bp2; local
105 bp = bp2 = NULL;
134 if (bp2)
135 brelse(bp2);
138 NOCRED, 0, &bp2);
145 group_block, NOCRED, 0, &bp2);
150 mask = (uint32_t *)bp2->b_data;
182 req->bp_bitmap = bp2;
/freebsd-12-stable/crypto/openssl/crypto/objects/
H A Dobjxref.pl68 my$bp2 = $oid_tbl{$xref_tbl{$b}[1]};
70 return $ap2 - $bp2;
/freebsd-12-stable/sys/cam/nvme/
H A Dnvme_da.c1154 struct bio *bp1, *bp2; local
1179 while ((bp2 = TAILQ_FIRST(&queue)) != NULL) {
1180 TAILQ_REMOVE(&queue, bp2, bio_queue);
1181 bp2->bio_error = error;
1183 bp2->bio_flags |= BIO_ERROR;
1184 bp2->bio_resid = bp1->bio_bcount;
1186 bp2->bio_resid = 0;
1187 if (bp1 != bp2)
1188 cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL);
1189 biodone(bp2);
[all...]
/freebsd-12-stable/sys/geom/cache/
H A Dg_cache.c217 struct bio *bp2, *tmpbp; local
223 bp2 = dp->d_biolist;
224 while (bp2 != NULL) {
225 KASSERT(G_CACHE_NEXT_BIO1(bp2) == sc, ("corrupt bio_driver in g_cache_done()"));
226 tmpbp = G_CACHE_NEXT_BIO2(bp2);
227 g_cache_deliver(sc, bp2, dp, bp->bio_error);
228 bp2 = tmpbp;
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dspa.h476 #define BP_EQUAL(bp1, bp2) \
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]))
/freebsd-12-stable/sys/geom/part/
H A Dg_part.c2220 struct bio *bp2; local
2254 bp2 = g_clone_bio(bp);
2255 if (bp2 == NULL) {
2259 if (bp2->bio_offset + bp2->bio_length > pp->mediasize)
2260 bp2->bio_length = pp->mediasize - bp2->bio_offset;
2261 bp2->bio_done = g_std_done;
2262 bp2->bio_offset += entry->gpe_offset;
2263 g_io_request(bp2, c
[all...]

Completed in 307 milliseconds

12