| /freebsd-12.1/contrib/ngatm/libngatm/ |
| H A D | unimsg.c | 58 if ((m->b_buf = malloc(s)) == NULL) { in uni_msg_alloc() 62 m->b_rptr = m->b_wptr = m->b_buf; in uni_msg_alloc() 63 m->b_lim = m->b_buf + s; in uni_msg_alloc() 73 free(m->b_buf); in uni_msg_destroy() 90 leading = m->b_rptr - m->b_buf; in uni_msg_extend() 92 free(m->b_buf); in uni_msg_extend() 96 m->b_buf = b; in uni_msg_extend() 97 m->b_rptr = m->b_buf + leading; in uni_msg_extend() 99 m->b_lim = m->b_buf + newsize; in uni_msg_extend() 237 off = inp->b_rptr - inp->b_buf; in uni_msg_dup() [all …]
|
| /freebsd-12.1/sys/netgraph/atm/ |
| H A D | ngatmbase.c | 105 free(m->b_buf, M_UNIMSG); in uni_msg_extend() 107 m->b_buf = b; in uni_msg_extend() 108 m->b_rptr = m->b_buf + lead; in uni_msg_extend() 110 m->b_lim = m->b_buf + s; in uni_msg_extend() 262 m->msg.b_rptr = m->msg.b_wptr = m->msg.b_buf; in _uni_msg_alloc() 263 m->msg.b_lim = m->msg.b_buf + s; in _uni_msg_alloc() 305 free(m->b_buf, M_UNIMSG); in _uni_msg_destroy() 370 if((m->b_buf = malloc(s, M_UNIMSG, M_NOWAIT | M_ZERO)) == NULL) { in uni_msg_alloc() 376 m->b_rptr = m->b_wptr = m->b_buf; in uni_msg_alloc() 377 m->b_lim = m->b_buf + s; in uni_msg_alloc() [all …]
|
| /freebsd-12.1/usr.bin/tsort/ |
| H A D | tsort.c | 97 char *b_buf; member 155 b->b_buf = grow_buf(NULL, b->b_bsize = 1024); in main() 168 b->b_buf[nused++] = c; in main() 170 b->b_buf = grow_buf(b->b_buf, bsize *= 2); in main() 174 b->b_buf[nused] = '\0'; in main() 177 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
|
| /freebsd-12.1/sys/contrib/ngatm/netnatm/ |
| H A D | unimsg.h | 50 u_char *b_buf; /* data buffer */ member 61 #define uni_msg_leading(M) ((size_t)((M)->b_rptr - (M)->b_buf)) 64 #define uni_msg_size(M) ((size_t)((M)->b_lim - (M)->b_buf));
|
| /freebsd-12.1/sbin/fsck_ffs/ |
| H A D | dir.c | 129 memmove(bp->b_un.b_buf + idesc->id_loc - dsize, dbuf, in dirscan() 158 dp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir() 179 ndp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir() 653 memmove(firstblk, bp->b_un.b_buf, DIRBLKSIZ); in expanddir() 657 memmove(bp->b_un.b_buf, firstblk, DIRBLKSIZ); in expanddir() 658 for (cp = &bp->b_un.b_buf[DIRBLKSIZ]; in expanddir() 659 cp < &bp->b_un.b_buf[sblock.fs_bsize]; in expanddir() 667 memmove(bp->b_un.b_buf, &emptydir, sizeof emptydir); in expanddir() 708 memmove(bp->b_un.b_buf, dirp, sizeof(struct dirtemplate)); in allocdir() 709 for (cp = &bp->b_un.b_buf[DIRBLKSIZ]; in allocdir() [all …]
|
| H A D | fsutil.c | 192 cgblk.b_un.b_buf = bufp; in bufinit() 206 bp->b_un.b_buf = bufp; in bufinit() 266 free(cgbp->b_un.b_buf); in flushentry() 267 cgbp->b_un.b_buf = NULL; in flushentry() 315 bp->b_errs = blread(fsreadfd, bp->b_un.b_buf, dblk, size); in getblk() 351 if (sbput(fd, (struct fs *)bp->b_un.b_buf, 0) == 0) in flush() 355 if (cgput(&disk, (struct cg *)bp->b_un.b_buf) == 0) in flush() 359 blwrite(fd, bp->b_un.b_buf, bp->b_bno, bp->b_size); in flush() 421 free(cgblk.b_un.b_buf); in ckfini() 427 free(bp->b_un.b_buf); in ckfini()
|
| H A D | inode.c | 347 nextinop = inobuf.b_un.b_buf; in getnextinode() 350 if (rebuildcg && nextinop == inobuf.b_un.b_buf) { in getnextinode() 417 if (inobuf.b_un.b_buf != NULL) in setinodebuf() 433 if ((inobuf.b_un.b_buf = Malloc((unsigned)inobufsize)) == NULL) in setinodebuf() 441 if (inobuf.b_un.b_buf != NULL) in freeinodebuf() 442 free((char *)inobuf.b_un.b_buf); in freeinodebuf() 443 inobuf.b_un.b_buf = NULL; in freeinodebuf()
|
| H A D | setup.c | 438 sblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init() 439 asblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init() 440 if (sblk.b_un.b_buf == NULL || asblk.b_un.b_buf == NULL) in sblock_init()
|
| H A D | ea.c | 79 cp = (u_char *)bp->b_un.b_buf; in eascan()
|
| H A D | fsck.h | 146 char *b_buf; /* buffer space */ member
|
| /freebsd-12.1/sys/contrib/ngatm/netnatm/msg/ |
| H A D | uni_msg.c | 102 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; in encode_alerting() 103 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; in encode_alerting() 248 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; in encode_call_proc() 249 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; in encode_call_proc() 464 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; in encode_connect() 465 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; in encode_connect() 687 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; in encode_connect_ack() 688 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; in encode_connect_ack() 817 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; in encode_release() 818 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; in encode_release() [all …]
|
| H A D | uni_ie.c | 153 (M)->b_buf[ielen + 0] = \ 155 (M)->b_buf[ielen + 1] = \
|
| /freebsd-12.1/contrib/netbsd-tests/net/if/ |
| H A D | t_compat.c | 36 void *b_buf; member
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | arc.c | 1142 arc_buf_t *b_buf; member 2496 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_evictable_space_increment() 2992 buf->b_next = hdr->b_l1hdr.b_buf; in arc_buf_alloc_impl() 3039 hdr->b_l1hdr.b_buf = buf; in arc_buf_alloc_impl() 3239 arc_buf_t **bufp = &hdr->b_l1hdr.b_buf; in arc_buf_remove() 3431 hdr->b_l1hdr.b_buf = NULL; in arc_hdr_alloc() 3630 ASSERT(hdr->b_l1hdr.b_buf == NULL || in arc_hdr_destroy() 3669 while (hdr->b_l1hdr.b_buf != NULL) in arc_hdr_destroy() 3797 while (hdr->b_l1hdr.b_buf) { in arc_evict_hdr() 3798 arc_buf_t *buf = hdr->b_l1hdr.b_buf; in arc_evict_hdr() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ec/ |
| H A D | ec_asn1.c | 370 unsigned char *a_buf = NULL, *b_buf = NULL; in ec_asn1_group2curve() local 394 || (b_buf = OPENSSL_malloc(len)) == NULL) { in ec_asn1_group2curve() 399 || BN_bn2binpad(tmp_2, b_buf, len) < 0) { in ec_asn1_group2curve() 406 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve() 434 OPENSSL_free(b_buf); in ec_asn1_group2curve()
|