Searched refs:buf_size (Results 1 - 25 of 126) sorted by relevance

123456

/freebsd-10.0-release/sbin/dhclient/
H A Dtree.h51 int buf_size; member in struct:tree_cache
/freebsd-10.0-release/sys/geom/virstor/
H A Dbinstream.c127 * Read a null-terminated string from stream into a buffer; buf_size is size
132 bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size) argument
136 if (buf == NULL || buf_size < 1)
140 } while (len++ < buf_size - 1 && *(work_buf++) != '\0');
141 *(buf + buf_size - 1) = '\0';
149 bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size) argument
152 for (i = 0; i < buf_size; i++)
154 bs->pos += buf_size;
H A Dbinstream.h72 * Read a null-terminated string from stream into a buffer; buf_size is size
76 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size);
79 void bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size);
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Dbuild_auth.c45 size_t buf_size; local
53 ASN1_MALLOC_ENCODE(EtypeList, buf, buf_size, &etypes, &len, ret);
58 if(buf_size != len)
73 ASN1_MALLOC_ENCODE(AD_IF_RELEVANT, buf, buf_size, &ad, &len, ret);
78 if(buf_size != len)
115 size_t buf_size; local
173 ASN1_MALLOC_ENCODE(Authenticator, buf, buf_size, &auth, &len, ret);
176 if(buf_size != len)
H A Dmk_safe.c46 size_t buf_size; local
102 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
105 if(buf_size != len)
126 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
130 if(buf_size != len)
H A Dmk_priv.c47 size_t buf_size; local
98 ASN1_MALLOC_ENCODE(EncKrbPrivPart, buf, buf_size, &part, &len, ret);
101 if (buf_size != len)
117 buf + buf_size - len,
128 ASN1_MALLOC_ENCODE(KRB_PRIV, buf, buf_size, &s, &len, ret);
131 if (buf_size != len)
136 ret = krb5_data_copy(outbuf, buf + buf_size - len, len);
H A Dmk_rep.c45 size_t buf_size; local
94 ASN1_MALLOC_ENCODE(EncAPRepPart, buf, buf_size, &body, &len, ret);
98 if (buf_size != len)
109 buf + buf_size - len,
H A Drd_safe.c43 size_t buf_size; local
54 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, safe, &len, ret);
57 if(buf_size != len)
73 buf + buf_size - len,
/freebsd-10.0-release/bin/ps/
H A Dfmt.c61 static size_t buf_size; local
71 buf_size = 4 * arg_max + 1;
72 if ((buf = malloc(buf_size)) == NULL)
84 len = (buf_size - 1 - (dst - buf)) / 4;
89 if ((buf_size - 1 - (dst - buf)) / 4 > 0)
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/
H A Den_cq.c57 cq->buf_size = cq->size * sizeof(struct mlx4_cqe);
64 cq->buf_size = sizeof(struct mlx4_cqe);
76 cq->buf_size, 2 * PAGE_SIZE);
82 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
99 memset(cq->buf, 0, cq->buf_size);
130 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
131 cq->buf_size = 0;
/freebsd-10.0-release/sys/contrib/octeon-sdk/
H A Docteon-pci-console.c150 uint32_t console_buffer_size = octeon_read_mem32(console_addr + offsetof(octeon_pci_console_t, buf_size));
177 int octeon_pci_console_host_read(uint64_t console_desc_addr, unsigned int console_num, char * buffer, int buf_size, uint32_t flags) argument
191 uint32_t console_buffer_size = octeon_read_mem32(console_addr + offsetof(octeon_pci_console_t, buf_size));
208 bytes_to_read = MIN(bytes_to_read, buf_size);
237 uint32_t console_buffer_size = octeon_read_mem32(console_addr + offsetof(octeon_pci_console_t, buf_size));
265 uint32_t console_buffer_size = octeon_read_mem32(console_addr + offsetof(octeon_pci_console_t, buf_size));
326 bytes_available = octeon_pci_console_buffer_free_bytes(cons_ptr->buf_size, cons_ptr->output_write_index, cons_ptr->output_read_index);
332 if (cons_ptr->output_write_index + write_size >= cons_ptr->buf_size)
333 write_size = cons_ptr->buf_size - cons_ptr->output_write_index;
337 cons_ptr->output_write_index = (cons_ptr->output_write_index + write_size)%cons_ptr->buf_size;
[all...]
H A Docteon-pci-console.h75 uint32_t buf_size; member in struct:__anon7189
139 int octeon_pci_console_host_read(uint64_t console_desc_addr, unsigned int console_num, char * buffer, int buf_size, uint32_t flags);
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/
H A DProcessMonitor.h127 ReadGPR(lldb::tid_t tid, void *buf, size_t buf_size);
133 ReadFPR(lldb::tid_t tid, void *buf, size_t buf_size);
141 ReadRegisterSet(lldb::tid_t tid, void *buf, size_t buf_size, unsigned int regset);
147 WriteGPR(lldb::tid_t tid, void *buf, size_t buf_size);
153 WriteFPR(lldb::tid_t tid, void *buf, size_t buf_size);
161 WriteRegisterSet(lldb::tid_t tid, void *buf, size_t buf_size, unsigned int regset);
/freebsd-10.0-release/contrib/libpcap/
H A Dfad-gifc.c148 unsigned buf_size; local
174 buf_size = 8192;
176 buf = malloc(buf_size);
184 ifc.ifc_len = buf_size;
186 memset(buf, 0, buf_size);
195 if (ifc.ifc_len < buf_size &&
196 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
199 buf_size *= 2;
H A Dfad-glifc.c91 unsigned buf_size; local
138 buf_size = ifn.lifn_count * sizeof (struct lifreq);
139 buf = malloc(buf_size);
151 ifc.lifc_len = buf_size;
155 memset(buf, 0, buf_size);
/freebsd-10.0-release/sys/dev/qlxgbe/
H A Dql_inline.h129 uint32_t handle, bus_addr_t paddr, uint32_t buf_size)
138 rcv_desc->buf_size = buf_size;
128 qla_set_hw_rcv_desc(qla_host_t *ha, uint32_t r_idx, uint32_t index, uint32_t handle, bus_addr_t paddr, uint32_t buf_size) argument
/freebsd-10.0-release/contrib/ofed/management/opensm/opensm/
H A Dosm_helper.c543 IN const uint32_t buf_size,
553 if (*p_total_len + sizeof('\0') > buf_size)
565 IN const uint32_t buf_size,
576 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
582 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
588 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
594 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
600 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
606 if (dbg_do_line(&p_local, buf_size, p_prefix_str,
612 if (dbg_do_line(&p_local, buf_size, p_prefix_st
542 dbg_do_line(IN char **pp_local, IN const uint32_t buf_size, IN const char *const p_prefix_str, IN const char *const p_new_str, IN uint32_t * const p_total_len) argument
564 dbg_get_capabilities_str(IN char *p_buf, IN const uint32_t buf_size, IN const char *const p_prefix_str, IN const ib_port_info_t * const p_pi) argument
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dufs.c451 size_t buf_size; local
459 rc = buf_read_file(f, &buf, &buf_size);
464 edp = (struct direct *)(buf + buf_size);
483 fp->f_seekp += buf_size;
504 size_t buf_size; local
525 (char *)fs, &buf_size);
531 buf_size == SBLOCKSIZE &&
642 size_t buf_size; local
655 fs->fs_bsize, buf, &buf_size);
732 size_t buf_size; local
842 size_t buf_size; local
[all...]
/freebsd-10.0-release/contrib/wpa/src/utils/
H A Dcommon.c187 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
191 char *pos = buf, *end = buf + buf_size;
193 if (buf_size == 0)
211 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
216 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
218 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
225 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
230 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
233 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);
/freebsd-10.0-release/contrib/gdb/gdb/
H A Dscm-valprint.c225 int buf_size; local
231 for (; done < len; done += buf_size)
233 buf_size = min (len - done, 64);
234 read_memory (addr + done, buffer, buf_size);
236 for (i = 0; i < buf_size; ++i)
/freebsd-10.0-release/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-10.0-release/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
/freebsd-10.0-release/contrib/amd/libamu/
H A Dwire.c102 int buf_size = 1024; local
104 buf = SALLOC(buf_size); /* initial allocation (may grow!) */
109 xstrlcpy(buf, "No networks\n", buf_size);
114 /* use buf_size for sizeof(buf) because of the realloc() below */
115 xsnprintf(buf, buf_size,
125 if (bufcount > buf_size) {
126 buf_size *= 2;
127 buf = xrealloc(buf, buf_size);
129 xstrlcat(buf, s, buf_size);
/freebsd-10.0-release/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-10.0-release/contrib/ofed/libmlx4/src/
H A Dsrq.c133 int buf_size; local
146 buf_size = srq->max << srq->wqe_shift;
148 if (mlx4_alloc_buf(&srq->buf, buf_size,
154 memset(srq->buf.buf, 0, buf_size);

Completed in 161 milliseconds

123456