Home
last modified time | relevance | path

Searched refs:phys_addr_t (Results 1 – 25 of 796) sorted by relevance

12345678910>>...32

/linux/include/linux/
H A Dmemblock.h63 phys_addr_t base;
64 phys_addr_t size;
82 phys_addr_t total_size;
96 phys_addr_t current_limit;
114 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid,
116 int memblock_add(phys_addr_t base, phys_addr_t size);
117 int memblock_remove(phys_addr_t base, phys_addr_t siz
[all...]
H A Dswiotlb.h71 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_single(struct device *hwdev, phys_addr_t phys,
[all …]
H A Dcma.h26 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 cma_init_reserved_mem(phys_addr_t base, phys_addr_t size,
H A Dmbus.h60 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()
H A Ddma-map-ops.h49 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 limit, struct cma **res_cma, in dma_contiguous_reserve_area()
159 int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr,
169 phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory()
[all …]
/linux/mm/
H A Dmemblock.c172 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size()
181 memblock_addrs_overlap(phys_addr_t base1, phys_addr_t size1, phys_addr_t base2, in memblock_addrs_overlap()
182 phys_addr_t size2) in memblock_addrs_overlap()
188 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region()
216 static phys_addr_t __init_memblock
217 __memblock_find_range_bottom_up(phys_addr_t start, phys_addr_t end, in __memblock_find_range_bottom_up()
218 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up()
221 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up()
251 static phys_addr_t __init_memblock
252 __memblock_find_range_top_down(phys_addr_t start, phys_addr_t end, in __memblock_find_range_top_down()
[all …]
H A Dmemtest.c9 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_start, this_end; in do_one_pass()
107 void __init early_memtest(phys_addr_t start, phys_addr_t end) in early_memtest()
/linux/tools/testing/memblock/tests/
H A Dalloc_nid_api.c30 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 misalign = SZ_2; in alloc_nid_top_down_end_misaligned_check()
[all …]
H A Dalloc_exact_nid_api.c33 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_end; in alloc_exact_nid_top_down_numa_split_range_low_check()
[all …]
H A Dalloc_helpers_api.c22 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 …]
H A Dalloc_api.c13 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/arch/arm/include/asm/
H A Doutercache.h40 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()
/linux/arch/mips/cavium-octeon/
H A Ddma-octeon.c31 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/arch/powerpc/mm/
H A Dmmu_decl.h92 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;
122 void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys);
124 void relocate_init(u64 dt_ptr, phys_addr_t start);
131 void kaslr_early_init(void *dt_ptr, phys_addr_t size);
134 static inline void kaslr_early_init(void *dt_ptr, phys_addr_t size) {} in kaslr_early_init()
155 phys_addr_t v_block_mapped(unsigned long va);
[all …]
/linux/include/linux/soc/qcom/
H A Dmdt_loader.h19 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/drivers/xen/
H A Dswiotlb-xen.c47 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 p, size_t size) in range_requires_alignment()
79 phys_addr_t algn = 1ULL << (get_order(size) + PAGE_SHIFT); in range_requires_alignment()
80 phys_addr_t bus_addr = pfn_to_bfn(XEN_PFN_DOWN(p)) << XEN_PAGE_SHIFT; in range_requires_alignment()
[all …]
/linux/arch/arm/mm/
H A Dpmsa-v7.c20 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 …]
H A Dproc.c26 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_phys, struct mm_struct *mm);
[all …]
/linux/kernel/dma/
H A Dcontiguous.c67 static const phys_addr_t size_bytes __initconst =
68 (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
69 static phys_addr_t size_cmdline __initdata = -1;
70 static phys_addr_t base_cmdline __initdata;
71 static phys_addr_t limit_cmdline __initdata;
97 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata;
99 static phys_addr_t pernuma_size_bytes __initdata;
142 static phys_addr_t __init __maybe_unused cma_early_percent_memory(void) in cma_early_percent_memory()
151 static inline __maybe_unused phys_addr_t cma_early_percent_memory(void) in cma_early_percent_memory()
212 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve()
[all …]
/linux/arch/mips/alchemy/devboards/
H A Dplatform.h7 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/arch/riscv/mm/
H A Dinit.c63 phys_addr_t phys_ram_base __ro_after_init;
81 phys_addr_t dma32_phys_limit __initdata;
201 static phys_addr_t memory_limit;
203 #define memory_limit (*(phys_addr_t *)XIP_FIXUP(&memory_limit))
224 phys_addr_t vmlinux_end = __pa_symbol(&_end); in setup_bootmem()
225 phys_addr_t max_mapped_addr; in setup_bootmem()
226 phys_addr_t phys_ram_end, vmlinux_start; in setup_bootmem()
292 memblock_reserve(max_mapped_addr, (phys_addr_t)-max_mapped_addr); in setup_bootmem()
362 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot) in __set_fixmap()
378 static inline pte_t *__init get_pte_virt_early(phys_addr_t pa) in get_pte_virt_early()
[all …]
/linux/arch/arm64/include/asm/
H A Dkvm_mmu.h108 #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/of/
H A Dof_reserved_mem.c35 static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size, in early_init_dt_alloc_reserved_memory_arch()
36 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap, in early_init_dt_alloc_reserved_memory_arch()
37 phys_addr_t *res_base) in early_init_dt_alloc_reserved_memory_arch()
39 phys_addr_t base; in early_init_dt_alloc_reserved_memory_arch()
110 phys_addr_t base, phys_addr_t size) in fdt_reserved_mem_save_node()
131 static int __init early_init_dt_reserve_memory(phys_addr_t base, in early_init_dt_reserve_memory()
132 phys_addr_t size, bool nomap) in early_init_dt_reserve_memory()
156 phys_addr_t base, size; in __reserved_mem_reserve_reg()
229 phys_addr_t base, size; in fdt_scan_reserved_mem_reg_nodes()
346 static int __init __reserved_mem_alloc_in_range(phys_addr_t size, in __reserved_mem_alloc_in_range()
[all …]
/linux/sound/soc/sof/mediatek/
H A Dadsp_helper.h16 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;
/linux/arch/powerpc/mm/nohash/
H A De500.c59 phys_addr_t phys;
66 phys_addr_t v_block_mapped(unsigned long va) in v_block_mapped()
78 unsigned long p_block_mapped(phys_addr_t pa) in p_block_mapped()
97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam()
139 phys_addr_t phys) in calc_cam_sz()
163 static unsigned long map_mem_in_cams_addr(phys_addr_t phys, unsigned long virt, in map_mem_in_cams_addr()
227 phys_addr_t phys = memstart_addr; in map_mem_in_cams()
272 ram = min((phys_addr_t)__max_low_memory, (phys_addr_t)total_lowmem); in adjust_total_lowmem()
307 void setup_initial_memory_limit(phys_addr_t first_memblock_base, in setup_initial_memory_limit()
308 phys_addr_t first_memblock_size) in setup_initial_memory_limit()
[all …]

12345678910>>...32