Home
last modified time | relevance | path

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

12345

/arch/arm64/kvm/hyp/nvhe/
Dpage_alloc.c33 static struct hyp_page *__find_buddy_nocheck(struct hyp_pool *pool, in __find_buddy_nocheck() argument
45 if (addr < pool->range_start || addr >= pool->range_end) in __find_buddy_nocheck()
52 static struct hyp_page *__find_buddy_avail(struct hyp_pool *pool, in __find_buddy_avail() argument
56 struct hyp_page *buddy = __find_buddy_nocheck(pool, p, order); in __find_buddy_avail()
65 static void __hyp_attach_page(struct hyp_pool *pool, in __hyp_attach_page() argument
80 for (; (order + 1) < pool->max_order; order++) { in __hyp_attach_page()
81 buddy = __find_buddy_avail(pool, p, order); in __hyp_attach_page()
93 list_add_tail(&p->node, &pool->free_area[order]); in __hyp_attach_page()
98 struct hyp_pool *pool = hyp_page_to_pool(p); in hyp_attach_page() local
100 hyp_spin_lock(&pool->lock); in hyp_attach_page()
[all …]
Dmem_protect.c53 static void *host_s2_zalloc_page(void *pool) in host_s2_zalloc_page() argument
55 return hyp_alloc_pages(pool, 0); in host_s2_zalloc_page()
214 struct hyp_pool *pool) in __host_stage2_idmap() argument
217 prot, pool); in __host_stage2_idmap()
225 struct hyp_pool *pool = is_memory ? &host_s2_mem : &host_s2_dev; in host_stage2_idmap() local
236 ret = __host_stage2_idmap(range.start, range.end, prot, pool); in host_stage2_idmap()
251 ret = __host_stage2_idmap(range.start, range.end, prot, pool); in host_stage2_idmap()
/arch/mips/include/asm/octeon/
Dcvmx-fpa.h106 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()
117 static inline void *cvmx_fpa_get_base(uint64_t pool) in cvmx_fpa_get_base() argument
119 return cvmx_fpa_pool_info[pool].base; in cvmx_fpa_get_base()
131 static inline int cvmx_fpa_is_member(uint64_t pool, void *ptr) in cvmx_fpa_is_member() argument
133 return ((ptr >= cvmx_fpa_pool_info[pool].base) && in cvmx_fpa_is_member()
135 ((char *)(cvmx_fpa_pool_info[pool].base)) + in cvmx_fpa_is_member()
136 cvmx_fpa_pool_info[pool].size * in cvmx_fpa_is_member()
137 cvmx_fpa_pool_info[pool].starting_element_count)); in cvmx_fpa_is_member()
185 static inline void *cvmx_fpa_alloc(uint64_t pool) in cvmx_fpa_alloc() argument
[all …]
Dcvmx-packet.h54 uint64_t pool:3; member
62 uint64_t pool:3;
/arch/arm64/kvm/hyp/include/nvhe/
Dgfp.h27 struct hyp_pool *pool = hyp_page_to_pool(p); in hyp_page_ref_inc() local
29 hyp_spin_lock(&pool->lock); in hyp_page_ref_inc()
31 hyp_spin_unlock(&pool->lock); in hyp_page_ref_inc()
36 struct hyp_pool *pool = hyp_page_to_pool(p); in hyp_page_ref_dec_and_test() local
39 hyp_spin_lock(&pool->lock); in hyp_page_ref_dec_and_test()
42 hyp_spin_unlock(&pool->lock); in hyp_page_ref_dec_and_test()
49 struct hyp_pool *pool = hyp_page_to_pool(p); in hyp_set_page_refcounted() local
51 hyp_spin_lock(&pool->lock); in hyp_set_page_refcounted()
53 hyp_spin_unlock(&pool->lock); in hyp_set_page_refcounted()
57 hyp_spin_unlock(&pool->lock); in hyp_set_page_refcounted()
[all …]
Dmemory.h13 struct hyp_pool *pool; member
43 #define hyp_page_to_pool(page) (((struct hyp_page *)page)->pool)
/arch/sparc/kernel/
Diommu-common.c106 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->end; in iommu_tbl_range_alloc()
151 start = pool->start; in iommu_tbl_range_alloc()
160 spin_unlock(&(pool->lock)); in iommu_tbl_range_alloc()
161 pool = &(iommu->pools[0]); in iommu_tbl_range_alloc()
[all …]
/arch/ia64/kernel/
Duncached.c32 struct gen_pool *pool; member
150 status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, nid); in uncached_add_chunk()
196 if (uc_pool->pool == NULL) in uncached_alloc_page()
199 uc_addr = gen_pool_alloc(uc_pool->pool, in uncached_alloc_page()
223 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_free_page() local
225 if (unlikely(pool == NULL)) in uncached_free_page()
231 gen_pool_free(pool, uc_addr, n_pages * PAGE_SIZE); in uncached_free_page()
249 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_build_memmap() local
254 if (pool != NULL) { in uncached_build_memmap()
256 (void) gen_pool_add(pool, uc_start, size, nid); in uncached_build_memmap()
[all …]
/arch/arm/common/
Ddmabounce.c55 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->pool, GFP_ATOMIC, in alloc_safe_buffer()
153 if (pool) in alloc_safe_buffer()
[all …]
/arch/powerpc/kernel/
Diommu.c188 struct iommu_pool *pool; in iommu_range_alloc() local
211 pool = &(tbl->large_pool); in iommu_range_alloc()
213 pool = &(tbl->pools[pool_nr]); in iommu_range_alloc()
215 spin_lock_irqsave(&(pool->lock), flags); in iommu_range_alloc()
219 (*handle >= pool->start) && (*handle < pool->end)) in iommu_range_alloc()
222 start = pool->hint; in iommu_range_alloc()
224 limit = pool->end; in iommu_range_alloc()
231 start = pool->start; in iommu_range_alloc()
240 spin_unlock(&(pool->lock)); in iommu_range_alloc()
241 pool = &(tbl->pools[0]); in iommu_range_alloc()
[all …]
/arch/arm64/boot/dts/ti/
Dk3-j721e-som-p0.dtsi30 compatible = "shared-dma-pool";
36 compatible = "shared-dma-pool";
42 compatible = "shared-dma-pool";
48 compatible = "shared-dma-pool";
54 compatible = "shared-dma-pool";
60 compatible = "shared-dma-pool";
/arch/arm/boot/dts/
Dexynos-mfc-reserved-memory.dtsi15 compatible = "shared-dma-pool";
22 compatible = "shared-dma-pool";
Darmada-385-db-ap.dts99 bm,pool-long = <1>;
100 bm,pool-short = <3>;
109 bm,pool-long = <2>;
110 bm,pool-short = <3>;
130 bm,pool-long = <0>;
131 bm,pool-short = <3>;
Dstm32mp15xx-osd32.dtsi18 compatible = "shared-dma-pool";
24 compatible = "shared-dma-pool";
30 compatible = "shared-dma-pool";
36 compatible = "shared-dma-pool";
42 compatible = "shared-dma-pool";
48 compatible = "shared-dma-pool";
Darmada-388-db.dts55 bm,pool-long = <2>;
56 bm,pool-short = <3>;
68 bm,pool-long = <0>;
69 bm,pool-short = <1>;
Dstm32mp157c-odyssey-som.dtsi31 compatible = "shared-dma-pool";
37 compatible = "shared-dma-pool";
43 compatible = "shared-dma-pool";
49 compatible = "shared-dma-pool";
55 compatible = "shared-dma-pool";
61 compatible = "shared-dma-pool";
Ddra72-evm.dts21 compatible = "shared-dma-pool";
28 compatible = "shared-dma-pool";
35 compatible = "shared-dma-pool";
Darmada-xp-openblocks-ax3-4.dts117 bm,pool-long = <0>;
124 bm,pool-long = <1>;
131 bm,pool-long = <2>;
138 bm,pool-long = <3>;
Dam572x-idk-common.dtsi23 compatible = "shared-dma-pool";
30 compatible = "shared-dma-pool";
37 compatible = "shared-dma-pool";
44 compatible = "shared-dma-pool";
Darmada-385-linksys.dtsi103 bm,pool-long = <0>;
104 bm,pool-short = <1>;
115 bm,pool-long = <2>;
116 bm,pool-short = <3>;
Dkeystone-k2l-netcp.dtsi203 rx-pool = <1024 12>;
204 tx-pool = <1024 12>;
215 rx-pool = <1024 12>;
216 tx-pool = <1024 12>;
Dstm32mp157c-ed1.dts34 compatible = "shared-dma-pool";
40 compatible = "shared-dma-pool";
46 compatible = "shared-dma-pool";
52 compatible = "shared-dma-pool";
58 compatible = "shared-dma-pool";
64 compatible = "shared-dma-pool";
Ddra72-evm-revc.dts23 compatible = "shared-dma-pool";
30 compatible = "shared-dma-pool";
37 compatible = "shared-dma-pool";
Dkeystone-k2e-netcp.dtsi221 rx-pool = <1024 12>;
222 tx-pool = <1024 12>;
233 rx-pool = <1024 12>;
234 tx-pool = <1024 12>;
Darmada-xp-db.dts99 bm,pool-long = <0>;
106 bm,pool-long = <1>;
113 bm,pool-long = <2>;
120 bm,pool-long = <3>;

12345