Home
last modified time | relevance | path

Searched refs:vaddr (Results 1 – 25 of 210) sorted by relevance

123456789

/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_mapped_section.h47 uint64_t vaddr; member
68 uint64_t vaddr, uint64_t offset, uint64_t size) in pt_msec_init() argument
74 msec->vaddr = vaddr; in pt_msec_init()
98 return msec->vaddr; in pt_msec_begin()
107 return msec->vaddr + msec->size; in pt_msec_end()
149 return (offset - msec->offset) + msec->vaddr; in pt_msec_map()
154 uint64_t vaddr) in pt_msec_unmap() argument
156 return (vaddr - msec->vaddr) + msec->offset; in pt_msec_unmap()
169 uint64_t vaddr) in pt_msec_read() argument
177 begin = vaddr; in pt_msec_read()
H A Dpt_image.h89 const struct pt_asid *asid, uint64_t vaddr, int isid);
98 const struct pt_asid *asid, uint64_t vaddr);
123 const struct pt_asid *asid, uint64_t vaddr);
138 uint64_t vaddr, int isid);
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Ddma-buf-map.h12 void *vaddr; member
23 dbm->vaddr += n; in dma_buf_map_incr()
32 memcpy(dbm->vaddr, src, len); in dma_buf_map_memcpy_to()
41 return (dbm->vaddr == NULL); in dma_buf_map_is_null()
50 return (dbm->vaddr != NULL); in dma_buf_map_is_set()
63 return (dbm_a->vaddr == dbm_b->vaddr); in dma_buf_map_is_equal()
73 dbm->vaddr = NULL; in dma_buf_map_clear()
87 dbm->vaddr = addr; in dma_buf_map_set_vaddr()
H A Diosys-map.h12 void *vaddr; member
33 ism->vaddr += n; in iosys_map_incr()
43 memcpy(ism->vaddr + off, src, len); in iosys_map_memcpy_to()
52 return (ism->vaddr == NULL); in iosys_map_is_null()
61 return (ism->vaddr != NULL); in iosys_map_is_set()
74 return (ism_a->vaddr == ism_b->vaddr); in iosys_map_is_equal()
84 ism->vaddr = NULL; in iosys_map_clear()
98 ism->vaddr = addr; in iosys_map_set_vaddr()
108 memset(ism->vaddr + off, value, len); in iosys_map_memset()
134 val = READ_ONCE(*(_type *)((_ism)->vaddr + (_off))); \
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_scatter.c47 if (entry->vaddr != NULL) in drm_sg_cleanup()
48 kmem_free(entry->vaddr, IDX_TO_OFF(entry->pages)); in drm_sg_cleanup()
83 entry->vaddr = drm_vmalloc_dma(size); in drm_sg_alloc()
84 if (entry->vaddr == NULL) { in drm_sg_alloc()
92 vtophys((uintptr_t)entry->vaddr + IDX_TO_OFF(pindex)); in drm_sg_alloc()
95 request->handle = (uintptr_t)entry->vaddr; in drm_sg_alloc()
100 entry->pages, entry->vaddr, *(unsigned long *)entry->vaddr); in drm_sg_alloc()
126 if (!entry || (uintptr_t)entry->vaddr != request->handle) in drm_sg_free()
129 DRM_DEBUG("free %p\n", entry->vaddr); in drm_sg_free()
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_image.c60 uint64_t vaddr, in pt_mk_section_list() argument
77 pt_msec_init(&list->section, section, asid, vaddr, offset, size); in pt_mk_section_list()
156 const struct pt_asid *asid, uint64_t vaddr, int isid) in pt_image_add() argument
166 begin = vaddr; in pt_image_add()
268 const struct pt_asid *asid, uint64_t vaddr) in pt_image_remove() argument
296 if (sec == section && begin == vaddr) { in pt_image_remove()
309 const struct pt_asid *uasid, uint64_t vaddr) in pt_image_add_file() argument
327 errcode = pt_image_add(image, section, &asid, vaddr, 0); in pt_image_add_file()
363 list->section.vaddr, in pt_image_copy()
502 uint64_t vaddr) in pt_image_check_msec() argument
[all …]
H A Dpt_msec_cache.c78 struct pt_image *image, uint64_t vaddr) in pt_msec_cache_read() argument
89 errcode = pt_image_validate(image, msec, vaddr, isid); in pt_msec_cache_read()
102 uint64_t vaddr) in pt_msec_cache_fill() argument
117 isid = pt_image_find(image, msec, asid, vaddr); in pt_msec_cache_fill()
/freebsd/sys/riscv/riscv/
H A Dbusdma_bounce.c83 vm_offset_t vaddr; /* kva of client data */ member
353 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in bounce_bus_dmamem_alloc()
432 *vaddr = malloc(dmat->common.maxsize, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc()
438 *vaddr = kmem_alloc_attr(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc()
442 *vaddr = kmem_alloc_contig(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc()
447 if (*vaddr == NULL) { in bounce_bus_dmamem_alloc()
452 } else if (!vm_addr_align_ok(vtophys(*vaddr), dmat->common.alignment)) { in bounce_bus_dmamem_alloc()
466 bounce_bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) in bounce_bus_dmamem_free()
477 free(vaddr, M_DEVBUF); in bounce_bus_dmamem_free()
479 kmem_free(vaddr, dma in bounce_bus_dmamem_free()
349 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bounce_bus_dmamem_alloc() argument
462 bounce_bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bounce_bus_dmamem_free() argument
513 vm_offset_t vaddr; _bus_dmamap_count_pages() local
673 vm_offset_t kvaddr, vaddr, sl_vend; bounce_bus_dmamap_load_buffer() local
[all...]
H A Duio_machdep.c59 vm_offset_t page_offset, vaddr; in uiomove_fromphys() local
92 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys()
93 cp = (char *)vaddr + page_offset; in uiomove_fromphys()
124 &vaddr, 1, true); in uiomove_fromphys()
137 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
/freebsd/sys/arm64/arm64/
H A Dbusdma_bounce.c89 vm_offset_t vaddr; /* kva of client data */ member
492 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in bounce_bus_dmamem_alloc() argument
574 *vaddr = malloc_domainset_aligned(dmat->alloc_size, in bounce_bus_dmamem_alloc()
582 *vaddr = kmem_alloc_attr_domainset( in bounce_bus_dmamem_alloc()
587 *vaddr = kmem_alloc_contig_domainset( in bounce_bus_dmamem_alloc()
594 if (*vaddr == NULL) { in bounce_bus_dmamem_alloc()
599 } else if (!vm_addr_align_ok(vtophys(*vaddr), dmat->alloc_alignment)) { in bounce_bus_dmamem_alloc()
613 bounce_bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) in bounce_bus_dmamem_free() argument
624 free(vaddr, M_DEVBUF); in bounce_bus_dmamem_free()
626 kmem_free(vaddr, dmat->alloc_size); in bounce_bus_dmamem_free()
[all …]
H A Duio_machdep.c59 vm_offset_t page_offset, vaddr; in uiomove_fromphys() local
92 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys()
93 cp = (char *)vaddr + page_offset; in uiomove_fromphys()
124 &vaddr, 1, true); in uiomove_fromphys()
137 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
/freebsd/sys/dev/altera/jtag_uart/
H A Daltera_jtag_uart_cons.c119 mips_ioread_uint32(vaddr_t vaddr) in mips_ioread_uint32() argument
123 __asm__ __volatile__ ("lw %0, 0(%1)" : "=r" (v) : "r" (vaddr)); in mips_ioread_uint32()
128 mips_iowrite_uint32(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32() argument
131 __asm__ __volatile__ ("sw %0, 0(%1)" : : "r" (v), "r" (vaddr)); in mips_iowrite_uint32()
138 mips_ioread_uint32le(vaddr_t vaddr) in mips_ioread_uint32le() argument
141 return (le32toh(mips_ioread_uint32(vaddr))); in mips_ioread_uint32le()
145 mips_iowrite_uint32le(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32le() argument
148 mips_iowrite_uint32(vaddr, htole32(v)); in mips_iowrite_uint32le()
/freebsd/sys/powerpc/powerpc/
H A Dbusdma_machdep.c399 bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in bus_dmamem_alloc()
431 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc()
439 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0ul, in bus_dmamem_alloc()
444 if (*vaddr == NULL) { in bus_dmamem_alloc()
448 } else if (!vm_addr_align_ok(vtophys(*vaddr), dmat->alignment)) { in bus_dmamem_alloc()
461 bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) in bus_dmamem_free()
465 free(vaddr, M_DEVBUF); in bus_dmamem_free()
467 kmem_free(vaddr, dmat->maxsize);
507 vm_offset_t vaddr; in _bus_dmamap_count_pages()
520 vaddr in _bus_dmamap_count_pages()
395 bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bus_dmamem_alloc() argument
457 bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bus_dmamem_free() argument
503 vm_offset_t vaddr; _bus_dmamap_count_pages() local
654 vm_offset_t kvaddr, vaddr; _bus_dmamap_load_buffer() local
[all...]
/freebsd/sys/vm/
H A Dvm_fault.c120 vm_offset_t vaddr; member
176 static void vm_fault_dontneed(const struct faultstate *fs, vm_offset_t vaddr,
343 vm_offset_t vaddr; in vm_fault_soft_fast() local
361 vaddr = fs->vaddr; in vm_fault_soft_fast()
399 while (rounddown2(vaddr, pagesizes[psind]) < fs->entry->start || in vm_fault_soft_fast()
400 roundup2(vaddr + 1, pagesizes[psind]) > fs->entry->end || in vm_fault_soft_fast()
401 (vaddr & (pagesizes[psind] - 1)) != in vm_fault_soft_fast()
416 vaddr = rounddown2(vaddr, pagesize in vm_fault_soft_fast()
498 vm_offset_t vaddr; vm_fault_populate() local
712 vm_fault_trap(vm_map_t map,vm_offset_t vaddr,vm_prot_t fault_type,int fault_flags,int * signo,int * ucode) vm_fault_trap() argument
1546 vm_fault(vm_map_t map,vm_offset_t vaddr,vm_prot_t fault_type,int fault_flags,vm_page_t * m_hold) vm_fault() argument
1833 vm_fault_dontneed(const struct faultstate * fs,vm_offset_t vaddr,int ahead) vm_fault_dontneed() argument
2084 vm_offset_t vaddr; vm_fault_copy_entry() local
[all...]
/freebsd/sys/arm/arm/
H A Dbusdma_machdep.c95 vm_offset_t vaddr; /* kva of client data */ member
653 bus_dmamem_alloc(bus_dma_tag_t dmat, void **vaddr, int flags, in bus_dmamem_alloc()
719 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc()
724 *vaddr = kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
727 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
730 if (*vaddr == NULL) { in bus_dmamem_alloc()
753 bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) in bus_dmamem_free()
768 uma_zfree(bufzone->umazone, vaddr); in bus_dmamem_free()
770 kmem_free(vaddr, dmat->maxsize); in bus_dmamem_free()
816 vm_offset_t vaddr; in _bus_dmamap_count_pages()
649 bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bus_dmamem_alloc() argument
749 bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bus_dmamem_free() argument
812 vm_offset_t vaddr; _bus_dmamap_count_pages() local
988 vm_offset_t kvaddr, vaddr, sl_vend = 0; _bus_dmamap_load_buffer() local
[all...]
/freebsd/sys/x86/x86/
H A Dbusdma_bounce.c387 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat, void **vaddr, int flags, in bounce_bus_dmamem_alloc()
439 *vaddr = malloc_domainset_aligned(dmat->common.maxsize, in bounce_bus_dmamem_alloc()
442 KASSERT(*vaddr == NULL || ((uintptr_t)*vaddr & PAGE_MASK) + in bounce_bus_dmamem_alloc()
445 "%#jx align %#jx", *vaddr, (uintmax_t)dmat->common.maxsize, in bounce_bus_dmamem_alloc()
453 *vaddr = kmem_alloc_attr_domainset( in bounce_bus_dmamem_alloc()
458 *vaddr = kmem_alloc_contig_domainset( in bounce_bus_dmamem_alloc()
465 if (*vaddr == NULL) { in bounce_bus_dmamem_alloc()
469 } else if (!vm_addr_align_ok(vtophys(*vaddr), dmat->common.alignment)) { in bounce_bus_dmamem_alloc()
482 bounce_bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_ in bounce_bus_dmamem_free()
383 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bounce_bus_dmamem_alloc() argument
478 bounce_bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bounce_bus_dmamem_free() argument
542 vm_offset_t vaddr; _bus_dmamap_count_pages() local
736 vm_offset_t kvaddr, vaddr; bounce_bus_dmamap_load_buffer() local
[all...]
/freebsd/sys/ofed/include/rdma/
H A Dib_hdrs.h80 __be64 vaddr; /* potentially unaligned */ member
86 __be64 vaddr; /* potentially unaligned */ member
141 return ib_u64_get(&reth->vaddr); in get_ib_reth_vaddr()
146 ib_u64_put(val, &reth->vaddr); in put_ib_reth_vaddr()
151 return ib_u64_get(&ateth->vaddr); in get_ib_ateth_vaddr()
156 ib_u64_put(val, &ateth->vaddr); in put_ib_ateth_vaddr()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsegments.c75 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()
183 if (vma < s->vma - s->seg->vaddr) in adjust_addr()
187 start = vma - (s->vma - s->seg->vaddr); in adjust_addr()
191 end = s->seg->vaddr + s->seg->msz; in adjust_addr()
197 start = s->seg->vaddr; in adjust_addr()
198 end = vma + (s->seg->vaddr + s->seg->msz - s->vma); in adjust_addr()
213 if (start > seg->vaddr + seg->msz) in adjust_addr()
215 if (end < seg->vaddr) in adjust_addr()
[all …]
/freebsd/sys/arm/mv/armada38x/
H A Darmada38x_mp.c52 bus_space_handle_t vaddr; in cpu_reset_deassert() local
57 MV_CPU_RESET_REGS_LEN, 0, &vaddr); in cpu_reset_deassert()
62 reg = bus_space_read_4(fdtbus_bs_tag, vaddr, CPU_RESET_OFFSET(1)); in cpu_reset_deassert()
65 bus_space_write_4(fdtbus_bs_tag, vaddr, CPU_RESET_OFFSET(1), reg); in cpu_reset_deassert()
67 bus_space_unmap(fdtbus_bs_tag, vaddr, MV_CPU_RESET_REGS_LEN); in cpu_reset_deassert()
H A Dpmsu.c130 bus_space_handle_t vaddr; in pmsu_boot_secondary_cpu() local
134 0, &vaddr); in pmsu_boot_secondary_cpu()
139 bus_space_write_4(fdtbus_bs_tag, vaddr, PMSU_BOOT_ADDR_REDIRECT_OFFSET(1), in pmsu_boot_secondary_cpu()
146 bus_space_unmap(fdtbus_bs_tag, vaddr, MV_PMSU_REGS_LEN); in pmsu_boot_secondary_cpu()
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_buf.h43 caddr_t vaddr; member
57 (__buf)->vaddr = NULL; \
81 KASSERT((__buf)->vaddr == NULL, ("%s: vaddr set?", __func__)); \
91 KASSERT((__sgt)->vaddr == NULL, ("%s: S/G vaddr set?", __func__)); \
105 KASSERT((__buf)->vaddr == NULL, ("%s: vaddr set?", __func__)); \
115 KASSERT((__sgt)->vaddr != NULL, ("%s: no S/G vaddr?", __func__)); \
140 KASSERT((__buf)->vaddr == NULL, ("%s: vaddr set?", __func__)); \
152 KASSERT((__buf)->vaddr != NULL, ("%s: vaddr not set?", __func__)); \
/freebsd/sys/dev/mpt/
H A Dmpt_user.c56 void *vaddr; member
200 page_mem->vaddr = NULL; in mpt_alloc_buffer()
210 error = bus_dmamem_alloc(page_mem->tag, &page_mem->vaddr, in mpt_alloc_buffer()
217 error = bus_dmamap_load(page_mem->tag, page_mem->map, page_mem->vaddr, in mpt_alloc_buffer()
222 bus_dmamem_free(page_mem->tag, page_mem->vaddr, page_mem->map); in mpt_alloc_buffer()
224 page_mem->vaddr = NULL; in mpt_alloc_buffer()
235 if (page_mem->vaddr == NULL) in mpt_free_buffer()
238 bus_dmamem_free(page_mem->tag, page_mem->vaddr, page_mem->map); in mpt_free_buffer()
240 page_mem->vaddr = NULL; in mpt_free_buffer()
302 hdr = mpt_page->vaddr; in mpt_user_read_cfg_page()
[all …]
/freebsd/sys/amd64/amd64/
H A Duio_machdep.c61 vm_offset_t page_offset, vaddr; in uiomove_fromphys() local
94 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys()
95 cp = (char *)vaddr + page_offset; in uiomove_fromphys()
126 &vaddr, 1, true); in uiomove_fromphys()
138 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
/freebsd/stand/common/
H A Dmetadata.c90 vm_offset_t vaddr; in md_load_dual() local
200 bcopy(md->md_data, &vaddr, sizeof vaddr); in md_load_dual()
201 vaddr -= __elfN(relocation_offset); in md_load_dual()
202 bcopy(&vaddr, md->md_data, sizeof vaddr); in md_load_dual()
/freebsd/sys/dev/sfxge/
H A Dsfxge_dma.c142 void *vaddr; in sfxge_dma_alloc() local
153 if (bus_dmamem_alloc(esmp->esm_tag, (void **)&vaddr, in sfxge_dma_alloc()
161 if (bus_dmamap_load(esmp->esm_tag, esmp->esm_map, vaddr, len, in sfxge_dma_alloc()
175 esmp->esm_base = vaddr; in sfxge_dma_alloc()
182 bus_dmamem_free(esmp->esm_tag, vaddr, esmp->esm_map); in sfxge_dma_alloc()

123456789