/Linux-v6.1/include/linux/ |
D | memblock.h | 60 phys_addr_t base; 61 phys_addr_t size; 79 phys_addr_t total_size; 93 phys_addr_t current_limit; 111 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid, 113 int memblock_add(phys_addr_t base, phys_addr_t size); 114 int memblock_remove(phys_addr_t base, phys_addr_t size); 115 int memblock_phys_free(phys_addr_t base, phys_addr_t size); 116 int memblock_reserve(phys_addr_t base, phys_addr_t size); 118 int memblock_physmem_add(phys_addr_t base, phys_addr_t size); [all …]
|
D | cma.h | 30 extern phys_addr_t cma_get_base(const struct cma *cma); 34 extern int __init cma_declare_contiguous_nid(phys_addr_t base, 35 phys_addr_t size, phys_addr_t limit, 36 phys_addr_t alignment, unsigned int order_per_bit, 39 static inline int __init cma_declare_contiguous(phys_addr_t base, in cma_declare_contiguous() 40 phys_addr_t size, phys_addr_t limit, in cma_declare_contiguous() 41 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous() 47 extern int cma_init_reserved_mem(phys_addr_t base, phys_addr_t size,
|
D | mbus.h | 60 int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, u8 *target, 71 static inline int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, in mvebu_mbus_get_io_win_info() 89 int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr); 92 phys_addr_t base, size_t size, 93 phys_addr_t remap); 95 phys_addr_t base, size_t size); 96 int mvebu_mbus_del_window(phys_addr_t base, size_t size); 97 int mvebu_mbus_init(const char *soc, phys_addr_t mbus_phys_base, 98 size_t mbus_size, phys_addr_t sdram_phys_base, 102 static inline int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, in mvebu_mbus_get_dram_win_info()
|
D | swiotlb.h | 44 phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, phys_addr_t phys, 50 phys_addr_t tlb_addr, 55 void swiotlb_sync_single_for_device(struct device *dev, phys_addr_t tlb_addr, 57 void swiotlb_sync_single_for_cpu(struct device *dev, phys_addr_t tlb_addr, 59 dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys, 92 phys_addr_t start; 93 phys_addr_t end; 108 static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr) in is_swiotlb_buffer() 132 static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr) in is_swiotlb_buffer() 188 extern phys_addr_t swiotlb_unencrypted_base;
|
D | dma-direct.h | 21 phys_addr_t cpu_start; 28 phys_addr_t paddr) in translate_phys_to_dma() 40 static inline phys_addr_t translate_dma_to_phys(struct device *dev, in translate_dma_to_phys() 47 return (phys_addr_t)dma_addr + m->offset; in translate_dma_to_phys() 49 return (phys_addr_t)-1; in translate_dma_to_phys() 59 phys_addr_t paddr) in phys_to_dma_unencrypted() 72 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma() 77 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() 79 phys_addr_t paddr; in dma_to_phys() 124 dma_addr_t dma_direct_map_resource(struct device *dev, phys_addr_t paddr,
|
D | dma-map-ops.h | 62 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr, 122 void dma_contiguous_reserve(phys_addr_t addr_limit); 123 int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, 124 phys_addr_t limit, struct cma **res_cma, bool fixed); 133 void dma_contiguous_early_fixup(phys_addr_t base, unsigned long size); 139 static inline void dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() 142 static inline int dma_contiguous_reserve_area(phys_addr_t size, in dma_contiguous_reserve_area() 143 phys_addr_t base, phys_addr_t limit, struct cma **res_cma, in dma_contiguous_reserve_area() 178 int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, 188 phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory() [all …]
|
/Linux-v6.1/mm/ |
D | memblock.c | 170 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size() 178 static unsigned long __init_memblock memblock_addrs_overlap(phys_addr_t base1, phys_addr_t size1, in memblock_addrs_overlap() 179 phys_addr_t base2, phys_addr_t size2) in memblock_addrs_overlap() 185 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region() 213 static phys_addr_t __init_memblock 214 __memblock_find_range_bottom_up(phys_addr_t start, phys_addr_t end, in __memblock_find_range_bottom_up() 215 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up() 218 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up() 248 static phys_addr_t __init_memblock 249 __memblock_find_range_top_down(phys_addr_t start, phys_addr_t end, in __memblock_find_range_top_down() [all …]
|
D | memtest.c | 28 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() 35 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size) in memtest() 38 phys_addr_t start_bad, last_bad; in memtest() 39 phys_addr_t start_phys_aligned; in memtest() 66 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() 69 phys_addr_t this_start, this_end; in do_one_pass() 100 void __init early_memtest(phys_addr_t start, phys_addr_t end) in early_memtest()
|
/Linux-v6.1/tools/testing/memblock/tests/ |
D | alloc_nid_api.c | 28 static inline void *run_memblock_alloc_try_nid(phys_addr_t size, in run_memblock_alloc_try_nid() 29 phys_addr_t align, in run_memblock_alloc_try_nid() 30 phys_addr_t min_addr, in run_memblock_alloc_try_nid() 31 phys_addr_t max_addr, int nid) in run_memblock_alloc_try_nid() 57 phys_addr_t size = SZ_128; in alloc_try_nid_top_down_simple_check() 58 phys_addr_t min_addr; in alloc_try_nid_top_down_simple_check() 59 phys_addr_t max_addr; in alloc_try_nid_top_down_simple_check() 60 phys_addr_t rgn_end; in alloc_try_nid_top_down_simple_check() 109 phys_addr_t size = SZ_128; in alloc_try_nid_top_down_end_misaligned_check() 110 phys_addr_t misalign = SZ_2; in alloc_try_nid_top_down_end_misaligned_check() [all …]
|
D | alloc_helpers_api.c | 22 phys_addr_t size = SZ_16; in alloc_from_simple_generic_check() 23 phys_addr_t min_addr; in alloc_from_simple_generic_check() 65 phys_addr_t size = SZ_32; in alloc_from_misaligned_generic_check() 66 phys_addr_t min_addr; in alloc_from_misaligned_generic_check() 112 phys_addr_t size = SZ_32; in alloc_from_top_down_high_addr_check() 113 phys_addr_t min_addr; in alloc_from_top_down_high_addr_check() 155 phys_addr_t r1_size = SZ_64; in alloc_from_top_down_no_space_above_check() 156 phys_addr_t r2_size = SZ_2; in alloc_from_top_down_no_space_above_check() 157 phys_addr_t total_size = r1_size + r2_size; in alloc_from_top_down_no_space_above_check() 158 phys_addr_t min_addr; in alloc_from_top_down_no_space_above_check() [all …]
|
D | alloc_api.c | 13 static inline void *run_memblock_alloc(phys_addr_t size, phys_addr_t align) in run_memblock_alloc() 28 phys_addr_t size = SZ_2; in alloc_top_down_simple_check() 29 phys_addr_t expected_start; in alloc_top_down_simple_check() 77 phys_addr_t r2_size = SZ_16; in alloc_top_down_disjoint_check() 79 phys_addr_t alignment = SMP_CACHE_BYTES * 2; in alloc_top_down_disjoint_check() 80 phys_addr_t total_size; in alloc_top_down_disjoint_check() 81 phys_addr_t expected_start; in alloc_top_down_disjoint_check() 130 phys_addr_t r1_size = SMP_CACHE_BYTES; in alloc_top_down_before_check() 131 phys_addr_t r2_size = SZ_512; in alloc_top_down_before_check() 132 phys_addr_t total_size = r1_size + r2_size; in alloc_top_down_before_check() [all …]
|
/Linux-v6.1/include/linux/clk/ |
D | mmp.h | 7 extern void pxa168_clk_init(phys_addr_t mpmu_phys, 8 phys_addr_t apmu_phys, 9 phys_addr_t apbc_phys); 10 extern void pxa910_clk_init(phys_addr_t mpmu_phys, 11 phys_addr_t apmu_phys, 12 phys_addr_t apbc_phys, 13 phys_addr_t apbcp_phys); 14 extern void mmp2_clk_init(phys_addr_t mpmu_phys, 15 phys_addr_t apmu_phys, 16 phys_addr_t apbc_phys);
|
/Linux-v6.1/arch/arm/include/asm/ |
D | outercache.h | 40 static inline void outer_inv_range(phys_addr_t start, phys_addr_t end) in outer_inv_range() 51 static inline void outer_clean_range(phys_addr_t start, phys_addr_t end) in outer_clean_range() 62 static inline void outer_flush_range(phys_addr_t start, phys_addr_t end) in outer_flush_range() 108 static inline void outer_inv_range(phys_addr_t start, phys_addr_t end) in outer_inv_range() 110 static inline void outer_clean_range(phys_addr_t start, phys_addr_t end) in outer_clean_range() 112 static inline void outer_flush_range(phys_addr_t start, phys_addr_t end) in outer_flush_range()
|
D | memory.h | 193 #define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT) 248 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug() 250 phys_addr_t t; in __virt_to_phys_nodebug() 252 if (sizeof(phys_addr_t) == 4) { in __virt_to_phys_nodebug() 260 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt() 279 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug() 281 return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET; in __virt_to_phys_nodebug() 284 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt() 298 extern phys_addr_t __virt_to_phys(unsigned long x); 299 extern phys_addr_t __phys_addr_symbol(unsigned long x); [all …]
|
/Linux-v6.1/arch/mips/cavium-octeon/ |
D | dma-octeon.c | 31 dma_addr_t (*phys_to_dma)(struct device *dev, phys_addr_t paddr); 32 phys_addr_t (*dma_to_phys)(struct device *dev, dma_addr_t daddr); 35 static dma_addr_t octeon_hole_phys_to_dma(phys_addr_t paddr) in octeon_hole_phys_to_dma() 43 static phys_addr_t octeon_hole_dma_to_phys(dma_addr_t daddr) in octeon_hole_dma_to_phys() 51 static dma_addr_t octeon_gen1_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen1_phys_to_dma() 58 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys() 73 static dma_addr_t octeon_gen2_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_gen2_phys_to_dma() 78 static phys_addr_t octeon_gen2_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen2_dma_to_phys() 88 static dma_addr_t octeon_big_phys_to_dma(struct device *dev, phys_addr_t paddr) in octeon_big_phys_to_dma() 100 static phys_addr_t octeon_big_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_big_dma_to_phys() [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/mmu/ |
D | isp_mmu.c | 60 static unsigned int atomisp_get_pte(phys_addr_t pt, unsigned int idx) in atomisp_get_pte() 67 static void atomisp_set_pte(phys_addr_t pt, in atomisp_set_pte() 74 static void *isp_pt_phys_to_virt(phys_addr_t phys) in isp_pt_phys_to_virt() 79 static phys_addr_t isp_pte_to_pgaddr(struct isp_mmu *mmu, in isp_pte_to_pgaddr() 86 phys_addr_t phys) in isp_pgaddr_to_pte_valid() 97 static phys_addr_t alloc_page_table(struct isp_mmu *mmu) in alloc_page_table() 100 phys_addr_t page; in alloc_page_table() 106 return (phys_addr_t)NULL_PAGE; in alloc_page_table() 125 static void free_page_table(struct isp_mmu *mmu, phys_addr_t page) in free_page_table() 143 phys_addr_t l1_pt, unsigned int l1_idx, in mmu_remap_error() [all …]
|
/Linux-v6.1/arch/powerpc/mm/ |
D | mmu_decl.h | 92 extern void setbat(int index, unsigned long virt, phys_addr_t phys, 100 extern phys_addr_t total_memory; 101 extern phys_addr_t total_lowmem; 102 extern phys_addr_t memstart_addr; 103 extern phys_addr_t lowmem_end_addr; 121 void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys); 129 void kaslr_early_init(void *dt_ptr, phys_addr_t size); 132 static inline void kaslr_early_init(void *dt_ptr, phys_addr_t size) {} in kaslr_early_init() 153 phys_addr_t v_block_mapped(unsigned long va); 154 unsigned long p_block_mapped(phys_addr_t pa); [all …]
|
/Linux-v6.1/include/linux/soc/qcom/ |
D | mdt_loader.h | 19 const char *fw_name, int pas_id, phys_addr_t mem_phys, 23 phys_addr_t mem_phys, size_t mem_size, 24 phys_addr_t *reloc_base); 28 phys_addr_t mem_phys, size_t mem_size, 29 phys_addr_t *reloc_base); 41 const char *fw_name, int pas_id, phys_addr_t mem_phys, in qcom_mdt_pas_init() 49 void *mem_region, phys_addr_t mem_phys, in qcom_mdt_load() 50 size_t mem_size, phys_addr_t *reloc_base) in qcom_mdt_load() 58 void *mem_region, phys_addr_t mem_phys, in qcom_mdt_load_no_init() 60 phys_addr_t *reloc_base) in qcom_mdt_load_no_init()
|
/Linux-v6.1/kernel/dma/ |
D | contiguous.c | 72 static const phys_addr_t size_bytes __initconst = 73 (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M; 74 static phys_addr_t size_cmdline __initdata = -1; 75 static phys_addr_t base_cmdline __initdata; 76 static phys_addr_t limit_cmdline __initdata; 102 static phys_addr_t pernuma_size_bytes __initdata; 114 static phys_addr_t __init __maybe_unused cma_early_percent_memory(void) in cma_early_percent_memory() 123 static inline __maybe_unused phys_addr_t cma_early_percent_memory(void) in cma_early_percent_memory() 167 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() 169 phys_addr_t selected_size = 0; in dma_contiguous_reserve() [all …]
|
/Linux-v6.1/arch/arm/mm/ |
D | pmsa-v7.c | 20 phys_addr_t base; 21 phys_addr_t size; 146 static bool __init try_split_region(phys_addr_t base, phys_addr_t size, struct region *region) in try_split_region() 149 phys_addr_t abase = base & ~(size - 1); in try_split_region() 150 phys_addr_t asize = base + size - abase; in try_split_region() 151 phys_addr_t p2size = 1 << __fls(asize); in try_split_region() 152 phys_addr_t bdiff, sdiff; in try_split_region() 189 static int __init allocate_region(phys_addr_t base, phys_addr_t size, in allocate_region() 193 phys_addr_t diff = size; in allocate_region() 212 phys_addr_t asize = (base - 1) ^ base; in allocate_region() [all …]
|
/Linux-v6.1/drivers/xen/ |
D | swiotlb-xen.c | 47 static inline phys_addr_t xen_phys_to_bus(struct device *dev, phys_addr_t paddr) in xen_phys_to_bus() 50 phys_addr_t baddr = (phys_addr_t)bfn << XEN_PAGE_SHIFT; in xen_phys_to_bus() 56 static inline dma_addr_t xen_phys_to_dma(struct device *dev, phys_addr_t paddr) in xen_phys_to_dma() 61 static inline phys_addr_t xen_bus_to_phys(struct device *dev, in xen_bus_to_phys() 62 phys_addr_t baddr) in xen_bus_to_phys() 65 phys_addr_t paddr = (xen_pfn << XEN_PAGE_SHIFT) | in xen_bus_to_phys() 71 static inline phys_addr_t xen_dma_to_phys(struct device *dev, in xen_dma_to_phys() 77 static inline int range_straddles_page_boundary(phys_addr_t p, size_t size) in range_straddles_page_boundary() 95 phys_addr_t paddr = (phys_addr_t)xen_pfn << XEN_PAGE_SHIFT; in is_xen_swiotlb_buffer() 113 phys_addr_t p = virt_to_phys(buf); in xen_swiotlb_fixup() [all …]
|
/Linux-v6.1/sound/soc/sof/mediatek/ |
D | adsp_helper.h | 16 phys_addr_t pa_sram; 17 phys_addr_t pa_dram; /* adsp dram physical base */ 18 phys_addr_t pa_shared_dram; /* adsp dram physical base */ 19 phys_addr_t pa_cfgreg; 29 phys_addr_t adsp_bootup_addr; 32 phys_addr_t pa_secreg; 36 phys_addr_t pa_busreg;
|
/Linux-v6.1/arch/mips/alchemy/devboards/ |
D | platform.h | 7 int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start, 8 phys_addr_t pcmcia_attr_len, 9 phys_addr_t pcmcia_mem_start, 10 phys_addr_t pcmcia_mem_end, 11 phys_addr_t pcmcia_io_start, 12 phys_addr_t pcmcia_io_end,
|
/Linux-v6.1/arch/riscv/mm/ |
D | init.c | 52 phys_addr_t phys_ram_base __ro_after_init; 64 static phys_addr_t dma32_phys_limit __initdata; 170 static phys_addr_t memory_limit; 190 phys_addr_t vmlinux_end = __pa_symbol(&_end); in setup_bootmem() 191 phys_addr_t max_mapped_addr; in setup_bootmem() 192 phys_addr_t phys_ram_end, vmlinux_start; in setup_bootmem() 255 phys_addr_t new_dtb_early_pa = memblock_phys_alloc(fdt_size, PAGE_SIZE); in setup_bootmem() 314 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot) in __set_fixmap() 330 static inline pte_t *__init get_pte_virt_early(phys_addr_t pa) in get_pte_virt_early() 335 static inline pte_t *__init get_pte_virt_fixmap(phys_addr_t pa) in get_pte_virt_fixmap() [all …]
|
/Linux-v6.1/arch/arc/mm/ |
D | cache.c | 31 void (*_cache_line_loop_ic_fn)(phys_addr_t paddr, unsigned long vaddr, 34 void (*__dma_cache_wback_inv)(phys_addr_t start, unsigned long sz); 35 void (*__dma_cache_inv)(phys_addr_t start, unsigned long sz); 36 void (*__dma_cache_wback)(phys_addr_t start, unsigned long sz); 226 void __cache_line_loop_v3(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v3() 286 void __cache_line_loop_v4(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v4() 340 void __cache_line_loop_v4(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v4() 498 static inline void __dc_line_op(phys_addr_t paddr, unsigned long vaddr, in __dc_line_op() 534 __ic_line_inv_vaddr_local(phys_addr_t paddr, unsigned long vaddr, in __ic_line_inv_vaddr_local() 552 phys_addr_t paddr, vaddr; [all …]
|