/third_party/mesa3d/src/intel/vulkan/tests/ |
H A D | block_pool_grow_first.c | 35 struct anv_block_pool pool; in main() local 37 /* Create a pool with initial size smaller than the block allocated, so in main() 45 anv_block_pool_init(&pool, &device, "test", 4096, initial_size); in main() 46 ASSERT(pool.size == initial_size); in main() 49 int32_t offset = anv_block_pool_alloc(&pool, block_size, &padding); in main() 52 ASSERT(pool.size > initial_size); in main() 53 ASSERT(pool.size >= initial_size + block_size); in main() 62 void *map = anv_block_pool_map(&pool, offset, block_size); in main() 65 anv_block_pool_finish(&pool); in main()
|
H A D | block_pool_no_free.c | 36 struct anv_block_pool *pool; member 50 block = anv_block_pool_alloc(job->pool, block_size, NULL); in alloc_blocks() 51 data = anv_block_pool_map(job->pool, block, block_size); in alloc_blocks() 56 block = anv_block_pool_alloc_back(job->pool, block_size); in alloc_blocks() 57 data = anv_block_pool_map(job->pool, block, block_size); in alloc_blocks() 65 data = anv_block_pool_map(job->pool, block, block_size); in alloc_blocks() 69 data = anv_block_pool_map(job->pool, block, block_size); in alloc_blocks() 119 struct anv_block_pool pool; in run_test() local 123 anv_block_pool_init(&pool, &device, "test", 4096, 4096); in run_test() 126 jobs[i].pool in run_test() [all...] |
/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_mempool.h | 53 /* Before allocating a new BO, check if the BO pool has free BOs. 58 /* BOs allocated by this pool */ 70 to_panvk_pool(struct pan_pool *pool) in to_panvk_pool() argument 72 return container_of(pool, struct panvk_pool, base); in to_panvk_pool() 76 panvk_pool_init(struct panvk_pool *pool, struct panfrost_device *dev, 81 panvk_pool_reset(struct panvk_pool *pool); 84 panvk_pool_cleanup(struct panvk_pool *pool); 87 panvk_pool_num_bos(struct panvk_pool *pool) in panvk_pool_num_bos() argument 89 return util_dynarray_num_elements(&pool->bos, struct panfrost_bo *); in panvk_pool_num_bos() 93 panvk_pool_get_bo_handles(struct panvk_pool *pool, uint32_ [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_xsk.c | 60 struct xsk_buff_pool *pool = r_vec->xsk_pool; in nfp_net_xsk_rx_ring_fill_freelist() local 67 xdp = xsk_buff_alloc(pool); in nfp_net_xsk_rx_ring_fill_freelist() 100 struct xsk_buff_pool *pool) in nfp_net_xsk_pool_unmap() 102 return xsk_pool_dma_unmap(pool, 0); in nfp_net_xsk_pool_unmap() 105 static int nfp_net_xsk_pool_map(struct device *dev, struct xsk_buff_pool *pool) in nfp_net_xsk_pool_map() argument 107 return xsk_pool_dma_map(pool, dev, 0); in nfp_net_xsk_pool_map() 111 struct xsk_buff_pool *pool, u16 queue_id) in nfp_net_xsk_setup_pool() 130 if (pool) { in nfp_net_xsk_setup_pool() 131 err = nfp_net_xsk_pool_map(nn->dp.dev, pool); in nfp_net_xsk_setup_pool() 144 dp->xsk_pools[queue_id] = pool; in nfp_net_xsk_setup_pool() 99 nfp_net_xsk_pool_unmap(struct device *dev, struct xsk_buff_pool *pool) nfp_net_xsk_pool_unmap() argument 110 nfp_net_xsk_setup_pool(struct net_device *netdev, struct xsk_buff_pool *pool, u16 queue_id) nfp_net_xsk_setup_pool() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_resource.c | 1201 static void dcn30_resource_destruct(struct dcn30_resource_pool *pool) in dcn30_resource_destruct() argument 1205 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn30_resource_destruct() 1206 if (pool->base.stream_enc[i] != NULL) { in dcn30_resource_destruct() 1207 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn30_resource_destruct() 1208 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn30_resource_destruct() 1209 pool->base.stream_enc[i]->vpg = NULL; in dcn30_resource_destruct() 1211 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct() 1212 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct() 1213 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct() 1215 kfree(DCN10STRENC_FROM_STRENC(pool in dcn30_resource_destruct() 1345 dcn30_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn30_dwbc_create() argument 1370 dcn30_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn30_mmhubbub_create() argument 1416 dcn30_destroy_resource_pool(struct resource_pool **pool) dcn30_destroy_resource_pool() argument 1640 dcn30_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_acquire_post_bldn_3dlut() argument 1676 dcn30_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_release_post_bldn_3dlut() argument 1711 init_soc_bounding_box(struct dc *dc, struct dcn30_resource_pool *pool) init_soc_bounding_box() argument 1858 const struct resource_pool *pool = dc->res_pool; dcn30_split_stream_for_mpc_or_odm() local 2618 dcn30_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn30_resource_pool *pool) dcn30_resource_construct() argument 2909 struct dcn30_resource_pool *pool = dcn30_create_resource_pool() local [all...] |
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_descriptor_set.c | 32 * from the descriptor pool bo. 48 return set->pool->bo->map + in descriptor_bo_map() 107 * associated with that descriptor (suballocation of the descriptor pool bo) 144 .bo = set->pool->bo, in v3dv_descriptor_map_get_descriptor_bo() 408 struct v3dv_descriptor_pool *pool; in v3dv_CreateDescriptorPool() local 409 /* size is for the vulkan object descriptor pool. The final size would in v3dv_CreateDescriptorPool() 479 pool = vk_object_zalloc(&device->vk, pAllocator, size, in v3dv_CreateDescriptorPool() 482 if (!pool) in v3dv_CreateDescriptorPool() 486 pool->host_memory_base = (uint8_t*)pool in v3dv_CreateDescriptorPool() 519 descriptor_set_destroy(struct v3dv_device *device, struct v3dv_descriptor_pool *pool, struct v3dv_descriptor_set *set, bool free_bo) descriptor_set_destroy() argument 791 out_of_pool_memory(const struct v3dv_device *device, const struct v3dv_descriptor_pool *pool) out_of_pool_memory() argument 804 descriptor_set_create(struct v3dv_device *device, struct v3dv_descriptor_pool *pool, struct v3dv_descriptor_set_layout *layout, struct v3dv_descriptor_set **out_set) descriptor_set_create() argument [all...] |
/third_party/mesa3d/src/microsoft/vulkan/ |
H A D | dzn_descriptor_set.c | 1091 mtx_lock(&set->pool->defragment_lock); in dzn_descriptor_set_write_sampler_desc() 1092 dzn_descriptor_heap_write_sampler_desc(&set->pool->heaps[type], in dzn_descriptor_set_write_sampler_desc() 1095 mtx_unlock(&set->pool->defragment_lock); in dzn_descriptor_set_write_sampler_desc() 1170 mtx_lock(&set->pool->defragment_lock); in dzn_descriptor_set_write_image_view_desc() 1171 dzn_descriptor_heap_write_image_view_desc(&set->pool->heaps[type], in dzn_descriptor_set_write_image_view_desc() 1177 dzn_descriptor_heap_write_image_view_desc(&set->pool->heaps[type], in dzn_descriptor_set_write_image_view_desc() 1182 mtx_unlock(&set->pool->defragment_lock); in dzn_descriptor_set_write_image_view_desc() 1212 mtx_lock(&set->pool->defragment_lock); in dzn_descriptor_set_write_buffer_view_desc() 1213 dzn_descriptor_heap_write_buffer_view_desc(&set->pool->heaps[type], in dzn_descriptor_set_write_buffer_view_desc() 1219 dzn_descriptor_heap_write_buffer_view_desc(&set->pool in dzn_descriptor_set_write_buffer_view_desc() 1280 dzn_descriptor_set_init(struct dzn_descriptor_set *set, struct dzn_device *device, struct dzn_descriptor_pool *pool, struct dzn_descriptor_set_layout *layout) dzn_descriptor_set_init() argument 1329 dzn_descriptor_pool_destroy(struct dzn_descriptor_pool *pool, const VkAllocationCallbacks *pAllocator) dzn_descriptor_pool_destroy() argument 1416 dzn_descriptor_pool_defragment_heap(struct dzn_descriptor_pool *pool, D3D12_DESCRIPTOR_HEAP_TYPE type) dzn_descriptor_pool_defragment_heap() argument 1486 dzn_descriptor_heap_pool_finish(struct dzn_descriptor_heap_pool *pool) dzn_descriptor_heap_pool_finish() argument 1497 dzn_descriptor_heap_pool_init(struct dzn_descriptor_heap_pool *pool, struct dzn_device *device, D3D12_DESCRIPTOR_HEAP_TYPE type, bool shader_visible, const VkAllocationCallbacks *alloc) dzn_descriptor_heap_pool_init() argument 1517 dzn_descriptor_heap_pool_alloc_slots(struct dzn_descriptor_heap_pool *pool, struct dzn_device *device, uint32_t desc_count, struct dzn_descriptor_heap **heap, uint32_t *first_slot) dzn_descriptor_heap_pool_alloc_slots() argument 1582 dzn_descriptor_heap_pool_reset(struct dzn_descriptor_heap_pool *pool) dzn_descriptor_heap_pool_reset() argument [all...] |
/third_party/protobuf/php/tests/ |
H A D | DescriptorsTest.php | 45 # Test descriptor pool. 50 $pool = DescriptorPool::getGeneratedPool(); variable 52 $desc = $pool->getDescriptorByClassName(get_class(new TestDescriptorsMessage())); 55 $enumDesc = $pool->getEnumDescriptorByClassName(get_class(new TestDescriptorsEnum())); 61 $pool = DescriptorPool::getGeneratedPool(); variable 63 $desc = $pool->getDescriptorByClassName('NotAClass'); 66 $desc = $pool->getDescriptorByClassName(get_class(new TestDescriptorsEnum())); 69 $enumDesc = $pool->getEnumDescriptorByClassName(get_class(new TestDescriptorsMessage())); 79 $pool = DescriptorPool::getGeneratedPool(); variable 82 $desc = $pool 96 $pool = DescriptorPool::getGeneratedPool(); global() variable 114 $pool = DescriptorPool::getGeneratedPool(); global() variable 138 $pool = DescriptorPool::getGeneratedPool(); global() variable 213 $pool = DescriptorPool::getGeneratedPool(); global() variable 224 $pool = DescriptorPool::getGeneratedPool(); global() variable 236 $pool = DescriptorPool::getGeneratedPool(); global() variable [all...] |
/kernel/liteos_a/kernel/base/mem/membox/ |
H A D | los_membox.c | 76 LITE_OS_SEC_TEXT_INIT UINT32 LOS_MemboxInit(VOID *pool, UINT32 poolSize, UINT32 blkSize) in LOS_MemboxInit() argument 78 LOS_MEMBOX_INFO *boxInfo = (LOS_MEMBOX_INFO *)pool; in LOS_MemboxInit() 83 if (pool == NULL) { in LOS_MemboxInit() 120 LITE_OS_SEC_TEXT VOID *LOS_MemboxAlloc(VOID *pool) in LOS_MemboxAlloc() argument 122 LOS_MEMBOX_INFO *boxInfo = (LOS_MEMBOX_INFO *)pool; in LOS_MemboxAlloc() 127 if (pool == NULL) { in LOS_MemboxAlloc() 144 LITE_OS_SEC_TEXT UINT32 LOS_MemboxFree(VOID *pool, VOID *box) in LOS_MemboxFree() argument 146 LOS_MEMBOX_INFO *boxInfo = (LOS_MEMBOX_INFO *)pool; in LOS_MemboxFree() 150 if ((pool == NULL) || (box == NULL)) { in LOS_MemboxFree() 171 LITE_OS_SEC_TEXT_MINOR VOID LOS_MemboxClr(VOID *pool, VOI argument 183 LOS_ShowBox(VOID *pool) LOS_ShowBox() argument [all...] |
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | message_factory.cc | 59 PyMessageFactory* NewMessageFactory(PyTypeObject* type, PyDescriptorPool* pool) { in NewMessageFactory() argument 71 factory->pool = pool; in NewMessageFactory() 72 Py_INCREF(pool); in NewMessageFactory() 80 static char* kwlist[] = {"pool", 0}; in New() 81 PyObject* pool = NULL; in New() local 82 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", kwlist, &pool)) { in New() 86 if (pool == NULL || pool == Py_None) { in New() 92 pool in New() [all...] |
/third_party/protobuf/php/src/GPBMetadata/Google/Protobuf/Internal/ |
H A D | Descriptor.php | 12 $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); variable 17 $pool->addMessage('google.protobuf.internal.FileDescriptorSet', \Google\Protobuf\Internal\FileDescriptorSet::class) 21 $pool->addMessage('google.protobuf.internal.FileDescriptorProto', \Google\Protobuf\Internal\FileDescriptorProto::class) 36 $pool->addMessage('google.protobuf.internal.DescriptorProto', \Google\Protobuf\Internal\DescriptorProto::class) 49 $pool->addMessage('google.protobuf.internal.DescriptorProto.ExtensionRange', \Google\Protobuf\Internal\DescriptorProto\ExtensionRange::class) 55 $pool->addMessage('google.protobuf.internal.DescriptorProto.ReservedRange', \Google\Protobuf\Internal\DescriptorProto\ReservedRange::class) 60 $pool->addMessage('google.protobuf.internal.ExtensionRangeOptions', \Google\Protobuf\Internal\ExtensionRangeOptions::class) 64 $pool->addMessage('google.protobuf.internal.FieldDescriptorProto', \Google\Protobuf\Internal\FieldDescriptorProto::class) 78 $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Type', \Google\Protobuf\Internal\Type::class) 99 $pool [all...] |
/kernel/linux/linux-5.10/drivers/tee/ |
H A D | tee_shm_pool.c | 51 * tee_shm_pool_alloc_res_mem() - Create a shared memory pool from reserved 53 * @priv_info: Information for driver private shared memory pool 54 * @dmabuf_info: Information for dma-buf shared memory pool 72 * Create the pool for driver private shared memory in tee_shm_pool_alloc_res_mem() 82 * Create the pool for dma_buf shared memory in tee_shm_pool_alloc_res_mem() 155 struct tee_shm_pool *pool; in tee_shm_pool_alloc() local 160 pool = kzalloc(sizeof(*pool), GFP_KERNEL); in tee_shm_pool_alloc() 161 if (!pool) in tee_shm_pool_alloc() 164 pool in tee_shm_pool_alloc() 178 tee_shm_pool_free(struct tee_shm_pool *pool) tee_shm_pool_free() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 38 * Single producer - single consumer pool queue 70 struct nine_cmdbuf pool[NINE_CMD_BUFS]; member 85 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->tail]; in nine_queue_wait_flush() 107 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->tail]; in nine_queue_get() 141 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->head]; in nine_queue_flush() 158 cmdbuf = &ctx->pool[ctx->head]; in nine_queue_flush() 180 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->head]; in nine_queue_alloc() 192 cmdbuf = &ctx->pool[ctx->head]; in nine_queue_alloc() 222 struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->head]; in nine_queue_isempty() 238 ctx->pool[ in nine_queue_create() [all...] |
/kernel/linux/linux-5.10/net/xdp/ |
H A D | xsk_queue.h | 126 static inline bool xp_aligned_validate_desc(struct xsk_buff_pool *pool, in xp_aligned_validate_desc() argument 131 chunk = xp_aligned_extract_addr(pool, desc->addr); in xp_aligned_validate_desc() 133 chunk_end = xp_aligned_extract_addr(pool, desc->addr + desc->len - 1); in xp_aligned_validate_desc() 138 if (chunk >= pool->addrs_cnt) in xp_aligned_validate_desc() 146 static inline bool xp_unaligned_validate_desc(struct xsk_buff_pool *pool, in xp_unaligned_validate_desc() argument 154 if (desc->len > pool->chunk_size) in xp_unaligned_validate_desc() 157 if (base_addr >= pool->addrs_cnt || addr >= pool->addrs_cnt || in xp_unaligned_validate_desc() 158 addr + desc->len > pool->addrs_cnt || in xp_unaligned_validate_desc() 159 xp_desc_crosses_non_contig_pg(pool, add in xp_unaligned_validate_desc() 167 xp_validate_desc(struct xsk_buff_pool *pool, struct xdp_desc *desc) xp_validate_desc() argument 174 xskq_cons_is_valid_desc(struct xsk_queue *q, struct xdp_desc *d, struct xsk_buff_pool *pool) xskq_cons_is_valid_desc() argument 185 xskq_cons_read_desc(struct xsk_queue *q, struct xdp_desc *desc, struct xsk_buff_pool *pool) xskq_cons_read_desc() argument 244 xskq_cons_peek_desc(struct xsk_queue *q, struct xdp_desc *desc, struct xsk_buff_pool *pool) xskq_cons_peek_desc() argument [all...] |
H A D | xsk_diag.c | 49 struct xsk_buff_pool *pool = xs->pool; in xsk_diag_put_umem() local 62 du.ifindex = (pool && pool->netdev) ? pool->netdev->ifindex : 0; in xsk_diag_put_umem() 63 du.queue_id = pool ? pool->queue_id : 0; in xsk_diag_put_umem() 70 if (!err && pool && pool->fq) in xsk_diag_put_umem() 71 err = xsk_diag_put_ring(pool in xsk_diag_put_umem() [all...] |
/kernel/linux/linux-5.10/arch/arm/common/ |
H A D | dmabounce.c | 55 struct dmabounce_pool *pool; member 62 struct dma_pool *pool; member 110 struct dmabounce_pool *pool; in alloc_safe_buffer() local 118 pool = &device_info->small; in alloc_safe_buffer() 120 pool = &device_info->large; in alloc_safe_buffer() 122 pool = NULL; in alloc_safe_buffer() 134 buf->pool = pool; in alloc_safe_buffer() 136 if (pool) { in alloc_safe_buffer() 137 buf->safe = dma_pool_alloc(pool in alloc_safe_buffer() 470 dmabounce_init_pool(struct dmabounce_pool *pool, struct device *dev, const char *name, unsigned long size) dmabounce_init_pool() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_resource.c | 359 struct resource_pool *pool, in resource_construct() 363 const struct resource_caps *caps = pool->res_cap; in resource_construct() 371 pool->audio_count = 0; in resource_construct() 380 update_num_audio(&straps, &num_audio, &pool->audio_support); in resource_construct() 392 pool->audios[i] = aud; in resource_construct() 393 pool->audio_count++; in resource_construct() 397 pool->stream_enc_count = 0; in resource_construct() 400 pool->stream_enc[i] = create_funcs->create_stream_encoder(i, ctx); in resource_construct() 401 if (pool->stream_enc[i] == NULL) in resource_construct() 403 pool in resource_construct() 356 resource_construct( unsigned int num_virtual_links, struct dc *dc, struct resource_pool *pool, const struct resource_create_funcs *create_funcs) resource_construct() argument 456 find_matching_clock_source( const struct resource_pool *pool, struct clock_source *clock_source) find_matching_clock_source() argument 470 resource_unreference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_unreference_clock_source() argument 484 resource_reference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_reference_clock_source() argument 498 resource_get_clock_source_reference( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_get_clock_source_reference() argument 1558 resource_find_free_secondary_pipe_legacy( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) resource_find_free_secondary_pipe_legacy() argument 1643 recource_find_free_pipe_not_used_in_cur_res_ctx( const struct resource_context *cur_res_ctx, struct resource_context *new_res_ctx, const struct resource_pool *pool) recource_find_free_pipe_not_used_in_cur_res_ctx() argument 1666 resource_find_free_pipe_used_as_cur_sec_dpp_in_mpcc_combine( const struct resource_context *cur_res_ctx, struct resource_context *new_res_ctx, const struct resource_pool *pool) resource_find_free_pipe_used_as_cur_sec_dpp_in_mpcc_combine() argument 1691 resource_find_any_free_pipe(struct resource_context *new_res_ctx, const struct resource_pool *pool) resource_find_any_free_pipe() argument 1796 acquire_first_split_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_split_pipe() argument 1868 acquire_secondary_dpp_pipes_and_add_plane( struct pipe_ctx *otg_master_pipe, struct dc_plane_state *plane_state, struct dc_state *new_ctx, struct dc_state *cur_ctx, struct resource_pool *pool) acquire_secondary_dpp_pipes_and_add_plane() argument 1913 struct resource_pool *pool = dc->res_pool; dc_add_plane_to_context() local 1956 struct resource_pool *pool = dc->res_pool; dc_remove_plane_from_context() local 2196 update_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct stream_encoder *stream_enc, bool acquired) update_stream_engine_usage() argument 2210 update_hpo_dp_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct hpo_dp_stream_encoder *hpo_dp_stream_enc, bool acquired) update_hpo_dp_stream_engine_usage() argument 2238 find_free_hpo_dp_link_enc(const struct resource_context *res_ctx, const struct resource_pool *pool) find_free_hpo_dp_link_enc() argument 2275 add_hpo_dp_link_enc_to_ctx(struct resource_context *res_ctx, const struct resource_pool *pool, struct pipe_ctx *pipe_ctx, struct dc_stream_state *stream) add_hpo_dp_link_enc_to_ctx() argument 2313 update_audio_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct audio *audio, bool acquired) update_audio_usage() argument 2326 acquire_first_free_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_free_pipe() argument 2362 find_first_free_match_hpo_dp_stream_enc_for_link( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) find_first_free_match_hpo_dp_stream_enc_for_link() argument 2380 find_first_free_audio( struct resource_context *res_ctx, const struct resource_pool *pool, enum engine_id id, enum dce_version dc_version) find_first_free_audio() argument 2590 acquire_resource_from_hw_enabled_state( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_resource_from_hw_enabled_state() argument 2719 const struct resource_pool *pool = dc->res_pool; resource_map_pool_resources() local 3638 dc_resource_find_first_free_pll( struct resource_context *res_ctx, const struct resource_pool *pool) dc_resource_find_first_free_pll() argument 3702 const struct resource_pool *pool = dc->res_pool; resource_map_clock_resources() local 4045 get_temp_hpo_dp_link_enc( const struct resource_context *res_ctx, const struct resource_pool *const pool, const struct dc_link *link) get_temp_hpo_dp_link_enc() argument 4259 const struct resource_pool *pool = dc->res_pool; dc_resource_acquire_secondary_pipe_for_mpc_odm() local [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_descriptor_set.c | 842 * These are implemented using a big pool of memory and a free-list for the 845 * fragmentation in all cases but two: 1) after pool reset, allocating up 846 * until the pool size with no freeing must succeed and 2) allocating and 866 struct anv_descriptor_pool *pool; in anv_CreateDescriptorPool() local 935 const size_t total_size = sizeof(*pool) + pool_size; in anv_CreateDescriptorPool() 937 pool = vk_object_alloc(&device->vk, pAllocator, total_size, in anv_CreateDescriptorPool() 939 if (!pool) in anv_CreateDescriptorPool() 942 pool->size = pool_size; in anv_CreateDescriptorPool() 943 pool->next = 0; in anv_CreateDescriptorPool() 944 pool in anv_CreateDescriptorPool() 1037 anv_descriptor_pool_alloc_set(struct anv_descriptor_pool *pool, uint32_t size, struct anv_descriptor_set **set) anv_descriptor_pool_alloc_set() argument 1069 anv_descriptor_pool_free_set(struct anv_descriptor_pool *pool, struct anv_descriptor_set *set) anv_descriptor_pool_free_set() argument 1090 anv_descriptor_pool_alloc_state(struct anv_descriptor_pool *pool) anv_descriptor_pool_alloc_state() argument 1108 anv_descriptor_pool_free_state(struct anv_descriptor_pool *pool, struct anv_state state) anv_descriptor_pool_free_state() argument 1134 anv_descriptor_set_create(struct anv_device *device, struct anv_descriptor_pool *pool, struct anv_descriptor_set_layout *layout, uint32_t var_desc_count, struct anv_descriptor_set **out_set) anv_descriptor_set_create() argument 1247 anv_descriptor_set_destroy(struct anv_device *device, struct anv_descriptor_pool *pool, struct anv_descriptor_set *set) anv_descriptor_set_destroy() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
H A D | igc_xdp.c | 44 struct xsk_buff_pool *pool, u16 queue_id) in igc_xdp_enable_pool() 58 frame_size = xsk_pool_get_rx_frame_size(pool); in igc_xdp_enable_pool() 68 err = xsk_pool_dma_map(pool, dev, IGC_RX_DMA_ATTR); in igc_xdp_enable_pool() 70 netdev_err(ndev, "Failed to map xsk pool\n"); in igc_xdp_enable_pool() 97 xsk_pool_dma_unmap(pool, IGC_RX_DMA_ATTR); in igc_xdp_enable_pool() 108 struct xsk_buff_pool *pool; in igc_xdp_disable_pool() local 116 pool = xsk_get_pool_from_qid(adapter->netdev, queue_id); in igc_xdp_disable_pool() 117 if (!pool) in igc_xdp_disable_pool() 133 xsk_pool_dma_unmap(pool, IGC_RX_DMA_ATTR); in igc_xdp_disable_pool() 146 int igc_xdp_setup_pool(struct igc_adapter *adapter, struct xsk_buff_pool *pool, in igc_xdp_setup_pool() argument 43 igc_xdp_enable_pool(struct igc_adapter *adapter, struct xsk_buff_pool *pool, u16 queue_id) igc_xdp_enable_pool() argument [all...] |
/third_party/python/Doc/includes/ |
H A D | mp_pool.py | 43 print('Creating pool with %d processes\n' % PROCESSES) 45 with multiprocessing.Pool(PROCESSES) as pool: 53 results = [pool.apply_async(calculate, t) for t in TASKS] 54 imap_it = pool.imap(calculatestar, TASKS) 55 imap_unordered_it = pool.imap_unordered(calculatestar, TASKS) 57 print('Ordered results using pool.apply_async():') 62 print('Ordered results using pool.imap():') 67 print('Unordered results using pool.imap_unordered():') 72 print('Ordered results using pool.map() --- will block till complete:') 73 for x in pool [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/ |
H A D | rxe_pool.h | 23 struct rxe_pool *pool; member 47 /* initialize a pool of objects with given limit on 49 * pool elements will be allocated out of a slab cache 51 void rxe_pool_init(struct rxe_dev *rxe, struct rxe_pool *pool, 54 /* free resources from object pool */ 55 void rxe_pool_cleanup(struct rxe_pool *pool); 57 /* connect already allocated object to pool */ 58 int __rxe_add_to_pool(struct rxe_pool *pool, struct rxe_pool_elem *elem, 60 #define rxe_add_to_pool(pool, obj) __rxe_add_to_pool(pool, [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/ |
H A D | rand_unix.c | 141 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 156 bytes_needed = ossl_rand_pool_bytes_needed(pool, 4 /*entropy_factor*/); in ossl_pool_acquire_entropy() 179 ossl_rand_pool_add(pool, arg, &v, sizeof(v) , 2); in ossl_pool_acquire_entropy() 181 return ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 626 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 629 return ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 643 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 645 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 648 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy() 656 entropy_available = ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 754 ossl_pool_add_nonce_data(RAND_POOL *pool) ossl_pool_add_nonce_data() argument 777 ossl_rand_pool_add_additional_data(RAND_POOL *pool) ossl_rand_pool_add_additional_data() argument [all...] |
/third_party/openssl/providers/implementations/rands/seeding/ |
H A D | rand_unix.c | 141 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 156 bytes_needed = ossl_rand_pool_bytes_needed(pool, 4 /*entropy_factor*/); in ossl_pool_acquire_entropy() 179 ossl_rand_pool_add(pool, arg, &v, sizeof(v) , 2); in ossl_pool_acquire_entropy() 181 return ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 626 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 629 return ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 643 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 645 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 648 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy() 656 entropy_available = ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 754 ossl_pool_add_nonce_data(RAND_POOL *pool) ossl_pool_add_nonce_data() argument 777 ossl_rand_pool_add_additional_data(RAND_POOL *pool) ossl_rand_pool_add_additional_data() argument [all...] |
/kernel/linux/linux-6.6/net/xdp/ |
H A D | xsk_diag.c | 49 struct xsk_buff_pool *pool = xs->pool; in xsk_diag_put_umem() local 62 du.ifindex = (pool && pool->netdev) ? pool->netdev->ifindex : 0; in xsk_diag_put_umem() 63 du.queue_id = pool ? pool->queue_id : 0; in xsk_diag_put_umem() 70 if (!err && pool && pool->fq) in xsk_diag_put_umem() 71 err = xsk_diag_put_ring(pool in xsk_diag_put_umem() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_resource.c | 280 struct resource_pool *pool, in resource_construct() 284 const struct resource_caps *caps = pool->res_cap; in resource_construct() 292 pool->audio_count = 0; in resource_construct() 301 update_num_audio(&straps, &num_audio, &pool->audio_support); in resource_construct() 313 pool->audios[i] = aud; in resource_construct() 314 pool->audio_count++; in resource_construct() 318 pool->stream_enc_count = 0; in resource_construct() 321 pool->stream_enc[i] = create_funcs->create_stream_encoder(i, ctx); in resource_construct() 322 if (pool->stream_enc[i] == NULL) in resource_construct() 324 pool in resource_construct() 277 resource_construct( unsigned int num_virtual_links, struct dc *dc, struct resource_pool *pool, const struct resource_create_funcs *create_funcs) resource_construct() argument 357 find_matching_clock_source( const struct resource_pool *pool, struct clock_source *clock_source) find_matching_clock_source() argument 371 resource_unreference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_unreference_clock_source() argument 385 resource_reference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_reference_clock_source() argument 399 resource_get_clock_source_reference( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_get_clock_source_reference() argument 1256 find_idle_secondary_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) find_idle_secondary_pipe() argument 1351 acquire_free_pipe_for_head( struct dc_state *context, const struct resource_pool *pool, struct pipe_ctx *head_pipe) acquire_free_pipe_for_head() argument 1382 acquire_first_split_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_split_pipe() argument 1425 struct resource_pool *pool = dc->res_pool; dc_add_plane_to_context() local 1503 struct resource_pool *pool = dc->res_pool; dc_remove_plane_from_context() local 1739 update_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct stream_encoder *stream_enc, bool acquired) update_stream_engine_usage() argument 1754 update_audio_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct audio *audio, bool acquired) update_audio_usage() argument 1767 acquire_first_free_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_free_pipe() argument 1797 find_first_free_audio( struct resource_context *res_ctx, const struct resource_pool *pool, enum engine_id id, enum dce_version dc_version) find_first_free_audio() argument 1999 acquire_resource_from_hw_enabled_state( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_resource_from_hw_enabled_state() argument 2076 const struct resource_pool *pool = dc->res_pool; resource_map_pool_resources() local 2651 dc_resource_find_first_free_pll( struct resource_context *res_ctx, const struct resource_pool *pool) dc_resource_find_first_free_pll() argument 2707 const struct resource_pool *pool = dc->res_pool; resource_map_clock_resources() local [all...] |