Home
last modified time | relevance | path

Searched refs:paddr (Results 1 – 25 of 40) sorted by relevance

12

/u-boot/lib/
A Daddr_map.c26 return addr - address_map[i].vaddr + address_map[i].paddr; in addrmap_virt_to_phys()
33 void *addrmap_phys_to_virt(phys_addr_t paddr) in addrmap_phys_to_virt() argument
43 base = address_map[i].paddr; in addrmap_phys_to_virt()
46 if (paddr >= base && paddr <= upper) { in addrmap_phys_to_virt()
49 offset = address_map[i].paddr - address_map[i].vaddr; in addrmap_phys_to_virt()
51 return (void *)(unsigned long)(paddr - offset); in addrmap_phys_to_virt()
58 void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, in addrmap_set_entry() argument
65 address_map[idx].paddr = paddr; in addrmap_set_entry()
/u-boot/include/asm-generic/
A Dio.h30 static inline void *phys_to_virt(phys_addr_t paddr) in phys_to_virt() argument
32 return (void *)(unsigned long)paddr; in phys_to_virt()
86 static inline void *map_physmem(phys_addr_t paddr, unsigned long len, in map_physmem() argument
89 return phys_to_virt(paddr); in map_physmem()
/u-boot/include/
A Daddr_map.h12 phys_addr_t paddr; member
20 void *addrmap_phys_to_virt(phys_addr_t paddr);
21 void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
A Dmapmem.h16 static inline void *map_sysmem(phys_addr_t paddr, unsigned long len) in map_sysmem() argument
18 return (void *)(uintptr_t)paddr; in map_sysmem()
/u-boot/arch/sandbox/cpu/
A Dcpu.c98 void *phys_to_virt(phys_addr_t paddr) in phys_to_virt() argument
104 if (paddr < gd->ram_size) in phys_to_virt()
105 return (void *)(gd->arch.ram_buf + paddr); in phys_to_virt()
113 if (mentry->tag == paddr) { in phys_to_virt()
115 (ulong)paddr, mentry->ptr); in phys_to_virt()
121 __func__, (ulong)paddr, (ulong)gd->ram_size); in phys_to_virt()
166 void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags) in map_physmem() argument
173 if (enable_pci_map && !pci_map_physmem(paddr, &len, &map_dev, &ptr)) { in map_physmem()
176 __func__, (uint)paddr, len, plen); in map_physmem()
183 return phys_to_virt(paddr); in map_physmem()
/u-boot/arch/arc/lib/
A Dcache.c421 static void __slc_rgn_op(unsigned long paddr, unsigned long sz, const int op) in __slc_rgn_op() argument
457 end = paddr + sz + gd->arch.slc_line_sz - 1; in __slc_rgn_op()
465 write_aux_reg(ARC_AUX_SLC_RGN_START, paddr); in __slc_rgn_op()
664 static inline void __dcache_line_loop(unsigned long paddr, unsigned long sz, in __dcache_line_loop() argument
673 sz += paddr & ~CACHE_LINE_MASK; in __dcache_line_loop()
674 paddr &= CACHE_LINE_MASK; in __dcache_line_loop()
680 write_aux_reg(ARC_AUX_DC_PTAG, paddr); in __dcache_line_loop()
682 write_aux_reg(aux_cmd, paddr); in __dcache_line_loop()
683 paddr += gd->arch.l1_line_sz; in __dcache_line_loop()
727 static inline void __dc_line_op(unsigned long paddr, unsigned long sz, in __dc_line_op() argument
[all …]
/u-boot/arch/arm/mach-rockchip/
A Dmake_fit_atf.py135 for index, entry, paddr, data in segments:
136 append_bl31_node(fit_file, index + 1, paddr, entry)
141 for index, entry, paddr, data in tee_segments:
142 append_tee_node(fit_file, num_segments + index + 1, paddr, entry)
165 for index, entry, paddr, data in unpack_elf(bl31_file_name):
166 file_name = 'bl31_0x%08x.bin' % paddr
172 for index, entry, paddr, data in unpack_elf(tee_file_name):
173 file_name = 'tee_0x%08x.bin' % paddr
/u-boot/tools/
A Dmkimage.h34 static inline void *map_sysmem(ulong paddr, unsigned long len) in map_sysmem() argument
36 return (void *)(uintptr_t)paddr; in map_sysmem()
/u-boot/drivers/remoteproc/
A Dstm32_copro.c70 u64 paddr; in stm32_copro_device_to_virt() local
72 paddr = dev_translate_dma_address(dev, &in_addr); in stm32_copro_device_to_virt()
73 if (paddr == OF_BAD_ADDR) { in stm32_copro_device_to_virt()
84 return phys_to_virt(paddr); in stm32_copro_device_to_virt()
A Dsandbox_testproc.c316 u64 paddr; in sandbox_testproc_device_to_virt() local
319 paddr = da + SANDBOX_RPROC_DEV_TO_PHY_OFFSET; in sandbox_testproc_device_to_virt()
321 return phys_to_virt(paddr); in sandbox_testproc_device_to_virt()
/u-boot/arch/sandbox/lib/
A Dpci_io.c17 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp, in pci_map_physmem() argument
31 ret = (ops->map_physmem)(dev, paddr, lenp, ptrp); in pci_map_physmem()
38 debug("%s: failed: addr=%pap\n", __func__, &paddr); in pci_map_physmem()
/u-boot/test/dm/
A Dtest-fdt.c681 void *paddr; in dm_test_fdt_remap_addr_flat() local
689 ut_assertnonnull(paddr); in dm_test_fdt_remap_addr_flat()
702 void *paddr; in dm_test_fdt_remap_addr_index_flat() local
711 ut_assertnonnull(paddr); in dm_test_fdt_remap_addr_index_flat()
724 void *paddr; in dm_test_fdt_remap_addr_name_flat() local
733 ut_assertnonnull(paddr); in dm_test_fdt_remap_addr_name_flat()
745 void *paddr; in dm_test_fdt_remap_addr_live() local
753 ut_assertnonnull(paddr); in dm_test_fdt_remap_addr_live()
766 void *paddr; in dm_test_fdt_remap_addr_index_live() local
775 ut_assertnonnull(paddr); in dm_test_fdt_remap_addr_index_live()
[all …]
/u-boot/drivers/firmware/scmi/
A Dsmt.c34 phys_addr_t paddr; in scmi_dt_get_smt_buffer() local
45 paddr = ofnode_translate_address(args.node, &faddr); in scmi_dt_get_smt_buffer()
53 smt->buf = devm_ioremap(dev, paddr, smt->size); in scmi_dt_get_smt_buffer()
/u-boot/arch/nios2/include/asm/
A Dio.h25 map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags) in map_physmem() argument
29 return (void *)(paddr | gd->arch.io_region_base); in map_physmem()
31 return (void *)(paddr | gd->arch.mem_region_base); in map_physmem()
35 static inline void *phys_to_virt(phys_addr_t paddr) in phys_to_virt() argument
39 return (void *)(paddr | gd->arch.mem_region_base); in phys_to_virt()
/u-boot/arch/nds32/include/asm/
A Dio.h41 static inline void *map_sysmem(phys_addr_t paddr, unsigned long len) in map_sysmem() argument
43 if(paddr <PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE) in map_sysmem()
44 paddr = paddr | 0x40000000; in map_sysmem()
45 return (void *)(uintptr_t)paddr; in map_sysmem()
50 phys_addr_t paddr = (phys_addr_t)vaddr; in unmap_sysmem() local
51 paddr = paddr & ~0x40000000; in unmap_sysmem()
52 return (void *)(uintptr_t)paddr; in unmap_sysmem()
/u-boot/arch/riscv/include/asm/
A Dio.h21 static inline void *map_sysmem(phys_addr_t paddr, unsigned long len) in map_sysmem() argument
23 if (paddr < PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE) in map_sysmem()
24 paddr = paddr | 0x40000000; in map_sysmem()
25 return (void *)(uintptr_t)paddr; in map_sysmem()
30 phys_addr_t paddr = (phys_addr_t)vaddr; in unmap_sysmem() local
32 paddr = paddr & ~0x40000000; in unmap_sysmem()
33 return (void *)(uintptr_t)paddr; in unmap_sysmem()
/u-boot/drivers/net/fm/
A Dinit.c247 phys_addr_t paddr = CONFIG_SYS_CCSRBAR_PHYS + info->compat_offset; in ft_fixup_port() local
253 off = fdt_node_offset_by_compat_reg(blob, prop, paddr); in ft_fixup_port()
259 board_ft_fman_fixup_port(blob, prop, paddr, info->port, off); in ft_fixup_port()
301 off = fdt_node_offset_by_compat_reg(blob, prop, paddr); in ft_fixup_port()
305 if (paddr != dtsec1_addr) in ft_fixup_port()
/u-boot/include/net/
A Dpcap.h15 int pcap_init(phys_addr_t paddr, unsigned long size);
/u-boot/arch/sandbox/include/asm/
A Du-boot-sandbox.h49 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp,
/u-boot/net/
A Dpcap.c49 int pcap_init(phys_addr_t paddr, unsigned long size) in pcap_init() argument
51 buf = map_physmem(paddr, size, 0); in pcap_init()
/u-boot/cmd/
A Daddrmap.c24 (unsigned long long)address_map[i].paddr, in do_addrmap()
/u-boot/drivers/video/
A Dfsl_diu_fb.c184 u32 paddr; /* 32-bit physical address */ member
212 buf->paddr = virt_to_phys(buf->vaddr); in allocate_buf()
238 ad->addr = cpu_to_le32(addr.paddr + ad_size); in allocate_fb()
350 out_be32(&hw->gamma, gamma.paddr); in fsl_diu_init()
351 out_be32(&hw->cursor, cursor.paddr); in fsl_diu_init()
/u-boot/drivers/net/
A Dmacb.c351 unsigned long paddr, ctrl; in _macb_send() local
370 macb_set_addr(macb, &macb->tx_ring[tx_head], paddr); in _macb_send()
389 dma_unmap_single(paddr, length, DMA_TO_DEVICE); in _macb_send()
815 unsigned long paddr; in gmac_init_multi_queues() local
829 paddr = macb->dummy_desc_dma; in gmac_init_multi_queues()
835 gem_writel_queue_TBQPH(macb, upper_32_bits(paddr), in gmac_init_multi_queues()
882 unsigned long paddr; in _macb_init() local
893 paddr = macb->rx_buffer_dma; in _macb_init()
896 paddr |= MACB_BIT(RX_WRAP); in _macb_init()
902 macb_set_addr(macb, &macb->rx_ring[count], paddr); in _macb_init()
[all …]
A Dcalxedaxgmac.c276 void *paddr, int len) in desc_set_buf_addr() argument
278 p->buf1_addr = cpu_to_le32(paddr); in desc_set_buf_addr()
280 p->buf2_addr = cpu_to_le32(paddr + MAX_DESC_BUF_SZ); in desc_set_buf_addr()
284 void *paddr, int len) in desc_set_buf_addr_and_size() argument
287 desc_set_buf_addr(p, paddr, len); in desc_set_buf_addr_and_size()
/u-boot/board/sysam/amcore/
A Damcore.c29 out_be16(&gpio->paddr, 0xfcff); in init_lcd()

Completed in 55 milliseconds

12