| /freebsd-13-stable/contrib/ngatm/libngatm/ |
| HD | 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() 89 newsize = m->b_wptr - m->b_buf + s + EXTRA; in uni_msg_extend() 90 leading = m->b_rptr - m->b_buf; in uni_msg_extend() 91 if ((b = realloc(m->b_buf, newsize)) == NULL) { 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() [all …]
|
| /freebsd-13-stable/sys/netgraph/atm/ |
| HD | 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() 256 if((m->msg.b_buf = malloc(s, M_UNIMSG, M_NOWAIT | M_ZERO)) == NULL) { in _uni_msg_alloc() 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() [all …]
|
| /freebsd-13-stable/usr.bin/tsort/ |
| HD | tsort.c | 95 char *b_buf; member 153 b->b_buf = grow_buf(NULL, b->b_bsize = 1024); in main() 166 b->b_buf[nused++] = c; in main() 168 b->b_buf = grow_buf(b->b_buf, bsize *= 2); in main() 172 b->b_buf[nused] = '\0'; in main() 175 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
|
| /freebsd-13-stable/sys/contrib/ngatm/netnatm/ |
| HD | 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-13-stable/sbin/fsck_ffs/ |
| HD | dir.c | 228 memmove(bp->b_un.b_buf + idesc->id_loc - dsize, dbuf, in dirscan() 258 dp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir() 279 ndp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir() 830 memmove(nbp->b_un.b_buf, bp->b_un.b_buf, lastlbnsize); in expanddir() 831 memset(&nbp->b_un.b_buf[lastlbnsize], 0, in expanddir() 833 for (cp = &nbp->b_un.b_buf[lastlbnsize]; in expanddir() 834 cp < &nbp->b_un.b_buf[sblock.fs_bsize]; in expanddir() 852 memset(bp->b_un.b_buf, 0, sblock.fs_bsize); in expanddir() 853 for (cp = bp->b_un.b_buf; in expanddir() 854 cp < &bp->b_un.b_buf[sblock.fs_bsize]; in expanddir() [all …]
|
| HD | fsutil.c | 190 failedbuf.b_un.b_buf = NULL; in bufinit() 191 if ((cgblk.b_un.b_buf = Malloc((unsigned int)sblock.fs_bsize)) == NULL) in bufinit() 219 bp->b_un.b_buf = bufp; in allocbuf() 299 free(cgbp->b_un.b_buf); in flushentry() 300 cgbp->b_un.b_buf = NULL; in flushentry() 414 bp->b_errs = blread(fsreadfd, bp->b_un.b_buf, dblk, size); in getblk() 510 blwrite(fd, bp->b_un.b_buf, bp->b_bno, bp->b_size); in flush() 669 free(cgblk.b_un.b_buf); in ckfini() 670 cgblk.b_un.b_buf = NULL; in ckfini() 707 free(bp->b_un.b_buf); in ckfini() [all …]
|
| HD | ea.c | 78 cp = (u_char *)bp->b_un.b_buf; in eascan()
|
| HD | setup.c | 323 snapblklist = (daddr_t *)bp->b_un.b_buf; in checksnapinfo() 497 sblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init() 498 if (sblk.b_un.b_buf == NULL) in sblock_init()
|
| HD | inode.c | 565 nextinop = inobuf.b_un.b_buf; in getnextinode() 595 if (rebuiltcg && (char *)dp == inobuf.b_un.b_buf) { in getnextinode() 669 if (inobuf.b_un.b_buf == NULL) { in setinodebuf() 673 if ((inobuf.b_un.b_buf = Malloc((unsigned)inobufsize)) == NULL) in setinodebuf() 1128 if (inobuf.b_un.b_buf != NULL) in freeinodebuf() 1129 free((char *)inobuf.b_un.b_buf); in freeinodebuf() 1130 inobuf.b_un.b_buf = NULL; in freeinodebuf() 1137 bp->b_errs = blread(fsreadfd, bp->b_un.b_buf, bp->b_bno, in freeinodebuf()
|
| HD | suj.c | 578 dp = (struct direct *)&bp->b_un.b_buf[doff]; in ino_clrat() 658 dp = (struct direct *)&bp->b_un.b_buf[dpoff]; in ino_isat() 1008 dp = (struct direct *)&bp->b_un.b_buf[0]; in ino_free_children() 1010 dp = (struct direct *)&bp->b_un.b_buf[dpoff]; in ino_free_children() 1404 bzero(&bp->b_un.b_buf[off], clrsize); in ino_trunc()
|
| HD | fsck.h | 160 char *b_buf; /* buffer space */ member
|
| /freebsd-13-stable/sys/contrib/ngatm/netnatm/msg/ |
| HD | 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 …]
|
| HD | uni_ie.c | 153 (M)->b_buf[ielen + 0] = \ 155 (M)->b_buf[ielen + 1] = \
|
| /freebsd-13-stable/contrib/netbsd-tests/net/if/ |
| HD | t_compat.c | 36 void *b_buf; member
|
| /freebsd-13-stable/crypto/openssl/crypto/ec/ |
| HD | ec_asn1.c | 376 unsigned char *a_buf = NULL, *b_buf = NULL; in ec_asn1_group2curve() local 400 || (b_buf = OPENSSL_malloc(len)) == NULL) { in ec_asn1_group2curve() 405 || BN_bn2binpad(tmp_2, b_buf, len) < 0) { in ec_asn1_group2curve() 412 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve() 440 OPENSSL_free(b_buf); in ec_asn1_group2curve()
|
| /freebsd-13-stable/sys/contrib/openzfs/module/zfs/ |
| HD | arc.c | 1417 for (arc_buf_t *b = hdr->b_l1hdr.b_buf; b != NULL; b = b->b_next) { in arc_hdr_has_uncompressed_buf() 1687 for (arc_buf_t *from = hdr->b_l1hdr.b_buf; from != NULL; in arc_buf_try_copy_decompressed_data() 2210 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_evictable_space_increment() 2227 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_evictable_space_increment() 2250 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_evictable_space_decrement() 2267 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_evictable_space_decrement() 2291 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in add_reference() 2442 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_change_state() 2459 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_change_state() 2496 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_change_state() [all …]
|
| /freebsd-13-stable/tools/diag/prtblknos/ |
| HD | prtblknos.c | 171 memcpy(indir, bp->b_un.b_buf, fs->fs_bsize);
|
| /freebsd-13-stable/sys/contrib/openzfs/include/sys/ |
| HD | arc_impl.h | 172 arc_buf_t *b_buf; member
|