/third_party/node/deps/openssl/openssl/crypto/async/ |
H A D | async.c | 106 async_pool *pool; in async_get_pool_job() local 108 pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); in async_get_pool_job() 109 if (pool == NULL) { in async_get_pool_job() 116 pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); in async_get_pool_job() 119 job = sk_ASYNC_JOB_pop(pool->jobs); in async_get_pool_job() 122 if ((pool->max_size != 0) && (pool->curr_size >= pool->max_size)) in async_get_pool_job() 131 pool->curr_size++; in async_get_pool_job() 138 async_pool *pool; in async_release_job() local 320 async_empty_pool(async_pool *pool) async_empty_pool() argument 354 async_pool *pool; ASYNC_init_thread() local 415 async_pool *pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); async_delete_thread_state() local [all...] |
/third_party/openssl/crypto/async/ |
H A D | async.c | 106 async_pool *pool; in async_get_pool_job() local 108 pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); in async_get_pool_job() 109 if (pool == NULL) { in async_get_pool_job() 116 pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); in async_get_pool_job() 119 job = sk_ASYNC_JOB_pop(pool->jobs); in async_get_pool_job() 122 if ((pool->max_size != 0) && (pool->curr_size >= pool->max_size)) in async_get_pool_job() 131 pool->curr_size++; in async_get_pool_job() 138 async_pool *pool; in async_release_job() local 320 async_empty_pool(async_pool *pool) async_empty_pool() argument 354 async_pool *pool; ASYNC_init_thread() local 415 async_pool *pool = (async_pool *)CRYPTO_THREAD_get_local(&poolkey); async_delete_thread_state() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_resource.c | 1414 static void dcn314_resource_destruct(struct dcn314_resource_pool *pool) in dcn314_resource_destruct() argument 1418 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn314_resource_destruct() 1419 if (pool->base.stream_enc[i] != NULL) { in dcn314_resource_destruct() 1420 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn314_resource_destruct() 1421 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn314_resource_destruct() 1422 pool->base.stream_enc[i]->vpg = NULL; in dcn314_resource_destruct() 1424 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct() 1425 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct() 1426 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct() 1428 kfree(DCN10STRENC_FROM_STRENC(pool in dcn314_resource_destruct() 1582 dcn31_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_dwbc_create() argument 1607 dcn31_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_mmhubbub_create() argument 1647 dcn314_destroy_resource_pool(struct resource_pool **pool) dcn314_destroy_resource_pool() argument 1837 dcn314_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn314_resource_pool *pool) dcn314_resource_construct() argument 2162 struct dcn314_resource_pool *pool = dcn314_create_resource_pool() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | pool.c | 5 #include "pool.h" 10 struct xsk_buff_pool *pool) in mlx5e_xsk_map_pool() 14 return xsk_pool_dma_map(pool, dev, DMA_ATTR_SKIP_CPU_SYNC); in mlx5e_xsk_map_pool() 18 struct xsk_buff_pool *pool) in mlx5e_xsk_unmap_pool() 20 return xsk_pool_dma_unmap(pool, DMA_ATTR_SKIP_CPU_SYNC); in mlx5e_xsk_unmap_pool() 46 static int mlx5e_xsk_add_pool(struct mlx5e_xsk *xsk, struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_add_pool() argument 54 xsk->pools[ix] = pool; in mlx5e_xsk_add_pool() 65 static bool mlx5e_xsk_is_pool_sane(struct xsk_buff_pool *pool) in mlx5e_xsk_is_pool_sane() argument 67 return xsk_pool_get_headroom(pool) <= 0xffff && in mlx5e_xsk_is_pool_sane() 68 xsk_pool_get_chunk_size(pool) < in mlx5e_xsk_is_pool_sane() 9 mlx5e_xsk_map_pool(struct mlx5e_priv *priv, struct xsk_buff_pool *pool) mlx5e_xsk_map_pool() argument 17 mlx5e_xsk_unmap_pool(struct mlx5e_priv *priv, struct xsk_buff_pool *pool) mlx5e_xsk_unmap_pool() argument 71 mlx5e_build_xsk_param(struct xsk_buff_pool *pool, struct mlx5e_xsk_param *xsk) mlx5e_build_xsk_param() argument 78 mlx5e_xsk_enable_locked(struct mlx5e_priv *priv, struct xsk_buff_pool *pool, u16 ix) mlx5e_xsk_enable_locked() argument 165 struct xsk_buff_pool *pool = mlx5e_xsk_get_pool(&priv->channels.params, mlx5e_xsk_disable_locked() local 197 mlx5e_xsk_enable_pool(struct mlx5e_priv *priv, struct xsk_buff_pool *pool, u16 ix) mlx5e_xsk_enable_pool() argument 220 mlx5e_xsk_setup_pool(struct net_device *dev, struct xsk_buff_pool *pool, u16 qid) mlx5e_xsk_setup_pool() argument [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/ |
H A D | cvmx-fpa.h | 79 * Structure describing the current state of a FPA pool. 88 /* The number of elements in the pool at creation */ 101 * Return the name of the pool 103 * @pool: Pool to get the name of 106 static inline const char *cvmx_fpa_get_name(uint64_t pool) in cvmx_fpa_get_name() argument 108 return cvmx_fpa_pool_info[pool].name; in cvmx_fpa_get_name() 112 * Return the base of the pool 114 * @pool: Pool to get the base of 117 static inline void *cvmx_fpa_get_base(uint64_t pool) in cvmx_fpa_get_base() argument 119 return cvmx_fpa_pool_info[pool] in cvmx_fpa_get_base() 131 cvmx_fpa_is_member(uint64_t pool, void *ptr) cvmx_fpa_is_member() argument 185 cvmx_fpa_alloc(uint64_t pool) cvmx_fpa_alloc() argument 202 cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) cvmx_fpa_async_alloc() argument 226 cvmx_fpa_free_nosync(void *ptr, uint64_t pool, uint64_t num_cache_lines) cvmx_fpa_free_nosync() argument 248 cvmx_fpa_free(void *ptr, uint64_t pool, uint64_t num_cache_lines) cvmx_fpa_free() argument [all...] |
/third_party/mesa3d/src/panfrost/lib/ |
H A D | pan_pool.h | 43 /* BO flags to use in the pool */ 51 pan_pool_init(struct pan_pool *pool, struct panfrost_device *dev, in pan_pool_init() argument 54 pool->dev = dev; in pan_pool_init() 55 pool->create_flags = create_flags; in pan_pool_init() 56 pool->slab_size = slab_size; in pan_pool_init() 57 pool->label = label; in pan_pool_init() 64 pan_pool_alloc_aligned(struct pan_pool *pool, size_t sz, unsigned alignment); 70 pool_subclass *pool = container_of(p, pool_subclass, base); \ 71 return alloc_func(pool, sz, alignment); \ 75 pan_pool_upload_aligned(struct pan_pool *pool, cons argument 83 pan_pool_upload(struct pan_pool *pool, const void *data, size_t sz) pan_pool_upload() argument 110 pan_pool_alloc_descs(struct pan_pool *pool, const struct pan_desc_alloc_info *descs) pan_pool_alloc_descs() argument [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/ |
H A D | rand_win.c | 47 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 58 entropy_available = ossl_prov_acquire_entropy_from_tsc(pool); in ossl_pool_acquire_entropy() 64 entropy_available = ossl_prov_acquire_entropy_from_cpu(pool); in ossl_pool_acquire_entropy() 70 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 71 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 78 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy() 79 entropy_available = ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 84 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 85 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 97 ossl_rand_pool_add_end(pool, byte in ossl_pool_acquire_entropy() 127 ossl_pool_add_nonce_data(RAND_POOL *pool) ossl_pool_add_nonce_data() argument 150 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_win.c | 47 size_t ossl_pool_acquire_entropy(RAND_POOL *pool) in ossl_pool_acquire_entropy() argument 58 entropy_available = ossl_prov_acquire_entropy_from_tsc(pool); in ossl_pool_acquire_entropy() 64 entropy_available = ossl_prov_acquire_entropy_from_cpu(pool); in ossl_pool_acquire_entropy() 70 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 71 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 78 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy() 79 entropy_available = ossl_rand_pool_entropy_available(pool); in ossl_pool_acquire_entropy() 84 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 85 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 97 ossl_rand_pool_add_end(pool, byte in ossl_pool_acquire_entropy() 127 ossl_pool_add_nonce_data(RAND_POOL *pool) ossl_pool_add_nonce_data() argument 150 ossl_rand_pool_add_additional_data(RAND_POOL *pool) ossl_rand_pool_add_additional_data() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn321/ |
H A D | dcn321_resource.c | 1327 static void dcn321_resource_destruct(struct dcn321_resource_pool *pool) in dcn321_resource_destruct() argument 1331 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn321_resource_destruct() 1332 if (pool->base.stream_enc[i] != NULL) { in dcn321_resource_destruct() 1333 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn321_resource_destruct() 1334 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn321_resource_destruct() 1335 pool->base.stream_enc[i]->vpg = NULL; in dcn321_resource_destruct() 1337 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct() 1338 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct() 1339 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct() 1341 kfree(DCN10STRENC_FROM_STRENC(pool in dcn321_resource_destruct() 1480 dcn321_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn321_dwbc_create() argument 1509 dcn321_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn321_mmhubbub_create() argument 1563 dcn321_destroy_resource_pool(struct resource_pool **pool) dcn321_destroy_resource_pool() argument 1619 dcn321_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn321_resource_pool *pool) dcn321_resource_construct() argument 2003 struct dcn321_resource_pool *pool = dcn321_create_resource_pool() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ttm/ |
H A D | ttm_pool.c | 63 MODULE_PARM_DESC(page_pool_size, "Number of pages in the WC/UC/DMA pool"); 79 static struct page *ttm_pool_alloc_page(struct ttm_pool *pool, gfp_t gfp_flags, in ttm_pool_alloc_page() argument 95 if (!pool->use_dma_alloc) { in ttm_pool_alloc_page() 96 p = alloc_pages_node(pool->nid, gfp_flags, order); in ttm_pool_alloc_page() 109 vaddr = dma_alloc_attrs(pool->dev, (1ULL << order) * PAGE_SIZE, in ttm_pool_alloc_page() 132 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching, in ttm_pool_free_page() argument 147 if (!pool || !pool->use_dma_alloc) { in ttm_pool_free_page() 157 dma_free_attrs(pool->dev, (1UL << order) * PAGE_SIZE, vaddr, dma->addr, in ttm_pool_free_page() 185 static int ttm_pool_map(struct ttm_pool *pool, unsigne argument 212 ttm_pool_unmap(struct ttm_pool *pool, dma_addr_t dma_addr, unsigned int num_pages) ttm_pool_unmap() argument 258 ttm_pool_type_init(struct ttm_pool_type *pt, struct ttm_pool *pool, enum ttm_caching caching, unsigned int order) ttm_pool_type_init() argument 286 ttm_pool_select_type(struct ttm_pool *pool, enum ttm_caching caching, unsigned int order) ttm_pool_select_type() argument 337 ttm_pool_page_order(struct ttm_pool *pool, struct page *p) ttm_pool_page_order() argument 349 ttm_pool_page_allocated(struct ttm_pool *pool, unsigned int order, struct page *p, dma_addr_t **dma_addr, unsigned long *num_pages, struct page ***pages) ttm_pool_page_allocated() argument 383 ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, enum ttm_caching caching, pgoff_t start_page, pgoff_t end_page) ttm_pool_free_range() argument 419 ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx) ttm_pool_alloc() argument 534 ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) ttm_pool_free() argument 554 ttm_pool_init(struct ttm_pool *pool, struct device *dev, int nid, bool use_dma_alloc, bool use_dma32) ttm_pool_init() argument 583 ttm_pool_fini(struct ttm_pool *pool) ttm_pool_fini() argument 697 ttm_pool_debugfs(struct ttm_pool *pool, struct seq_file *m) ttm_pool_debugfs() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn315/ |
H A D | dcn315_resource.c | 1341 static void dcn315_resource_destruct(struct dcn315_resource_pool *pool) in dcn315_resource_destruct() argument 1345 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn315_resource_destruct() 1346 if (pool->base.stream_enc[i] != NULL) { in dcn315_resource_destruct() 1347 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn315_resource_destruct() 1348 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn315_resource_destruct() 1349 pool->base.stream_enc[i]->vpg = NULL; in dcn315_resource_destruct() 1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct() 1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct() 1353 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct() 1355 kfree(DCN10STRENC_FROM_STRENC(pool in dcn315_resource_destruct() 1507 dcn31_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_dwbc_create() argument 1532 dcn31_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_mmhubbub_create() argument 1572 dcn315_destroy_resource_pool(struct resource_pool **pool) dcn315_destroy_resource_pool() argument 1835 dcn315_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn315_resource_pool *pool) dcn315_resource_construct() argument 2137 struct dcn315_resource_pool *pool = dcn315_create_resource_pool() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn316/ |
H A D | dcn316_resource.c | 1339 static void dcn316_resource_destruct(struct dcn316_resource_pool *pool) in dcn316_resource_destruct() argument 1343 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn316_resource_destruct() 1344 if (pool->base.stream_enc[i] != NULL) { in dcn316_resource_destruct() 1345 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn316_resource_destruct() 1346 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn316_resource_destruct() 1347 pool->base.stream_enc[i]->vpg = NULL; in dcn316_resource_destruct() 1349 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct() 1350 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct() 1351 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct() 1353 kfree(DCN10STRENC_FROM_STRENC(pool in dcn316_resource_destruct() 1505 dcn31_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_dwbc_create() argument 1530 dcn31_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn31_mmhubbub_create() argument 1570 dcn316_destroy_resource_pool(struct resource_pool **pool) dcn316_destroy_resource_pool() argument 1722 dcn316_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn316_resource_pool *pool) dcn316_resource_construct() argument 2024 struct dcn316_resource_pool *pool = dcn316_create_resource_pool() local [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | descriptor_pool_test.py | 74 file_desc1 = self.pool.FindFileByName(name1) 81 file_desc2 = self.pool.FindFileByName(name2) 89 self.pool.FindFileByName('Does not exist') 92 file_desc1 = self.pool.FindFileContainingSymbol( 100 file_desc2 = self.pool.FindFileContainingSymbol( 109 file_desc3 = self.pool.FindFileContainingSymbol( 116 file_desc4 = self.pool.FindFileContainingSymbol( 122 file_desc5 = self.pool.FindFileContainingSymbol( 127 # Tests the generated pool. 136 file_desc6 = self.pool [all...] |
/third_party/mesa3d/src/asahi/lib/ |
H A D | pool.h | 34 /* Represents a pool of memory that can only grow, used to allocate objects 35 * with the same lifetime as the pool itself. In OpenGL, a pool is owned by the 37 * command pool */ 43 /* BOs allocated by this pool */ 52 /* BO flags to use in the pool */ 57 agx_pool_init(struct agx_pool *pool, struct agx_device *dev, 61 agx_pool_cleanup(struct agx_pool *pool); 64 agx_pool_num_bos(struct agx_pool *pool) in agx_pool_num_bos() argument 66 return util_dynarray_num_elements(&pool in agx_pool_num_bos() 106 agx_pool_alloc_descs(struct agx_pool *pool, const struct agx_desc_alloc_info *descs) agx_pool_alloc_descs() argument [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | iommu-common.c | 49 * the top 1/4 of the table will be set aside for pool allocations 85 start += iommu->poolsize; /* start for next pool */ in iommu_tbl_pool_init() 106 struct iommu_pool *pool; in iommu_tbl_range_alloc() local 126 pool = &(iommu->large_pool); in iommu_tbl_range_alloc() 131 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc() 133 spin_lock_irqsave(&pool->lock, flags); in iommu_tbl_range_alloc() 137 (*handle >= pool->start) && (*handle < pool->end)) in iommu_tbl_range_alloc() 140 start = pool->hint; in iommu_tbl_range_alloc() 142 limit = pool in iommu_tbl_range_alloc() 249 struct iommu_pool *pool; iommu_tbl_range_free() local [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | iommu-common.c | 49 * the top 1/4 of the table will be set aside for pool allocations 85 start += iommu->poolsize; /* start for next pool */ in iommu_tbl_pool_init() 106 struct iommu_pool *pool; in iommu_tbl_range_alloc() local 126 pool = &(iommu->large_pool); in iommu_tbl_range_alloc() 131 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc() 133 spin_lock_irqsave(&pool->lock, flags); in iommu_tbl_range_alloc() 137 (*handle >= pool->start) && (*handle < pool->end)) in iommu_tbl_range_alloc() 140 start = pool->hint; in iommu_tbl_range_alloc() 142 limit = pool in iommu_tbl_range_alloc() 249 struct iommu_pool *pool; iommu_tbl_range_free() local [all...] |
/kernel/liteos_m/kernel/src/mm/ |
H A D | los_membox.c | 92 STATIC VOID OsMemBoxAdd(VOID *pool)
in OsMemBoxAdd() argument 103 g_memBoxHead = pool;
in OsMemBoxAdd() 105 curPool->nextMemBox = pool;
in OsMemBoxAdd() 108 ((LOS_MEMBOX_INFO *)pool)->nextMemBox = NULL;
in OsMemBoxAdd() 112 UINT32 LOS_MemboxInit(VOID *pool, UINT32 poolSize, UINT32 blkSize)
in LOS_MemboxInit() argument 114 LOS_MEMBOX_INFO *boxInfo = (LOS_MEMBOX_INFO *)pool;
in LOS_MemboxInit() 119 if (pool == NULL) {
in LOS_MemboxInit() 152 OsMemBoxAdd(pool);
in LOS_MemboxInit() 160 VOID *LOS_MemboxAlloc(VOID *pool)
in LOS_MemboxAlloc() argument 162 LOS_MEMBOX_INFO *boxInfo = (LOS_MEMBOX_INFO *)pool;
in LOS_MemboxAlloc() 184 LOS_MemboxFree(VOID *pool, VOID *box) LOS_MemboxFree() argument 211 LOS_MemboxClr(VOID *pool, VOID *box) LOS_MemboxClr() argument 223 LOS_ShowBox(VOID *pool) LOS_ShowBox() argument 265 OsMemboxExcInfoGetSub(const LOS_MEMBOX_INFO *pool, MemInfoCB *memExcInfo) OsMemboxExcInfoGetSub() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.h | 33 #define MVNETA_BM_XBAR_POOL_REG(pool) \ 34 (((pool) < 2) ? MVNETA_BM_XBAR_01_REG : MVNETA_BM_XBAR_23_REG) 35 #define MVNETA_BM_TARGET_ID_OFFS(pool) (((pool) & 1) ? 16 : 0) 36 #define MVNETA_BM_TARGET_ID_MASK(pool) \ 37 (0xf << MVNETA_BM_TARGET_ID_OFFS(pool)) 38 #define MVNETA_BM_TARGET_ID_VAL(pool, id) \ 39 ((id) << MVNETA_BM_TARGET_ID_OFFS(pool)) 40 #define MVNETA_BM_XBAR_ATTR_OFFS(pool) (((pool) [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.h | 33 #define MVNETA_BM_XBAR_POOL_REG(pool) \ 34 (((pool) < 2) ? MVNETA_BM_XBAR_01_REG : MVNETA_BM_XBAR_23_REG) 35 #define MVNETA_BM_TARGET_ID_OFFS(pool) (((pool) & 1) ? 16 : 0) 36 #define MVNETA_BM_TARGET_ID_MASK(pool) \ 37 (0xf << MVNETA_BM_TARGET_ID_OFFS(pool)) 38 #define MVNETA_BM_TARGET_ID_VAL(pool, id) \ 39 ((id) << MVNETA_BM_TARGET_ID_OFFS(pool)) 40 #define MVNETA_BM_XBAR_ATTR_OFFS(pool) (((pool) [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/octeon/ |
H A D | cvmx-fpa.h | 79 * Structure describing the current state of a FPA pool. 88 /* The number of elements in the pool at creation */ 101 * Return the name of the pool 103 * @pool: Pool to get the name of 106 static inline const char *cvmx_fpa_get_name(uint64_t pool) in cvmx_fpa_get_name() argument 108 return cvmx_fpa_pool_info[pool].name; in cvmx_fpa_get_name() 112 * Return the base of the pool 114 * @pool: Pool to get the base of 117 static inline void *cvmx_fpa_get_base(uint64_t pool) in cvmx_fpa_get_base() argument 119 return cvmx_fpa_pool_info[pool] in cvmx_fpa_get_base() 131 cvmx_fpa_is_member(uint64_t pool, void *ptr) cvmx_fpa_is_member() argument 185 cvmx_fpa_alloc(uint64_t pool) cvmx_fpa_alloc() argument 202 cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) cvmx_fpa_async_alloc() argument 226 cvmx_fpa_free_nosync(void *ptr, uint64_t pool, uint64_t num_cache_lines) cvmx_fpa_free_nosync() argument 248 cvmx_fpa_free(void *ptr, uint64_t pool, uint64_t num_cache_lines) cvmx_fpa_free() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | pool_test.cpp | 18 #include "marl/pool.h" 22 marl::UnboundedPool<int> pool; in TEST_P() local 26 marl::BoundedPool<int, 10> pool; in TEST_P() local 40 marl::UnboundedPool<int> pool; in TEST_P() local 42 pool.borrow(); in TEST_P() 47 marl::UnboundedPool<int> pool; in TEST_P() local 52 pool.borrow(); in TEST_P() 60 marl::BoundedPool<int, 100> pool; in TEST_P() local 62 pool.borrow(); in TEST_P() 67 marl::BoundedPool<int, 10> pool; in TEST_P() local 95 marl::UnboundedPool<CtorDtorCounter, marl::PoolPolicy::Reconstruct> pool; TEST_P() local 116 marl::BoundedPool<CtorDtorCounter, 10, marl::PoolPolicy::Reconstruct> pool; TEST_P() local 138 marl::UnboundedPool<CtorDtorCounter, marl::PoolPolicy::Preserve> pool; TEST_P() local 162 marl::BoundedPool<CtorDtorCounter, 10, marl::PoolPolicy::Preserve> pool; TEST_P() local 189 marl::BoundedPool<StructWithAlignment, 100> pool; TEST_P() local 199 marl::UnboundedPool<StructWithAlignment> pool; TEST_P() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
H A D | ttm_page_alloc.c | 28 /* simple list based uncached page pool 61 * @lock: Protects the shared pool from concurrnet access. Must be used with 62 * irqsave/irqrestore variants because pool allocator maybe called from 67 * @npages: Number of pages in pool. 82 * Limits for the pool. They are handled without locks because only place where 98 * Manager is read only object for pool code so it doesn't need locking. 100 * @free_interval: minimum number of jiffies between freeing pages from pool. 101 * @page_alloc_inited: reference counting for pool allocation. 102 * @work: Work that is used to shrink the pool. Work is only run when there is 106 * @pools: All pool object 266 ttm_pool_update_free_locked(struct ttm_page_pool *pool, unsigned freed_pages) ttm_pool_update_free_locked() argument 283 ttm_page_pool_free(struct ttm_page_pool *pool, unsigned nr_free, bool use_static) ttm_page_pool_free() argument 383 struct ttm_page_pool *pool; ttm_pool_shrink_scan() local 419 struct ttm_page_pool *pool; ttm_pool_shrink_count() local 571 ttm_page_pool_fill_locked(struct ttm_page_pool *pool, int ttm_flags, enum ttm_caching_state cstate, unsigned count, unsigned long *irq_flags) ttm_page_pool_fill_locked() argument 629 ttm_page_pool_get_pages(struct ttm_page_pool *pool, struct list_head *pages, int ttm_flags, enum ttm_caching_state cstate, unsigned count, unsigned order) ttm_page_pool_get_pages() argument 711 struct ttm_page_pool *pool = ttm_get_pool(flags, false, cstate); ttm_put_pages() local 829 struct ttm_page_pool *pool = ttm_get_pool(flags, false, cstate); ttm_get_pages() local 942 ttm_page_pool_init_locked(struct ttm_page_pool *pool, gfp_t flags, char *name, unsigned int order) ttm_page_pool_init_locked() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn301/ |
H A D | dcn301_resource.c | 92 #define TO_DCN301_RES_POOL(pool)\ 93 container_of(pool, struct dcn301_resource_pool, base) 1033 static void dcn301_destruct(struct dcn301_resource_pool *pool) in dcn301_destruct() argument 1037 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn301_destruct() 1038 if (pool->base.stream_enc[i] != NULL) { in dcn301_destruct() 1039 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn301_destruct() 1040 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn301_destruct() 1041 pool->base.stream_enc[i]->vpg = NULL; in dcn301_destruct() 1043 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct() 1044 kfree(DCN30_AFMT_FROM_AFMT(pool in dcn301_destruct() 1172 dcn301_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn301_dwbc_create() argument 1197 dcn301_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn301_mmhubbub_create() argument 1238 dcn301_destroy_resource_pool(struct resource_pool **pool) dcn301_destroy_resource_pool() argument 1286 init_soc_bounding_box(struct dc *dc, struct dcn301_resource_pool *pool) init_soc_bounding_box() argument 1395 dcn301_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn301_resource_pool *pool) dcn301_resource_construct() argument 1712 struct dcn301_resource_pool *pool = dcn301_create_resource_pool() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_resource.c | 906 static void dcn201_resource_destruct(struct dcn201_resource_pool *pool) in dcn201_resource_destruct() argument 910 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn201_resource_destruct() 911 if (pool->base.stream_enc[i] != NULL) { in dcn201_resource_destruct() 912 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn201_resource_destruct() 913 pool->base.stream_enc[i] = NULL; in dcn201_resource_destruct() 918 if (pool->base.mpc != NULL) { in dcn201_resource_destruct() 919 kfree(TO_DCN201_MPC(pool->base.mpc)); in dcn201_resource_destruct() 920 pool->base.mpc = NULL; in dcn201_resource_destruct() 923 if (pool->base.hubbub != NULL) { in dcn201_resource_destruct() 924 kfree(pool in dcn201_resource_destruct() 995 dcn201_acquire_free_pipe_for_layer( const struct dc_state *cur_ctx, struct dc_state *new_ctx, const struct resource_pool *pool, const struct pipe_ctx *opp_head_pipe) dcn201_acquire_free_pipe_for_layer() argument 1042 dcn201_destroy_resource_pool(struct resource_pool **pool) dcn201_destroy_resource_pool() argument 1078 dcn201_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn201_resource_pool *pool) dcn201_resource_construct() argument 1295 struct dcn201_resource_pool *pool = dcn201_create_resource_pool() local [all...] |
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
H A D | pan_mempool.h | 37 /* BOs allocated by this pool */ 46 /* Mode of the pool. BO management is in the pool for owned mode, but 52 to_panfrost_pool(struct pan_pool *pool) in to_panfrost_pool() argument 54 return container_of(pool, struct panfrost_pool, base); in to_panfrost_pool() 57 /* Reference to pool allocated memory for an unowned pool */ 67 /* Take a reference to an allocation pool. Call directly after allocating from 68 * an unowned pool for correct operation. */ 71 panfrost_pool_take_ref(struct panfrost_pool *pool, mali_pt argument 92 panfrost_pool_num_bos(struct panfrost_pool *pool) panfrost_pool_num_bos() argument [all...] |