| /freebsd-13.1/sys/dev/qlxgb/ |
| H A D | qla_dbg.c | 104 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qla_dump_buf16() 132 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qla_dump_buf16() 200 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qla_dump_buf8() 205 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 212 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 219 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 226 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 233 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 240 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() 247 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qla_dump_buf8() [all …]
|
| /freebsd-13.1/sys/dev/qlxgbe/ |
| H A D | ql_dbg.c | 101 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-13.1/sys/dev/qlxge/ |
| H A D | qls_dbg.c | 106 buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in qls_dump_buf16() 134 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); in qls_dump_buf16() 205 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); in qls_dump_buf8() 210 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 217 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 224 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 231 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 238 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 245 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() 252 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], in qls_dump_buf8() [all …]
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | sshbuf.c | 36 (!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() 177 buf->off = buf->size; in sshbuf_reset() 185 buf->cd = buf->d = d; in sshbuf_reset() 244 buf->cd = buf->d = dp; in sshbuf_set_max_size() 267 return buf->max_size - (buf->size - buf->off); in sshbuf_avail() 297 if (len > buf->max_size || buf->max_size - len < buf->size - buf->off) in sshbuf_check_reserve() [all …]
|
| /freebsd-13.1/contrib/wpa/src/p2p/ |
| H A D | p2p_build.c | 66 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-13.1/lib/libopenbsd/ |
| H A D | imsg-buffer.c | 49 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-13.1/sys/contrib/libb2/ |
| H A D | blake2s-load-sse2.h | 17 #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 D | blake2s-load-sse41.h | 17 #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-13.1/contrib/wpa/src/utils/ |
| H A D | wpabuf.c | 40 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 D | wpabuf.h | 34 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-13.1/contrib/ofed/libibmad/ |
| H A D | dump.c | 68 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-13.1/usr.sbin/bluetooth/sdpd/ |
| H A D | profile.c | 113 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-13.1/contrib/bmake/ |
| H A D | buf.c | 84 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-13.1/contrib/flex/src/ |
| H A D | buf.c | 81 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-13.1/contrib/wpa/src/common/ |
| H A D | gas.c | 20 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-13.1/contrib/tcpdump/ |
| H A D | smbutil.c | 193 p = buf + l; in name_ptr() 447 buf++; in smb_fdata1() 475 buf++; in smb_fdata1() 594 buf += 1; in smb_fdata1() 602 buf += 2; in smb_fdata1() 610 buf += 4; in smb_fdata1() 639 if (*buf != 4 && *buf != 2) { in smb_fdata1() 743 buf += 4; in smb_fdata1() 752 buf += 4; in smb_fdata1() 757 buf += 8; in smb_fdata1() [all …]
|
| /freebsd-13.1/lib/libc/stdtime/ |
| H A D | strptime.c | 117 buf++; 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() 286 buf++; in _strptime() 555 strncpy(zonestr, buf, cp - buf); in _strptime() 568 buf += cp - buf; in _strptime() 584 buf++; in _strptime() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | spillbuf.c | 154 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-13.1/contrib/netcat/ |
| H A D | socks.c | 166 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-13.1/contrib/pf/libevent/ |
| H A D | buffer.c | 138 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-13.1/contrib/xz/src/common/ |
| H A D | tuklib_integer.h | 295 uint16_t num = ((uint16_t)buf[0] << 8) | (uint16_t)buf[1]; in read16be() 308 uint16_t num = ((uint16_t)buf[0]) | ((uint16_t)buf[1] << 8); in read16le() 351 # define write16be(buf, num) write16ne(buf, conv16be(num)) argument 352 # define write32be(buf, num) write32ne(buf, conv32be(num)) argument 356 # define write16le(buf, num) write16ne(buf, conv16le(num)) argument 357 # define write32le(buf, num) write32ne(buf, conv32le(num)) argument 366 buf[1] = (uint8_t)num; in write16be() 376 buf[0] = (uint8_t)num; in write16le() 390 buf[3] = (uint8_t)num; in write32be() 400 buf[0] = (uint8_t)num; in write32le() [all …]
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | gas_serv.c | 29 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-13.1/lib/libc/tests/locale/ |
| H A D | c16rtomb_test.c | 76 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-13.1/sys/compat/linuxkpi/common/include/net/ |
| H A D | ip.h | 66 buf[0] = 0x01; in ip_eth_mc_map() 67 buf[1] = 0x00; in ip_eth_mc_map() 68 buf[2] = 0x5e; in ip_eth_mc_map() 81 buf[0] = 0; in ip_ib_mc_map() 82 buf[1] = 0xff; in ip_ib_mc_map() 91 buf[10] = 0; in ip_ib_mc_map() 92 buf[11] = 0; in ip_ib_mc_map() 93 buf[12] = 0; in ip_ib_mc_map() 94 buf[13] = 0; in ip_ib_mc_map() 95 buf[14] = 0; in ip_ib_mc_map() [all …]
|
| /freebsd-13.1/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_alloc.c | 48 struct mlx5_buf *buf; in mlx5_buf_load_mem_cb() local 82 buf->dev = dev; in mlx5_buf_alloc() 83 buf->page_list = kcalloc(buf->npages, sizeof(*buf->page_list), in mlx5_buf_alloc() 98 &buf->dma_tag); in mlx5_buf_alloc() 104 err = -bus_dmamem_alloc(buf->dma_tag, &buf->direct.buf, in mlx5_buf_alloc() 112 buf->dma_tag, buf->dma_map, buf->direct.buf, in mlx5_buf_alloc() 127 memset(buf->direct.buf, 0, PAGE_SIZE * buf->npages); in mlx5_buf_alloc() 130 bus_dmamap_sync(buf->dev->cmd.dma_tag, buf->dma_map, BUS_DMASYNC_PREWRITE); in mlx5_buf_alloc() 134 bus_dmamem_free(buf->dma_tag, buf->direct.buf, buf->dma_map); in mlx5_buf_alloc() 145 bus_dmamap_unload(buf->dma_tag, buf->dma_map); in mlx5_buf_free() [all …]
|