Home
last modified time | relevance | path

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

12345678910>>...41

/linux-6.6.21/include/linux/
Dmemblock.h60 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 …]
Dcma.h30 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,
Dswiotlb.h45 phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, phys_addr_t phys,
51 phys_addr_t tlb_addr,
56 void swiotlb_sync_single_for_device(struct device *dev, phys_addr_t tlb_addr,
58 void swiotlb_sync_single_for_cpu(struct device *dev, phys_addr_t tlb_addr,
60 dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys,
89 phys_addr_t start;
90 phys_addr_t end;
145 struct io_tlb_pool *swiotlb_find_pool(struct device *dev, phys_addr_t paddr);
150 phys_addr_t paddr) in swiotlb_find_pool()
168 static inline bool is_swiotlb_buffer(struct device *dev, phys_addr_t paddr) in is_swiotlb_buffer()
[all …]
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()
Ddma-direct.h21 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,
/linux-6.6.21/mm/
Dmemblock.c175 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size()
184 memblock_addrs_overlap(phys_addr_t base1, phys_addr_t size1, phys_addr_t base2, in memblock_addrs_overlap()
185 phys_addr_t size2) in memblock_addrs_overlap()
191 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region()
219 static phys_addr_t __init_memblock
220 __memblock_find_range_bottom_up(phys_addr_t start, phys_addr_t end, in __memblock_find_range_bottom_up()
221 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up()
224 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up()
254 static phys_addr_t __init_memblock
255 __memblock_find_range_top_down(phys_addr_t start, phys_addr_t end, in __memblock_find_range_top_down()
[all …]
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-6.6.21/tools/testing/memblock/tests/
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 …]
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 …]
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 …]
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-6.6.21/arch/arm/include/asm/
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()
Dmemory.h198 #define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT)
253 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug()
255 phys_addr_t t; in __virt_to_phys_nodebug()
257 if (sizeof(phys_addr_t) == 4) { in __virt_to_phys_nodebug()
265 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt()
284 static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x) in __virt_to_phys_nodebug()
286 return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET; in __virt_to_phys_nodebug()
289 static inline unsigned long __phys_to_virt(phys_addr_t x) in __phys_to_virt()
305 extern phys_addr_t __virt_to_phys(unsigned long x);
306 extern phys_addr_t __phys_addr_symbol(unsigned long x);
[all …]
/linux-6.6.21/arch/mips/cavium-octeon/
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-6.6.21/drivers/staging/media/atomisp/pci/mmu/
Disp_mmu.c60 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-6.6.21/arch/powerpc/mm/
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-6.6.21/include/linux/soc/qcom/
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-6.6.21/arch/arm/mm/
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 …]
/linux-6.6.21/drivers/xen/
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 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-6.6.21/arch/mips/alchemy/devboards/
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-6.6.21/sound/soc/sof/mediatek/
Dadsp_helper.h16 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-6.6.21/kernel/dma/
Dcontiguous.c73 static const phys_addr_t size_bytes __initconst =
74 (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
75 static phys_addr_t size_cmdline __initdata = -1;
76 static phys_addr_t base_cmdline __initdata;
77 static phys_addr_t limit_cmdline __initdata;
103 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata;
105 static phys_addr_t pernuma_size_bytes __initdata;
148 static phys_addr_t __init __maybe_unused cma_early_percent_memory(void) in cma_early_percent_memory()
157 static inline __maybe_unused phys_addr_t cma_early_percent_memory(void) in cma_early_percent_memory()
218 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve()
[all …]
/linux-6.6.21/arch/riscv/mm/
Dinit.c57 phys_addr_t phys_ram_base __ro_after_init;
68 static phys_addr_t dma32_phys_limit __initdata;
174 static phys_addr_t memory_limit;
176 #define memory_limit (*(phys_addr_t *)XIP_FIXUP(&memory_limit))
197 phys_addr_t vmlinux_end = __pa_symbol(&_end); in setup_bootmem()
198 phys_addr_t max_mapped_addr; in setup_bootmem()
199 phys_addr_t phys_ram_end, vmlinux_start; in setup_bootmem()
317 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot) in __set_fixmap()
333 static inline pte_t *__init get_pte_virt_early(phys_addr_t pa) in get_pte_virt_early()
338 static inline pte_t *__init get_pte_virt_fixmap(phys_addr_t pa) in get_pte_virt_fixmap()
[all …]
/linux-6.6.21/drivers/of/
Dof_reserved_mem.c33 static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size, in early_init_dt_alloc_reserved_memory_arch()
34 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap, in early_init_dt_alloc_reserved_memory_arch()
35 phys_addr_t *res_base) in early_init_dt_alloc_reserved_memory_arch()
37 phys_addr_t base; in early_init_dt_alloc_reserved_memory_arch()
62 phys_addr_t base, phys_addr_t size) in fdt_reserved_mem_save_node()
85 static int __init __reserved_mem_alloc_in_range(phys_addr_t size, in __reserved_mem_alloc_in_range()
86 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap, in __reserved_mem_alloc_in_range()
87 phys_addr_t *res_base) in __reserved_mem_alloc_in_range()
136 const char *uname, phys_addr_t *res_base, phys_addr_t *res_size) in __reserved_mem_alloc_size()
139 phys_addr_t start = 0, end = 0; in __reserved_mem_alloc_size()
[all …]
/linux-6.6.21/arch/arc/mm/
Dcache.c35 void (*_cache_line_loop_ic_fn)(phys_addr_t paddr, unsigned long vaddr,
38 void (*__dma_cache_wback_inv)(phys_addr_t start, unsigned long sz);
39 void (*__dma_cache_inv)(phys_addr_t start, unsigned long sz);
40 void (*__dma_cache_wback)(phys_addr_t start, unsigned long sz);
189 void __cache_line_loop_v3(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v3()
249 void __cache_line_loop_v4(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v4()
303 void __cache_line_loop_v4(phys_addr_t paddr, unsigned long vaddr, in __cache_line_loop_v4()
461 static inline void __dc_line_op(phys_addr_t paddr, unsigned long vaddr, in __dc_line_op()
497 __ic_line_inv_vaddr_local(phys_addr_t paddr, unsigned long vaddr, in __ic_line_inv_vaddr_local()
515 phys_addr_t paddr, vaddr;
[all …]

12345678910>>...41