Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 5797) sorted by relevance

12345678910>>...232

/freebsd-12.1/sys/dev/qlxgbe/
H A Dql_dbg.c101 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in ql_dump_buf16()
129 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in ql_dump_buf16()
197 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in ql_dump_buf8()
202 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
209 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
216 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
223 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
230 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
237 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
244 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
[all …]
/freebsd-12.1/sys/dev/qlxgb/
H A Dqla_dbg.c105 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qla_dump_buf16()
133 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qla_dump_buf16()
201 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qla_dump_buf8()
206 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
213 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
220 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
227 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
234 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
241 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
248 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
[all …]
/freebsd-12.1/sys/dev/qlxge/
H A Dqls_dbg.c107 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qls_dump_buf16()
135 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qls_dump_buf16()
206 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qls_dump_buf8()
211 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
218 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
225 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
232 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
239 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
246 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
253 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
[all …]
/freebsd-12.1/crypto/openssh/
H A Dsshbuf.c36 (!buf->readonly && buf->d != buf->cd) || in sshbuf_check_sanity()
42 buf->off > buf->size)) { in sshbuf_check_sanity()
57 if (buf->off == 0 || buf->readonly || buf->refcount > 1) in sshbuf_maybe_pack()
61 memmove(buf->d, buf->d + buf->off, buf->size - buf->off); in sshbuf_maybe_pack()
62 buf->size -= buf->off; in sshbuf_maybe_pack()
175 buf->off = buf->size; in sshbuf_reset()
183 buf->cd = buf->d = d; in sshbuf_reset()
242 buf->cd = buf->d = dp; in sshbuf_set_max_size()
265 return buf->max_size - (buf->size - buf->off); in sshbuf_avail()
295 if (len > buf->max_size || buf->max_size - len < buf->size - buf->off) in sshbuf_check_reserve()
[all …]
H A Dsshbuf-getput-basic.c35 const u_char *p = sshbuf_ptr(buf); in sshbuf_get()
48 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u64()
61 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u32()
74 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u16()
87 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u8()
155 const u_char *p = sshbuf_ptr(buf); in sshbuf_peek_string_direct()
161 if (sshbuf_len(buf) < 4) { in sshbuf_peek_string_direct()
170 if (sshbuf_len(buf) - 4 < len) { in sshbuf_peek_string_direct()
262 r = sshbuf_putfv(buf, fmt, ap); in sshbuf_putf()
386 if (buf == NULL || bufp == NULL) in sshbuf_froms()
[all …]
/freebsd-12.1/contrib/wpa/src/p2p/
H A Dp2p_build.c66 wpabuf_put_le16(buf, 2); in p2p_buf_add_capability()
78 wpabuf_put_le16(buf, 1); in p2p_buf_add_go_intent()
90 wpabuf_put_le16(buf, 5); in p2p_buf_add_listen_channel()
104 wpabuf_put_le16(buf, 5); in p2p_buf_add_operating_channel()
180 wpabuf_put_le16(buf, 1); in p2p_buf_add_status()
260 wpabuf_put_le16(buf, 2); in p2p_buf_add_config_timeout()
308 wpabuf_put_le16(buf, 1); in p2p_buf_add_invitation_flags()
345 wpabuf_put_le16(buf, 4); in p2p_buf_add_ext_listen_timing()
365 wpabuf_put_u8(buf, 1); in p2p_buf_add_p2p_interface()
433 if (!buf || !mac) in p2p_buf_add_advertisement_id()
[all …]
/freebsd-12.1/lib/libopenbsd/
H A Dimsg-buffer.c49 buf->size = buf->max = len; in ibuf_open()
83 b = realloc(buf->buf, buf->wpos + len); in ibuf_realloc()
86 buf->buf = b; in ibuf_realloc()
87 buf->size = buf->wpos + len; in ibuf_realloc()
99 memcpy(buf->buf + buf->wpos, data, len); in ibuf_add()
113 b = buf->buf + buf->wpos; in ibuf_reserve()
125 return (buf->buf + pos); in ibuf_seek()
137 return (buf->max - buf->wpos); in ibuf_left()
158 iov[i].iov_base = buf->buf + buf->rpos; in ibuf_write()
185 free(buf->buf); in ibuf_free()
[all …]
/freebsd-12.1/sys/contrib/libb2/
H A Dblake2s-load-sse2.h17 #define LOAD_MSG_0_1(buf) buf = _mm_set_epi32(m6,m4,m2,m0) argument
18 #define LOAD_MSG_0_2(buf) buf = _mm_set_epi32(m7,m5,m3,m1) argument
19 #define LOAD_MSG_0_3(buf) buf = _mm_set_epi32(m14,m12,m10,m8) argument
20 #define LOAD_MSG_0_4(buf) buf = _mm_set_epi32(m15,m13,m11,m9) argument
21 #define LOAD_MSG_1_1(buf) buf = _mm_set_epi32(m13,m9,m4,m14) argument
22 #define LOAD_MSG_1_2(buf) buf = _mm_set_epi32(m6,m15,m8,m10) argument
23 #define LOAD_MSG_1_3(buf) buf = _mm_set_epi32(m5,m11,m0,m1) argument
24 #define LOAD_MSG_1_4(buf) buf = _mm_set_epi32(m3,m7,m2,m12) argument
26 #define LOAD_MSG_2_2(buf) buf = _mm_set_epi32(m13,m2,m0,m8) argument
27 #define LOAD_MSG_2_3(buf) buf = _mm_set_epi32(m9,m7,m3,m10) argument
[all …]
H A Dblake2s-load-sse41.h17 #define LOAD_MSG_0_1(buf) \ argument
20 #define LOAD_MSG_0_2(buf) \ argument
23 #define LOAD_MSG_0_3(buf) \ argument
26 #define LOAD_MSG_0_4(buf) \ argument
29 #define LOAD_MSG_1_1(buf) \ argument
35 #define LOAD_MSG_1_2(buf) \ argument
41 #define LOAD_MSG_1_3(buf) \ argument
47 #define LOAD_MSG_1_4(buf) \ argument
53 #define LOAD_MSG_2_1(buf) \ argument
59 #define LOAD_MSG_2_2(buf) \ argument
[all …]
/freebsd-12.1/contrib/wpa/src/utils/
H A Dwpabuf.c40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow()
69 if (buf->used + add_len > buf->size) { in wpabuf_resize()
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
98 buf->buf = (u8 *) (buf + 1); in wpabuf_resize()
101 buf->size = buf->used + add_len; in wpabuf_resize()
130 buf->buf = (u8 *) (buf + 1); in wpabuf_alloc()
153 buf->buf = data; in wpabuf_alloc_ext_data()
196 os_free(buf->buf); in wpabuf_free()
202 os_free(buf->buf); in wpabuf_free()
[all …]
H A Dwpabuf.h34 void wpabuf_free(struct wpabuf *buf);
50 return buf->size; in wpabuf_size()
60 return buf->used; in wpabuf_len()
70 return buf->size - buf->used; in wpabuf_tailroom()
80 return buf->buf; in wpabuf_head()
95 return buf->buf; in wpabuf_mhead()
100 return (u8 *) wpabuf_mhead(buf); in wpabuf_mhead_u8()
105 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8()
154 buf->buf = (u8 *) data; in wpabuf_set()
155 buf->flags = WPABUF_FLAG_EXT_DATA; in wpabuf_set()
[all …]
/freebsd-12.1/contrib/ofed/libibmad/
H A Ddump.c68 buf[0] = 0; in mad_dump_int()
93 buf[0] = 0; in mad_dump_uint()
129 buf[0] = 0; in mad_dump_hex()
165 buf[0] = 0; in mad_dump_rhex()
240 snprintf(buf + strlen(buf), bufsz - strlen(buf), in mad_dump_linkwidthsup()
549 char *s = buf; in mad_dump_portcapmask()
615 if (s != buf) in mad_dump_portcapmask()
622 char *s = buf; in mad_dump_portcapmask2()
636 if (s != buf) in mad_dump_portcapmask2()
648 char *s = buf; in mad_dump_array()
[all …]
/freebsd-12.1/usr.sbin/bluetooth/sdpd/
H A Dprofile.c113 if (buf + 5 > eob) in common_profile_create_service_record_handle()
139 SDP_PUT8(len, buf); in common_profile_create_service_class_id_list()
175 SDP_PUT8(6, buf); in common_profile_create_bluetooth_profile_descriptor_list()
203 SDP_PUT8(9, buf); in common_profile_create_language_base_attribute_id_list()
301 SDP_PUT8(12, buf); in rfcomm_profile_create_protocol_descriptor_list()
304 SDP_PUT8(3, buf); in rfcomm_profile_create_protocol_descriptor_list()
309 SDP_PUT8(5, buf); in rfcomm_profile_create_protocol_descriptor_list()
341 SDP_PUT8(3, buf); in obex_profile_create_protocol_descriptor_list()
346 SDP_PUT8(5, buf); in obex_profile_create_protocol_descriptor_list()
353 SDP_PUT8(3, buf); in obex_profile_create_protocol_descriptor_list()
[all …]
/freebsd-12.1/contrib/flex/
H A Dbuf.c80 buf = buf_strappend (buf, t); in buf_prints()
82 return buf; in buf_prints()
108 buf = buf_strappend (buf, t); in buf_linedir()
137 return buf;
160 return buf;
220 if (buf && buf->elts)
240 return buf;
243 if (n_elem + buf->nelts > buf->nmax) {
246 n_alloc = (n_elem + buf->nelts) * buf->elt_size;
267 memcpy ((char *) buf->elts + buf->nelts * buf->elt_size, ptr,
[all …]
/freebsd-12.1/contrib/tcpdump/
H A Dsmbutil.c193 p = buf + l; in name_ptr()
447 buf++; in smb_fdata1()
475 buf++; in smb_fdata1()
593 buf += 1; in smb_fdata1()
601 buf += 2; in smb_fdata1()
609 buf += 4; in smb_fdata1()
638 if (*buf != 4 && *buf != 2) { in smb_fdata1()
719 buf += 16; in smb_fdata1()
742 buf += 4; in smb_fdata1()
751 buf += 4; in smb_fdata1()
[all …]
/freebsd-12.1/contrib/wpa/src/common/
H A Dgas.c20 struct wpabuf *buf; in gas_build_req() local
23 if (buf == NULL) in gas_build_req()
30 return buf; in gas_build_req()
54 if (buf == NULL) in gas_build_resp()
65 return buf; in gas_build_resp()
124 return buf; in gas_anqp_build_initial_req()
142 return buf; in gas_anqp_build_initial_resp()
164 return buf; in gas_anqp_build_initial_resp_buf()
183 return buf; in gas_anqp_build_comeback_resp()
206 return buf; in gas_anqp_build_comeback_resp_buf()
[all …]
/freebsd-12.1/lib/libc/stdtime/
H A Dstrptime.c117 buf++; in _strptime()
159 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); in _strptime()
166 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); in _strptime()
185 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); in _strptime()
192 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); in _strptime()
204 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale); in _strptime()
252 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
548 strncpy(zonestr, buf, cp - buf); in _strptime()
561 buf += cp - buf; in _strptime()
577 buf++; in _strptime()
[all …]
/freebsd-12.1/contrib/subversion/subversion/libsvn_subr/
H A Dspillbuf.c154 return buf; in svn_spillbuf__create()
170 return buf; in svn_spillbuf__create_extended()
176 return buf->memory_size + buf->spill_size; in svn_spillbuf__get_size()
213 mem->data = apr_palloc(buf->pool, buf->blocksize); in get_buffer()
245 && ((buf->maxsize - buf->memory_size) < len)) in svn_spillbuf__write()
272 buf->spill_start = buf->memory_size; in svn_spillbuf__write()
300 if (buf->tail == NULL || buf->tail->size == buf->blocksize) in svn_spillbuf__write()
363 buf->head = buf->tail = NULL; in read_data()
426 if (buf->head == NULL && buf->spill != NULL) in maybe_seek()
471 return_buffer(buf, buf->out_for_reading); in svn_spillbuf__read()
[all …]
/freebsd-12.1/contrib/wpa/src/ap/
H A Dgas_serv.c29 wpabuf_put_u8(buf, 0x7f); in gas_serv_write_dpp_adv_proto()
31 wpabuf_put_u8(buf, 5); in gas_serv_write_dpp_adv_proto()
34 wpabuf_put_u8(buf, 0x01); in gas_serv_write_dpp_adv_proto()
996 if (buf == NULL) in gas_serv_build_gas_resp_payload()
1072 return buf; in gas_serv_build_gas_resp_payload()
1461 buf); in gas_serv_req_local_processing()
1462 if (!buf) in gas_serv_req_local_processing()
1468 wpabuf_free(buf); in gas_serv_req_local_processing()
1506 wpabuf_free(buf); in gas_serv_req_local_processing()
1651 if (buf == NULL) in gas_serv_rx_gas_initial_req()
[all …]
/freebsd-12.1/contrib/netcat/
H A Dsocks.c166 buf[1] = 1; in socks_connect()
189 buf[2] = 0; in socks_connect()
200 buf[2] = 0; in socks_connect()
210 buf[2] = 0; in socks_connect()
275 r = snprintf(buf, sizeof(buf), in socks_connect()
279 r = snprintf(buf, sizeof(buf), in socks_connect()
295 r = snprintf(buf, sizeof(buf), "%s:%s", in socks_connect()
298 b64_ntop(buf, strlen(buf), resp, in socks_connect()
301 r = snprintf(buf, sizeof(buf), "Proxy-Authorization: " in socks_connect()
315 proxy_read_line(proxyfd, buf, sizeof(buf)); in socks_connect()
[all …]
/freebsd-12.1/contrib/pf/libevent/
H A Dbuffer.c138 buffer = (char *)buf->buffer + buf->off; in evbuffer_add_vprintf()
139 space = buf->totallen - buf->misalign - buf->off; in evbuffer_add_vprintf()
160 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add_vprintf()
250 memmove(buf->orig_buffer, buf->buffer, buf->off); in evbuffer_align()
251 buf->buffer = buf->orig_buffer; in evbuffer_align()
281 if (buf->orig_buffer != buf->buffer) in evbuffer_expand()
308 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add()
320 buf->buffer = buf->orig_buffer; in evbuffer_drain()
333 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_drain()
378 p = buf->buffer + buf->off; in evbuffer_read()
[all …]
/freebsd-12.1/lib/libc/tests/locale/
H A Dc16rtomb_test.c76 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
78 ATF_REQUIRE((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc); in ATF_TC_BODY()
86 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
88 ATF_REQUIRE((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc); in ATF_TC_BODY()
92 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
107 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
121 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
134 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
138 (unsigned char)buf[2] == 0x92 && (unsigned char)buf[3] == 0xa9 && in ATF_TC_BODY()
143 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
[all …]
/freebsd-12.1/contrib/libevent/test/
H A Dregress_buffer.c83 if (buf->last_with_datap == &buf->first) in evbuffer_validate_()
113 tt_assert(buf->last_with_datap == &buf->first); in evbuffer_validate_()
309 evbuffer_add(dst, buf, sizeof(buf)); in test_evbuffer_remove_buffer_with_empty()
657 tt_assert(buf->first == buf->last); in test_evbuffer_expand()
679 tt_assert(buf->first == buf->last); in test_evbuffer_expand()
681 evbuffer_drain(buf, buf->first->off - 1); in test_evbuffer_expand()
687 tt_assert(buf->first == buf->last); in test_evbuffer_expand()
1582 if (buf) in test_evbuffer_find()
1642 if (buf) in test_evbuffer_ptr_set()
1727 if (buf) in test_evbuffer_search()
[all …]
/freebsd-12.1/crypto/heimdal/lib/roken/
H A Dstrptime.c138 for (; **buf != '\0' && isspace((unsigned char)(**buf)); (*buf)++) in parse_number()
142 for (i = 0; **buf != '\0' && i < n && isdigit((unsigned char)(**buf)); i++, (*buf)++) in parse_number()
251 ++buf; in strptime()
293 buf = s; in strptime()
337 buf++; in strptime()
353 buf = s; in strptime()
359 buf = s; in strptime()
375 buf = s; in strptime()
408 buf = s; in strptime()
435 if (*buf == '%' || *++buf == c) in strptime()
[all …]
/freebsd-12.1/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c58 sshbuf_free(buf); in sshkey_file_tests()
75 sshbuf_free(buf); in sshkey_file_tests()
84 sshbuf_free(buf); in sshkey_file_tests()
94 sshbuf_free(buf); in sshkey_file_tests()
121 sshbuf_free(buf); in sshkey_file_tests()
130 sshbuf_free(buf); in sshkey_file_tests()
140 sshbuf_free(buf); in sshkey_file_tests()
149 sshbuf_free(buf); in sshkey_file_tests()
166 sshbuf_free(buf); in sshkey_file_tests()
175 sshbuf_free(buf); in sshkey_file_tests()
[all …]

12345678910>>...232