Home
last modified time | relevance | path

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

123

/device/qemu/drivers/char/mmz/
Dmmz.c64 PADDR_T paddr; in MmzAlloc() local
93 paddr = LOS_PaddrQuery(kvaddr); in MmzAlloc()
94 mmzm->paddr = paddr; in MmzAlloc()
97 vmPage = LOS_VmPageGet(paddr); in MmzAlloc()
105 status = LOS_ArchMmuMap(&curVmSpace->archMmu, vaddr, paddr, 1, vmFlags); in MmzAlloc()
112 paddr += PAGE_SIZE; in MmzAlloc()
129 PADDR_T paddr = (PADDR_T)mmzm->paddr; in MmzMap() local
155 vmPage = LOS_VmPageGet(paddr); in MmzMap()
163 status = LOS_ArchMmuMap(&curVmSpace->archMmu, vaddr, paddr, 1, in MmzMap()
171 paddr += PAGE_SIZE; in MmzMap()
[all …]
/device/soc/esp/esp32/components/esp32/
Dcache_sram_mmu.c50 unsigned int cache_sram_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, in…
61 … cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int nu… in cache_sram_mmu_set() argument
66 return cache_sram_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_sram_mmu_set()
73 if( (ADDRESS_CHECK(vaddr,psize)) || (ADDRESS_CHECK(paddr,psize)) ){ in cache_sram_mmu_set()
96 mmu_table_val = paddr >> shift; in cache_sram_mmu_set()
137 unsigned int cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int ps… in cache_sram_mmu_set() argument
138 return cache_sram_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_sram_mmu_set()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/lcd_fb/
Dlogo.c190 uintptr_t paddr = 0; in Fb_map_kernel_logo() local
199 paddr = disp_reserve_base; in Fb_map_kernel_logo()
200 if (!paddr || !disp_reserve_size || !info || !info->screen_base) { in Fb_map_kernel_logo()
206 offset = paddr & ~PAGE_MASK; in Fb_map_kernel_logo()
207 vaddr = (void *)Fb_map_kernel(paddr, sizeof(struct bmp_header)); in Fb_map_kernel_logo()
210 (void *)paddr, (unsigned int)sizeof(struct bmp_header)); in Fb_map_kernel_logo()
221 return lzma_decode(paddr, info); in Fb_map_kernel_logo()
246 if ((paddr <= 0) || x <= 1 || y <= 1) { in Fb_map_kernel_logo()
255 (void *)Fb_map_kernel(paddr, in Fb_map_kernel_logo()
259 (void *)paddr, in Fb_map_kernel_logo()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/uart/
Dearly_printk.c134 phys_addr_t paddr = 0; in setup_early_printk() local
157 paddr = simple_strtoul(buf + 1, &e, 16); in setup_early_printk()
161 if (paddr) { in setup_early_printk()
162 set_fixmap_io(FIX_EARLYCON_MEM_BASE, paddr); in setup_early_printk()
164 |(paddr & (PAGE_SIZE - 1))); in setup_early_printk()
/device/soc/esp/esp32/components/esp_rom/include/esp32/rom/
Dcache.h69 …cache_flash_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int n… in cache_flash_mmu_set() argument
71 …e_flash_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int n… in cache_flash_mmu_set()
76 ret = cache_flash_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_flash_mmu_set()
112 … cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int nu…
/device/qemu/hardware/display/
Ddisplay_gralloc.c181 uint64_t paddr; member
221 printf("vaddr %#x, paddr: %#x\n", mmz.vaddr, mmz.paddr); in AllocMmz()
226 printf("vaddr %#x, paddr: %#x\n", mmz.vaddr, mmz.paddr); in AllocMmz()
239 buffer->phyAddr = mmz.paddr; in AllocMmz()
244 static int32_t FreeMmz(uint64_t paddr, void* vaddr) in FreeMmz() argument
248 mmz.paddr = paddr; in FreeMmz()
255 mmz.paddr = buffer->phyAddr; in MmzFlushCache()
264 mmz.paddr = buffer->phyAddr; in MmzInvalidateCache()
360 static void *MmapMmzNoCache(uint64_t paddr, int32_t size) in MmapMmzNoCache() argument
363 mmz.paddr = paddr; in MmapMmzNoCache()
[all …]
/device/qemu/riscv32_virt/liteos_m/board/driver/
Dvirtmmio.c134 uint64_t paddr = (uint64_t)addr & U32_MASK; in u32_to_u64() local
135 return paddr; in u32_to_u64()
139 uint32_t paddr; in WriteQueueAddr() local
141 paddr = addr & U32_MASK; in WriteQueueAddr()
142 FENCE_WRITE_UINT32(paddr, dev->base + regLow); in WriteQueueAddr()
143 paddr = addr >> U64_32_SHIFT; in WriteQueueAddr()
144 FENCE_WRITE_UINT32(paddr, dev->base + regLow + U32_BYTES); in WriteQueueAddr()
Dvirtmmio.h28 #define IO_DEVICE_ADDR(paddr) (paddr) argument
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/app/
Dmain_firmware.c162 resource_size_t paddr = 0; in isp_update_setting() local
170 paddr = isp_paddr; in isp_update_setting()
177 aframe[i].address = paddr; in isp_update_setting()
180 paddr = aframe[i].address + temper_frame_size; in isp_update_setting()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/codec_mm/
Dsecmem.c65 phys_addr_t phys = info->paddr; in secmem_dma_attach()
128 sgt->sgl->dma_address = info->paddr; in secmem_dma_map_dma_buf()
134 pr_dbg("nents %d, %x, %d, %d\n", sgt->nents, info->paddr, in secmem_dma_map_dma_buf()
196 info->handle, info->paddr, info->size); in get_dmabuf()
296 res = (long) (info->paddr & (0xffffffff)); in secmem_get_phyaddr()
311 dma_addr_t paddr; in secmem_import() local
336 paddr = sg_dma_address(sgt->sgl); in secmem_import()
338 res = (long) (paddr & (0xffffffff)); in secmem_import()
Dsecmem.h25 __u32 paddr; member
/device/soc/amlogic/a311d/soc/amlogic/media/common/codec_mm/
Dsecmem.c63 phys_addr_t phys = info->paddr; in secmem_dma_attach()
121 sgt->sgl->dma_address = info->paddr; in secmem_dma_map_dma_buf()
127 pr_dbg("nents %d, %x, %d, %d\n", sgt->nents, info->paddr, sg_dma_len(sgt->sgl), info->size); in secmem_dma_map_dma_buf()
180 pr_dbg("export handle:%x, paddr:%x, size:%d\n", info->handle, info->paddr, info->size); in get_dmabuf()
280 res = (long)(info->paddr & (0xffffffff)); in secmem_get_phyaddr()
295 dma_addr_t paddr; in secmem_import() local
319 paddr = sg_dma_address(sgt->sgl); in secmem_import()
321 res = (long)(paddr & (0xffffffff)); in secmem_import()
/device/soc/amlogic/a311d/soc/amlogic/reboot/
Dreboot.c148 u32 paddr = 0; in aml_restart_probe() local
160 ret = of_property_read_u32(pdev->dev.of_node, "reboot_reason_addr", &paddr); in aml_restart_probe()
162 pr_debug("reboot_reason paddr: 0x%x\n", paddr); in aml_restart_probe()
163 reboot_reason_vaddr = ioremap(paddr, 0x4); in aml_restart_probe()
/device/qemu/drivers/virtio/
Dvirtmmio.c130 uint32_t paddr; in WriteQueueAddr() local
133 paddr = addr & U32_MASK; in WriteQueueAddr()
134 WRITE_UINT32(paddr, dev->base + regLow); in WriteQueueAddr()
135 paddr = addr >> U64_32_SHIFT; in WriteQueueAddr()
136 WRITE_UINT32(paddr, dev->base + regLow + U32_BYTES); in WriteQueueAddr()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/
Deink_buffer_manager.c29 (void *)buffer_mgr->image_slot[i].paddr, buf_size);
280 dest.addr1 = (unsigned long)buffer_mgr->image_slot[in_index].paddr; in __queue_image()
314 buffer_mgr->image_slot[in_index].paddr, update_area.x_top, in __queue_image()
362 buffer_mgr->image_slot[in_index].paddr, in __queue_image()
444 &buffer_mgr->image_slot[i].paddr); in ring_buffer_manager_init()
451 buffer_mgr->image_slot[i].paddr); in ring_buffer_manager_init()
473 (void *)buffer_mgr->image_slot[i].paddr, in ring_buffer_manager_init()
492 (void *)buffer_mgr->image_slot[i].paddr, in ring_buffer_manager_exit()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/media/lut_dma/
Dlut_dma.h57 int lut_dma_read(u32 channel, void *paddr);
58 int lut_dma_write(u32 channel, void *paddr, u32 size);
/device/soc/rockchip/common/sdk_linux/include/linux/
Ddma-map-ops.h296 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
299 static inline void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
306 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size,
309 static inline void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
332 void arch_dma_mark_clean(phys_addr_t paddr, size_t size);
334 static inline void arch_dma_mark_clean(phys_addr_t paddr, size_t size) in arch_dma_mark_clean() argument
Diommu.h266 …int (*map)(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int pr…
267 …int (*map_pages)(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t pgsize…
292 …int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, phys_addr_t paddr, u64 size, …
447 extern int iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t siz…
448 extern int iommu_map_atomic(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, siz…
682 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, siz… in iommu_map() argument
687 …t iommu_map_atomic(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, in iommu_map_atomic() argument
724 …nt iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, phys_addr_t paddr, u64 size, in iommu_domain_window_enable() argument
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/vin-video/
Dvin_video.c76 static int __check_bk_bufaddr(struct vin_core *vinc, struct vin_addr *paddr) in __check_bk_bufaddr() argument
113 if (paddr->y != y || paddr->cb != cb || paddr->cr != cr) { in __check_bk_bufaddr()
123 struct vin_frame *frame, struct vin_addr *paddr) in vin_set_addr() argument
133 if (buf == NULL || buf->paddr == NULL) in vin_set_addr()
148 paddr->y = (dma_addr_t)buf->paddr; in vin_set_addr()
151 paddr->y = vb2_dma_contig_plane_dma_addr(vb, 0); in vin_set_addr()
156 paddr->cb = 0; in vin_set_addr()
157 paddr->cr = 0; in vin_set_addr()
164 paddr->cb = (u32)(paddr->y + CEIL_EXP(frame->o_width, 7) * CEIL_EXP(frame->o_height, 5) * 96); in vin_set_addr()
166paddr->cb = paddr->y + ALIGN(DIV_ROUND_UP(frame->o_width, 128) * DIV_ROUND_UP(frame->o_height, 32)… in vin_set_addr()
[all …]
Dvin_video.h38 void *paddr; member
121 struct vin_addr paddr; member
220 struct vin_frame *frame, struct vin_addr *paddr);
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/app/v4l2_interface/
Disp-vb2-cmalloc.c32 dma_addr_t paddr = 0; in cma_alloc() local
43 paddr = page_to_phys(cma_pages); in cma_alloc()
182 dma_addr_t paddr = 0; local
192 paddr = page_to_phys(cma_pages);
194 pfn = paddr >> PAGE_SHIFT;
/device/soc/rockchip/common/sdk_linux/drivers/iommu/
Diommu.c2398 static size_t iommu_pgsize(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size… in iommu_pgsize() argument
2404 unsigned long addr_merge = paddr | iova; in iommu_pgsize()
2430 if ((iova ^ paddr) & (pgsize_next - 1)) { in iommu_pgsize()
2448 static int iommu_map_pages_ext(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, … in iommu_map_pages_ext() argument
2455 pgsize = iommu_pgsize(domain, iova, paddr, size, &count); in iommu_map_pages_ext()
2457 pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx count %zu\n", iova, &paddr, pgsize, count); in iommu_map_pages_ext()
2460 ret = ops->map_pages(domain, iova, paddr, pgsize, count, prot, gfp, mapped); in iommu_map_pages_ext()
2462 ret = ops->map(domain, iova, paddr, pgsize, prot, gfp); in iommu_map_pages_ext()
2469 static int iommu_map_ext(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t… in iommu_map_ext() argument
2476 phys_addr_t orig_paddr = paddr; in iommu_map_ext()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/
Drga2_mmu_info.c35 dma_addr_t paddr = 0; in rga2_dma_map_flush_page() local
45 paddr = dma_map_page(scheduler->dev, page, 0, in rga2_dma_map_flush_page()
49 paddr = dma_map_page(scheduler->dev, page, 0, in rga2_dma_map_flush_page()
53 paddr = dma_map_page(scheduler->dev, page, 0, in rga2_dma_map_flush_page()
57 paddr = 0; in rga2_dma_map_flush_page()
62 return paddr; in rga2_dma_map_flush_page()
64 paddr = page_to_phys(page); in rga2_dma_map_flush_page()
68 dma_unmap_page(scheduler->dev, paddr, in rga2_dma_map_flush_page()
72 dma_unmap_page(scheduler->dev, paddr, in rga2_dma_map_flush_page()
76 dma_unmap_page(scheduler->dev, paddr, in rga2_dma_map_flush_page()
[all …]
/device/qemu/riscv32_virt/liteos_m/board/
Dmain.c164 void *ioremap(uintptr_t paddr, unsigned long size) in ioremap() argument
167 return (void *)paddr; in ioremap()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
Dip6_addr.h218 #define ip6_addr_cmp_packed(ip6addr, paddr, zone_idx) (((ip6addr)->addr[0] == (paddr)->addr[0]) && \ argument
219 ((ip6addr)->addr[1] == (paddr)->addr[1]) && \
220 ((ip6addr)->addr[2] == (paddr)->addr[2]) && \
221 ((ip6addr)->addr[3] == (paddr)->addr[3]) && \

123