| /OK3568_Linux_fs/kernel/arch/arm64/include/asm/ |
| H A D | kernel-pgtable.h | 68 #define EARLY_ENTRIES(vstart, vend, shift) \ argument 69 ((((vend) - 1) >> (shift)) - ((vstart) >> (shift)) + 1 + EARLY_KASLR) 71 #define EARLY_PGDS(vstart, vend) (EARLY_ENTRIES(vstart, vend, PGDIR_SHIFT)) argument 74 #define EARLY_PUDS(vstart, vend) (EARLY_ENTRIES(vstart, vend, PUD_SHIFT)) argument 76 #define EARLY_PUDS(vstart, vend) (0) argument 80 #define EARLY_PMDS(vstart, vend) (EARLY_ENTRIES(vstart, vend, SWAPPER_TABLE_SHIFT)) argument 82 #define EARLY_PMDS(vstart, vend) (0) argument 85 #define EARLY_PAGES(vstart, vend) ( 1 /* PGDIR page */ \ argument 86 + EARLY_PGDS((vstart), (vend)) /* each PGDIR needs a next level page table */ \ 87 + EARLY_PUDS((vstart), (vend)) /* each PUD needs a next level page table */ \ [all …]
|
| /OK3568_Linux_fs/u-boot/post/drivers/ |
| H A D | memory.c | 471 int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_prepare() argument 475 *vstart = CONFIG_SYS_SDRAM_BASE; in arch_memory_test_prepare() 480 if ((*vstart) + (*size) > (ulong)bd) in arch_memory_test_prepare() 481 *size = (ulong)bd - *vstart; in arch_memory_test_prepare() 487 int arch_memory_test_advance(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_advance() argument 493 int arch_memory_test_cleanup(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_cleanup() argument 508 u32 memsize, vstart; in memory_regions_post_test() local 510 arch_memory_test_prepare(&vstart, &memsize, &phys_offset); in memory_regions_post_test() 512 ret = memory_post_test_lines(vstart, memsize); in memory_regions_post_test() 514 ret = memory_post_test_regions(vstart, memsize); in memory_regions_post_test() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/mm/ |
| H A D | init_64.c | 1670 static unsigned long __ref kernel_map_hugepud(unsigned long vstart, in kernel_map_hugepud() argument 1675 u64 pte_val = vstart; in kernel_map_hugepud() 1678 if ((vstart & mask16gb) || in kernel_map_hugepud() 1679 (vend - vstart <= mask16gb)) { in kernel_map_hugepud() 1683 return vstart + PUD_SIZE; in kernel_map_hugepud() 1689 vend = vstart + mask16gb + 1UL; in kernel_map_hugepud() 1690 while (vstart < vend) { in kernel_map_hugepud() 1694 vstart += PUD_SIZE; in kernel_map_hugepud() 1697 return vstart; in kernel_map_hugepud() 1700 static bool kernel_can_map_hugepud(unsigned long vstart, unsigned long vend, in kernel_can_map_hugepud() argument [all …]
|
| H A D | srmmu.c | 860 unsigned long vstart = (vbase & PGDIR_MASK); in map_spbank() local 866 if (vstart < min_vaddr || vstart >= max_vaddr) in map_spbank() 867 return vstart; in map_spbank() 872 while (vstart < vend) { in map_spbank() 873 do_large_mapping(vstart, pstart); in map_spbank() 874 vstart += PGDIR_SIZE; pstart += PGDIR_SIZE; in map_spbank() 876 return vstart; in map_spbank()
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/ |
| H A D | cpu.c | 578 u32 vstart = CONFIG_SYS_DDR_SDRAM_BASE; in reset_tlb() local 588 ptr = vstart; in reset_tlb() 605 int arch_memory_test_advance(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_advance() argument 617 p_addr = (*vstart) + (*size) + (*phys_offset); in arch_memory_test_advance() 622 *vstart = CONFIG_SYS_DDR_SDRAM_BASE; in arch_memory_test_advance() 625 (u64)(*vstart) + (*phys_offset), in arch_memory_test_advance() 626 (u64)(*vstart) + (*phys_offset) + (*size) - 1); in arch_memory_test_advance() 634 int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_prepare() argument 638 *vstart = CONFIG_SYS_DDR_SDRAM_BASE; in arch_memory_test_prepare() 652 (u64)(*vstart) + (*phys_offset), in arch_memory_test_prepare() [all …]
|
| H A D | tlb.c | 327 u32 vstart = CONFIG_SYS_DDR_SDRAM_BASE; in clear_ddr_tlbs_phys() local 334 ptr = vstart; in clear_ddr_tlbs_phys() 336 while (ptr < (vstart + memsize)) { in clear_ddr_tlbs_phys()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/ |
| H A D | svm.c | 46 unsigned char *vstart; in svm_swiotlb_init() local 54 vstart = memblock_alloc(PAGE_ALIGN(bytes), PAGE_SIZE); in svm_swiotlb_init() 55 if (vstart && !swiotlb_init_with_tbl(vstart, io_tlb_nslabs, false)) in svm_swiotlb_init()
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/xen/ |
| H A D | page-coherent.h | 12 void *vstart = (void*)__get_free_pages(flags, get_order(size)); in xen_alloc_coherent_pages() local 13 *dma_handle = virt_to_phys(vstart); in xen_alloc_coherent_pages() 14 return vstart; in xen_alloc_coherent_pages()
|
| /OK3568_Linux_fs/kernel/kernel/dma/ |
| H A D | swiotlb.c | 256 unsigned char *vstart; in swiotlb_init() local 267 vstart = memblock_alloc_low(PAGE_ALIGN(bytes), PAGE_SIZE); in swiotlb_init() 268 if (vstart && !swiotlb_init_with_tbl(vstart, io_tlb_nslabs, verbose)) in swiotlb_init() 289 unsigned char *vstart = NULL; in swiotlb_late_init_with_default_size() local 306 vstart = (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, in swiotlb_late_init_with_default_size() 308 if (vstart) in swiotlb_late_init_with_default_size() 313 if (!vstart) { in swiotlb_late_init_with_default_size() 322 rc = swiotlb_late_init_with_tbl(vstart, io_tlb_nslabs); in swiotlb_late_init_with_default_size() 324 free_pages((unsigned long)vstart, order); in swiotlb_late_init_with_default_size()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | io-workarounds.c | 31 unsigned long vstart, vend; in iowa_pci_find() local 38 vstart = (unsigned long)phb->io_base_virt; in iowa_pci_find() 39 vend = vstart + phb->pci_io_size - 1; in iowa_pci_find() 40 if ((vaddr >= vstart) && (vaddr <= vend)) in iowa_pci_find()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/gspca/ |
| H A D | sn9c20x.c | 98 u8 vstart; member 1100 sd->vstart = 7; in ov9650_init_sensor() 1114 sd->vstart = 2; in ov9655_init_sensor() 1128 sd->vstart = 11; in soi968_init_sensor() 1141 sd->vstart = 3; in ov7660_init_sensor() 1155 sd->vstart = 1; in ov7670_init_sensor() 1173 sd->vstart = 2; in mt9v_init_sensor() 1191 sd->vstart = 2; in mt9v_init_sensor() 1214 sd->vstart = 2; in mt9v_init_sensor() 1232 sd->vstart = 2; in mt9m112_init_sensor() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_bridge.c | 207 int hstart, hend, vstart, vend; in msm_hdmi_bridge_mode_set() local 217 vstart = mode->vtotal - mode->vsync_start - 1; in msm_hdmi_bridge_mode_set() 221 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in msm_hdmi_bridge_mode_set() 231 HDMI_ACTIVE_VSYNC_START(vstart) | in msm_hdmi_bridge_mode_set() 238 HDMI_VSYNC_ACTIVE_F2_START(vstart + 1) | in msm_hdmi_bridge_mode_set()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | vmalloc.c | 835 unsigned long align, unsigned long vstart) in is_within_this_va() argument 839 if (va->va_start > vstart) in is_within_this_va() 842 nva_start_addr = ALIGN(vstart, align); in is_within_this_va() 846 nva_start_addr < vstart) in is_within_this_va() 859 unsigned long align, unsigned long vstart) in find_vmap_lowest_match() argument 875 vstart < va->va_start) { in find_vmap_lowest_match() 878 if (is_within_this_va(va, size, align, vstart)) in find_vmap_lowest_match() 898 if (is_within_this_va(va, size, align, vstart)) in find_vmap_lowest_match() 902 vstart <= va->va_start) { in find_vmap_lowest_match() 918 unsigned long align, unsigned long vstart) in find_vmap_lowest_linear_match() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | dvo_ns2501.c | 214 u16 vstart; /* vertical start, registers C5/C6 */ member 241 .vstart = 22, 261 .vstart = 26, 280 .vstart = 15, 621 ns2501_writeb(dvo, NS2501_REGC5, conf->vstart & 0xff); in ns2501_mode_set() 622 ns2501_writeb(dvo, NS2501_REGC6, conf->vstart >> 8); in ns2501_mode_set()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/csiostor/ |
| H A D | csio_wr.c | 119 __be64 *d = (__be64 *)(flq->vstart); in csio_wr_fill_fl() 236 q->vstart = dma_alloc_coherent(&hw->pdev->dev, qsz, &q->pstart, in csio_wr_alloc_q() 238 if (!q->vstart) { in csio_wr_alloc_q() 262 q->vwrap = (void *)((uintptr_t)(q->vstart) + qsz in csio_wr_alloc_q() 316 q->vwrap = (void *)((uintptr_t)(q->vstart) + qsz in csio_wr_alloc_q() 321 q->vwrap = (void *)((uintptr_t)(q->vstart) + qsz in csio_wr_alloc_q() 775 wr = (void *)((uintptr_t)q->vstart + in csio_wr_cleanup_iq_ftr() 867 void *cwr = (void *)((uintptr_t)(q->vstart) + in csio_wr_get() 911 wrp->addr2 = q->vstart; in csio_wr_get() 1135 void *wr = (void *)((uintptr_t)q->vstart + (q->cidx * q->wr_sz)); in csio_wr_process_iq() [all …]
|
| /OK3568_Linux_fs/kernel/arch/alpha/boot/ |
| H A D | bootpz.c | 76 check_range(unsigned long vstart, unsigned long vend, in check_range() argument 83 vstart, vend, kstart, kend); in check_range() 86 for (vaddr = vstart; vaddr <= vend; vaddr += PAGE_SIZE) in check_range()
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/nvhe/ |
| H A D | setup.c | 33 unsigned long vstart, vend, nr_pages; in divide_memory_pool() local 37 hyp_vmemmap_range(__hyp_pa(virt), size, &vstart, &vend); in divide_memory_pool() 38 nr_pages = (vend - vstart) >> PAGE_SHIFT; in divide_memory_pool()
|
| /OK3568_Linux_fs/kernel/arch/arm64/kernel/ |
| H A D | head.S | 206 .macro compute_indices, vstart, vend, shift, ptrs, istart, iend, count 216 lsr \istart, \vstart, \shift 241 .macro map_memory, tbl, rtbl, vstart, vend, flags, phys, pgds, istart, iend, tmp, count, sv 246 compute_indices \vstart, \vend, #PGDIR_SHIFT, \pgds, \istart, \iend, \count 252 compute_indices \vstart, \vend, #PUD_SHIFT, #PTRS_PER_PUD, \istart, \iend, \count 259 compute_indices \vstart, \vend, #SWAPPER_TABLE_SHIFT, #PTRS_PER_PMD, \istart, \iend, \count 264 compute_indices \vstart, \vend, #SWAPPER_BLOCK_SHIFT, #PTRS_PER_PTE, \istart, \iend, \count
|
| /OK3568_Linux_fs/u-boot/board/keymile/km83xx/ |
| H A D | km83xx.c | 409 int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset) in arch_memory_test_prepare() argument 411 *vstart = CONFIG_SYS_MEMTEST_START; in arch_memory_test_prepare() 413 debug("arch_memory_test_prepare 0x%08X 0x%08X\n", *vstart, *size); in arch_memory_test_prepare()
|
| /OK3568_Linux_fs/kernel/arch/x86/xen/ |
| H A D | mmu_pv.c | 2275 unsigned long vstart = (unsigned long)phys_to_virt(pstart); in xen_create_contiguous_region() local 2286 memset((void *) vstart, 0, PAGE_SIZE << order); in xen_create_contiguous_region() 2291 xen_zap_pfn_range(vstart, order, in_frames, NULL); in xen_create_contiguous_region() 2294 out_frame = virt_to_pfn(vstart); in xen_create_contiguous_region() 2301 xen_remap_exchanged_ptes(vstart, order, NULL, out_frame); in xen_create_contiguous_region() 2303 xen_remap_exchanged_ptes(vstart, order, in_frames, 0); in xen_create_contiguous_region() 2307 *dma_handle = virt_to_machine(vstart).maddr; in xen_create_contiguous_region() 2316 unsigned long vstart; in xen_destroy_contiguous_region() local 2321 vstart = (unsigned long)phys_to_virt(pstart); in xen_destroy_contiguous_region() 2322 memset((void *) vstart, 0, PAGE_SIZE << order); in xen_destroy_contiguous_region() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/sm750fb/ |
| H A D | sm750_cursor.c | 103 pstart = cursor->vstart; in sm750_hw_cursor_setData() 153 pstart = cursor->vstart; in sm750_hw_cursor_setData2()
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | ov7670.c | 201 int vstart; /* sense to humans, but evidently the sensor */ member 735 .vstart = 10, 746 .vstart = 14, 757 .vstart = 12, 768 .vstart = 14, 786 .vstart = 14, /* Empirically determined */ 920 int vstart, int vstop) in ov7670_set_hw() argument 938 ret += ov7670_write(sd, REG_VSTART, (vstart >> 2) & 0xff); in ov7670_set_hw() 941 v = (v & 0xf0) | ((vstop & 0x3) << 2) | (vstart & 0x3); in ov7670_set_hw() 1062 ret = ov7670_set_hw(sd, wsize->hstart, wsize->hstop, wsize->vstart, in ov7670_apply_fmt()
|
| H A D | mt9v011.c | 274 unsigned vstart, hstart; in set_res() local 292 vstart = 8 + (480 - core->height) / 2; in set_res() 293 mt9v011_write(sd, R01_MT9V011_ROWSTART, vstart); in set_res()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/stkwebcam/ |
| H A D | stk-sensor.c | 462 int hstart, int hstop, int vstart, int vstop) in stk_sensor_set_hw() argument 480 ret += stk_sensor_outb(dev, REG_VSTART, (vstart >> 3) & 0xff); in stk_sensor_set_hw() 483 v = (v & 0xc0) | ((vstop & 0x7) << 3) | (vstart & 0x7); in stk_sensor_set_hw()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_memory_os_alloc.c | 388 unsigned long vstart = vma->vm_start; in mali_mem_os_resize_cpu_map_locked() local 392 MALI_DEBUG_ASSERT(0 == vstart % _MALI_OSK_MALI_PAGE_SIZE); in mali_mem_os_resize_cpu_map_locked() 393 offset = (start_vaddr - vstart) / _MALI_OSK_MALI_PAGE_SIZE; in mali_mem_os_resize_cpu_map_locked() 429 ret = vmf_insert_pfn(vma, vstart, page_to_pfn(m_page->page)); in mali_mem_os_resize_cpu_map_locked() 443 vstart += _MALI_OSK_MALI_PAGE_SIZE; in mali_mem_os_resize_cpu_map_locked()
|