Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 49) sorted by relevance

12

/device/generic/goldfish-opengl/system/vulkan_enc/
Dgoldfish_vk_deepcopy_guest.h47 Pool* pool,
52 Pool* pool,
57 Pool* pool,
62 Pool* pool,
67 Pool* pool,
72 Pool* pool,
77 Pool* pool,
82 Pool* pool,
87 Pool* pool,
92 Pool* pool,
[all …]
Dgoldfish_vk_deepcopy_guest.cpp35 Pool* pool,
41 Pool* pool, in deepcopy_VkApplicationInfo() argument
45 (void)pool; in deepcopy_VkApplicationInfo()
51 to->pNext = (const void*)pool->alloc(pNext_size); in deepcopy_VkApplicationInfo()
52 deepcopy_extension_struct(pool, from->pNext, (void*)(to->pNext)); in deepcopy_VkApplicationInfo()
57 to->pApplicationName = pool->strDup(from->pApplicationName); in deepcopy_VkApplicationInfo()
62 to->pEngineName = pool->strDup(from->pEngineName); in deepcopy_VkApplicationInfo()
67 Pool* pool, in deepcopy_VkInstanceCreateInfo() argument
71 (void)pool; in deepcopy_VkInstanceCreateInfo()
77 to->pNext = (const void*)pool->alloc(pNext_size); in deepcopy_VkInstanceCreateInfo()
[all …]
DVkEncoder.cpp67 Pool* pool() { return &m_pool; } in pool() function in goldfish_vk::VkEncoder::Impl
106 auto pool = mImpl->pool(); in vkCreateInstance() local
113 local_pCreateInfo = (VkInstanceCreateInfo*)pool->alloc(sizeof(const VkInstanceCreateInfo)); in vkCreateInstance()
114 … deepcopy_VkInstanceCreateInfo(pool, pCreateInfo, (VkInstanceCreateInfo*)(local_pCreateInfo)); in vkCreateInstance()
119 local_pAllocator = (VkAllocationCallbacks*)pool->alloc(sizeof(const VkAllocationCallbacks)); in vkCreateInstance()
120 … deepcopy_VkAllocationCallbacks(pool, pAllocator, (VkAllocationCallbacks*)(local_pAllocator)); in vkCreateInstance()
174 pool->freeAll(); in vkCreateInstance()
189 auto pool = mImpl->pool(); in vkDestroyInstance() local
197 local_pAllocator = (VkAllocationCallbacks*)pool->alloc(sizeof(const VkAllocationCallbacks)); in vkDestroyInstance()
198 … deepcopy_VkAllocationCallbacks(pool, pAllocator, (VkAllocationCallbacks*)(local_pAllocator)); in vkDestroyInstance()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-msg.c43 int xf_msg_pool_init(xf_msg_pool_t *pool, u32 n, u32 core) in xf_msg_pool_init() argument
48 …XF_CHK_ERR(pool->p = xf_mem_alloc(XF_MM(sizeof(*pool->p) * n), XF_PROXY_ALIGNMENT, core, 1), -ENOM… in xf_msg_pool_init()
51 for (pool->head = &pool->p[i = 0]; i < n - 1; i++) in xf_msg_pool_init()
54 xf_msg_pool_item(pool, i)->next = xf_msg_pool_item(pool, i + 1); in xf_msg_pool_init()
58 xf_msg_pool_item(pool, i)->next = NULL; in xf_msg_pool_init()
61 pool->n = n; in xf_msg_pool_init()
67 void xf_msg_pool_destroy(xf_msg_pool_t *pool, u32 core) in xf_msg_pool_destroy() argument
70 xf_mem_free(pool->p, XF_MM(sizeof(*pool->p) * pool->n), core, 1); in xf_msg_pool_destroy()
74 xf_message_t * xf_msg_pool_get(xf_msg_pool_t *pool) in xf_msg_pool_get() argument
79 XF_CHK_ERR(_m = pool->head, NULL); in xf_msg_pool_get()
[all …]
Dxf-mem.c90 static inline xf_mm_block_t * xf_mm_find_by_size(xf_mm_pool_t *pool, u32 size) in xf_mm_find_by_size() argument
92 rb_tree_t *tree = &pool->l_map; in xf_mm_find_by_size()
135 static void xf_mm_find_by_addr(xf_mm_pool_t *pool, void *addr, xf_mm_block_t **n) in xf_mm_find_by_addr() argument
137 rb_tree_t *tree = &pool->a_map; in xf_mm_find_by_addr()
168 static void xf_mm_insert_size(xf_mm_pool_t *pool, xf_mm_block_t *b, u32 size) in xf_mm_insert_size() argument
170 rb_tree_t *tree = &pool->l_map; in xf_mm_insert_size()
204 static void xf_mm_insert_addr(xf_mm_pool_t *pool, xf_mm_block_t *b) in xf_mm_insert_addr() argument
206 rb_tree_t *tree = &pool->a_map; in xf_mm_insert_addr()
244 void * xf_mm_alloc(xf_mm_pool_t *pool, u32 size) in xf_mm_alloc() argument
249 XF_CHK_ERR(b = xf_mm_find_by_size(pool, size), NULL); in xf_mm_alloc()
[all …]
Dxf-io.c404 XF_CHK_API(xf_msg_pool_init(&port->pool, n + 1, core)); in xf_output_port_route()
410 m = xf_msg_pool_item(&port->pool, i); in xf_output_port_route()
451 m = xf_msg_pool_item(&port->pool, i); in xf_output_port_route()
458 xf_msg_pool_destroy(&port->pool, core); in xf_output_port_route()
500 u32 n = port->pool.n - 1; in xf_output_port_unroute()
507 m = xf_msg_pool_item(&port->pool, i); in xf_output_port_unroute()
514 xf_msg_pool_destroy(&port->pool, core); in xf_output_port_unroute()
Dxf-shmem.c170 if ((m = xf_msg_pool_get(&XF_CORE_RO_DATA(core)->pool)) == NULL) in xf_shmem_process_input()
279 xf_msg_pool_put(&XF_CORE_RO_DATA(core)->pool, m); in xf_shmem_process_output()
339 XF_CHK_API(xf_msg_pool_init(&ro->pool, XF_CFG_MESSAGE_POOL_SIZE, core)); in xf_shmem_init()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dpool.h88 struct pool *pc_pool; /* parent pool */
105 void *(*pa_alloc)(struct pool *, int);
106 void (*pa_free)(struct pool *, void *);
111 TAILQ_HEAD(, pool) pa_list; /* list of pools using this allocator */
125 struct pool { struct
126 LIST_ENTRY(pool)
135 struct pool *pr_phpool; /* Pool item header pool */ argument
152 TAILQ_ENTRY(pool) pr_alloc_list;/* link on allocator's pool list */ argument
239 struct pool *pp; argument
248 struct pool pp; \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dobmalloc.c727 int Py_ADDRESS_IN_RANGE(void *P, poolp pool) Py_NO_INLINE;
750 poolp pool; in PyObject_Malloc() local
779 pool = usedpools[size + size]; in PyObject_Malloc()
780 if (pool != pool->nextpool) { in PyObject_Malloc()
785 ++pool->ref.count; in PyObject_Malloc()
786 bp = pool->freeblock; in PyObject_Malloc()
788 if ((pool->freeblock = *(block **)bp) != NULL) { in PyObject_Malloc()
795 if (pool->nextoffset <= pool->maxnextoffset) { in PyObject_Malloc()
797 pool->freeblock = (block*)pool + in PyObject_Malloc()
798 pool->nextoffset; in PyObject_Malloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dobmalloc.c770 int Py_ADDRESS_IN_RANGE(void *P, poolp pool) Py_NO_INLINE;
793 poolp pool; in PyObject_Malloc() local
822 pool = usedpools[size + size]; in PyObject_Malloc()
823 if (pool != pool->nextpool) { in PyObject_Malloc()
828 ++pool->ref.count; in PyObject_Malloc()
829 bp = pool->freeblock; in PyObject_Malloc()
831 if ((pool->freeblock = *(block **)bp) != NULL) { in PyObject_Malloc()
838 if (pool->nextoffset <= pool->maxnextoffset) { in PyObject_Malloc()
840 pool->freeblock = (block*)pool + in PyObject_Malloc()
841 pool->nextoffset; in PyObject_Malloc()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-msg.h81 static inline xf_message_t * xf_msg_pool_item(xf_msg_pool_t *pool, u32 i) in xf_msg_pool_item() argument
83 return (xf_message_t *) &pool->p[i]; in xf_msg_pool_item()
169 static inline int xf_msg_from_pool(xf_msg_pool_t *pool, xf_message_t *m) in xf_msg_from_pool() argument
171 return (u32)((__xf_message_t*)m - pool->p) < pool->n; in xf_msg_from_pool()
197 extern int xf_msg_pool_init(xf_msg_pool_t *pool, u32 n, u32 core);
200 extern xf_message_t * xf_msg_pool_get(xf_msg_pool_t *pool);
203 extern void xf_msg_pool_put(xf_msg_pool_t *pool, xf_message_t *m);
206 extern void xf_msg_pool_destroy(xf_msg_pool_t *pool, u32 core);
Dxf-mm.h136 extern int xf_mm_init(xf_mm_pool_t *pool, void *addr, u32 size);
139 extern void * xf_mm_alloc(xf_mm_pool_t *pool, u32 size);
142 extern void xf_mm_free(xf_mm_pool_t *pool, void *addr, u32 size);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/expat/
Dxmlparse.c265 STRING_POOL pool; member
413 poolAppend(STRING_POOL *pool, const ENCODING *enc,
416 poolStoreString(STRING_POOL *pool, const ENCODING *enc,
418 static XML_Bool FASTCALL poolGrow(STRING_POOL *pool);
420 poolCopyString(STRING_POOL *pool, const XML_Char *s);
422 poolCopyStringN(STRING_POOL *pool, const XML_Char *s, int n);
424 poolAppendString(STRING_POOL *pool, const XML_Char *s);
440 #define poolStart(pool) ((pool)->start) argument
441 #define poolEnd(pool) ((pool)->ptr) argument
442 #define poolLength(pool) ((pool)->ptr - (pool)->start) argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/
Dxmlparse.c265 STRING_POOL pool; member
413 poolAppend(STRING_POOL *pool, const ENCODING *enc,
416 poolStoreString(STRING_POOL *pool, const ENCODING *enc,
418 static XML_Bool FASTCALL poolGrow(STRING_POOL *pool);
420 poolCopyString(STRING_POOL *pool, const XML_Char *s);
422 poolCopyStringN(STRING_POOL *pool, const XML_Char *s, int n);
424 poolAppendString(STRING_POOL *pool, const XML_Char *s);
440 #define poolStart(pool) ((pool)->start) argument
441 #define poolEnd(pool) ((pool)->ptr) argument
442 #define poolLength(pool) ((pool)->ptr - (pool)->start) argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/expat/
Dxmlparse.c267 STRING_POOL pool; member
416 poolAppend(STRING_POOL *pool, const ENCODING *enc,
419 poolStoreString(STRING_POOL *pool, const ENCODING *enc,
421 static XML_Bool FASTCALL poolGrow(STRING_POOL *pool);
423 poolCopyString(STRING_POOL *pool, const XML_Char *s);
425 poolCopyStringN(STRING_POOL *pool, const XML_Char *s, int n);
427 poolAppendString(STRING_POOL *pool, const XML_Char *s);
447 #define poolStart(pool) ((pool)->start) argument
448 #define poolEnd(pool) ((pool)->ptr) argument
449 #define poolLength(pool) ((pool)->ptr - (pool)->start) argument
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-proxy.c564 int xf_pool_alloc(xf_proxy_t *proxy, u32 number, u32 length, xf_pool_type_t type, xf_pool_t **pool,… in xf_pool_alloc() argument
623 *pool = p; in xf_pool_alloc()
629 void xf_pool_free(xf_pool_t *pool, s32 id, xaf_mem_free_fxn_t xaf_free) in xf_pool_free() argument
631 xf_proxy_t *proxy = pool->proxy; in xf_pool_free()
639 xf_proxy_buffer_free(proxy, pool->p, pool->length * pool->number); in xf_pool_free()
645 xaf_free(pool, id); in xf_pool_free()
647 TRACE(BUFFER, _b("[%p]::pool[%p] destroyed"), proxy, pool); in xf_pool_free()
651 xf_buffer_t * xf_buffer_get(xf_pool_t *pool) in xf_buffer_get() argument
656 xf_proxy_lock(pool->proxy); in xf_buffer_get()
659 if ((b = pool->free) != NULL) in xf_buffer_get()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Ditertoolsmodule.c1830 PyObject *pool = PySequence_Tuple(item); in product_new() local
1831 if (pool == NULL) in product_new()
1833 PyTuple_SET_ITEM(pools, i, pool); in product_new()
1837 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs); in product_new() local
1838 Py_INCREF(pool); in product_new()
1839 PyTuple_SET_ITEM(pools, i, pool); in product_new()
1884 PyObject *pool; in product_next() local
1903 pool = PyTuple_GET_ITEM(pools, i); in product_next()
1904 if (PyTuple_GET_SIZE(pool) == 0) in product_next()
1906 elem = PyTuple_GET_ITEM(pool, 0); in product_next()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Ditertoolsmodule.c1869 PyObject *pool = PySequence_Tuple(item); in product_new() local
1870 if (pool == NULL) in product_new()
1872 PyTuple_SET_ITEM(pools, i, pool); in product_new()
1876 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs); in product_new() local
1877 Py_INCREF(pool); in product_new()
1878 PyTuple_SET_ITEM(pools, i, pool); in product_new()
1923 PyObject *pool; in product_next() local
1942 pool = PyTuple_GET_ITEM(pools, i); in product_next()
1943 if (PyTuple_GET_SIZE(pool) == 0) in product_next()
1945 elem = PyTuple_GET_ITEM(pool, 0); in product_next()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-mem.h116 xf_mm_pool_t *pool = &XF_CORE_DATA(core)->shared_pool; in xf_shmem_alloc() local
119 if ((m->buffer = xf_mm_alloc(pool, XF_ALIGNED(m->length))) != NULL) in xf_shmem_alloc()
135 xf_mm_pool_t *pool = &XF_CORE_DATA(core)->shared_pool; in xf_shmem_free() local
138 xf_mm_free(pool, m->buffer, XF_ALIGNED(m->length)); in xf_shmem_free()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Net/Pp2Dxe/
DMvpp2LibHw.h52 #define MVPP2_POOL_BUF_SIZE_REG(pool) (0x180 + 4 * (pool)) argument
187 #define MVPP2_BM_POOL_BASE_REG(pool) (0x6000 + ((pool) * 4)) argument
189 #define MVPP2_BM_POOL_SIZE_REG(pool) (0x6040 + ((pool) * 4)) argument
191 #define MVPP2_BM_POOL_READ_PTR_REG(pool) (0x6080 + ((pool) * 4)) argument
193 #define MVPP2_BM_POOL_PTRS_NUM_REG(pool) (0x60c0 + ((pool) * 4)) argument
195 #define MVPP2_BM_BPPI_READ_PTR_REG(pool) (0x6100 + ((pool) * 4)) argument
196 #define MVPP2_BM_BPPI_PTRS_NUM_REG(pool) (0x6140 + ((pool) * 4)) argument
199 #define MVPP2_BM_POOL_CTRL_REG(pool) (0x6200 + ((pool) * 4)) argument
209 #define MVPP2_BM_INTR_CAUSE_REG(pool) (0x6240 + ((pool) * 4)) argument
215 #define MVPP2_BM_INTR_MASK_REG(pool) (0x6280 + ((pool) * 4)) argument
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/include/
Dxf-proto.h73 …ol_alloc(xf_proxy_t *proxy, u32 number, u32 length, xf_pool_type_t type, xf_pool_t **pool, s32 id,
75 extern void xf_pool_free(xf_pool_t *pool, s32 id, xaf_mem_free_fxn_t);
76 extern xf_buffer_t * xf_buffer_get(xf_pool_t *pool);
Dxf-proxy.h100 xf_pool_t *pool; member
145 return buffer->link.pool->length; in xf_buffer_length()
/device/google/cuttlefish_common/host/commands/virtual_usb_manager/usbip/
Dclient.h31 Client(const DevicePool& pool, const cvd::SharedFD& fd) in Client() argument
32 : pool_(pool), fd_(fd) {} in Client()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_itertools.py89 pool = tuple(iterable)
90 n = len(pool)
94 yield tuple(pool[i] for i in indices)
104 yield tuple(pool[i] for i in indices)
108 pool = tuple(iterable)
109 n = len(pool)
112 yield tuple(pool[i] for i in indices)
116 pool = tuple(iterable)
117 n = len(pool)
120 yield tuple(pool[i] for i in indices)
[all …]
Dtest_multiprocessing.py33 import multiprocessing.pool
1038 papply = self.pool.apply
1043 pmap = self.pool.map
1050 self.pool.map_async(sqr, [], chunksize=1).get(timeout=TIMEOUT1)
1055 res = self.pool.apply_async(sqr, (7, TIMEOUT1,))
1061 res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 0.2))
1067 it = self.pool.imap(sqr, range(10))
1070 it = self.pool.imap(sqr, range(10))
1075 it = self.pool.imap(sqr, range(1000), chunksize=100)
1081 it = self.pool.imap_unordered(sqr, range(1000))
[all …]

12