| /freebsd/contrib/elftoolchain/elfcopy/ |
| H A D | segments.c | 75 if (s->off < seg->off || (s->vma < seg->vaddr && !s->pseudo)) in add_to_inseg_list() 80 if (s->vma + s->sz > seg->vaddr + seg->msz) in add_to_inseg_list() 91 s->vma = seg->vaddr + (s->off - seg->off); in add_to_inseg_list() 108 uint64_t dl, vma, lma, start, end; in adjust_addr() local 122 s->vma += ecp->change_addr; in adjust_addr() 145 vma = s->vma; in adjust_addr() 147 vma = sac->vma; in adjust_addr() 149 vma += sac->vma_adjust; in adjust_addr() 150 if (vma == s->vma) in adjust_addr() 158 s->vma = vma; in adjust_addr() [all …]
|
| H A D | elfcopy.h | 74 uint64_t vma; member 131 uint64_t vma; /* section virtual addr */ member
|
| H A D | sections.c | 415 s->vma = ish.sh_addr; in create_scn() 994 osh.sh_addr = s->vma; in resync_sections() 1185 osh.sh_addr = s->vma; in copy_shdr() 1292 uint64_t flags, uint64_t align, uint64_t vma, int loadable) in create_external_section() argument 1308 s->vma = vma; in create_external_section() 1322 osh.sh_addr = s->vma; in create_external_section() 1486 s->vma = 0; in init_shstrtab()
|
| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_core_uverbs.c | 62 struct vm_area_struct *vma, in rdma_umap_priv_init() argument 65 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init() 67 priv->vma = vma; in rdma_umap_priv_init() 72 vma->vm_private_data = priv; in rdma_umap_priv_init() 98 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, in rdma_user_mmap_io() argument 105 if (!(vma->vm_flags & VM_SHARED)) in rdma_user_mmap_io() 108 if (vma->vm_end - vma->vm_start != size) in rdma_user_mmap_io() 112 if (WARN_ON(!vma->vm_file || in rdma_user_mmap_io() 113 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io() 120 vma->vm_page_prot = prot; in rdma_user_mmap_io() [all …]
|
| H A D | ib_uverbs_main.c | 672 static int ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma) in ib_uverbs_mmap() argument 685 vma->vm_ops = &rdma_umap_ops; in ib_uverbs_mmap() 686 ret = ucontext->device->mmap(ucontext, vma); in ib_uverbs_mmap() 696 static void rdma_umap_open(struct vm_area_struct *vma) in rdma_umap_open() argument 698 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_open() 699 struct rdma_umap_priv *opriv = vma->vm_private_data; in rdma_umap_open() 717 rdma_umap_priv_init(priv, vma, opriv->entry); in rdma_umap_open() 730 vma->vm_private_data = NULL; in rdma_umap_open() 731 zap_vma_ptes(vma, vma->vm_start, vma->vm_end - vma->vm_start); in rdma_umap_open() 734 static void rdma_umap_close(struct vm_area_struct *vma) in rdma_umap_close() argument [all …]
|
| H A D | ib_umem.c | 156 goto vma; in ib_umem_get() 161 goto vma; in ib_umem_get() 208 vma: in ib_umem_get()
|
| H A D | ib_umem_odp.c | 415 struct vm_area_struct *vma; in ib_umem_odp_get() local 418 vma = find_vma(mm, ib_umem_start(umem)); in ib_umem_odp_get() 419 if (!vma || !is_vm_hugetlb_page(vma)) in ib_umem_odp_get() 421 h = hstate_vma(vma); in ib_umem_odp_get()
|
| H A D | core_priv.h | 205 struct vm_area_struct *vma; member 211 struct vm_area_struct *vma,
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | mm.h | 140 struct vm_area_struct *vma; member 209 io_remap_pfn_range(struct vm_area_struct *vma, in io_remap_pfn_range() argument 213 vma->vm_page_prot = prot; in io_remap_pfn_range() 214 vma->vm_pfn = pfn; in io_remap_pfn_range() 215 vma->vm_len = size; in io_remap_pfn_range() 221 lkpi_vmf_insert_pfn_prot_locked(struct vm_area_struct *vma, unsigned long addr, 225 vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, in vmf_insert_pfn_prot() argument 230 VM_OBJECT_WLOCK(vma->vm_obj); in vmf_insert_pfn_prot() 231 ret = lkpi_vmf_insert_pfn_prot_locked(vma, addr, pfn, prot); in vmf_insert_pfn_prot() 232 VM_OBJECT_WUNLOCK(vma->vm_obj); in vmf_insert_pfn_prot() [all …]
|
| H A D | io-mapping.h | 115 struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, 119 io_mapping_map_user(struct io_mapping *iomap, struct vm_area_struct *vma, in io_mapping_map_user() argument 122 return (lkpi_io_mapping_map_user(iomap, vma, addr, pfn, size)); in io_mapping_map_user()
|
| H A D | fs.h | 350 call_mmap(struct linux_file *file, struct vm_area_struct *vma) in call_mmap() argument 353 return (file->f_op->mmap(file, vma)); in call_mmap()
|
| /freebsd/contrib/tcpdump/ |
| H A D | instrument-functions.c | 76 static bfd_vma vma; in print_debug() local 155 vma = text->vma; in print_debug() 178 if ((bfd_vma)this_fn < vma) { in print_debug() 185 if (!bfd_find_nearest_line(abfd, text, symtab, (bfd_vma)this_fn - vma, in print_debug() 210 if ((bfd_vma)call_site < vma) { in print_debug() 214 (bfd_vma)call_site - vma, &file, in print_debug()
|
| /freebsd/contrib/libpcap/ |
| H A D | instrument-functions.c | 76 static bfd_vma vma; in print_debug() local 155 vma = text->vma; in print_debug() 178 if ((bfd_vma)this_fn < vma) { in print_debug() 185 if (!bfd_find_nearest_line(abfd, text, symtab, (bfd_vma)this_fn - vma, in print_debug() 210 if ((bfd_vma)call_site < vma) { in print_debug() 214 (bfd_vma)call_site - vma, &file, in print_debug()
|
| /freebsd/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | provider.c | 161 static int c4iw_mmap(struct ib_ucontext *context, struct vm_area_struct *vma) in c4iw_mmap() argument 163 int len = vma->vm_end - vma->vm_start; in c4iw_mmap() 164 u32 key = vma->vm_pgoff << PAGE_SHIFT; in c4iw_mmap() 172 context, vma, vma->vm_start); in c4iw_mmap() 175 vma->vm_pgoff, key, len); in c4iw_mmap() 177 if (vma->vm_start & (PAGE_SIZE-1)) { in c4iw_mmap() 179 __func__, vma->vm_start, vma); in c4iw_mmap() 200 vma->vm_page_prot = t4_pgprot_wc(vma->vm_page_prot); in c4iw_mmap() 202 ret = rdma_user_mmap_io(context, vma, addr >> PAGE_SHIFT, len, in c4iw_mmap() 203 vma->vm_page_prot, NULL); in c4iw_mmap() [all …]
|
| /freebsd/sys/compat/linuxkpi/common/src/ |
| H A D | linux_page.c | 509 lkpi_vmf_insert_pfn_prot_locked(struct vm_area_struct *vma, unsigned long addr, in lkpi_vmf_insert_pfn_prot_locked() argument 513 vm_object_t vm_obj = vma->vm_obj; in lkpi_vmf_insert_pfn_prot_locked() 520 pindex = OFF_TO_IDX(addr - vma->vm_start); in lkpi_vmf_insert_pfn_prot_locked() 521 if (vma->vm_pfn_count == 0) in lkpi_vmf_insert_pfn_prot_locked() 522 vma->vm_pfn_first = pindex; in lkpi_vmf_insert_pfn_prot_locked() 523 MPASS(pindex <= OFF_TO_IDX(vma->vm_end)); in lkpi_vmf_insert_pfn_prot_locked() 569 vma->vm_pfn_count++; in lkpi_vmf_insert_pfn_prot_locked() 575 lkpi_remap_pfn_range(struct vm_area_struct *vma, unsigned long start_addr, in lkpi_remap_pfn_range() argument 582 vm_obj = vma->vm_obj; in lkpi_remap_pfn_range() 590 ret = lkpi_vmf_insert_pfn_prot_locked(vma, addr, pfn, prot); in lkpi_remap_pfn_range() [all …]
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | MapFile.cpp | 46 static void writeHeader(Ctx &ctx, raw_ostream &os, uint64_t vma, uint64_t lma, in writeHeader() argument 49 os << format("%16llx %16llx %8llx %5lld ", vma, lma, size, align); in writeHeader() 51 os << format("%8llx %8llx %8llx %5lld ", vma, lma, size, align); in writeHeader() 99 uint64_t vma = syms[i]->getVA(ctx); in getSymbolStrings() local 100 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings() 101 writeHeader(ctx, os, vma, lma, syms[i]->getSize(), 1); in getSymbolStrings()
|
| /freebsd/contrib/wpa/src/utils/ |
| H A D | trace.c | 166 bfd_vma vma; in find_addr_sect() local 175 vma = bfd_get_section_vma(abfd, section); in find_addr_sect() 176 if (data->pc < vma) in find_addr_sect() 180 if (data->pc >= vma + size) in find_addr_sect() 184 data->pc - vma, in find_addr_sect()
|
| /freebsd/sys/dev/drm2/ttm/ |
| H A D | ttm_bo_vm.c | 378 int ttm_fbdev_mmap(struct vm_area_struct *vma, struct ttm_buffer_object *bo) 380 if (vma->vm_pgoff != 0) 383 vma->vm_ops = &ttm_bo_vm_ops; 384 vma->vm_private_data = ttm_bo_reference(bo); 385 vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND;
|
| /freebsd/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_main.c | 1499 struct vm_area_struct *vma, in mlx5_ib_mmap_clock_info_page() argument 1502 if ((vma->vm_end - vma->vm_start != PAGE_SIZE) || in mlx5_ib_mmap_clock_info_page() 1503 !(vma->vm_flags & VM_SHARED)) in mlx5_ib_mmap_clock_info_page() 1506 if (get_index(vma->vm_pgoff) != MLX5_IB_CLOCK_INFO_V1) in mlx5_ib_mmap_clock_info_page() 1509 if (vma->vm_flags & (VM_WRITE | VM_EXEC)) in mlx5_ib_mmap_clock_info_page() 1561 struct vm_area_struct *vma, in uar_mmap() argument 1578 if (vma->vm_end - vma->vm_start != PAGE_SIZE) in uar_mmap() 1582 idx = get_extended_index(vma->vm_pgoff) + bfregi->num_static_sys_pages; in uar_mmap() 1584 idx = get_index(vma->vm_pgoff); in uar_mmap() 1597 prot = pgprot_writecombine(vma->vm_page_prot); in uar_mmap() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zpl_file.c | 387 znode_t *zp = ITOZ(file_inode(vmf->vma->vm_file)); in zpl_page_mkwrite() 401 zpl_mmap(struct file *filp, struct vm_area_struct *vma) in zpl_mmap() argument 408 error = -zfs_map(ip, vma->vm_pgoff, (caddr_t *)vma->vm_start, in zpl_mmap() 409 (size_t)(vma->vm_end - vma->vm_start), vma->vm_flags); in zpl_mmap() 415 error = generic_file_mmap(filp, vma); in zpl_mmap() 419 vma->vm_ops = &zpl_vm_ops; in zpl_mmap()
|
| /freebsd/sys/dev/drm2/ |
| H A D | drm_drv.c | 187 struct drm_vma_entry *vma, *vma_temp; in drm_lastclose() local 230 list_for_each_entry_safe(vma, vma_temp, &dev->vmalist, head) { in drm_lastclose() 231 list_del(&vma->head); in drm_lastclose() 232 kfree(vma); in drm_lastclose()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/cfi/ |
| H A D | cfi.cpp | 318 uptr vma = GetMaxUserVirtualAddress(); in InitShadow() 320 SetShadowSize((vma >> (kShadowGranularity - 1)) + 1); in InitShadow() 321 VReport(1, "CFI: VMA size %zx, shadow size %zx\n", vma, GetShadowSize()); 314 uptr vma = GetMaxUserVirtualAddress(); InitShadow() local
|
| /freebsd/sys/dev/mthca/ |
| H A D | mthca_provider.c | 349 struct vm_area_struct *vma) in mthca_mmap_uar() argument 351 if (vma->vm_end - vma->vm_start != PAGE_SIZE) in mthca_mmap_uar() 354 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); in mthca_mmap_uar() 356 if (io_remap_pfn_range(vma, vma->vm_start, in mthca_mmap_uar() 358 PAGE_SIZE, vma->vm_page_prot)) in mthca_mmap_uar()
|
| /freebsd/sys/riscv/riscv/ |
| H A D | locore.S | 219 sfence.vma 374 sfence.vma
|
| /freebsd/sys/dev/bnxt/bnxt_re/ |
| H A D | ib_verbs.h | 364 int bnxt_re_mmap(struct ib_ucontext *context, struct vm_area_struct *vma); 374 struct vm_area_struct *vma); 636 struct vm_area_struct *vma) in __bnxt_re_set_vma_data() argument
|