/kernel/linux/linux-5.10/block/ |
H A D | bounce.c | 63 pr_info("pool size: %d pages\n", POOL_SIZE); in init_emergency_pool() 93 * allocate pages in the DMA region for the ISA pool 104 * as the max address, so check if the pool has already been created. 121 pr_info("isa pool size: %d pages\n", ISA_POOL_SIZE); in init_emergency_isa_pool() 162 static void bounce_end_io(struct bio *bio, mempool_t *pool) in bounce_end_io() argument 176 mempool_free(bvec->bv_page, pool); in bounce_end_io() 197 static void __bounce_end_io_read(struct bio *bio, mempool_t *pool) in __bounce_end_io_read() argument 204 bounce_end_io(bio, pool); in __bounce_end_io_read() 288 mempool_t *pool) in __blk_queue_bounce() 328 to->bv_page = mempool_alloc(pool, in __blk_queue_bounce() 287 __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, mempool_t *pool) __blk_queue_bounce() argument 363 mempool_t *pool; blk_queue_bounce() local [all...] |
/kernel/linux/linux-5.10/drivers/firmware/tegra/ |
H A D | bpmp-tegra186.c | 20 struct gen_pool *pool; member 176 priv->tx.pool = of_gen_pool_get(bpmp->dev->of_node, "shmem", 0); in tegra186_bpmp_init() 177 if (!priv->tx.pool) { in tegra186_bpmp_init() 178 dev_err(bpmp->dev, "TX shmem pool not found\n"); in tegra186_bpmp_init() 182 priv->tx.virt = gen_pool_dma_alloc(priv->tx.pool, 4096, &priv->tx.phys); in tegra186_bpmp_init() 184 dev_err(bpmp->dev, "failed to allocate from TX pool\n"); in tegra186_bpmp_init() 188 priv->rx.pool = of_gen_pool_get(bpmp->dev->of_node, "shmem", 1); in tegra186_bpmp_init() 189 if (!priv->rx.pool) { in tegra186_bpmp_init() 190 dev_err(bpmp->dev, "RX shmem pool not found\n"); in tegra186_bpmp_init() 195 priv->rx.virt = gen_pool_dma_alloc(priv->rx.pool, 409 in tegra186_bpmp_init() [all...] |
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
H A D | names.c | 142 struct pool { struct 143 struct pool *next; 147 static struct pool *pool_head; 151 struct pool *p; in my_malloc() 153 p = calloc(1, sizeof(struct pool)); in my_malloc() 171 struct pool *pool; in names_free() local 176 for (pool = pool_head; pool != NULL; ) { in names_free() 177 struct pool *tm in names_free() [all...] |
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/ |
H A D | names.c | 142 struct pool { struct 143 struct pool *next; 147 static struct pool *pool_head; 151 struct pool *p; in my_malloc() 153 p = calloc(1, sizeof(struct pool)); in my_malloc() 171 struct pool *pool; in names_free() local 176 for (pool = pool_head; pool != NULL; ) { in names_free() 177 struct pool *tm in names_free() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_common.c | 471 dma_addr_t __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool) in __otx2_alloc_rbuf() argument 476 buf = napi_alloc_frag(pool->rbsize + OTX2_ALIGN); in __otx2_alloc_rbuf() 481 iova = dma_map_single_attrs(pfvf->dev, buf, pool->rbsize, in __otx2_alloc_rbuf() 491 static dma_addr_t otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool) in otx2_alloc_rbuf() argument 496 addr = __otx2_alloc_rbuf(pfvf, pool); in otx2_alloc_rbuf() 742 struct otx2_pool *pool; in otx2_sq_init() local 745 pool = &pfvf->qset.pool[sqb_aura]; in otx2_sq_init() 777 sq->aura_fc_addr = pool->fc_addr->base; in otx2_sq_init() 841 /* In case where all RQs auras point to single pool, in otx2_cq_init() 1071 struct otx2_pool *pool; otx2_aura_pool_free() local 1090 struct otx2_pool *pool; otx2_aura_init() local 1163 struct otx2_pool *pool; otx2_pool_init() local 1214 struct otx2_pool *pool; otx2_sq_aura_pool_init() local 1280 struct otx2_pool *pool; otx2_rq_aura_pool_init() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | iommu.c | 102 * with 4 pools all primary threads would map to the same pool. 227 struct iommu_pool *pool; in iommu_range_alloc() local 245 * safely use any IOMMU pool. in iommu_range_alloc() 250 pool = &(tbl->large_pool); in iommu_range_alloc() 252 pool = &(tbl->pools[pool_nr]); in iommu_range_alloc() 254 spin_lock_irqsave(&(pool->lock), flags); in iommu_range_alloc() 258 (*handle >= pool->start) && (*handle < pool->end)) in iommu_range_alloc() 261 start = pool->hint; in iommu_range_alloc() 263 limit = pool in iommu_range_alloc() 440 struct iommu_pool *pool; __iommu_free() local [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/include/nvhe/ |
H A D | gfp.h | 14 * Spinlock protecting concurrent changes to the memory pool as well as 15 * the struct hyp_page of the pool's pages until we have a proper atomic 26 void *hyp_alloc_pages(struct hyp_pool *pool, unsigned short order); 28 void hyp_get_page(struct hyp_pool *pool, void *addr); 29 void hyp_put_page(struct hyp_pool *pool, void *addr); 32 int hyp_pool_init(struct hyp_pool *pool, u64 pfn, unsigned int nr_pages,
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ |
H A D | ia_css_rmgr_vbuf.h | 34 * @brief Data structure for the resource pool (host, vbuf) 52 * @brief Initialize the resource pool (host, vbuf) 54 * @param pool The pointer to the pool 57 struct ia_css_rmgr_vbuf_pool *pool); 60 * @brief Uninitialize the resource pool (host, vbuf) 62 * @param pool The pointer to the pool 65 struct ia_css_rmgr_vbuf_pool *pool); 68 * @brief Acquire a handle from the pool (hos [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ |
H A D | ia_css_rmgr_vbuf.h | 34 * @brief Data structure for the resource pool (host, vbuf) 52 * @brief Initialize the resource pool (host, vbuf) 54 * @param pool The pointer to the pool 57 struct ia_css_rmgr_vbuf_pool *pool); 60 * @brief Uninitialize the resource pool (host, vbuf) 62 * @param pool The pointer to the pool 65 struct ia_css_rmgr_vbuf_pool *pool); 68 * @brief Acquire a handle from the pool (hos [all...] |
/kernel/liteos_m/testsuites/sample/kernel/mem/ |
H A D | It_los_mem_005.c | 38 void *pool = NULL;
in TestCase() local 43 pool = (void *)((UINT32)(UINTPTR)g_memPool + MIN_DLNK_POOL_SIZE - LOS_DLNK_NODE_HEAD_SIZE);
in TestCase() 45 ret = LOS_MemInit(pool, MIN_DLNK_POOL_SIZE + 1000); // 1000, Initialize the appropriate memory pool space。
in TestCase() 48 ret = LOS_MemDeInit(pool);
in TestCase()
|
/third_party/ffmpeg/libavfilter/ |
H A D | framepool.h | 29 * Frame pool. This structure is opaque and not meant to be accessed 36 * Allocate and initialize a video frame pool. 39 * the pool is empty. May be NULL, then the default allocator will be used 41 * @param width width of each frame in this pool 42 * @param height height of each frame in this pool 43 * @param format format of each frame in this pool 44 * @param align buffers alignement of each frame in this pool 45 * @return newly created video frame pool on success, NULL on error. 54 * Allocate and initialize an audio frame pool. 57 * the pool i [all...] |
/third_party/skia/src/gpu/ |
H A D | GrProcessor.cpp | 16 // We use a global pool protected by a mutex(spinlock). Chrome may use the same GrContext on 36 GrMemoryPool* pool() const { in pool() function in __anon18778::MemoryPoolAccessor 45 void* GrProcessor::operator new(size_t size) { return MemoryPoolAccessor().pool()->allocate(size); } in operator new() 48 return MemoryPoolAccessor().pool()->allocate(object_size + footer_size); in operator new() 52 return MemoryPoolAccessor().pool()->release(target); in operator delete()
|
/third_party/protobuf/php/src/Google/Protobuf/ |
H A D | DescriptorPool.php | 37 private static $pool; variable 46 if (!isset(self::$pool)) { 47 self::$pool = new DescriptorPool(\Google\Protobuf\Internal\DescriptorPool::getGeneratedPool()); 49 return self::$pool;
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | rtas-work-area.c | 22 * Ensure the pool is page-aligned. 139 struct gen_pool *pool; in rtas_work_area_allocator_init() local 147 pool = gen_pool_create(order, nid); in rtas_work_area_allocator_init() 148 if (!pool) in rtas_work_area_allocator_init() 155 gen_pool_set_algo(pool, gen_pool_first_fit_order_align, NULL); in rtas_work_area_allocator_init() 157 err = gen_pool_add(pool, (unsigned long)rwa_state.arena, in rtas_work_area_allocator_init() 167 rwa_state.gen_pool = pool; in rtas_work_area_allocator_init() 179 gen_pool_destroy(pool); in rtas_work_area_allocator_init()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_helpers.h | 181 nine_range_pool_put(struct nine_range_pool *pool, struct nine_range *r) in nine_range_pool_put() argument 183 r->next = pool->free; in nine_range_pool_put() 184 pool->free = r; in nine_range_pool_put() 188 nine_range_pool_put_chain(struct nine_range_pool *pool, in nine_range_pool_put_chain() argument 192 tail->next = pool->free; in nine_range_pool_put_chain() 193 pool->free = head; in nine_range_pool_put_chain() 198 struct nine_range_pool *pool);
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | pstream-util.c | 129 /* Before sending blocks from a memfd-backed pool over the pipe, we 136 * such packet has an ID that uniquely identifies the pool's memfd 140 * By doing so, we won't need to reference the pool's memfd fd any 142 int pa_pstream_register_memfd_mempool(pa_pstream *p, pa_mempool *pool, const char **fail_reason) { in pa_pstream_register_memfd_mempool() argument 153 per_client_mempool = pa_mempool_is_per_client(pool); in pa_pstream_register_memfd_mempool() 157 if (!pa_mempool_is_shared(pool)) { in pa_pstream_register_memfd_mempool() 162 if (!pa_mempool_is_memfd_backed(pool)) { in pa_pstream_register_memfd_mempool() 167 if (pa_mempool_get_shm_id(pool, &shm_id)) { in pa_pstream_register_memfd_mempool() 168 *fail_reason = "could not extract pool SHM ID"; in pa_pstream_register_memfd_mempool() 177 memfd_fd = (per_client_mempool) ? pa_mempool_take_memfd_fd(pool) in pa_pstream_register_memfd_mempool() [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_memorypool.cpp | 60 MemoryBacking *pool; 88 return impl->pool->allocate(size); in allocate() 93 return impl->pool->allocate(size, align); in allocate() 123 pool = new MemoryBacking(); in MemoryPoolImpl() 128 delete pool; in ~MemoryPoolImpl()
|
/third_party/protobuf/python/google/protobuf/ |
H A D | proto_builder.py | 53 KeyError, if the proto is not found in the factory's descriptor pool. 55 proto_descriptor = factory.pool.FindMessageTypeByName(full_name) 60 def MakeSimpleProtoClass(fields, full_name=None, pool=None): 70 pool: optional DescriptorPool instance. 74 factory = message_factory.MessageFactory(pool=pool) 110 # This is the first time we see this proto: add a new descriptor to the pool. 111 factory.pool.Add(
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | MessageBuilderContext.php | 44 private $pool; variable 46 public function __construct($full_name, $klass, $pool) 51 $this->pool = $pool; variable 66 // At this time, the message/enum type may have not been added to pool. 118 $this->pool->addDescriptor($this->descriptor);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | tx.c | 5 #include "pool.h" 69 struct xsk_buff_pool *pool = sq->xsk_pool; in mlx5e_xsk_tx() local 90 if (!xsk_tx_peek_desc(pool, &desc)) { in mlx5e_xsk_tx() 99 xdptxd.dma_addr = xsk_buff_raw_get_dma(pool, desc.addr); in mlx5e_xsk_tx() 100 xdptxd.data = xsk_buff_raw_get_data(pool, desc.addr); in mlx5e_xsk_tx() 103 xsk_buff_raw_dma_sync_for_device(pool, xdptxd.dma_addr, xdptxd.len); in mlx5e_xsk_tx() 122 xsk_tx_release(pool); in mlx5e_xsk_tx()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | tx.c | 5 #include "pool.h" 63 struct xsk_buff_pool *pool = sq->xsk_pool; in mlx5e_xsk_tx() local 84 if (!xsk_tx_peek_desc(pool, &desc)) { in mlx5e_xsk_tx() 93 xdptxd.dma_addr = xsk_buff_raw_get_dma(pool, desc.addr); in mlx5e_xsk_tx() 94 xdptxd.data = xsk_buff_raw_get_data(pool, desc.addr); in mlx5e_xsk_tx() 97 xsk_buff_raw_dma_sync_for_device(pool, xdptxd.dma_addr, xdptxd.len); in mlx5e_xsk_tx() 119 xsk_tx_release(pool); in mlx5e_xsk_tx()
|
/kernel/linux/linux-6.6/lib/ |
H A D | sg_pool.c | 14 mempool_t *pool; member 59 mempool_free(sgl, sgp->pool); in sg_pool_free() 67 return mempool_alloc(sgp->pool, gfp_mask); in sg_pool_alloc() 158 sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE, in sg_pool_init() 160 if (!sgp->pool) { in sg_pool_init() 173 mempool_destroy(sgp->pool); in sg_pool_init()
|
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
H A D | stress.rb | 7 pool = Google::Protobuf::DescriptorPool.new 8 pool.build do 18 TestMessage = pool.lookup("TestMessage").msgclass 19 M = pool.lookup("M").msgclass
|
/third_party/protobuf/ruby/tests/ |
H A D | stress.rb | 7 pool = Google::Protobuf::DescriptorPool.new 8 pool.build do 18 TestMessage = pool.lookup("TestMessage").msgclass 19 M = pool.lookup("M").msgclass
|
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/ |
H A D | rand_vms.c | 344 size_t data_collect_method(RAND_POOL *pool) in data_collect_method() argument 365 size_t bytes_needed = ossl_rand_pool_bytes_needed(pool, ENTROPY_FACTOR); in data_collect_method() 366 size_t bytes_remaining = ossl_rand_pool_bytes_remaining(pool); in data_collect_method() 466 * Try not to overfeed the pool in data_collect_method() 472 ossl_rand_pool_add(pool, (unsigned char *)data.buffer, total_length, in data_collect_method() 474 return ossl_rand_pool_entropy_available(pool); in data_collect_method() 500 size_t get_entropy_method(RAND_POOL *pool) in get_entropy_method() argument 511 for (bytes_needed = ossl_rand_pool_bytes_needed(pool, 1); in get_entropy_method() 530 ossl_rand_pool_add(pool, buffer, bytes_to_get, 8 * bytes_to_get); in get_entropy_method() 533 return ossl_rand_pool_entropy_available(pool); in get_entropy_method() 543 ossl_pool_acquire_entropy(RAND_POOL *pool) ossl_pool_acquire_entropy() argument 550 ossl_pool_add_nonce_data(RAND_POOL *pool) ossl_pool_add_nonce_data() argument [all...] |