/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vf_error.c | 41 mutex_lock(&adev->virt.vf_errors.lock); 42 index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE; 43 adev->virt.vf_errors.code [index] = error_code; 44 adev->virt.vf_errors.flags [index] = error_flags; 45 adev->virt.vf_errors.data [index] = error_data; 46 adev->virt.vf_errors.write_count ++; 47 mutex_unlock(&adev->virt.vf_errors.lock); 58 (!adev->virt.ops) || (!adev->virt.ops->trans_msg)) { 69 mutex_lock(&adev->virt [all...] |
H A D | amdgpu_virt.c | 83 struct amdgpu_virt *virt = &adev->virt; local 86 if (virt->ops && virt->ops->req_full_gpu) { 87 r = virt->ops->req_full_gpu(adev, init); 91 adev->virt.caps &= ~AMDGPU_SRIOV_CAPS_RUNTIME; 106 struct amdgpu_virt *virt = &adev->virt; local 109 if (virt->ops && virt 127 struct amdgpu_virt *virt = &adev->virt; local 143 struct amdgpu_virt *virt = &adev->virt; local 162 struct amdgpu_virt *virt = &adev->virt; local 240 struct amdgpu_virt *virt = &adev->virt; local 280 struct amdgpu_virt *virt = &adev->virt; local 300 struct amdgpu_virt *virt = &adev->virt; local 319 struct amdgpu_virt *virt = &adev->virt; local 331 struct amdgpu_virt *virt = &adev->virt; local 370 struct amdgpu_virt *virt = &adev->virt; local [all...] |
H A D | mxgpu_nv.c | 191 adev->virt.req_init_data_ver = 0; 194 adev->virt.req_init_data_ver = 198 if (adev->virt.req_init_data_ver < 1) 199 adev->virt.req_init_data_ver = 1; 205 adev->virt.fw_reserve.checksum_key = 287 struct amdgpu_virt *virt = container_of(work, struct amdgpu_virt, flr_work); local 288 struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt); 361 &adev->virt.flr_work), 391 adev->virt [all...] |
/linux-master/arch/um/include/shared/ |
H A D | mem.h | 12 static inline unsigned long uml_to_phys(void *virt) argument 14 return(((unsigned long) virt) - uml_physmem);
|
H A D | mem_user.h | 41 unsigned long virt; member in struct:iomem_region 54 extern void map_memory(unsigned long virt, unsigned long phys,
|
/linux-master/drivers/staging/media/atomisp/include/hmm/ |
H A D | hmm.h | 43 int hmm_load(ia_css_ptr virt, void *data, unsigned int bytes); 44 int hmm_store(ia_css_ptr virt, const void *data, unsigned int bytes); 45 int hmm_set(ia_css_ptr virt, int c, unsigned int bytes); 46 int hmm_flush(ia_css_ptr virt, unsigned int bytes); 51 phys_addr_t hmm_virt_to_phys(ia_css_ptr virt); 54 * map ISP memory starts with virt to kernel virtual address 57 * virt must be the start address of ISP memory (return by hmm_alloc), 60 void *hmm_vmap(ia_css_ptr virt, bool cached); 61 void hmm_vunmap(ia_css_ptr virt); 67 void hmm_flush_vmap(ia_css_ptr virt); [all...] |
/linux-master/arch/arm64/kvm/hyp/include/nvhe/ |
H A D | early_alloc.h | 7 void hyp_early_alloc_init(void *virt, unsigned long size);
|
H A D | memory.h | 33 #define hyp_virt_to_page(virt) hyp_phys_to_page(__hyp_pa(virt)) 34 #define hyp_virt_to_pfn(virt) hyp_phys_to_pfn(__hyp_pa(virt))
|
/linux-master/drivers/staging/media/atomisp/pci/hmm/ |
H A D | hmm.c | 230 void hmm_free(ia_css_ptr virt) argument 234 dev_dbg(atomisp_dev, "%s: free 0x%08x\n", __func__, virt); 236 if (WARN_ON(virt == mmgr_EXCEPTION)) 239 bo = hmm_bo_device_search_start(&bo_device, (unsigned int)virt); 244 (unsigned int)virt); 278 static int load_and_flush_by_kmap(ia_css_ptr virt, void *data, argument 286 bo = hmm_bo_device_search_in_range(&bo_device, virt); 287 ret = hmm_check_bo(bo, virt); 293 idx = (virt - bo->start) >> PAGE_SHIFT; 294 offset = (virt 322 load_and_flush(ia_css_ptr virt, void *data, unsigned int bytes) argument 357 hmm_load(ia_css_ptr virt, void *data, unsigned int bytes) argument 373 hmm_flush(ia_css_ptr virt, unsigned int bytes) argument 379 hmm_store(ia_css_ptr virt, const void *data, unsigned int bytes) argument 462 hmm_set(ia_css_ptr virt, int c, unsigned int bytes) argument 522 hmm_virt_to_phys(ia_css_ptr virt) argument 541 hmm_mmap(struct vm_area_struct *vma, ia_css_ptr virt) argument 557 hmm_vmap(ia_css_ptr virt, bool cached) argument 578 hmm_flush_vmap(ia_css_ptr virt) argument 593 hmm_vunmap(ia_css_ptr virt) argument [all...] |
/linux-master/arch/x86/kernel/cpu/sgx/ |
H A D | Makefile | 6 obj-$(CONFIG_X86_SGX_KVM) += virt.o
|
/linux-master/arch/m68k/mm/ |
H A D | sun3kmap.c | 27 static inline void do_page_mapin(unsigned long phys, unsigned long virt, argument 37 sun3_put_pte(virt, pte); 41 print_pte_vaddr(virt); 46 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, argument 50 if(sun3_get_segmap(virt & ~SUN3_PMEG_MASK) == SUN3_INVALID_PMEG) 51 mmu_emu_map_pmeg(sun3_get_context(), virt); local 54 do_page_mapin(phys, virt, type); 56 virt += PAGE_SIZE; 65 unsigned long offset, virt, ret; local 81 pr_info("ioremap: got virt [all...] |
/linux-master/include/asm-generic/ |
H A D | sections.h | 84 * @virt: virtual address of the memory object 87 * Returns: true if the object specified by @virt and @size is entirely 91 static inline bool memory_contains(void *begin, void *end, void *virt, argument 94 return virt >= begin && virt + size <= end; 102 * @virt: virtual address of the memory object 105 * Returns: true if an object's memory region, specified by @virt and @size, 108 static inline bool memory_intersects(void *begin, void *end, void *virt, argument 111 void *vend = virt + size; 113 if (virt < en 128 init_section_contains(void *virt, size_t size) argument 142 init_section_intersects(void *virt, size_t size) argument [all...] |
/linux-master/drivers/firmware/ |
H A D | iscsi_ibft_find.c | 55 void *virt = NULL; local 74 if (virt) 75 early_memunmap(virt, PAGE_SIZE); 76 virt = early_memremap_ro(pos, PAGE_SIZE); 81 if (memcmp(virt + (pos - virt_pos), ibft_signs[i].sign, 84 (unsigned long *)(virt + pos - virt_pos + 4); 99 early_memunmap(virt, PAGE_SIZE);
|
/linux-master/drivers/mtd/maps/ |
H A D | ts5500_flash.c | 59 ts5500_map.virt = ioremap(ts5500_map.phys, ts5500_map.size); 61 if (!ts5500_map.virt) { 84 iounmap(ts5500_map.virt); 96 if (ts5500_map.virt) { 97 iounmap(ts5500_map.virt); 98 ts5500_map.virt = NULL;
|
H A D | cfi_flagadm.c | 97 flagadm_map.virt = ioremap(FLASH_PHYS_ADDR, 100 if (!flagadm_map.virt) { 115 iounmap((void __iomem *)flagadm_map.virt); 125 if (flagadm_map.virt) { 126 iounmap((void __iomem *)flagadm_map.virt); 127 flagadm_map.virt = NULL;
|
H A D | netsc520.c | 85 netsc520_map.virt = ioremap(netsc520_map.phys, netsc520_map.size); 87 if (!netsc520_map.virt) { 101 iounmap(netsc520_map.virt); 116 if (netsc520_map.virt) { 117 iounmap(netsc520_map.virt); 118 netsc520_map.virt = NULL;
|
/linux-master/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr.c | 51 b->virt = dev->mem_virt + offset; 58 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); 59 if (!b->virt) 64 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); 69 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); 84 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); 85 if (!b->virt) 88 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); 106 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); 108 b->virt [all...] |
/linux-master/arch/microblaze/include/asm/ |
H A D | highmem.h | 49 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
|
/linux-master/arch/csky/include/asm/ |
H A D | highmem.h | 29 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
|
/linux-master/arch/x86/include/asm/ |
H A D | highmem.h | 58 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
|
/linux-master/arch/parisc/kernel/ |
H A D | kexec.c | 81 void *virt = (void *)__fix_to_virt(FIX_TEXT_KEXEC); local 90 desc.addr = (long long)virt; 92 reloc = (void *)virt; 95 memcpy(virt, dereference_function_descriptor(relocate_new_kernel), 98 *(unsigned long *)(virt + kexec_cmdline_offset) = arch->cmdline; 99 *(unsigned long *)(virt + kexec_initrd_start_offset) = arch->initrd_start; 100 *(unsigned long *)(virt + kexec_initrd_end_offset) = arch->initrd_end; 101 *(unsigned long *)(virt + kexec_free_mem_offset) = PAGE0->mem_free;
|
/linux-master/drivers/gpio/ |
H A D | gpio-stp-xway.c | 82 void __iomem *virt; member in struct:xway_stp 105 return (xway_stp_r32(chip->virt, XWAY_STP_CPU0) & BIT(gpio)); 124 xway_stp_w32(chip->virt, chip->shadow, XWAY_STP_CPU0); 126 xway_stp_w32_mask(chip->virt, 0, XWAY_STP_CON_SWU, XWAY_STP_CON0); 170 xway_stp_w32(chip->virt, 0, XWAY_STP_AR); 171 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU0); 172 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU1); 173 xway_stp_w32(chip->virt, XWAY_STP_CON_SWU, XWAY_STP_CON0); 174 xway_stp_w32(chip->virt, 0, XWAY_STP_CON1); 177 xway_stp_w32_mask(chip->virt, XWAY_STP_EDGE_MAS [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 73 void *virt, *virt_next; local 77 virt = chain->p_virt_addr; 81 if (!virt) 84 next = virt + size; 88 dma_free_coherent(dev, chain->page_size, virt, phys); 90 virt = virt_next; 202 void *virt, *virt_prev = NULL; local 207 virt = dma_alloc_coherent(dev, chain->page_size, &phys, 209 if (!virt) 213 qed_chain_init_mem(chain, virt, phy 236 void *virt; local 257 void *virt; local [all...] |
/linux-master/arch/sparc/mm/ |
H A D | init_64.h | 21 unsigned long virt; member in struct:linux_prom_translation
|
/linux-master/arch/x86/pci/ |
H A D | mmconfig_64.c | 23 if (cfg && cfg->virt) 24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); 116 cfg->virt = mcfg_ioremap(cfg); 117 if (!cfg->virt) { 127 if (cfg && cfg->virt) { 128 iounmap(cfg->virt + PCI_MMCFG_BUS_OFFSET(cfg->start_bus)); 129 cfg->virt = NULL;
|