/freebsd-current/usr.bin/xinstall/ |
H A D | xinstall.c | 1097 static size_t bufsize; local 1105 * Note that buf and bufsize are static. If 1110 bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8); 1112 bufsize = BUFSIZE_SMALL; 1113 buf = malloc(bufsize * 2); 1117 buf2 = buf + bufsize; 1123 n1 = read(from_fd, buf1, bufsize); 1182 static size_t bufsize; local 1218 * Note that buf and bufsize are static. If 1223 bufsize [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_solaris.cpp | 146 uptr bufsize) { 147 return _REAL(readlink)(path, buf, bufsize); 145 DECLARE__REAL_AND_INTERNAL(uptr, readlink, const char *path, char *buf, uptr bufsize) argument
|
/freebsd-current/contrib/libpcap/ |
H A D | pcap-bt-monitor-linux.c | 202 handle->bufsize = BT_CONTROL_SIZE + sizeof(pcap_bluetooth_linux_monitor_header) + handle->snapshot; 221 handle->buffer = malloc(handle->bufsize);
|
H A D | dlpisubs.c | 377 p->bufsize = PKTBUFSIZE; 378 p->buffer = malloc(p->bufsize + p->offset);
|
H A D | pcap-rdmasniff.c | 285 handle->bufsize = RDMASNIFF_NUM_RECEIVES * RDMASNIFF_RECEIVE_SIZE; 286 handle->buffer = malloc(handle->bufsize); 300 priv->mr = ibv_reg_mr(priv->pd, handle->buffer, handle->bufsize, IBV_ACCESS_LOCAL_WRITE);
|
H A D | pcap-snit.c | 128 cc = read(p->fd, (char *)p->buffer, p->bufsize); 414 p->bufsize = BUFSPACE; 415 p->buffer = malloc(p->bufsize);
|
/freebsd-current/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_getifaddrs.c | 41 unsigned int bufsize; /*%< (always 0) */ member in struct:isc_interfaceiter 70 iter->bufsize = 0;
|
/freebsd-current/sys/net/route/ |
H A D | nhop_ctl.c | 1133 nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize) argument 1145 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str, 1152 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str, 1157 snprintf(buf, bufsize, "nh#%d/%s/%s/resolve", nh_priv->nh_idx, upper_str, 1161 snprintf(buf, bufsize, "nh#%d/%s/%s/????", nh_priv->nh_idx, upper_str, 1170 nhop_print_buf_any(const struct nhop_object *nh, char *buf, size_t bufsize) argument 1174 return (nhgrp_print_buf((const struct nhgrp_object *)nh, buf, bufsize)); 1177 return (nhop_print_buf(nh, buf, bufsize));
|
H A D | nhgrp_ctl.c | 808 nhgrp_print_buf(const struct nhgrp_object *nhg, char *buf, size_t bufsize) argument 812 int off = snprintf(buf, bufsize, "nhg#%u/sz=%u:[", nhg_priv->nhg_idx, 817 int len = snprintf(&buf[off], bufsize - off, "#%u:%u,", 819 if (len + off + 3 >= bufsize) { 820 int len = snprintf(&buf[off], bufsize - off, "..."); 828 if (off + 1 < bufsize) 829 snprintf(&buf[off], bufsize - off, "]");
|
/freebsd-current/sys/dev/cxgb/ |
H A D | cxgb_ioctl.h | 199 uint32_t bufsize; member in struct:ch_up_la 216 uint32_t bufsize; member in struct:ch_up_ioqs
|
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | dma.c | 112 int idx, int n_desc, int bufsize) 116 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, 111 mt7603_init_rx_queue(struct mt7603_dev *dev, struct mt76_queue *q, int idx, int n_desc, int bufsize) argument
|
/freebsd-current/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 325 init_hdrs(struct msghdr *mhp, struct cmsghdr *cmhp, char *bufp, size_t bufsize) argument 332 memset((void *)bufp, 0, bufsize);
|
/freebsd-current/usr.bin/indent/ |
H A D | indent.c | 125 combuf = (char *) malloc(bufsize); 128 labbuf = (char *) malloc(bufsize); 131 codebuf = (char *) malloc(bufsize); 134 tokenbuf = (char *) malloc(bufsize); 139 l_com = combuf + bufsize - 5; 140 l_lab = labbuf + bufsize - 5; 141 l_code = codebuf + bufsize - 5; 142 l_token = tokenbuf + bufsize - 5;
|
/freebsd-current/stand/efi/boot1/ |
H A D | zfs_module.c | 139 load(const char *filepath, dev_info_t *devinfo, void **bufp, size_t *bufsize) argument 239 *bufsize = st.st_size;
|
/freebsd-current/tests/sys/fs/fusefs/ |
H A D | fallocate.cc | 454 ssize_t bufsize = strlen(CONTENTS); local 455 uint64_t fsize = bufsize; 456 uint8_t buf[bufsize]; 457 char zbuf[bufsize]; 459 uint64_t length = bufsize; 462 bzero(zbuf, bufsize); 476 ASSERT_EQ(fsize, (uint64_t)pread(fd, buf, bufsize, 0)) 488 ASSERT_EQ(fsize, (uint64_t)pread(fd, buf, bufsize, 0))
|
/freebsd-current/sys/contrib/zstd/lib/dictBuilder/ |
H A D | divsufsort.c | 746 int *buf, int bufsize, int depth) { 766 if((last - middle) <= bufsize) { 775 if((middle - first) <= bufsize) { 838 int *buf, int bufsize, 852 if((bufsize < SS_BLOCKSIZE) && 853 (bufsize < (last - first)) && 854 (bufsize < (limit = ss_isqrt(last - first)))) { 856 buf = middle = last - limit, bufsize = limit; 868 if(curbufsize <= bufsize) { curbufsize = bufsize, curbu 744 ss_swapmerge(const unsigned char *T, const int *PA, int *first, int *middle, int *last, int *buf, int bufsize, int depth) argument 836 sssort(const unsigned char *T, const int *PA, int *first, int *last, int *buf, int bufsize, int depth, int n, int lastsuffix) argument 1449 int i, j, k, t, m, bufsize; local [all...] |
/freebsd-current/sys/dev/sound/pci/ |
H A D | hdspe.c | 197 sc->bufsize = HDSPE_DMASEGSIZE; 206 if (bus_dmamap_load(sc->dmat, sc->pmap, sc->pbuf, sc->bufsize, 219 if (bus_dmamap_load(sc->dmat, sc->rmap, sc->rbuf, sc->bufsize, 225 bzero(sc->pbuf, sc->bufsize); 226 bzero(sc->rbuf, sc->bufsize);
|
H A D | hdsp.c | 187 sc->bufsize = HDSP_DMASEGSIZE; 196 if (bus_dmamap_load(sc->dmat, sc->pmap, sc->pbuf, sc->bufsize, 209 if (bus_dmamap_load(sc->dmat, sc->rmap, sc->rbuf, sc->bufsize, 215 bzero(sc->pbuf, sc->bufsize); 216 bzero(sc->rbuf, sc->bufsize);
|
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_gpio.c | 210 bcm_gpio_func_str(uint32_t nfunc, char *buf, int bufsize) argument 215 strncpy(buf, "input", bufsize); 218 strncpy(buf, "output", bufsize); 221 strncpy(buf, "alt0", bufsize); 224 strncpy(buf, "alt1", bufsize); 227 strncpy(buf, "alt2", bufsize); 230 strncpy(buf, "alt3", bufsize); 233 strncpy(buf, "alt4", bufsize); 236 strncpy(buf, "alt5", bufsize); 239 strncpy(buf, "invalid", bufsize); [all...] |
/freebsd-current/sys/dev/usb/storage/ |
H A D | umass.c | 495 .bufsize = sizeof(struct usb_device_request), 505 .bufsize = sizeof(struct usb_device_request), 515 .bufsize = sizeof(struct usb_device_request), 525 .bufsize = sizeof(umass_bbb_cbw_t), 534 .bufsize = UMASS_BULK_SIZE, 544 .bufsize = sizeof(struct usb_device_request), 553 .bufsize = UMASS_BULK_SIZE, 563 .bufsize = sizeof(struct usb_device_request), 572 .bufsize = sizeof(umass_bbb_csw_t), 584 .bufsize [all...] |
/freebsd-current/contrib/tnftp/src/ |
H A D | ftp.c | 575 * Read data from infd & write to outfd, using buf/bufsize as the temporary 584 copy_bytes(int infd, int outfd, char *buf, size_t bufsize, argument 598 bufchunk = bufsize; 609 inc = read(infd, buf, MIN((off_t)bufsize, bufrem)); 672 static size_t bufsize; local 775 if ((size_t)sndbuf_size > bufsize) { 778 bufsize = sndbuf_size; 779 buf = ftp_malloc(bufsize); 790 c = copy_bytes(fileno(fin), fileno(dout), buf, bufsize, 901 static size_t bufsize; local [all...] |
/freebsd-current/sys/dev/usb/ |
H A D | usb_msctest.c | 206 .bufsize = sizeof(struct bbb_cbw), 215 .bufsize = SCSI_MAX_LEN, 225 .bufsize = sizeof(struct usb_device_request), 234 .bufsize = SCSI_MAX_LEN, 244 .bufsize = sizeof(struct usb_device_request), 253 .bufsize = sizeof(struct bbb_csw), 265 .bufsize = SCSI_MAX_LEN,
|
/freebsd-current/sbin/route/ |
H A D | route_netlink.c | 396 print_prefix(struct nl_helper *h, char *buf, int bufsize, struct sockaddr *sa, int plen) argument 401 snprintf(buf, bufsize, "<NULL>"); 412 sz = snprintf(buf, bufsize, "%s", abuf); 431 sz = snprintf(buf, bufsize, "%s", abuf); 433 sz = snprintf(buf, bufsize, "%s%%%s", abuf, ifname); 437 snprintf(buf, bufsize, "unknown_af#%d", sa->sa_family); 442 snprintf(buf + sz, bufsize - sz, "/%d", plen);
|
/freebsd-current/sys/netgraph/bluetooth/drivers/ubt/ |
H A D | ng_ubt.c | 297 .bufsize = UBT_BULK_WRITE_BUFFER_SIZE, 307 .bufsize = UBT_BULK_READ_BUFFER_SIZE, 318 .bufsize = UBT_INTR_BUFFER_SIZE, 327 .bufsize = UBT_CTRL_BUFFER_SIZE, 342 .bufsize = 0, /* use "wMaxPacketSize * frames" */ 353 .bufsize = 0, /* use "wMaxPacketSize * frames" */ 364 .bufsize = 0, /* use "wMaxPacketSize * frames" */ 375 .bufsize = 0, /* use "wMaxPacketSize * frames" */ 546 .bufsize = UBT_INTR_BUFFER_SIZE,
|
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_usb.c | 774 struct usb_host_endpoint *uhe, usb_size_t bufsize) 780 if (uhe->fbsd_buf_size == bufsize) { 786 uhe->fbsd_buf_size = bufsize; 788 if (bufsize == 0) { 803 cfg[0].bufsize = 0; /* use wMaxPacketSize */ 827 if (bufsize > (1 << 22)) { 829 bufsize = (1 << 22); 837 cfg[0].bufsize = bufsize; 773 usb_setup_endpoint(struct usb_device *dev, struct usb_host_endpoint *uhe, usb_size_t bufsize) argument
|