Home
last modified time | relevance | path

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

12345678910>>...160

/freebsd/sys/dev/qlxgb/
H A Dqla_dbg.c102 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qla_dump_buf16()
130 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qla_dump_buf16()
198 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qla_dump_buf8()
203 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
210 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
217 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
224 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
231 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
238 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
245 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8()
[all …]
/freebsd/sys/dev/qlxgbe/
H A Dql_dbg.c99 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in ql_dump_buf16()
127 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in ql_dump_buf16()
195 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in ql_dump_buf8()
200 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
207 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
214 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
221 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
228 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
235 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
242 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in ql_dump_buf8()
[all …]
/freebsd/sys/dev/qlxge/
H A Dqls_dbg.c104 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qls_dump_buf16()
132 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qls_dump_buf16()
203 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qls_dump_buf8()
208 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
215 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
222 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
229 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
236 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
243 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
250 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8()
[all …]
/freebsd/crypto/openssh/
H A Dsshbuf.c35 buf->size, buf->alloc, buf->off, buf->max_size); \
59 (!buf->readonly && buf->d != buf->cd) || in sshbuf_check_sanity()
80 if (buf->off == 0 || buf->readonly || buf->refcount > 1) in sshbuf_maybe_pack()
84 memmove(buf->d, buf->d + buf->off, buf->size - buf->off); in sshbuf_maybe_pack()
85 buf->size -= buf->off; in sshbuf_maybe_pack()
202 buf->off = buf->size; in sshbuf_reset()
211 buf->cd = buf->d = d; in sshbuf_reset()
270 buf->cd = buf->d = dp; in sshbuf_set_max_size()
293 return buf->max_size - (buf->size - buf->off); in sshbuf_avail()
323 if (len > buf->max_size || buf->max_size - len < buf->size - buf->off) in sshbuf_check_reserve()
[all …]
/freebsd/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/lib/libopenbsd/
H A Dimsg-buffer.c47 buf->size = buf->max = len; in ibuf_open()
81 b = realloc(buf->buf, buf->wpos + len); in ibuf_realloc()
84 buf->buf = b; in ibuf_realloc()
85 buf->size = buf->wpos + len; in ibuf_realloc()
97 memcpy(buf->buf + buf->wpos, data, len); in ibuf_add()
111 b = buf->buf + buf->wpos; in ibuf_reserve()
123 return (buf->buf + pos); in ibuf_seek()
135 return (buf->max - buf->wpos); in ibuf_left()
156 iov[i].iov_base = buf->buf + buf->rpos; in ibuf_write()
183 free(buf->buf); in ibuf_free()
[all …]
/freebsd/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/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()
84 return os_memcmp(a->buf, b->buf, wpabuf_size(a)); in wpabuf_cmp()
95 return buf->buf; in wpabuf_head()
110 return buf->buf; in wpabuf_mhead()
115 return (u8 *) wpabuf_mhead(buf); in wpabuf_mhead_u8()
181 buf->buf = (u8 *) data; in wpabuf_set()
182 buf->flags = WPABUF_FLAG_EXT_DATA; in wpabuf_set()
[all …]
/freebsd/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/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/contrib/xz/src/common/
H A Dtuklib_integer.h447 #define write16be(buf, num) write16ne(buf, conv16be(num)) argument
448 #define write32be(buf, num) write32ne(buf, conv32be(num)) argument
449 #define write64be(buf, num) write64ne(buf, conv64be(num)) argument
450 #define write16le(buf, num) write16ne(buf, conv16le(num)) argument
451 #define write32le(buf, num) write32ne(buf, conv32le(num)) argument
452 #define write64le(buf, num) write64ne(buf, conv64le(num)) argument
476 uint16_t num = ((uint16_t)buf[0] << 8) | (uint16_t)buf[1]; in read16be()
484 uint16_t num = ((uint16_t)buf[0]) | ((uint16_t)buf[1] << 8); in read16le()
776 #define aligned_write16be(buf, num) aligned_write16ne((buf), conv16be(num)) argument
777 #define aligned_write16le(buf, num) aligned_write16ne((buf), conv16le(num)) argument
[all …]
/freebsd/contrib/bmake/
H A Dbuf.c84 buf->cap += buf->cap > 16 ? buf->cap : 16; in Buf_Expand()
85 buf->data = bmake_realloc(buf->data, buf->cap); in Buf_Expand()
97 buf->cap += buf->cap > minIncr ? buf->cap : minIncr; in Buf_AddBytes()
98 buf->data = bmake_realloc(buf->data, buf->cap); in Buf_AddBytes()
146 buf->len = 0; in Buf_InitSize()
167 buf->cap = 0; in Buf_Done()
168 buf->len = 0; in Buf_Done()
183 buf->cap = 0; in Buf_DoneData()
184 buf->len = 0; in Buf_DoneData()
206 if (buf->cap - buf->len >= BUF_COMPACT_LIMIT) { in Buf_DoneDataCompact()
[all …]
/freebsd/contrib/flex/src/
H A Dbuf.c81 buf = buf_strappend (buf, t); in buf_prints()
83 return buf; in buf_prints()
99 return buf; in buf_linedir()
114 buf = buf_strappend (buf, t); in buf_linedir()
140 return buf; in buf_strnappend()
158 return buf; in buf_strdefine()
217 if (buf) { in buf_destroy()
235 return buf; in buf_append()
238 if (n_elem + buf->nelts > buf->nmax) { in buf_append()
262 memcpy ((char *) buf->elts + (size_t) buf->nelts * buf->elt_size, ptr, in buf_append()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs_htt_stats.c43 u8 *buf = stats_req->buf; in htt_print_stats_string_tlv() local
74 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_cmn_tlv() local
194 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_urrn_tlv_v() local
218 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_flush_tlv_v() local
242 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_sifs_tlv_v() local
266 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_phy_err_tlv_v() local
290 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_sifs_hist_tlv_v() local
314 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v() local
350 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v() local
375 u8 *buf = stats_req->buf; in htt_print_hw_stats_intr_misc_tlv() local
[all …]
/freebsd/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/lib/libc/stdtime/
H A Dstrptime.c108 buf++; in _strptime()
157 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); in _strptime()
176 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); in _strptime()
183 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); in _strptime()
195 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale); in _strptime()
243 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
277 buf++; in _strptime()
546 strncpy(zonestr, buf, cp - buf); in _strptime()
559 buf += cp - buf; in _strptime()
575 buf++; in _strptime()
[all …]
/freebsd/lib/libc/tests/string/
H A Dstrcspn_test.c64 buf[i] = '\0'; in testcase()
75 buf[buflen - 1] = 1; in testcase()
137 char buf[31]; in ATF_TC_BODY() local
162 buf[buflen] = '\0'; in test_match_positions()
171 buf[i] = set[j]; in test_match_positions()
179 buf[i] = '-'; in test_match_positions()
221 buf[buflen] = '\0'; in test_match_order()
228 buf[k] = set[i]; in test_match_order()
229 buf[l] = set[j]; in test_match_order()
234 buf[k] = '-'; in test_match_order()
[all …]
/freebsd/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/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/contrib/tcpdump/
H A Dsmbutil.c207 p = buf + l; in name_ptr()
479 buf++; in smb_fdata1()
505 buf++; in smb_fdata1()
636 buf += 1; in smb_fdata1()
645 buf += 2; in smb_fdata1()
654 buf += 4; in smb_fdata1()
674 if (GET_U_1(buf) != 4 && GET_U_1(buf) != 2) { in smb_fdata1()
729 buf++; in smb_fdata1()
782 buf += 4; in smb_fdata1()
790 buf += 4; in smb_fdata1()
[all …]
/freebsd/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()
1654 if (buf == NULL) in gas_serv_rx_gas_initial_req()
[all …]
/freebsd/lib/libc/tests/locale/
H A Dc16rtomb_test.c73 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
75 ATF_REQUIRE((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc); in ATF_TC_BODY()
83 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
85 ATF_REQUIRE((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc); in ATF_TC_BODY()
89 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
104 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
118 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
131 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
135 (unsigned char)buf[2] == 0x92 && (unsigned char)buf[3] == 0xa9 && in ATF_TC_BODY()
140 memset(buf, 0xcc, sizeof(buf)); in ATF_TC_BODY()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/net/
H A Dip.h64 buf[0] = 0x01; in ip_eth_mc_map()
65 buf[1] = 0x00; in ip_eth_mc_map()
66 buf[2] = 0x5e; in ip_eth_mc_map()
79 buf[0] = 0; in ip_ib_mc_map()
80 buf[1] = 0xff; in ip_ib_mc_map()
89 buf[10] = 0; in ip_ib_mc_map()
90 buf[11] = 0; in ip_ib_mc_map()
91 buf[12] = 0; in ip_ib_mc_map()
92 buf[13] = 0; in ip_ib_mc_map()
93 buf[14] = 0; in ip_ib_mc_map()
[all …]

12345678910>>...160