/arch/arm64/kvm/hyp/nvhe/ |
D | page_alloc.c | 33 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 …]
|
D | mem_protect.c | 53 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/ |
D | cvmx-fpa.h | 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() 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 …]
|
D | cvmx-packet.h | 54 uint64_t pool:3; member 62 uint64_t pool:3;
|
/arch/arm64/kvm/hyp/include/nvhe/ |
D | gfp.h | 27 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 …]
|
D | memory.h | 13 struct hyp_pool *pool; member 43 #define hyp_page_to_pool(page) (((struct hyp_page *)page)->pool)
|
/arch/sparc/kernel/ |
D | iommu-common.c | 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->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/ |
D | uncached.c | 32 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/ |
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->pool, GFP_ATOMIC, in alloc_safe_buffer() 153 if (pool) in alloc_safe_buffer() [all …]
|
/arch/powerpc/kernel/ |
D | iommu.c | 188 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/ |
D | k3-j721e-som-p0.dtsi | 30 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/ |
D | exynos-mfc-reserved-memory.dtsi | 15 compatible = "shared-dma-pool"; 22 compatible = "shared-dma-pool";
|
D | armada-385-db-ap.dts | 99 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>;
|
D | stm32mp15xx-osd32.dtsi | 18 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";
|
D | armada-388-db.dts | 55 bm,pool-long = <2>; 56 bm,pool-short = <3>; 68 bm,pool-long = <0>; 69 bm,pool-short = <1>;
|
D | stm32mp157c-odyssey-som.dtsi | 31 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";
|
D | dra72-evm.dts | 21 compatible = "shared-dma-pool"; 28 compatible = "shared-dma-pool"; 35 compatible = "shared-dma-pool";
|
D | armada-xp-openblocks-ax3-4.dts | 117 bm,pool-long = <0>; 124 bm,pool-long = <1>; 131 bm,pool-long = <2>; 138 bm,pool-long = <3>;
|
D | am572x-idk-common.dtsi | 23 compatible = "shared-dma-pool"; 30 compatible = "shared-dma-pool"; 37 compatible = "shared-dma-pool"; 44 compatible = "shared-dma-pool";
|
D | armada-385-linksys.dtsi | 103 bm,pool-long = <0>; 104 bm,pool-short = <1>; 115 bm,pool-long = <2>; 116 bm,pool-short = <3>;
|
D | keystone-k2l-netcp.dtsi | 203 rx-pool = <1024 12>; 204 tx-pool = <1024 12>; 215 rx-pool = <1024 12>; 216 tx-pool = <1024 12>;
|
D | stm32mp157c-ed1.dts | 34 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";
|
D | dra72-evm-revc.dts | 23 compatible = "shared-dma-pool"; 30 compatible = "shared-dma-pool"; 37 compatible = "shared-dma-pool";
|
D | keystone-k2e-netcp.dtsi | 221 rx-pool = <1024 12>; 222 tx-pool = <1024 12>; 233 rx-pool = <1024 12>; 234 tx-pool = <1024 12>;
|
D | armada-xp-db.dts | 99 bm,pool-long = <0>; 106 bm,pool-long = <1>; 113 bm,pool-long = <2>; 120 bm,pool-long = <3>;
|