/kernel/events/ |
D | uprobes.c | 110 unsigned long vaddr; /* Page(s) of instruction slots */ member 136 static loff_t vaddr_to_offset(struct vm_area_struct *vma, unsigned long vaddr) in vaddr_to_offset() argument 138 return ((loff_t)vma->vm_pgoff << PAGE_SHIFT) + (vaddr - vma->vm_start); in vaddr_to_offset() 250 static void copy_from_page(struct page *page, unsigned long vaddr, void *dst, int len) in copy_from_page() argument 253 memcpy(dst, kaddr + (vaddr & ~PAGE_MASK), len); in copy_from_page() 257 static void copy_to_page(struct page *page, unsigned long vaddr, const void *src, int len) in copy_to_page() argument 260 memcpy(kaddr + (vaddr & ~PAGE_MASK), src, len); in copy_to_page() 264 static int verify_opcode(struct page *page, unsigned long vaddr, uprobe_opcode_t *new_opcode) in verify_opcode() argument 278 copy_from_page(page, vaddr, &old_opcode, UPROBE_SWBP_INSN_SIZE); in verify_opcode() 351 unsigned long vaddr = offset_to_vaddr(vma, uprobe->ref_ctr_offset); in valid_ref_ctr_vma() local [all …]
|
/kernel/dma/ |
D | coherent.c | 194 int order, void *vaddr) in __dma_release_from_coherent() argument 196 if (mem && vaddr >= mem->virt_base && vaddr < in __dma_release_from_coherent() 198 int page = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_release_from_coherent() 221 int dma_release_from_dev_coherent(struct device *dev, int order, void *vaddr) in dma_release_from_dev_coherent() argument 225 return __dma_release_from_coherent(mem, order, vaddr); in dma_release_from_dev_coherent() 228 int dma_release_from_global_coherent(int order, void *vaddr) in dma_release_from_global_coherent() argument 234 vaddr); in dma_release_from_global_coherent() 238 struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) in __dma_mmap_from_coherent() argument 240 if (mem && vaddr >= mem->virt_base && vaddr + size <= in __dma_mmap_from_coherent() 243 int start = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_mmap_from_coherent() [all …]
|
D | mapping.c | 23 void *vaddr; member 32 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release() 40 if (this->vaddr == match->vaddr) { in dmam_match() 57 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() argument 60 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent() 62 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent() 85 void *vaddr; in dmam_alloc_attrs() local 91 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs() 92 if (!vaddr) { in dmam_alloc_attrs() 97 dr->vaddr = vaddr; in dmam_alloc_attrs() [all …]
|
D | swiotlb.c | 188 void *vaddr; in swiotlb_update_mem_attributes() local 194 vaddr = phys_to_virt(io_tlb_start); in swiotlb_update_mem_attributes() 196 set_memory_decrypted((unsigned long)vaddr, bytes >> PAGE_SHIFT); in swiotlb_update_mem_attributes() 197 memset(vaddr, 0, bytes); in swiotlb_update_mem_attributes() 412 unsigned char *vaddr = phys_to_virt(tlb_addr); in swiotlb_bounce() local 427 memcpy(vaddr, buffer + offset, sz); in swiotlb_bounce() 429 memcpy(buffer + offset, vaddr, sz); in swiotlb_bounce() 435 vaddr += sz; in swiotlb_bounce() 439 memcpy(vaddr, phys_to_virt(orig_addr), size); in swiotlb_bounce() 441 memcpy(phys_to_virt(orig_addr), vaddr, size); in swiotlb_bounce()
|
D | remap.c | 251 void arch_dma_free(struct device *dev, size_t size, void *vaddr, in arch_dma_free() argument 254 if (!dma_free_from_pool(vaddr, PAGE_ALIGN(size))) { in arch_dma_free() 258 vunmap(vaddr); in arch_dma_free()
|
/kernel/trace/ |
D | trace_uprobe.c | 27 unsigned long vaddr[]; member 139 void __user *vaddr = (void __force __user *)src; in probe_mem_read() local 141 return copy_from_user(dest, vaddr, size) ? -EFAULT : 0; in probe_mem_read() 197 void __user *vaddr = (void __force __user *) addr; in fetch_store_strlen() local 202 len = strnlen_user(vaddr, MAX_STRING_SIZE); in fetch_store_strlen() 218 udd = (void *) current->utask->vaddr; in translate_user_vaddr() 972 entry->vaddr[0] = func; in __uprobe_trace_func() 973 entry->vaddr[1] = instruction_pointer(regs); in __uprobe_trace_func() 976 entry->vaddr[0] = instruction_pointer(regs); in __uprobe_trace_func() 1032 entry->vaddr[1], entry->vaddr[0]); in print_uprobe_event() [all …]
|
/kernel/debug/kdb/ |
D | kdb_support.c | 380 void *vaddr; in kdb_getphys() local 387 vaddr = kmap_atomic(page); in kdb_getphys() 388 memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size); in kdb_getphys() 389 kunmap_atomic(vaddr); in kdb_getphys()
|