/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/openssl-src-111.15.0+1.1.1k/openssl/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/www/websocat/websocat-1.9.0/cargo-crates/openssl-src-111.16.0+1.1.1l/openssl/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/vendor/openssl-src/openssl/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/security/openssl-static/openssl-1.1.1l/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/security/openssl/openssl-1.1.1n/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/sysutils/exa/exa-0.10.1/cargo-crates/openssl-src-111.15.0+1.1.1k/openssl/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/www/node10/node-v10.24.1/deps/openssl/openssl/crypto/rand/ |
H A D | rand_lib.c | 441 pool = OPENSSL_zalloc(sizeof(*pool)); in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 600 if (pool->len < pool->min_len) in rand_pool_entropy_available() 627 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 679 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 698 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 708 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 742 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) in rand_pool_new() 450 pool->alloc_len = pool->max_len; in rand_pool_new() 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 598 if (pool->len < pool->min_len) in rand_pool_entropy_available() 625 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 677 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 696 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 706 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 721 if (len > pool->max_len - pool->len) { in rand_pool_add() 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) in rand_pool_new() 450 pool->alloc_len = pool->max_len; in rand_pool_new() 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 598 if (pool->len < pool->min_len) in rand_pool_entropy_available() 625 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 677 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 696 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 706 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 721 if (len > pool->max_len - pool->len) { in rand_pool_add() 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/openssl-src-111.9.0+1.1.1g/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) in rand_pool_new() 450 pool->alloc_len = pool->max_len; in rand_pool_new() 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 598 if (pool->len < pool->min_len) in rand_pool_entropy_available() 625 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 677 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 696 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 706 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 721 if (len > pool->max_len - pool->len) { in rand_pool_add() 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) in rand_pool_new() 450 pool->alloc_len = pool->max_len; in rand_pool_new() 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 598 if (pool->len < pool->min_len) in rand_pool_entropy_available() 625 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 677 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 696 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 706 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 721 if (len > pool->max_len - pool->len) { in rand_pool_add() 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/sysutils/uefi-edk2-bhyve/edk2-edk2-stable202102/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) in rand_pool_new() 450 pool->alloc_len = pool->max_len; in rand_pool_new() 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 598 if (pool->len < pool->min_len) in rand_pool_entropy_available() 625 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 677 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 696 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 706 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 721 if (len > pool->max_len - pool->len) { in rand_pool_add() 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/openssl-src-111.14.0+1.1.1j/openssl/crypto/rand/ |
H A D | rand_lib.c | 447 if (pool->alloc_len > pool->max_len) in rand_pool_new() 448 pool->alloc_len = pool->max_len; in rand_pool_new() 496 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 596 if (pool->len < pool->min_len) in rand_pool_entropy_available() 623 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow() 675 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 694 pool->max_len = pool->len = 0; in rand_pool_bytes_needed() 704 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 719 if (len > pool->max_len - pool->len) { in rand_pool_add() 738 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { in rand_pool_add() [all …]
|
/dports/sysutils/edk2/edk2-edk2-stable202102/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 449 if (pool->alloc_len > pool->max_len) 450 pool->alloc_len = pool->max_len; 498 pool->min_len = pool->max_len = pool->alloc_len = pool->len; 598 if (pool->len < pool->min_len) 625 if (pool->attached || len > pool->max_len - pool->len) { 677 if (pool->len < pool->min_len && 696 pool->max_len = pool->len = 0; 706 return pool->max_len - pool->len; 721 if (len > pool->max_len - pool->len) { 740 if (pool->alloc_len > pool->len && pool->buffer + pool->len == buffer) { [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/ti/ |
H A D | k3-cppi-desc-pool.c | 29 if (!pool) in k3_cppi_desc_pool_destroy() 37 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_destroy() 52 pool = devm_kzalloc(dev, sizeof(*pool), GFP_KERNEL); in k3_cppi_desc_pool_create_name() 53 if (!pool) in k3_cppi_desc_pool_create_name() 59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name() 76 pool->cpumem = dma_alloc_coherent(pool->dev, pool->mem_size, in k3_cppi_desc_pool_create_name() 83 (phys_addr_t)pool->dma_addr, pool->mem_size, in k3_cppi_desc_pool_create_name() 90 return pool; in k3_cppi_desc_pool_create_name() 93 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_create_name() 98 devm_kfree(pool->dev, pool); in k3_cppi_desc_pool_create_name() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/ti/ |
H A D | k3-cppi-desc-pool.c | 29 if (!pool) in k3_cppi_desc_pool_destroy() 37 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_destroy() 52 pool = devm_kzalloc(dev, sizeof(*pool), GFP_KERNEL); in k3_cppi_desc_pool_create_name() 53 if (!pool) in k3_cppi_desc_pool_create_name() 59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name() 76 pool->cpumem = dma_alloc_coherent(pool->dev, pool->mem_size, in k3_cppi_desc_pool_create_name() 83 (phys_addr_t)pool->dma_addr, pool->mem_size, in k3_cppi_desc_pool_create_name() 90 return pool; in k3_cppi_desc_pool_create_name() 93 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_create_name() 98 devm_kfree(pool->dev, pool); in k3_cppi_desc_pool_create_name() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/ti/ |
H A D | k3-cppi-desc-pool.c | 29 if (!pool) in k3_cppi_desc_pool_destroy() 37 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_destroy() 52 pool = devm_kzalloc(dev, sizeof(*pool), GFP_KERNEL); in k3_cppi_desc_pool_create_name() 53 if (!pool) in k3_cppi_desc_pool_create_name() 59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name() 76 pool->cpumem = dma_alloc_coherent(pool->dev, pool->mem_size, in k3_cppi_desc_pool_create_name() 83 (phys_addr_t)pool->dma_addr, pool->mem_size, in k3_cppi_desc_pool_create_name() 90 return pool; in k3_cppi_desc_pool_create_name() 93 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_create_name() 98 devm_kfree(pool->dev, pool); in k3_cppi_desc_pool_create_name() [all …]
|
/dports/net/openldap24-server/openldap-2.4.59/libraries/libldap_r/ |
H A D | tpool.c | 241 pool->ltp_work_list = &pool->ltp_pending_list; in ldap_pvt_thread_pool_init() 255 *tpool = pool; in ldap_pvt_thread_pool_init() 273 pool = *tpool; in ldap_pvt_thread_pool_submit() 280 if (pool->ltp_pending_count >= pool->ltp_max_pending) in ldap_pvt_thread_pool_submit() 300 pool->ltp_open_count < pool->ltp_active_count+pool->ltp_pending_count) in ldap_pvt_thread_pool_submit() 379 pool = *tpool; in ldap_pvt_thread_pool_retract() 484 count = pool->ltp_pending_count + pool->ltp_active_count; in ldap_pvt_thread_pool_query() 580 pool->ltp_max_pending = -pool->ltp_max_pending; in ldap_pvt_thread_pool_destroy() 790 pool->ltp_open_count = -pool->ltp_open_count; in handle_pause() 862 pool->ltp_open_count = -pool->ltp_open_count; in ldap_pvt_thread_pool_resume() [all …]
|
/dports/net/openldap24-client/openldap-2.4.59/libraries/libldap_r/ |
H A D | tpool.c | 241 pool->ltp_work_list = &pool->ltp_pending_list; in ldap_pvt_thread_pool_init() 255 *tpool = pool; in ldap_pvt_thread_pool_init() 273 pool = *tpool; in ldap_pvt_thread_pool_submit() 280 if (pool->ltp_pending_count >= pool->ltp_max_pending) in ldap_pvt_thread_pool_submit() 300 pool->ltp_open_count < pool->ltp_active_count+pool->ltp_pending_count) in ldap_pvt_thread_pool_submit() 379 pool = *tpool; in ldap_pvt_thread_pool_retract() 484 count = pool->ltp_pending_count + pool->ltp_active_count; in ldap_pvt_thread_pool_query() 580 pool->ltp_max_pending = -pool->ltp_max_pending; in ldap_pvt_thread_pool_destroy() 790 pool->ltp_open_count = -pool->ltp_open_count; in handle_pause() 862 pool->ltp_open_count = -pool->ltp_open_count; in ldap_pvt_thread_pool_resume() [all …]
|
/dports/net/p5-File-RsyncP/File-RsyncP-0.76/FileList/ |
H A D | pool_alloc.c | 77 if (!pool) in pool_destroy() 101 if (!pool) in pool_alloc() 106 else if (pool->quantum > 1 && len % pool->quantum) in pool_alloc() 107 len += pool->quantum - len % pool->quantum; in pool_alloc() 112 if (!pool->live || len > pool->live->free) in pool_alloc() 122 pool->live->next = pool->free; in pool_alloc() 123 pool->free = pool->live; in pool_alloc() 186 else if (pool->quantum > 1 && len % pool->quantum) in pool_free() 187 len += pool->quantum - len % pool->quantum; in pool_free() 191 pool->live->next = pool->free; in pool_free() [all …]
|
/dports/dns/bind9-devel/bind9-e112afa15668bd3b1baed59df2d21e01b46da15e/lib/isc/ |
H A D | pool.c | 31 void **pool; member 42 pool = isc_mem_get(mctx, sizeof(*pool)); in alloc_pool() 50 memset(pool->pool, 0, count * sizeof(void *)); in alloc_pool() 78 result = init(&pool->pool[i], initarg); in isc_pool_create() 91 return (pool->pool[isc_random_uniform(pool->count)]); in isc_pool_get() 137 newpool->pool[i] = pool->pool[i]; in isc_pool_expand() 138 pool->pool[i] = NULL; in isc_pool_expand() 155 if (pool->free != NULL && pool->pool[i] != NULL) { in isc_pool_destroy() 156 pool->free(&pool->pool[i]); in isc_pool_destroy() 159 isc_mem_put(pool->mctx, pool->pool, pool->count * sizeof(void *)); in isc_pool_destroy() [all …]
|
/dports/dns/bind916/bind-9.16.27/lib/isc/ |
H A D | pool.c | 33 void **pool; member 44 pool = isc_mem_get(mctx, sizeof(*pool)); in alloc_pool() 52 memset(pool->pool, 0, count * sizeof(void *)); in alloc_pool() 80 result = init(&pool->pool[i], initarg); in isc_pool_create() 93 return (pool->pool[isc_random_uniform(pool->count)]); in isc_pool_get() 139 newpool->pool[i] = pool->pool[i]; in isc_pool_expand() 140 pool->pool[i] = NULL; in isc_pool_expand() 157 if (pool->free != NULL && pool->pool[i] != NULL) { in isc_pool_destroy() 158 pool->free(&pool->pool[i]); in isc_pool_destroy() 161 isc_mem_put(pool->mctx, pool->pool, pool->count * sizeof(void *)); in isc_pool_destroy() [all …]
|
/dports/dns/samba-nsupdate/bind-9.16.5/lib/isc/ |
H A D | pool.c | 31 void **pool; member 42 pool = isc_mem_get(mctx, sizeof(*pool)); in alloc_pool() 50 memset(pool->pool, 0, count * sizeof(void *)); in alloc_pool() 78 result = init(&pool->pool[i], initarg); in isc_pool_create() 91 return (pool->pool[isc_random_uniform(pool->count)]); in isc_pool_get() 137 newpool->pool[i] = pool->pool[i]; in isc_pool_expand() 138 pool->pool[i] = NULL; in isc_pool_expand() 155 if (pool->free != NULL && pool->pool[i] != NULL) { in isc_pool_destroy() 156 pool->free(&pool->pool[i]); in isc_pool_destroy() 159 isc_mem_put(pool->mctx, pool->pool, pool->count * sizeof(void *)); in isc_pool_destroy() [all …]
|
/dports/dns/bind-tools/bind-9.16.27/lib/isc/ |
H A D | pool.c | 33 void **pool; member 44 pool = isc_mem_get(mctx, sizeof(*pool)); in alloc_pool() 52 memset(pool->pool, 0, count * sizeof(void *)); in alloc_pool() 80 result = init(&pool->pool[i], initarg); in isc_pool_create() 93 return (pool->pool[isc_random_uniform(pool->count)]); in isc_pool_get() 139 newpool->pool[i] = pool->pool[i]; in isc_pool_expand() 140 pool->pool[i] = NULL; in isc_pool_expand() 157 if (pool->free != NULL && pool->pool[i] != NULL) { in isc_pool_destroy() 158 pool->free(&pool->pool[i]); in isc_pool_destroy() 161 isc_mem_put(pool->mctx, pool->pool, pool->count * sizeof(void *)); in isc_pool_destroy() [all …]
|
/dports/www/libmicrohttpd/libmicrohttpd-0.9.74/src/lib/ |
H A D | memorypool.c | 187 return (pool->end - pool->pos); in MHD_pool_get_free() 213 if ( (pool->pos + asize > pool->end) || in MHD_pool_allocate() 214 (pool->pos + asize < pool->pos)) in MHD_pool_allocate() 218 ret = &pool->memory[pool->end - asize]; in MHD_pool_allocate() 223 ret = &pool->memory[pool->pos]; in MHD_pool_allocate() 268 if (pool->pos + asize - old_size <= pool->end) in MHD_pool_reallocate() 273 memset (&pool->memory[pool->pos], in MHD_pool_reallocate() 283 if ((pool->pos + asize >= pool->pos) && in MHD_pool_reallocate() 284 (pool->pos + asize <= pool->end)) in MHD_pool_reallocate() 287 ret = &pool->memory[pool->pos]; in MHD_pool_reallocate() [all …]
|