Searched refs:bufsize (Results 276 - 300 of 490) sorted by relevance

<<11121314151617181920

/freebsd-current/contrib/tnftp/src/
H A Dfetch.c492 static size_t bufsize; local
1152 if ((size_t)rcvbuf_size > bufsize) {
1155 bufsize = rcvbuf_size;
1156 xferbuf = ftp_malloc(bufsize);
1172 if (fgets(xferbuf, bufsize, fin) == NULL) {
1221 bufrem = rate_get ? rate_get : (off_t)bufsize;
1226 MIN((off_t)bufsize, bufrem), fin);
1264 if (fgets(xferbuf, bufsize, fin) == NULL) {
/freebsd-current/contrib/libpcap/
H A Dpcap-bt-linux.c223 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle->snapshot;
244 handle->buffer = malloc(handle->bufsize);
H A Dpcap-sita.c416 static void nonUnified_IOP_port_name(char *buf, size_t bufsize, const char *proto, unit_t *u) { argument
418 snprintf(buf, bufsize, "%s_%d_%d", proto, u->chassis, u->geoslot);
421 static void unified_IOP_port_name(char *buf, size_t bufsize, const char *proto, unit_t *u, int IOPportnum) { argument
425 snprintf(buf, bufsize, "%s_%d", proto, portnum);
1020 handle->bufsize = handle->snapshot;
1024 handle->buffer = malloc(handle->bufsize + handle->offset);
H A Dsf-pcapng.c330 if (p->bufsize < bhdr.total_length) {
929 p->bufsize = 2048;
930 if (p->bufsize < total_length)
931 p->bufsize = total_length;
932 p->buffer = malloc(p->bufsize);
H A Dpcap-netfilter-linux.c121 len = recv(handle->fd, handle->buffer, handle->bufsize, 0);
594 handle->bufsize = 128 + handle->snapshot;
625 handle->buffer = malloc(handle->bufsize);
/freebsd-current/sys/dev/usb/serial/
H A Dugensa.c116 .bufsize = UGENSA_BUF_SIZE,
125 .bufsize = UGENSA_BUF_SIZE,
H A Dufoma.c240 .bufsize = sizeof(struct usb_cdc_notification),
248 .bufsize = (sizeof(struct usb_device_request) + UFOMA_CMD_BUF_SIZE),
258 .bufsize = (sizeof(struct usb_device_request) + 1),
270 .bufsize = UFOMA_BULK_BUF_SIZE,
279 .bufsize = UFOMA_BULK_BUF_SIZE,
H A Dubsa.c200 .bufsize = UBSA_BSIZE, /* bytes */
209 .bufsize = UBSA_BSIZE, /* bytes */
219 .bufsize = 0, /* use wMaxPacketSize */
H A Duvscom.c197 .bufsize = UVSCOM_BULK_BUF_SIZE,
206 .bufsize = UVSCOM_BULK_BUF_SIZE,
216 .bufsize = 0, /* use wMaxPacketSize */
H A Duchcom.c247 .bufsize = UCHCOM_BULK_BUF_SIZE,
256 .bufsize = UCHCOM_BULK_BUF_SIZE,
266 .bufsize = 0, /* use wMaxPacketSize */
H A Dulpt.c357 .bufsize = ULPT_BSIZE,
366 .bufsize = ULPT_BSIZE,
375 .bufsize = sizeof(struct usb_device_request) + 1,
H A Dumoscom.c221 .bufsize = UMOSCOM_BUFSIZE,
230 .bufsize = UMOSCOM_BUFSIZE,
240 .bufsize = 0, /* use wMaxPacketSize */
/freebsd-current/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c135 .bufsize = UBTBCMFW_BSIZE,
146 .bufsize = UBTBCMFW_BSIZE,
/freebsd-current/sys/tests/
H A Dktest.c214 .bufsize = KTEST_MAX_BUF,
330 vsnprintf(ctx->buf, ctx->bufsize, fmt, ap);
/freebsd-current/lib/libc/iconv/
H A Dcitrus_esdb.c62 _citrus_esdb_alias(const char *esname, char *buf, size_t bufsize) argument
65 return (_lookup_alias(_PATH_ESDB "/" ESDB_ALIAS, esname, buf, bufsize,
/freebsd-current/lib/libusb/
H A Dlibusb01.c114 uint32_t bufsize; local
128 bufsize = 256;
130 bufsize = 4096;
132 bufsize = 65536;
134 bufsize = 16384;
142 err = libusb20_tr_open(xfer, bufsize, 1, ep_no);
/freebsd-current/tests/sys/fs/fusefs/
H A Dinterrupt.cc208 const size_t bufsize = FILESIZE; local
209 char buf[bufsize];
213 r = read(fd, buf, bufsize);
584 const size_t bufsize = 80; local
585 char buf[bufsize];
614 ASSERT_EQ(-1, read(fd, buf, bufsize));
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Ddmu_redact.c526 int bufsize = redact_sync_bufsize; local
527 redact_block_phys_t *buf = kmem_alloc(bufsize * sizeof (*buf),
541 if (index == bufsize) {
544 bufsize * sizeof (*buf), buf, tx);
545 rl->rl_phys->rlp_num_entries += bufsize;
555 kmem_free(buf, bufsize * sizeof (*buf));
/freebsd-current/sys/dev/usb/
H A Dusb_generic.c198 f->bufsize = UGEN_BULK_FS_BUFFER_SIZE;
202 f->bufsize = UGEN_BULK_HS_BUFFER_SIZE;
208 f->bufsize = 0; /* use "wMaxPacketSize" */
261 usb_config[1].bufsize = sizeof(struct usb_device_request);
282 usb_config[0].bufsize = f->bufsize;
292 usb_config[0].bufsize = 0; /* use default */
330 usb_config[1].bufsize = sizeof(struct usb_device_request);
351 usb_config[0].bufsize = f->bufsize;
[all...]
/freebsd-current/sys/kern/
H A Dkern_rctl.c1712 size_t bufsize; local
1734 bufsize = uap->outbuflen;
1735 if (bufsize > rctl_maxbufsize) {
1740 buf = malloc(bufsize, M_RCTL, M_WAITOK);
1741 sb = sbuf_new(NULL, buf, bufsize, SBUF_FIXEDLEN);
1797 size_t bufsize; local
1835 bufsize = uap->outbuflen;
1836 if (bufsize > rctl_maxbufsize) {
1842 buf = malloc(bufsize, M_RCTL, M_WAITOK);
1843 sb = sbuf_new(NULL, buf, bufsize, SBUF_FIXEDLE
[all...]
/freebsd-current/contrib/one-true-awk/
H A Drun.c408 int bufsize = recsize; local
413 if ((buf = (char *) malloc(bufsize)) == NULL)
428 n = readrec(&buf, &bufsize, fp, newflag);
450 n = getrec(&buf, &bufsize, false);
1088 int bufsize = *pbufsize; local
1090 #define BUFSZ(a) (bufsize - ((a) - buf))
1108 adjbuf(&buf, &bufsize, MAXNUMSIZE+1+p-buf, recsize, &p, "format1");
1121 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format2");
1145 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format");
1153 adjbuf(&buf, &bufsize, fmtw
[all...]
/freebsd-current/usr.sbin/makefs/
H A Dffs.c491 int i, bufsize; local
511 bufsize = 8192;
514 image, bufsize);
516 bufsize = sfs.f_iosize;
533 bufsize);
534 buf = ecalloc(1, bufsize);
545 i = write(fsopts->fd, buf, MIN(bufsize, bufrem));
/freebsd-current/sbin/ping/
H A Dping6.c1819 ssize_t bufsize; local
1823 bufsize = 0;
1830 bufsize = CONTROLLEN - ((caddr_t)CMSG_DATA(cm) - (caddr_t)bufp);
1831 if (bufsize <= 0)
1836 pr_ip6opt(CMSG_DATA(cm), (size_t)bufsize);
1843 pr_ip6opt(CMSG_DATA(cm), (size_t)bufsize);
1847 pr_rthdr(CMSG_DATA(cm), (size_t)bufsize);
1854 pr_ip6opt(void *extbuf, size_t bufsize) argument
1874 if (bufsize < (extlen + CMSG_SPACE(0))) {
1875 extlen = bufsize
1916 pr_rthdr(void *extbuf, size_t bufsize) argument
[all...]
/freebsd-current/lib/libfetch/
H A Dhttp.c134 size_t bufsize; /* size of chunk buffer */ member in struct:httpio
196 if (io->bufsize >= len)
202 io->bufsize = len;
498 size_t bufsize; /* buffer size */ member in struct:__anon288
506 buf->bufsize = 0;
542 if (hbuf->bufsize < conn->buflen + 1) {
545 hbuf->bufsize = conn->buflen + 1;
570 if (hbuf->bufsize < len + 1) {
574 hbuf->bufsize = len + 1;
/freebsd-current/sys/netinet/
H A Dtcp_input.c3906 uint32_t bufsize; local
3929 bufsize = metrics.rmx_sendpipe;
3931 bufsize = so->so_snd.sb_hiwat;
3932 if (bufsize < mss)
3933 mss = bufsize;
3935 bufsize = roundup(bufsize, mss);
3936 if (bufsize > sb_max)
3937 bufsize = sb_max;
3938 if (bufsize > s
[all...]

Completed in 385 milliseconds

<<11121314151617181920