/linux/mm/ |
H A D | memblock.c | 189 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size() 198 memblock_addrs_overlap(phys_addr_t base1, phys_addr_t size1, phys_addr_t base2, in memblock_addrs_overlap() 199 phys_addr_t size2) in memblock_addrs_overlap() 205 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region() 233 static phys_addr_t __init_membloc [all...] |
H A D | memtest.c | 9 static phys_addr_t early_memtest_bad_size; 32 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() 40 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size) in memtest() 43 phys_addr_t start_bad, last_bad; in memtest() 44 phys_addr_t start_phys_aligned; in memtest() 73 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() 76 phys_addr_t this_star in do_one_pass() [all...] |
/linux/tools/testing/memblock/tests/ |
H A D | alloc_nid_api.c | 30 static inline void *run_memblock_alloc_nid(phys_addr_t size, in run_memblock_alloc_nid() 31 phys_addr_t align, in run_memblock_alloc_nid() 32 phys_addr_t min_addr, in run_memblock_alloc_nid() 33 phys_addr_t max_addr, int nid) in run_memblock_alloc_nid() 68 phys_addr_t size = SZ_128; in alloc_nid_top_down_simple_check() 69 phys_addr_t min_addr; in alloc_nid_top_down_simple_check() 70 phys_addr_t max_addr; in alloc_nid_top_down_simple_check() 71 phys_addr_t rgn_end; in alloc_nid_top_down_simple_check() 120 phys_addr_t size = SZ_128; in alloc_nid_top_down_end_misaligned_check() 121 phys_addr_t misalig in alloc_nid_top_down_end_misaligned_check() [all...] |
H A D | alloc_exact_nid_api.c | 33 phys_addr_t size; in alloc_exact_nid_top_down_numa_simple_check() 34 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_simple_check() 35 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_simple_check() 86 phys_addr_t size; in alloc_exact_nid_top_down_numa_part_reserved_check() 87 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_part_reserved_check() 88 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_part_reserved_check() 146 phys_addr_t size = SZ_512; in alloc_exact_nid_top_down_numa_split_range_low_check() 147 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_split_range_low_check() 148 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_split_range_low_check() 149 phys_addr_t req_node_en in alloc_exact_nid_top_down_numa_split_range_low_check() [all...] |
H A 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_add in alloc_from_top_down_no_space_above_check() [all...] |
H A 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_siz in alloc_top_down_before_check() [all...] |
/linux/arch/arm/include/asm/ |
H A 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 en in outer_inv_range() [all...] |
H A D | memory.h | 192 #define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT) 247 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug() 249 phys_addr_t t; in __virt_to_phys_nodebug() 251 if (sizeof(phys_addr_t) == 4) { in __virt_to_phys_nodebug() 259 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt() 265 * phys_addr_t is 64 bit, and makes sure that inline in __phys_to_virt() 278 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug() 280 return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET; in __virt_to_phys_nodebug() 283 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt() 299 extern phys_addr_t __virt_to_phy [all...] |
/linux/include/linux/ |
H A D | kexec_handover.h | 9 phys_addr_t addr; 10 phys_addr_t size; 24 phys_addr_t phys; \ 45 int kho_preserve_phys(phys_addr_t phys, size_t size); 46 struct folio *kho_restore_folio(phys_addr_t phys); 48 int kho_retrieve_subtree(const char *name, phys_addr_t *phys); 55 void kho_populate(phys_addr_t fdt_phys, u64 fdt_len, phys_addr_t scratch_phys, 68 static inline int kho_preserve_phys(phys_addr_t phys, size_t size) in kho_preserve_phys() 73 static inline struct folio *kho_restore_folio(phys_addr_t phy [all...] |
H A D | cma.h | 26 extern phys_addr_t cma_get_base(const struct cma *cma); 30 extern int __init cma_declare_contiguous_nid(phys_addr_t base, 31 phys_addr_t size, phys_addr_t limit, 32 phys_addr_t alignment, unsigned int order_per_bit, 35 static inline int __init cma_declare_contiguous(phys_addr_t base, in cma_declare_contiguous() 36 phys_addr_t size, phys_addr_t limit, in cma_declare_contiguous() 37 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous() 43 extern int __init cma_declare_contiguous_multi(phys_addr_t siz in cma_declare_contiguous() [all...] |
H A D | swiotlb.h | 71 phys_addr_t start; 72 phys_addr_t end; 128 struct io_tlb_pool *__swiotlb_find_pool(struct device *dev, phys_addr_t paddr); 143 phys_addr_t paddr) in swiotlb_find_pool() 186 phys_addr_t default_swiotlb_base(void); 187 phys_addr_t default_swiotlb_limit(void); 198 phys_addr_t paddr) in swiotlb_find_pool() 228 static inline phys_addr_t default_swiotlb_base(void) in default_swiotlb_base() 233 static inline phys_addr_t default_swiotlb_limit(void) in default_swiotlb_limit() 239 phys_addr_t swiotlb_tbl_map_singl [all...] |
H A 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 phyadd [all...] |
H A D | dma-map-ops.h | 49 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr, 109 void dma_contiguous_reserve(phys_addr_t addr_limit); 110 int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, 111 phys_addr_t limit, struct cma **res_cma, bool fixed); 120 void dma_contiguous_early_fixup(phys_addr_t base, unsigned long size); 126 static inline void dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() 129 static inline int dma_contiguous_reserve_area(phys_addr_t size, in dma_contiguous_reserve_area() 130 phys_addr_t base, phys_addr_t limi in dma_contiguous_reserve_area() [all...] |
/linux/arch/mips/cavium-octeon/ |
H A 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_phy [all...] |
/linux/arch/arm64/include/asm/ |
H A D | rsi.h | 19 bool __arm64_is_protected_mmio(phys_addr_t base, size_t size); 26 static inline int rsi_set_memory_range(phys_addr_t start, phys_addr_t end, in rsi_set_memory_range() 30 phys_addr_t top; in rsi_set_memory_range() 46 static inline int rsi_set_memory_range_protected(phys_addr_t start, in rsi_set_memory_range_protected() 47 phys_addr_t end) in rsi_set_memory_range_protected() 57 static inline int rsi_set_memory_range_protected_safe(phys_addr_t start, in rsi_set_memory_range_protected_safe() 58 phys_addr_t end) in rsi_set_memory_range_protected_safe() 64 static inline int rsi_set_memory_range_shared(phys_addr_t start, in rsi_set_memory_range_shared() 65 phys_addr_t en in rsi_set_memory_range_shared() [all...] |
H A D | kvm_mmu.h | 108 #define __hyp_pa(x) (((phys_addr_t)(x)) + hyp_physvirt_offset) 163 int create_hyp_io_mappings(phys_addr_t phys_addr, size_t size, 166 int create_hyp_exec_mappings(phys_addr_t phys_addr, size_t size, 168 int create_hyp_stack(phys_addr_t phys_addr, unsigned long *haddr); 171 void kvm_stage2_unmap_range(struct kvm_s2_mmu *mmu, phys_addr_t start, 173 void kvm_stage2_flush_range(struct kvm_s2_mmu *mmu, phys_addr_t addr, phys_addr_t end); 174 void kvm_stage2_wp_range(struct kvm_s2_mmu *mmu, phys_addr_t addr, phys_addr_t end); 180 int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ip [all...] |
/linux/drivers/staging/media/atomisp/pci/mmu/ |
H A D | isp_mmu.c | 49 static unsigned int atomisp_get_pte(phys_addr_t pt, unsigned int idx) in atomisp_get_pte() 56 static void atomisp_set_pte(phys_addr_t pt, in atomisp_set_pte() 63 static void *isp_pt_phys_to_virt(phys_addr_t phys) in isp_pt_phys_to_virt() 68 static phys_addr_t isp_pte_to_pgaddr(struct isp_mmu *mmu, in isp_pte_to_pgaddr() 75 phys_addr_t phys) in isp_pgaddr_to_pte_valid() 86 static phys_addr_t alloc_page_table(struct isp_mmu *mmu) in alloc_page_table() 89 phys_addr_t page; in alloc_page_table() 95 return (phys_addr_t)NULL_PAGE; in alloc_page_table() 114 static void free_page_table(struct isp_mmu *mmu, phys_addr_t page) in free_page_table() 132 phys_addr_t l1_p in mmu_remap_error() [all...] |
/linux/include/linux/soc/qcom/ |
H A 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_bas in qcom_mdt_load_no_init() [all...] |
/linux/drivers/xen/ |
H A 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 bool range_requires_alignment(phys_addr_t [all...] |
/linux/arch/arm/mm/ |
H A 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 siz [all...] |
H A D | proc.c | 26 void cpu_arm7tdmi_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 41 void cpu_arm720_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 58 void cpu_arm740_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 73 void cpu_arm9tdmi_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 88 void cpu_arm920_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 111 void cpu_arm922_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 128 void cpu_arm925_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 145 void cpu_arm926_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 168 void cpu_arm940_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 183 void cpu_arm946_switch_mm(phys_addr_t pgd_phy [all...] |
/linux/arch/mips/alchemy/devboards/ |
H A 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/kernel/dma/ |
H A D | contiguous.c | 67 #define size_bytes ((phys_addr_t)CMA_SIZE_MBYTES * SZ_1M) 68 static phys_addr_t size_cmdline __initdata = -1; 69 static phys_addr_t base_cmdline __initdata; 70 static phys_addr_t limit_cmdline __initdata; 96 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata; 98 static phys_addr_t pernuma_size_bytes __initdata; 141 static phys_addr_t __init __maybe_unused cma_early_percent_memory(void) in cma_early_percent_memory() 150 static inline __maybe_unused phys_addr_t cma_early_percent_memory(void) in cma_early_percent_memory() 211 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() 213 phys_addr_t selected_siz in dma_contiguous_reserve() [all...] |
/linux/arch/arm64/mm/ |
H A D | mmu.c | 118 static phys_addr_t __init early_pgtable_alloc(enum pgtable_type pgtable_type) in early_pgtable_alloc() 120 phys_addr_t phys; in early_pgtable_alloc() 178 phys_addr_t phys, pgprot_t prot) in init_pte() 201 unsigned long end, phys_addr_t phys, in alloc_init_cont_pte() 203 phys_addr_t (*pgtable_alloc)(enum pgtable_type), in alloc_init_cont_pte() 213 phys_addr_t pte_phys; in alloc_init_cont_pte() 253 phys_addr_t phys, pgprot_t prot, in init_pmd() 254 phys_addr_t (*pgtable_alloc)(enum pgtable_type), int flags) in init_pmd() 286 unsigned long end, phys_addr_t phys, in alloc_init_cont_pmd() 288 phys_addr_t (*pgtable_allo in alloc_init_cont_pmd() [all...] |
/linux/sound/soc/sof/mediatek/ |
H A 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_cfgreg; 25 phys_addr_t adsp_bootup_addr; 28 phys_addr_t pa_secreg; 32 phys_addr_t pa_busreg;
|