Searched refs:buf_size (Results 26 - 50 of 177) sorted by relevance

12345678

/freebsd-11-stable/contrib/wpa/src/common/
H A Dwpa_helpers.c101 char *buf, size_t buf_size)
131 len = buf_size;
136 if (len == buf_size)
157 const char *event, char *buf, size_t buf_size)
159 return get_wpa_cli_event2(mon, event, NULL, buf, buf_size);
99 get_wpa_cli_event2(struct wpa_ctrl *mon, const char *event, const char *event2, char *buf, size_t buf_size) argument
156 get_wpa_cli_event(struct wpa_ctrl *mon, const char *event, char *buf, size_t buf_size) argument
/freebsd-11-stable/sys/dev/qlxgb/
H A Dqla_inline.h175 uint32_t handle, bus_addr_t paddr, uint32_t buf_size)
184 rcv_desc->buf_size = buf_size;
174 qla_set_hw_rcv_desc(qla_host_t *ha, uint32_t ridx, uint32_t index, uint32_t handle, bus_addr_t paddr, uint32_t buf_size) argument
/freebsd-11-stable/contrib/wpa/src/tls/
H A Dtlsv1_record.c141 * @buf_size: Maximum buf size
151 size_t buf_size, const u8 *payload, size_t payload_len,
160 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size)
179 if (pos + rl->iv_size > buf + buf_size)
196 if (pos + payload_len > buf + buf_size)
218 clen = buf + buf_size - pos;
240 if (pos + pad + 1 > buf + buf_size) {
150 tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf, size_t buf_size, const u8 *payload, size_t payload_len, size_t *out_len) argument
H A Dtlsv1_record.h65 size_t buf_size, const u8 *payload, size_t payload_len,
/freebsd-11-stable/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c297 if (uc_cfg.ipc_msg.buf_size == 0)
300 uc_cfg.ipc_msg.buf_send = malloc(uc_cfg.ipc_msg.buf_size);
301 uc_cfg.ipc_msg.buf_recv = malloc(uc_cfg.ipc_msg.buf_size);
306 for (idx = 0; idx < uc_cfg.ipc_msg.buf_size; ++idx)
360 uc_cfg.ipc_msg.buf_size = IPC_MSG_SIZE_DEF;
379 uc_cfg.ipc_msg.buf_size = strtonum(optarg, 0,
H A Duc_common.h45 size_t buf_size; member in struct:uc_cfg::__anon8597
/freebsd-11-stable/sys/dev/mfi/
H A Dmfi_ioctl.h133 uint32_t buf_size; member in struct:mfi_ioc_passthru
140 uint32_t buf_size; member in struct:mfi_ioc_passthru32
/freebsd-11-stable/contrib/amd/libamu/
H A Dwire.c98 int buf_size = 1024; local
100 buf = SALLOC(buf_size); /* initial allocation (may grow!) */
105 xstrlcpy(buf, "No networks\n", buf_size);
110 /* use buf_size for sizeof(buf) because of the realloc() below */
111 xsnprintf(buf, buf_size,
121 if (bufcount > buf_size) {
122 buf_size *= 2;
123 buf = xrealloc(buf, buf_size);
125 xstrlcat(buf, s, buf_size);
/freebsd-11-stable/contrib/netbsd-tests/fs/fifofs/
H A Dt_fifo.c97 size_t buf_size = MSG_SIZE; local
158 rv = read(fd, buf, buf_size);
/freebsd-11-stable/sys/xen/interface/
H A Dkexec.h179 uint64_t buf_size; member in struct:xen_kexec_segment
198 * segments with a source buffer (from dest_maddr + buf_size to
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dsrq.c153 int buf_size; local
183 buf_size = srq->max * size;
185 if (mlx5_alloc_buf(&srq->buf, buf_size,
191 memset(srq->buf.buf, 0, buf_size);
/freebsd-11-stable/stand/libsa/
H A Dext2fs.c337 size_t buf_size; local
358 EXT2_SBLOCK, EXT2_SBSIZE, (char *)fs, &buf_size);
362 if (buf_size != EXT2_SBSIZE || fs->fs_magic != EXT2_MAGIC) {
401 (char *)fp->f_bg, &buf_size);
502 size_t buf_size; local
513 fs->fs_bsize, buf, &buf_size);
763 size_t buf_size; local
770 error = buf_read_file(f, &buf, &buf_size);
774 edp = (struct ext2dirent *)(buf + buf_size);
788 fp->f_seekp += buf_size;
820 size_t csize, buf_size; local
888 size_t buf_size; local
[all...]
H A Dcd9660.c289 size_t buf_size, read, dsize, off; local
297 buf = malloc(buf_size = ISO_DEFAULT_BLOCK_SIZE);
499 size_t buf_size, csize; local
507 rc = buf_read_file(f, &buf, &buf_size);
511 csize = size > buf_size ? buf_size : size;
528 size_t buf_size, reclen, namelen; local
536 error = buf_read_file(f, &buf, &buf_size);
/freebsd-11-stable/usr.bin/patch/
H A Dcommon.h63 extern size_t buf_size; /* size of general purpose buffer */
H A Dutil.c68 while ((i = read(fromfd, buf, buf_size)) > 0)
176 while ((i = read(fromfd, buf, buf_size)) > 0)
283 if ((nr = read(ttyfd, buf, buf_size)) > 0 &&
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dcommon.c292 int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len, argument
296 char *pos = buf, *end = buf + buf_size;
299 if (buf_size == 0)
316 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
320 char *pos = buf, *end = buf + buf_size;
322 if (buf_size == 0)
340 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
345 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
347 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
354 * @buf_size
359 wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, size_t len) argument
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_srq.c72 struct ib_udata *udata, int buf_size)
108 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, buf_size,
111 mlx5_ib_dbg(dev, "failed umem get, size %d\n", buf_size);
157 struct mlx5_srq_attr *in, int buf_size)
169 if (mlx5_buf_alloc(dev->mdev, buf_size, 2 * PAGE_SIZE, &srq->buf)) {
241 size_t buf_size; local
278 buf_size = srq->msrq.max * desc_size;
279 if (buf_size < desc_size) {
286 err = create_srq_user(pd, srq, &in, udata, buf_size);
288 err = create_srq_kernel(dev, srq, &in, buf_size);
70 create_srq_user(struct ib_pd *pd, struct mlx5_ib_srq *srq, struct mlx5_srq_attr *in, struct ib_udata *udata, int buf_size) argument
156 create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, struct mlx5_srq_attr *in, int buf_size) argument
[all...]
/freebsd-11-stable/contrib/gcclibs/libcpp/
H A Dmkdeps.c389 size_t buf_size = 512; local
390 char *buf = XNEWVEC (char, buf_size);
402 if (buf_size < num_to_read + 1)
404 buf_size = num_to_read + 1 + 127;
405 buf = XRESIZEVEC (char, buf, buf_size);
/freebsd-11-stable/contrib/diff/src/
H A Dcmp.c70 static size_t buf_size;
345 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]),
351 words_per_buffer = (buf_size + 2 * sizeof (word) - 1) / sizeof (word);
413 size_t bytes_to_read = MIN (ig, buf_size);
429 size_t bytes_to_read = buf_size;
555 while (read0 == buf_size);
69 static size_t buf_size; variable
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dget_for_creds.c203 size_t buf_size; local
391 ASN1_MALLOC_ENCODE(EncKrbCredPart, buf, buf_size,
398 if(buf_size != len)
413 cred.enc_part.cipher.length = buf_size;
443 ASN1_MALLOC_ENCODE(KRB_CRED, buf, buf_size, &cred, &len, ret);
447 if(buf_size != len)
/freebsd-11-stable/sys/dev/ciss/
H A Dcissio.h183 u_int16_t buf_size; /* 2 */ member in struct:__anon9510
192 u_int16_t buf_size; /* 2 */ member in struct:__anon9511
/freebsd-11-stable/crypto/heimdal/lib/gssapi/spnego/
H A Dinit_sec_context.c199 size_t buf_size, buf_len; local
303 buf_size = 1 + der_length_len(ni_len) + ni_len;
305 buf = malloc(buf_size);
313 ret = encode_NegTokenInit(buf + buf_size - 1,
322 ret = der_put_length_and_tag(buf + buf_size - buf_len - 1,
323 buf_size - buf_len,
329 if (ret == 0 && tmp + buf_len != buf_size)
341 data.length = buf_size;
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dsrq.c131 int buf_size; local
144 buf_size = srq->max << srq->wqe_shift;
146 if (mlx4_alloc_buf(&srq->buf, buf_size,
152 memset(srq->buf.buf, 0, buf_size);
/freebsd-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_ioctl.h138 WORD buf_size; /* size in bytes of the buf */ member in struct:pqi_ioctl_passthruCmd_struct
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_ftn_entry.h399 static void __kmp_fortran_strncpy_truncate(char *buffer, size_t buf_size, argument
402 if (csrc_size >= buf_size) {
403 capped_src_size = buf_size - 1;
405 KMP_STRNCPY_S(buffer, buf_size, csrc, capped_src_size);
406 if (csrc_size >= buf_size) {
407 KMP_DEBUG_ASSERT(buffer[buf_size - 1] == '\0');
408 buffer[buf_size - 1] = csrc[buf_size - 1];
410 for (size_t i = csrc_size; i < buf_size; ++i)
504 size_t buf_size, size_
503 FTN_CAPTURE_AFFINITY(char *buffer, char const *format, size_t buf_size, size_t for_size) argument
[all...]

Completed in 164 milliseconds

12345678