Searched refs:bp (Results 51 - 75 of 943) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/tcpdump/
H A Dprint-ntp.c207 register const struct ntpdata *bp; local
210 bp = (const struct ntpdata *)cp;
212 ND_TCHECK(bp->status);
214 version = (int)(bp->status & VERSIONMASK) >> 3;
217 mode = bp->status & MODEMASK;
229 leapind = bp->status & LEAPMASK;
234 ND_TCHECK(bp->stratum);
236 bp->stratum,
237 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp
[all...]
H A Dprint-resp.c213 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
217 if(!bp || length <= 0)
228 * In order to handle this case, we must try and parse 'bp' until
231 ret_len = resp_parse(ndo, bp, length_cur);
233 bp += ret_len;
244 resp_parse(netdissect_options *ndo, register const u_char *bp, int length) argument
250 ND_TCHECK(*bp);
251 op = *bp;
253 /* bp now points to the op, so these routines must skip it */
255 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, lengt
275 resp_print_simple_string(netdissect_options *ndo, register const u_char *bp, int length) argument
280 resp_print_integer(netdissect_options *ndo, register const u_char *bp, int length) argument
285 resp_print_error(netdissect_options *ndo, register const u_char *bp, int length) argument
290 resp_print_string_error_integer(netdissect_options *ndo, register const u_char *bp, int length) argument
325 resp_print_bulk_string(netdissect_options *ndo, register const u_char *bp, int length) argument
371 resp_print_bulk_array(netdissect_options *ndo, register const u_char *bp, int length) argument
410 resp_print_inline(netdissect_options *ndo, register const u_char *bp, int length) argument
457 resp_get_length(netdissect_options *ndo, register const u_char *bp, int len, const u_char **endp) argument
[all...]
H A Dprint-ip6opts.c45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len) argument
51 if (bp[i] == IP6OPT_PAD1)
55 optlen = bp[i + 1] + 2;
62 switch (bp[i]) {
75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i]));
78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1]));
89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) argument
97 if (bp[i] == IP6OPT_PAD1)
101 optlen = bp[
174 hbhopt_print(netdissect_options *ndo, register const u_char *bp) argument
194 dstopt_print(netdissect_options *ndo, register const u_char *bp) argument
[all...]
H A Dprint-mobility.c116 const u_char *bp, const unsigned len)
121 ND_TCHECK(bp[i]);
122 if (bp[i] == IP6MOPT_PAD1)
126 ND_TCHECK(bp[i + 1]);
127 optlen = bp[i + 1] + 2;
134 ND_TCHECK(bp[i + optlen]);
136 switch (bp[i]) {
153 ND_TCHECK_16BITS(&bp[i+2]);
155 EXTRACT_16BITS(&bp[i+2]) << 2));
162 ND_TCHECK_128BITS(&bp[
115 mobility_opt_print(netdissect_options *ndo, const u_char *bp, const unsigned len) argument
202 mobility_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2 _U_) argument
[all...]
H A Dprint-vjc.c86 vjc_print(netdissect_options *ndo, register const char *bp, u_short proto _U_) argument
90 switch (bp[0] & 0xf0) {
103 if (bp[1] & (0x80 >> i))
106 if (bp[1])
108 ND_PRINT((ndo, "C=0x%02x ", bp[2]));
109 ND_PRINT((ndo, "sum=0x%04x ", *(const u_short *)&bp[3]));
117 ND_PRINT((ndo, "(vjc type=0x%02x) ", bp[0] & 0xf0));
H A Dprint-geneve.c103 geneve_opts_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
115 opt_class = EXTRACT_16BITS(bp);
116 opt_type = *(bp + 2);
117 opt_len = 4 + ((*(bp + 3) & OPT_LEN_MASK) * 4);
129 const uint32_t *data = (const uint32_t *)(bp + 4);
140 bp += opt_len;
146 geneve_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
158 ND_TCHECK2(*bp, 8);
160 ver_opt = *bp;
161 bp
[all...]
/freebsd-11-stable/contrib/mdocml/
H A Deqn_html.c33 eqn_box(struct html *p, const struct eqn_box *bp) argument
42 if (NULL == bp)
51 if (EQN_MATRIX == bp->type) {
52 if (NULL == bp->first)
54 if (bp->first->type != EQN_LIST ||
55 bp->first->expectargs == 1) {
56 eqn_box(p, bp->first);
59 if (NULL == (parent = bp->first->first))
69 parent = bp->first->first;
94 switch (bp
230 print_eqn(struct html *p, const struct eqn_box *bp) argument
[all...]
/freebsd-11-stable/usr.sbin/makefs/ffs/
H A Dbuf.h76 #define bdwrite(bp) bwrite(bp)
77 #define clrbuf(bp) memset((bp)->b_data, 0, (u_int)(bp)->b_bcount)
/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_io.c177 struct buf *bp; local
222 bp = getblk(vp, lbn, bcount, PCATCH, 0, 0);
224 if (!bp)
232 if ((bp->b_flags & B_CACHE) == 0) {
233 bp->b_iocmd = BIO_READ;
234 vfs_busy_pages(bp, 0);
235 err = fuse_io_strategy(vp, bp);
237 brelse(bp);
242 * on is the offset into the current bp. Figure out how many
243 * bytes we can copy out of the bp
377 struct buf *bp; local
604 fuse_io_strategy(struct vnode *vp, struct buf *bp) argument
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dstrptime.c70 const unsigned char *bp; local
80 bp = (unsigned char *)buf;
87 while (isspace(*bp))
88 bp++;
101 if (c != *bp++)
126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0)))
132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0)))
138 if (!(bp
[all...]
/freebsd-11-stable/contrib/ncurses/form/
H A Dfty_ipv4.c53 char *bp = field_buffer(field, 0); local
57 if (isdigit(UChar(*bp))) /* Must start with digit */
59 num = sscanf(bp, "%u.%u.%u.%u%n", &d1, &d2, &d3, &d4, &len);
62 bp += len; /* Make bp point to what sscanf() left */
63 while (isspace(UChar(*bp)))
64 bp++; /* Allow trailing whitespace */
67 return ((num != 4 || *bp || d1 > 255 || d2 > 255
H A Dfty_int.c169 unsigned char *bp = (unsigned char *)field_buffer(field, 0); local
170 char *s = (char *)bp;
175 while (*bp && *bp == ' ')
176 bp++;
177 if (*bp)
179 if (*bp == '-')
180 bp++;
182 if (*bp)
187 wchar_t *list = _nc_Widen_String((char *)bp,
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Dmem-break.c48 const unsigned char *bp; local
52 bp = BREAKPOINT_FROM_PC (&addr, &bplen);
53 if (bp == NULL)
61 val = target_write_memory (addr, (char *) bp, bplen);
70 const unsigned char *bp; local
74 bp = BREAKPOINT_FROM_PC (&addr, &bplen);
75 if (bp == NULL)
/freebsd-11-stable/contrib/bmake/
H A Dbuf.h97 #define Buf_AddByte(bp, byte) do { \
98 int _count = ++(bp)->count; \
100 if (__predict_false(_count >= (bp)->size)) \
101 Buf_Expand_1(bp); \
102 _ptr = (bp)->buffer + _count; \
109 #define Buf_Size(bp) ((bp)->count)
/freebsd-11-stable/usr.sbin/ppp/
H A Dvjcomp.c75 vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, argument
82 bp = m_pullup(bp);
83 pip = (struct ip *)MBUF_CTOP(bp);
86 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc,
97 m_settype(bp, MB_VJOUT);
103 m_settype(bp, MB_VJOUT);
108 m_freem(bp);
113 return bp;
117 VjUncompressTcp(struct ipcp *ipcp, struct mbuf *bp, u_cha argument
167 vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto) argument
[all...]
H A Dasync.c105 async_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp, argument
114 if (!p || m_length(bp) > HDLCSIZE) {
115 m_freem(bp);
119 oldcnt = m_length(bp);
123 wp = bp;
130 m_freem(bp);
139 m_freem(bp);
140 bp = m_get(cnt, MB_ASYNCOUT);
141 memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt);
142 bp
151 struct mbuf *bp; local
192 async_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp, u_short *proto __unused) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dbuf.h153 * B_ASYNC VOP calls on bp's are usually async whether or not
158 * B_PAGING Indicates that bp is being used by the paging system or
159 * some paging system and that the bp is not linked into
270 #define BUF_LOCKINIT(bp) \
271 lockinit(&(bp)->b_lock, PRIBIO + 4, buf_wmesg, 0, 0)
276 #define BUF_LOCK(bp, locktype, interlock) \
277 _lockmgr_args_rw(&(bp)->b_lock, (locktype), (interlock), \
284 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \
285 _lockmgr_args_rw(&(bp)->b_lock, (locktype) | LK_TIMELOCK, \
293 #define BUF_UNLOCK(bp) d
387 bwrite(struct buf *bp) argument
398 bstrategy(struct buf *bp) argument
410 buf_start(struct buf *bp) argument
417 buf_complete(struct buf *bp) argument
424 buf_deallocate(struct buf *bp) argument
431 buf_countdeps(struct buf *bp, int i) argument
477 buf_mapped(struct buf *bp) argument
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dspa.h149 * overhead, three DVAs per bp, plus one more bit in case we do anything
243 * fill count number of non-zero blocks under this bp
244 * checksum[4] 256-bit checksum of the data this bp describes
296 * bp's they are stored in units of SPA_MINBLOCKSHIFT.
305 #define BPE_GET_ETYPE(bp) \
306 (ASSERT(BP_IS_EMBEDDED(bp)), \
307 BF64_GET((bp)->blk_prop, 40, 8))
308 #define BPE_SET_ETYPE(bp, t) do { \
309 ASSERT(BP_IS_EMBEDDED(bp)); \
310 BF64_SET((bp)
[all...]
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Dt_x509.c100 int X509_print(BIO *bp, X509 *x) argument
102 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
105 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, argument
127 if (BIO_write(bp, "Certificate:\n", 13) <= 0)
129 if (BIO_write(bp, " Data:\n", 10) <= 0)
134 if (BIO_printf(bp, "%8sVersion: %lu (0x%lx)\n", "", l + 1, l) <= 0)
139 if (BIO_write(bp, " Serial Number:", 22) <= 0)
151 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0)
155 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0)
159 if (BIO_printf(bp, "
266 X509_ocspid_print(BIO *bp, X509 *x) argument
316 X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent) argument
339 X509_signature_print(BIO *bp, X509_ALGOR *sigalg, ASN1_STRING *sig) argument
364 ASN1_STRING_print(BIO *bp, const ASN1_STRING *v) argument
393 ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) argument
408 ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) argument
460 ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) argument
501 X509_NAME_print(BIO *bp, X509_NAME *name, int obase) argument
[all...]
H A Dasn1_par.c69 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
71 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
73 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, argument
84 if (BIO_write(bp, p, 6) < 6)
86 BIO_indent(bp, indent, 128);
100 if (BIO_printf(bp, fmt, p) <= 0)
107 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) argument
109 return (asn1_parse2(bp, &pp, len, 0, 0, indent, 0));
112 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, argument
115 return (asn1_parse2(bp,
118 asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, int depth, int indent, int dump) argument
[all...]
/freebsd-11-stable/sys/geom/vinum/
H A Dgeom_vinum_plex.c54 gv_plex_start(struct gv_plex *p, struct bio *bp) argument
62 bcount = bp->bio_length;
63 addr = bp->bio_data;
64 boff = bp->bio_offset;
75 wp = gv_raid5_start(p, bp, addr, boff, bcount);
91 len = gv_plex_normal_request(p, bp, boff, bcount, addr);
196 gv_plex_normal_request(struct gv_plex *p, struct bio *bp, off_t boff, argument
214 &real_len, &sdno, (bp->bio_pflags & GV_BIO_GROW));
217 bioq_disksort(p->rqueue, bp);
244 if (bp
302 gv_plex_normal_done(struct gv_plex *p, struct bio *bp) argument
328 gv_plex_raid5_done(struct gv_plex *p, struct bio *bp) argument
451 gv_check_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument
506 gv_normal_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument
540 struct bio *bp; local
551 gv_post_bio(struct gv_softc *sc, struct bio *bp) argument
567 struct bio *bp; local
602 gv_sync_complete(struct gv_plex *to, struct bio *bp) argument
681 struct bio *bp; local
715 gv_grow_complete(struct gv_plex *p, struct bio *bp) argument
786 struct bio *bp, *cbp; local
829 gv_init_complete(struct gv_plex *p, struct bio *bp) argument
893 struct bio *bp; local
938 gv_parity_complete(struct gv_plex *p, struct bio *bp) argument
995 gv_rebuild_complete(struct gv_plex *p, struct bio *bp) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace_sparc.cpp28 void BufferedStackTrace::UnwindFast(uptr pc, uptr bp, uptr stack_top, argument
55 while (next_bp != bp && IsAligned(next_bp, sizeof(uhwptr)) && i++ < 8) {
59 if (next_bp == bp)
60 bp = prev_bp;
65 while (IsValidFrame(bp, stack_top, bottom) && IsAligned(bp, sizeof(uhwptr)) &&
67 uhwptr pc1 = ((uhwptr *)bp)[15];
78 bottom = bp;
79 bp = (uptr)((uhwptr *)bp)[1
[all...]
/freebsd-11-stable/sys/kern/
H A Dvfs_cluster.c96 struct buf *bp, *rbp, *reqbp; local
122 *bpp = reqbp = bp = getblk(vp, lblkno, size, 0, 0, gbflags);
123 if (bp == NULL)
132 if (bp->b_flags & B_CACHE) {
135 } else if ((bp->b_flags & B_RAM) == 0) {
138 bp->b_flags &= ~B_RAM;
168 reqbp = bp = NULL;
174 off_t firstread = bp->b_offset;
178 KASSERT(bp->b_offset != NOOFFSET,
222 bp
338 struct buf *bp, *tbp; local
648 cluster_write(struct vnode *vp, struct buf *bp, u_quad_t filesize, int seqcount, int gbflags) argument
811 struct buf *bp, *tbp; local
1063 struct buf *bp; local
[all...]
/freebsd-11-stable/sys/dev/nand/
H A Dnand_geom.c94 nand_strategy(struct bio *bp) argument
98 chip = (struct nand_chip *)bp->bio_disk->d_drv1;
100 bp->bio_driver1 = BIO_NAND_STD;
103 bp->bio_cmd == BIO_READ ? "READ" :
104 (bp->bio_cmd == BIO_WRITE ? "WRITE" :
105 (bp->bio_cmd == BIO_DELETE ? "DELETE" : "UNKNOWN")),
109 bioq_insert_tail(&chip->bioq, bp);
115 nand_strategy_raw(struct bio *bp) argument
119 chip = (struct nand_chip *)bp->bio_disk->d_drv1;
122 bp
154 nand_getattr(struct bio *bp) argument
312 struct bio *bp; local
445 struct bio *bp; local
[all...]
/freebsd-11-stable/sys/geom/eli/
H A Dg_eli_integrity.c132 struct bio *bp; local
138 bp = (struct bio *)crp->crp_opaque;
139 bp->bio_inbed++;
141 bp->bio_completed += crp->crp_olen;
143 bp->bio_inbed, bp->bio_children, (intmax_t)crp->crp_olen, (intmax_t)bp->bio_completed);
146 bp->bio_inbed, bp->bio_children, crp->crp_etype);
147 if (bp
258 struct bio *bp, *cbp, *cbp2; local
339 g_eli_auth_read(struct g_eli_softc *sc, struct bio *bp) argument
404 g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp) argument
[all...]

Completed in 347 milliseconds

1234567891011>>