/freebsd-10.3-release/sys/dev/cfi/ |
H A D | cfi_disk.c | 171 cfi_disk_read(struct cfi_softc *sc, struct bio *bp) argument 179 bp->bio_error = cfi_block_finish(sc); 180 if (bp->bio_error) { 181 bp->bio_flags |= BIO_ERROR; 185 if (bp->bio_offset > sc->sc_size) { 186 bp->bio_flags |= BIO_ERROR; 187 bp->bio_error = EIO; 190 resid = bp->bio_bcount; 192 uint8_t *dp = (uint8_t *)bp->bio_data; 193 while (resid > 0 && bp 216 cfi_disk_write(struct cfi_softc *sc, struct bio *bp) argument 267 struct bio *bp; local 288 cfi_disk_getattr(struct bio *bp) argument 312 cfi_disk_strategy(struct bio *bp) argument [all...] |
/freebsd-10.3-release/contrib/tcpdump/ |
H A D | print-ntp.c | 89 register const struct ntpdata *bp; local 92 bp = (struct ntpdata *)cp; 94 TCHECK(bp->status); 96 version = (int)(bp->status & VERSIONMASK) >> 3; 99 mode = bp->status & MODEMASK; 111 leapind = bp->status & LEAPMASK; 116 TCHECK(bp->stratum); 118 bp->stratum, 119 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp [all...] |
H A D | print-rx.c | 449 rx_print(register const u_char *bp, int length, int sport, int dport, argument 456 if (snapend - bp < (int)sizeof (struct rx_header)) { 461 rxh = (struct rx_header *) bp; 516 rx_cache_insert(bp, (const struct ip *) bp2, dport); 520 fs_print(bp, length); 523 cb_print(bp, length); 526 prot_print(bp, length); 529 vldb_print(bp, length); 532 kauth_print(bp, length); 535 vol_print(bp, lengt 602 rx_cache_insert(const u_char *bp, const struct ip *ip, int dport) argument 804 fs_print(register const u_char *bp, int length) argument 976 fs_reply_print(register const u_char *bp, int length, int32_t opcode) argument 1143 cb_print(register const u_char *bp, int length) argument 1225 cb_reply_print(register const u_char *bp, int length, int32_t opcode) argument 1274 prot_print(register const u_char *bp, int length) argument 1417 prot_reply_print(register const u_char *bp, int length, int32_t opcode) argument 1529 vldb_print(register const u_char *bp, int length) argument 1622 vldb_reply_print(register const u_char *bp, int length, int32_t opcode) argument 1809 kauth_print(register const u_char *bp, int length) argument 1902 kauth_reply_print(register const u_char *bp, int length, int32_t opcode) argument 1953 vol_print(register const u_char *bp, int length) argument 2154 vol_reply_print(register const u_char *bp, int length, int32_t opcode) argument 2288 bos_print(register const u_char *bp, int length) argument 2379 bos_reply_print(register const u_char *bp, int length, int32_t opcode) argument 2437 ubik_print(register const u_char *bp) argument 2546 ubik_reply_print(register const u_char *bp, int length, int32_t opcode) argument 2609 rx_ack_print(register const u_char *bp, int length) argument [all...] |
H A D | print-pgm.c | 158 pgm_print(register const u_char *bp, register u_int length, argument 177 pgm = (struct pgm_header *)bp; 277 bp = (u_char *) (spm + 1); 278 TCHECK2(*bp, addr_size); 279 nla = bp; 280 bp += addr_size; 299 bp = (u_char *) (poll + 1); 324 bp = (u_char *) (polr + 1); 325 TCHECK2(*bp, addr_size); 326 nla = bp; [all...] |
/freebsd-10.3-release/usr.sbin/makefs/ffs/ |
H A D | buf.h | 64 #define bdwrite(bp) bwrite(bp) 65 #define clrbuf(bp) memset((bp)->b_data, 0, (u_int)(bp)->b_bcount)
|
/freebsd-10.3-release/sys/fs/fuse/ |
H A D | fuse_io.c | 177 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 375 struct buf *bp; local 602 fuse_io_strategy(struct vnode *vp, struct buf *bp) argument [all...] |
/freebsd-10.3-release/crypto/openssh/openbsd-compat/ |
H A D | strptime.c | 70 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-10.3-release/contrib/ncurses/form/ |
H A D | fty_ipv4.c | 53 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 D | fty_int.c | 137 unsigned char *bp = (unsigned char *)field_buffer(field, 0); local 138 char *s = (char *)bp; 143 while (*bp && *bp == ' ') 144 bp++; 145 if (*bp) 147 if (*bp == '-') 148 bp++; 150 if (*bp) 155 wchar_t *list = _nc_Widen_String((char *)bp, [all...] |
/freebsd-10.3-release/contrib/gdb/gdb/ |
H A D | mem-break.c | 48 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-10.3-release/contrib/bmake/ |
H A D | buf.h | 97 #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-10.3-release/usr.sbin/ppp/ |
H A D | vjcomp.c | 73 vj_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, argument 80 bp = m_pullup(bp); 81 pip = (struct ip *)MBUF_CTOP(bp); 84 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, 95 m_settype(bp, MB_VJOUT); 101 m_settype(bp, MB_VJOUT); 106 m_freem(bp); 111 return bp; 115 VjUncompressTcp(struct ipcp *ipcp, struct mbuf *bp, u_cha argument 165 vj_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto) argument [all...] |
H A D | async.c | 103 async_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp, argument 112 if (!p || m_length(bp) > HDLCSIZE) { 113 m_freem(bp); 117 oldcnt = m_length(bp); 121 wp = bp; 128 m_freem(bp); 137 m_freem(bp); 138 bp = m_get(cnt, MB_ASYNCOUT); 139 memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt); 140 bp 149 struct mbuf *bp; local 190 async_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp, u_short *proto __unused) argument [all...] |
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | spa.h | 144 * overhead, three DVAs per bp, plus one more bit in case we do anything 232 * fill count number of non-zero blocks under this bp 233 * checksum[4] 256-bit checksum of the data this bp describes 285 * bp's they are stored in units of SPA_MINBLOCKSHIFT. 294 #define BPE_GET_ETYPE(bp) \ 295 (ASSERT(BP_IS_EMBEDDED(bp)), \ 296 BF64_GET((bp)->blk_prop, 40, 8)) 297 #define BPE_SET_ETYPE(bp, t) do { \ 298 ASSERT(BP_IS_EMBEDDED(bp)); \ 299 BF64_SET((bp) [all...] |
/freebsd-10.3-release/sys/sys/ |
H A D | buf.h | 150 * B_ASYNC VOP calls on bp's are usually async whether or not 155 * B_PAGING Indicates that bp is being used by the paging system or 156 * some paging system and that the bp is not linked into 267 #define BUF_LOCKINIT(bp) \ 268 lockinit(&(bp)->b_lock, PRIBIO + 4, buf_wmesg, 0, 0) 273 #define BUF_LOCK(bp, locktype, interlock) \ 274 _lockmgr_args_rw(&(bp)->b_lock, (locktype), (interlock), \ 281 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ 282 _lockmgr_args_rw(&(bp)->b_lock, (locktype) | LK_TIMELOCK, \ 290 #define BUF_UNLOCK(bp) d 388 bwrite(struct buf *bp) argument 399 bstrategy(struct buf *bp) argument 411 buf_start(struct buf *bp) argument 418 buf_complete(struct buf *bp) argument 425 buf_deallocate(struct buf *bp) argument 432 buf_countdeps(struct buf *bp, int i) argument [all...] |
/freebsd-10.3-release/sys/geom/vinum/ |
H A D | geom_vinum_plex.c | 54 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 301 gv_plex_normal_done(struct gv_plex *p, struct bio *bp) argument 327 gv_plex_raid5_done(struct gv_plex *p, struct bio *bp) argument 450 gv_check_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument 505 gv_normal_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument 539 struct bio *bp; local 550 gv_post_bio(struct gv_softc *sc, struct bio *bp) argument 566 struct bio *bp; local 601 gv_sync_complete(struct gv_plex *to, struct bio *bp) argument 680 struct bio *bp; local 714 gv_grow_complete(struct gv_plex *p, struct bio *bp) argument 785 struct bio *bp, *cbp; local 827 gv_init_complete(struct gv_plex *p, struct bio *bp) argument 891 struct bio *bp; local 936 gv_parity_complete(struct gv_plex *p, struct bio *bp) argument 993 gv_rebuild_complete(struct gv_plex *p, struct bio *bp) argument [all...] |
/freebsd-10.3-release/sys/kern/ |
H A D | vfs_cluster.c | 95 struct buf *bp, *rbp, *reqbp; local 121 *bpp = reqbp = bp = getblk(vp, lblkno, size, 0, 0, gbflags); 129 if (bp->b_flags & B_CACHE) { 132 } else if ((bp->b_flags & B_RAM) == 0) { 135 bp->b_flags &= ~B_RAM; 165 reqbp = bp = NULL; 171 off_t firstread = bp->b_offset; 175 KASSERT(bp->b_offset != NOOFFSET, 219 bp = cluster_rbuild(vp, filesize, lblkno, 220 blkno, size, nblks, gbflags, bp); 313 struct buf *bp, *tbp; local 625 cluster_write(struct vnode *vp, struct buf *bp, u_quad_t filesize, int seqcount, int gbflags) argument 780 struct buf *bp, *tbp; local 1034 struct buf *bp; local [all...] |
H A D | kern_physio.c | 43 struct bio *bp; local 93 bp = g_alloc_bio(); 113 bzero(bp, sizeof(*bp)); 115 bp->bio_cmd = BIO_READ; 118 bp->bio_cmd = BIO_WRITE; 121 bp->bio_offset = uio->uio_offset; 122 bp->bio_data = uio->uio_iov[i].iov_base; 123 bp->bio_length = uio->uio_iov[i].iov_len; 124 if (bp [all...] |
/freebsd-10.3-release/crypto/openssl/crypto/asn1/ |
H A D | t_x509.c | 100 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) 150 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0) 154 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0) 158 if (BIO_printf(bp, " 250 X509_ocspid_print(BIO *bp, X509 *x) argument 300 X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent) argument 323 X509_signature_print(BIO *bp, X509_ALGOR *sigalg, ASN1_STRING *sig) argument 348 ASN1_STRING_print(BIO *bp, const ASN1_STRING *v) argument 377 ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) argument 392 ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) argument 444 ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) argument 485 X509_NAME_print(BIO *bp, X509_NAME *name, int obase) argument [all...] |
H A D | asn1_par.c | 69 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-10.3-release/sys/dev/nand/ |
H A D | nand_geom.c | 94 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) == BIO_READ ? "READ" : 104 ((bp->bio_cmd & BIO_WRITE) == BIO_WRITE ? "WRITE" : 105 ((bp->bio_cmd & BIO_DELETE) == 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 443 struct bio *bp; local [all...] |
/freebsd-10.3-release/contrib/ipfilter/ipsd/ |
H A D | slinux.c | 45 int ack_recv(bp) 46 char *bp; 55 bcopy(bp, (char *)&tip, sizeof(tip)); 56 bcopy(bp + (ip.ip_hl << 2), (char *)tcp, sizeof(*tcp)); 69 register u_char *bp = buf; local 85 if (bp[12] != 0x8 || bp[13] != 0) 93 if (((bp[14+9] != IPPROTO_TCP) && 94 (bp[14+9] != IPPROTO_UDP)) || 95 (bp[1 [all...] |
/freebsd-10.3-release/sys/geom/eli/ |
H A D | g_eli_integrity.c | 133 struct bio *bp; local 139 bp = (struct bio *)crp->crp_opaque; 140 bp->bio_inbed++; 142 bp->bio_completed += crp->crp_olen; 144 bp->bio_inbed, bp->bio_children, (intmax_t)crp->crp_olen, (intmax_t)bp->bio_completed); 147 bp->bio_inbed, bp->bio_children, crp->crp_etype); 148 if (bp 259 struct bio *bp, *cbp, *cbp2; local 340 g_eli_auth_read(struct g_eli_softc *sc, struct bio *bp) argument 407 g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp) argument [all...] |
/freebsd-10.3-release/sys/ufs/ffs/ |
H A D | ffs_rawread.c | 65 struct buf *bp, 193 struct buf *bp, 212 bp->b_bcount = len; 213 if (bp->b_bcount + iolen > bp->b_kvasize) { 214 bp->b_bcount = bp->b_kvasize; 216 bp->b_bcount -= PAGE_SIZE; 218 bp->b_flags = 0; /* XXX necessary ? */ 219 bp 188 ffs_rawread_readahead(struct vnode *vp, caddr_t udata, off_t offset, size_t len, struct thread *td, struct buf *bp, caddr_t sa) argument 274 struct buf *bp, *nbp, *tbp; local [all...] |
/freebsd-10.3-release/contrib/nvi/common/ |
H A D | args.h | 23 CHAR_T *bp; /* Argument. */ member in struct:_args
|