| /freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
| H A D | xz_dec_test.c | 52 static struct xz_buf buffers = { variable 75 buffers.in_pos = 0; in xz_dec_test_open() 76 buffers.in_size = 0; in xz_dec_test_open() 77 buffers.out_pos = 0; in xz_dec_test_open() 120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write() 122 if (buffers.in_pos == buffers.in_size) { in xz_dec_test_write() 123 buffers.in_pos = 0; in xz_dec_test_write() 124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write() 125 if (copy_from_user(buffer_in, buf, buffers.in_size)) in xz_dec_test_write() 128 buf += buffers.in_size; in xz_dec_test_write() [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | SSL_alloc_buffers.pod | 5 SSL_free_buffers, SSL_alloc_buffers - manage SSL structure buffers 16 SSL_free_buffers() frees the read and write buffers of the given B<ssl>. 17 SSL_alloc_buffers() allocates the read and write buffers of the given B<ssl>. 19 The B<SSL_MODE_RELEASE_BUFFERS> mode releases read or write buffers whenever 20 the buffers have been drained. These functions allow applications to manually 21 control when buffers are freed and allocated. 23 After freeing the buffers, the buffers are automatically reallocated upon a 25 can be used to make sure the buffers are preallocated. This can be used to 27 to control where and how buffers are allocated. 46 The SSL_free_buffers() function returns 1 if the buffers have been freed. This [all …]
|
| H A D | PEM_bytes_read_bio.pod | 43 memory from the secure heap for its temporary buffers and the storage 51 which input is read may also use temporary buffers, which are not necessarily
|
| /freebsd/sys/dev/isci/scil/ |
| H A D | scic_sds_unsolicited_frame_control.c | 86 (uf_control->address_table.count < uf_control->buffers.count) in scic_sds_unsolicited_frame_control_set_address_table_count() 135 uf = &uf_control->buffers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 151 uf = &uf_control->buffers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 198 used_uf_buffer_bytes = uf_control->buffers.count in scic_sds_unsolicited_frame_control_construct() 201 - uf_control->buffers.count; in scic_sds_unsolicited_frame_control_construct() 202 used_uf_header_entries = uf_control->buffers.count; in scic_sds_unsolicited_frame_control_construct() 284 *frame_header = &uf_control->buffers.array[frame_index].header->data; in scic_sds_unsolicited_frame_control_get_header() 310 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in scic_sds_unsolicited_frame_control_get_buffer() 367 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in scic_sds_unsolicited_frame_control_release_frame() 374 uf_control->buffers.array[frame_get].state in scic_sds_unsolicited_frame_control_release_frame() [all …]
|
| H A D | scic_sds_unsolicited_frame_control.h | 253 SCIC_SDS_UF_BUFFER_ARRAY_T buffers; member 297 ( ((uf_control).buffers.count * SCU_UNSOLICITED_FRAME_BUFFER_SIZE) \ 299 + ((uf_control).buffers.count * sizeof(SCU_UNSOLICITED_FRAME_HEADER_T)) )
|
| /freebsd/sys/dev/adb/ |
| H A D | adb_kbd.c | 83 volatile int buffers; member 298 sc->buffers = 0; in adb_kbd_attach() 432 if ((data[0] & 0x7f) == 57 && sc->buffers < 7) { in adb_kbd_receive_packet() 434 sc->buffer[sc->buffers++] = data[0] & 0x7f; in adb_kbd_receive_packet() 435 sc->buffer[sc->buffers++] = (data[0] & 0x7f) | (1 << 7); in adb_kbd_receive_packet() 437 sc->buffer[sc->buffers++] = data[0]; in adb_kbd_receive_packet() 439 if (sc->buffer[sc->buffers-1] < 0xff) in adb_kbd_receive_packet() 440 sc->last_press = sc->buffer[sc->buffers-1]; in adb_kbd_receive_packet() 442 if ((data[1] & 0x7f) == 57 && sc->buffers < 7) { in adb_kbd_receive_packet() 444 sc->buffer[sc->buffers++] = data[1] & 0x7f; in adb_kbd_receive_packet() [all …]
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | pac.c | 47 struct PAC_INFO_BUFFER buffers[1]; member 226 CHECK(ret, krb5_ret_uint32(sp, &p->pac->buffers[i].type), out); in krb5_pac_parse() 227 CHECK(ret, krb5_ret_uint32(sp, &p->pac->buffers[i].buffersize), out); in krb5_pac_parse() 228 CHECK(ret, krb5_ret_uint32(sp, &p->pac->buffers[i].offset_lo), out); in krb5_pac_parse() 229 CHECK(ret, krb5_ret_uint32(sp, &p->pac->buffers[i].offset_hi), out); in krb5_pac_parse() 232 if (p->pac->buffers[i].offset_lo & (PAC_ALIGNMENT - 1)) { in krb5_pac_parse() 238 if (p->pac->buffers[i].offset_hi) { in krb5_pac_parse() 244 if (p->pac->buffers[i].offset_lo > len) { in krb5_pac_parse() 250 if (p->pac->buffers[i].offset_lo < header_end) { in krb5_pac_parse() 254 (unsigned long)p->pac->buffers[i].offset_lo, in krb5_pac_parse() [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | buffer_iocp.c | 69 WSABUF buffers[MAX_WSABUFS]; member 117 len = buf->buffers[i].len; in evbuffer_commit_read_() 201 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_write_() 206 WSABUF *b = &buf_o->buffers[i]; in evbuffer_launch_write_() 226 if (WSASend(buf_o->fd, buf_o->buffers, i, &bytesSent, 0, in evbuffer_launch_write_() 267 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_read_() 277 &buf_o->buffers[i], in evbuffer_launch_read_() 292 if (WSARecv(buf_o->fd, buf_o->buffers, nvecs, &bytesRead, &flags, in evbuffer_launch_read_()
|
| /freebsd/contrib/libevent/ |
| H A D | buffer_iocp.c | 69 WSABUF buffers[MAX_WSABUFS]; member 117 len = buf->buffers[i].len; in evbuffer_commit_read_() 201 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_write_() 206 WSABUF *b = &buf_o->buffers[i]; in evbuffer_launch_write_() 226 if (WSASend(buf_o->fd, buf_o->buffers, i, &bytesSent, 0, in evbuffer_launch_write_() 267 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_read_() 277 &buf_o->buffers[i], in evbuffer_launch_read_() 292 if (WSARecv(buf_o->fd, buf_o->buffers, nvecs, &bytesRead, &flags, in evbuffer_launch_read_()
|
| /freebsd/crypto/krb5/src/lib/gssapi/spnego/ |
| H A D | negoex_ctx.c | 58 gss_buffer_set_t buffers = *pbuffers; in zero_and_release_buffer_set() local 61 if (buffers != GSS_C_NO_BUFFER_SET) { in zero_and_release_buffer_set() 62 for (i = 0; i < buffers->count; i++) in zero_and_release_buffer_set() 63 zap(buffers->elements[i].value, buffers->elements[i].length); in zero_and_release_buffer_set() 65 gss_release_buffer_set(&tmpmin, &buffers); in zero_and_release_buffer_set() 72 buffer_set_to_key(OM_uint32 *minor, gss_buffer_set_t buffers, in buffer_set_to_key() argument 79 if (buffers->count != 2 || buffers->elements[1].length != 4) { in buffer_set_to_key() 86 key->contents = k5memdup(buffers->elements[0].value, in buffer_set_to_key() 87 buffers->elements[0].length, &ret); in buffer_set_to_key() 92 key->length = buffers->elements[0].length; in buffer_set_to_key() [all …]
|
| /freebsd/crypto/openssl/doc/designs/ |
| H A D | evp-cipher-pipeline.md | 33 Input/output and aad buffers are set using `EVP_CIPHER_CTX_ctrl()` 89 * @param out array of pointers to output buffers (array length must be 91 * when NULL, input buffers are treated as AAD data 96 * @param in array of pointers to input buffers (array length must be 106 * @param outm array of pointers to output buffers (array length must be 122 * @param buf array of pointers to aead buffers (array length must be 124 * @param bsize size of one buffer (all buffers must be of same size) 131 **Alternative:** iovec style interface for input/output buffers. 140 * @param out array of EVP_CIPHER_buf containing output buffers (array 142 * when this param is NULL, input buffers are treated as AAD [all …]
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | pac.c | 56 nbufs = realloc(pac->buffers, (pac->nbuffers + 1) * sizeof(*pac->buffers)); in k5_pac_add_buffer() 59 pac->buffers = nbufs; in k5_pac_add_buffer() 74 pac->buffers[i].offset += PAC_INFO_BUFFER_LENGTH; in k5_pac_add_buffer() 83 pac->buffers[i].type = type; in k5_pac_add_buffer() 84 pac->buffers[i].size = data->length; in k5_pac_add_buffer() 85 pac->buffers[i].offset = pac->data.length + PAC_INFO_BUFFER_LENGTH; in k5_pac_add_buffer() 86 assert((pac->buffers[i].offset % PAC_ALIGNMENT) == 0); in k5_pac_add_buffer() 89 bufdata = pac->data.data + pac->buffers[i].offset; in k5_pac_add_buffer() 122 free(pac->buffers); in krb5_pac_free() 138 if (pac->buffers[i].type == type) { in k5_pac_locate_buffer() [all …]
|
| H A D | authdata.h | 62 struct k5_pac_buffer *buffers; member
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTMultiCpuDecoder.cpp | 43 [&](const DenseMap<cpu_id_t, ArrayRef<uint8_t>> &buffers) -> Error { in FindLowestTSC() argument 44 for (auto &cpu_id_to_buffer : buffers) { in FindLowestTSC() 76 [&](const DenseMap<cpu_id_t, ArrayRef<uint8_t>> &buffers) -> Error { in Decode() argument 81 *decoded_thread_sp, *trace_sp, buffers, it->second); in Decode()
|
| H A D | LibiptDecoder.h | 88 const llvm::DenseMap<lldb::cpu_id_t, llvm::ArrayRef<uint8_t>> &buffers,
|
| /freebsd/tests/sys/aio/ |
| H A D | aio_test.c | 1505 } buffers[16]; in aio_fsync_test() local 1519 ATF_REQUIRE(ftruncate(fd, sb.st_blksize * nitems(buffers)) == 0); in aio_fsync_test() 1527 for (i = 0; i < nitems(buffers); i++) { in aio_fsync_test() 1528 buffers[i].done = false; in aio_fsync_test() 1529 memset(&buffers[i].iocb, 0, sizeof(buffers[i].iocb)); in aio_fsync_test() 1530 buffers[i].buffer = malloc(sb.st_blksize); in aio_fsync_test() 1531 aio_fill_buffer(buffers[i].buffer, sb.st_blksize, random()); in aio_fsync_test() 1532 buffers[i].iocb.aio_fildes = fd; in aio_fsync_test() 1533 buffers[i].iocb.aio_buf = buffers[i].buffer; in aio_fsync_test() 1534 buffers[i].iocb.aio_nbytes = sb.st_blksize; in aio_fsync_test() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_fdr_flags.inc | 25 "Size of buffers in the circular buffer queue.") 26 XRAY_FLAG(int, buffer_max, 100, "Maximum number of buffers in the queue.")
|
| H A D | xray_profiling_flags.inc | 30 "The number of buffers to pre-allocate used by the profiling "
|
| /freebsd/lib/libcasper/services/cap_net/tests/ |
| H A D | net_test.c | 453 } buffers; in ATF_TC_BODY() local 461 memset(&buffers, '!', sizeof(buffers)); in ATF_TC_BODY() 465 buffers.host, sizeof(buffers.host), in ATF_TC_BODY() 466 buffers.serv, sizeof(buffers.serv), in ATF_TC_BODY() 471 ATF_CHECK_EQ(0, strcmp(TEST_IPV4, buffers.host)); in ATF_TC_BODY() 472 ATF_CHECK_EQ(0, strcmp(TEST_PORT_STR, buffers.serv)); in ATF_TC_BODY() 475 ATF_CHECK_EQ('!', buffers.host_canary); in ATF_TC_BODY() 476 ATF_CHECK_EQ('!', buffers.serv_canary); in ATF_TC_BODY()
|
| /freebsd/crypto/openssl/doc/designs/quic-design/ |
| H A D | stream-receive-buffers.md | 31 These are optional features of the stream receive buffers implementation. 68 SSL_read() copies data out of the stored buffers if available and 72 buffers for any information about the stored data. 135 to limit the memory occupied by packet buffers.
|
| H A D | dgram-api.md | 278 implementing these would then have to be done by copying buffers around 327 all read buffers being dequeued; see below.) For convenience we could have an 329 queue of unused read buffers, which avoids the need for the application to do 330 its own management of such recycled buffers: 336 On the write side, the application provides buffers and can get a callback when 443 an unusual case where BIO_dgram is responsible for freeing read buffers and not 480 BIO_dgram will call the allocation function to get buffers for `recvmmsg` to 481 fill. We might want to have a way to specify how many buffers it should offer to 482 `recvmmsg`, and thus how many buffers it allocates in advance. 487 callback is used to free any unreturned read buffers.
|
| /freebsd/sys/contrib/device-tree/Bindings/mailbox/ |
| H A D | xlnx,zynqmp-ipi-mailbox.txt | 6 agent owns registers used for notification and buffers for message. 44 - reg: IPI buffers address ranges
|
| /freebsd/sys/contrib/device-tree/Bindings/reserved-memory/ |
| H A D | ramoops.txt | 9 Parts of this storage may be set aside for other persistent log buffers, such 11 size of these optional buffers must fit in the reserved region.
|
| /freebsd/sys/dev/dpaa2/ |
| H A D | dpaa2_swp_if.m | 75 * buf: Array of buffers physical addresses. 76 * buf_num: Number of the buffers in the array.
|
| /freebsd/sys/dev/qat/qat/ |
| H A D | qat_ocf_mem_pool.c | 35 qat_ocf_populate_buf_list_cb(struct qat_ocf_buffer_list *buffers, in qat_ocf_populate_buf_list_cb() argument 62 flatBuffer = &buffers->flatBuffers[oseg++]; in qat_ocf_populate_buf_list_cb() 66 buffers->numBuffers = oseg; in qat_ocf_populate_buf_list_cb()
|