Home
last modified time | relevance | path

Searched refs:kva (Results 1 – 25 of 34) sorted by path

12

/freebsd/lib/libkvm/
H A Dkvm.c360 kvm_read(kvm_t *kd, u_long kva, void *buf, size_t len) in kvm_read() argument
363 return (kvm_read2(kd, kva, buf, len)); in kvm_read()
367 kvm_read2(kvm_t *kd, kvaddr_t kva, void *buf, size_t len) in kvm_read2() argument
380 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_read2()
382 (uintmax_t)kva); in kvm_read2()
396 cc = kd->arch->ka_kvatop(kd, kva, &pa); in kvm_read2()
419 kva += cr; in kvm_read2()
445 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_write()
446 _kvm_err(kd, 0, "invalid address (%lx)", kva); in kvm_write()
460 cc = kd->arch->ka_kvatop(kd, kva, &pa); in kvm_write()
[all …]
/freebsd/sys/arm/include/
H A Dsf_buf.h36 pmap_qenter(sf->kva, &(sf->m), 1); in sf_buf_map()
43 pmap_qremove(sf->kva, 1); in sf_buf_unmap()
/freebsd/sys/compat/x86bios/
H A Dx86bios.c151 if (x86bios_vmc.pmap[i].kva == (vm_offset_t)addr) in x86bios_free()
161 while (--i >= 0 && x86bios_vmc.pmap[i].kva == 0) in x86bios_free()
/freebsd/sys/dev/bxe/
H A Dbxe.c13100 sc->bar[i].kva = (vm_offset_t)rman_get_virtual(sc->bar[i].resource); in bxe_allocate_bars()
13107 (uintmax_t)sc->bar[i].kva); in bxe_allocate_bars()
H A Dbxe.h460 vm_offset_t kva; member
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Diw_cxgbe.h397 u64 kva; member
413 u64 kva; member
H A Dmem.c718 if (mhp->kva) in c4iw_dereg_mr()
719 kfree((void *) (unsigned long) mhp->kva); in c4iw_dereg_mr()
/freebsd/sys/dev/gve/
H A Dgve.h140 vm_offset_t kva; member
H A Dgve_qpl.c66 if (qpl->kva) { in gve_free_qpl()
67 pmap_qremove(qpl->kva, qpl->num_pages); in gve_free_qpl()
68 kva_free(qpl->kva, PAGE_SIZE * qpl->num_pages); in gve_free_qpl()
79 if (!qpl->kva) { in gve_free_qpl()
120 qpl->kva = 0; in gve_alloc_qpl()
122 qpl->kva = kva_alloc(PAGE_SIZE * npages); in gve_alloc_qpl()
123 if (!qpl->kva) { in gve_alloc_qpl()
144 qpl->dmas[i].cpu_addr = (void *)(qpl->kva + (PAGE_SIZE * i)); in gve_alloc_qpl()
151 pmap_qenter(qpl->kva, qpl->pages, npages); in gve_alloc_qpl()
H A Dgve_tx.c43 fifo->base = qpl->kva; in gve_tx_fifo_init()
/freebsd/sys/dev/hifn/
H A Dhifn7751.c359 caddr_t kva; in hifn_attach() local
458 if (bus_dmamem_alloc(sc->sc_dmat, (void**) &kva, BUS_DMA_NOWAIT, &sc->sc_dmamap)) { in hifn_attach()
464 if (bus_dmamap_load(sc->sc_dmat, sc->sc_dmamap, kva, in hifn_attach()
469 bus_dmamem_free(sc->sc_dmat, kva, sc->sc_dmamap); in hifn_attach()
473 sc->sc_dma = (struct hifn_dma *)kva; in hifn_attach()
/freebsd/sys/dev/irdma/
H A Dirdma_verbs.c2395 u64 kva = 0; in irdma_get_dma_mr() local
2397 return irdma_reg_phys_mr(pd, 0, 0, acc, &kva); in irdma_get_dma_mr()
/freebsd/sys/dev/md/
H A Dmd.c282 vm_offset_t kva; member
966 pmap_qenter(sc->kva, &bp->bio_ma[atop(ma_offs)], npages); in mdstart_vnode()
967 aiov.iov_base = (void *)(sc->kva + (ma_offs & PAGE_MASK)); in mdstart_vnode()
1001 pmap_qremove(sc->kva, npages); in mdstart_vnode()
1486 sc->kva = kva_alloc(maxphys + PAGE_SIZE); in mdcreate_vnode()
1545 if (sc->kva) in mddestroy()
1546 kva_free(sc->kva, maxphys + PAGE_SIZE); in mddestroy()
/freebsd/sys/dev/neta/
H A Dif_mvneta.c1303 void *kva; in mvneta_ring_dealloc_tx_queue() local
1338 kva = (void *)tx->desc; in mvneta_ring_dealloc_tx_queue()
1339 if (kva != NULL) in mvneta_ring_dealloc_tx_queue()
1353 void *kva; in mvneta_ring_dealloc_rx_queue() local
1363 kva = (void *)rx->desc; in mvneta_ring_dealloc_rx_queue()
1364 if (kva != NULL) in mvneta_ring_dealloc_rx_queue()
/freebsd/sys/dev/netmap/
H A Dnetmap_freebsd.c649 vm_offset_t kva; member
658 vm_map_remove(kernel_map, e->kva, e->kva + e->size); in nm_os_extmem_delete()
666 if (e->scan < e->kva + e->size) { in nm_os_extmem_nextpage()
721 e->kva = vm_map_min(kernel_map); in nm_os_extmem_create()
723 rv = vm_map_find(kernel_map, obj, 0, &e->kva, e->size, 0, in nm_os_extmem_create()
731 rv = vm_map_wire(kernel_map, e->kva, e->kva + e->size, in nm_os_extmem_create()
739 e->scan = e->kva; in nm_os_extmem_create()
744 vm_map_remove(kernel_map, e->kva, e->kva + e->size); in nm_os_extmem_create()
/freebsd/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c784 caddr_t kva; in vmxnet3_tx_queues_alloc() local
810 kva = sc->vmx_qs_dma.idi_vaddr; in vmxnet3_tx_queues_alloc()
812 sc->vmx_txq[q].vxtxq_ts = (struct vmxnet3_txq_shared *) kva; in vmxnet3_tx_queues_alloc()
813 kva += sizeof(struct vmxnet3_txq_shared); in vmxnet3_tx_queues_alloc()
879 caddr_t kva; in vmxnet3_rx_queues_alloc() local
906 kva = sc->vmx_qs_dma.idi_vaddr + in vmxnet3_rx_queues_alloc()
909 sc->vmx_rxq[q].vxrxq_rs = (struct vmxnet3_rxq_shared *) kva; in vmxnet3_rx_queues_alloc()
910 kva += sizeof(struct vmxnet3_rxq_shared); in vmxnet3_rx_queues_alloc()
/freebsd/sys/dev/xen/blkback/
H A Dblkback.c229 uint8_t *kva; member
535 vm_offset_t kva; member
886 (uintptr_t)(reqlist->kva - xbb->kva) + in xbb_get_gntaddr()
956 free_kva = xbb->kva + in xbb_get_kva()
1051 reqlist->kva = NULL; in xbb_get_reqlist()
1082 if (reqlist->kva != NULL) in xbb_release_reqlist()
1484 reqlist->kva = NULL; in xbb_dispatch_io()
1487 if (reqlist->kva == NULL) { in xbb_dispatch_io()
2594 if (xbb->kva != 0) { in xbb_free_communication_mem()
2601 xbb->kva = 0; in xbb_free_communication_mem()
[all …]
/freebsd/sys/dev/xen/netback/
H A Dnetback.c484 vm_offset_t kva; member
620 if (xnb->kva != 0) { in xnb_free_communication_mem()
627 xnb->kva = 0; in xnb_free_communication_mem()
706 ring->va = xnb->kva + ring_type * PAGE_SIZE; in xnb_connect_ring()
821 xnb->kva = 0; in xnb_alloc_communication_mem()
824 xnb->kva = (vm_offset_t)rman_get_virtual(xnb->pseudo_phys_res); in xnb_alloc_communication_mem()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clbio.c119 vm_offset_t kva; in ncl_getpages() local
183 kva = (vm_offset_t) bp->b_data; in ncl_getpages()
184 pmap_qenter(kva, pages, npages); in ncl_getpages()
189 iov.iov_base = (caddr_t) kva; in ncl_getpages()
200 pmap_qremove(kva, npages); in ncl_getpages()
/freebsd/sys/fs/smbfs/
H A Dsmbfs_io.c422 vm_offset_t kva; in smbfs_getpages()
463 kva = (vm_offset_t) bp->b_data; in smbfs_getpages()
464 pmap_qenter(kva, pages, npages); in smbfs_getpages()
469 iov.iov_base = (caddr_t) kva; in smbfs_getpages()
481 pmap_qremove(kva, npages); in smbfs_getpages()
556 vm_offset_t kva; in smbfs_putpages() local
581 kva = (vm_offset_t) bp->b_data; in smbfs_putpages()
582 pmap_qenter(kva, pages, npages); in smbfs_putpages()
586 iov.iov_base = (caddr_t) kva; in smbfs_putpages()
605 pmap_qremove(kva, npages); in smbfs_putpages()
/freebsd/sys/i386/i386/
H A Dcopyout.c148 c = *(char *)(kva + ca->alen); in copyinstr_slow0()
193 copyin_slow0(vm_offset_t kva, void *arg) in copyin_slow0() argument
268 fubyte_slow0(vm_offset_t kva, void *arg) in fubyte_slow0() argument
271 *(int *)arg = *(u_char *)kva; in fubyte_slow0()
297 *(int *)arg = *(uint16_t *)kva; in fuword16_slow0()
323 *(uint32_t *)arg = *(uint32_t *)kva; in fueword_slow0()
357 subyte_slow0(vm_offset_t kva, void *arg) in subyte_slow0() argument
360 *(u_char *)kva = *(int *)arg; in subyte_slow0()
380 *(int *)kva = *(uint16_t *)arg; in suword16_slow0()
398 suword_slow0(vm_offset_t kva, void *arg) in suword_slow0() argument
[all …]
H A Dpmap.c6086 ptep = vtopte(sf->kva); in __CONCAT()
6102 pmap_invalidate_page_int(kernel_pmap, sf->kva); in __CONCAT()
H A Dvm86.c606 return (vmc->pmap[i].kva); in vm86_getpage()
622 if (kva == 0) { in vm86_addpage()
629 vmc->pmap[i].kva = kva; in vm86_addpage()
631 return (kva); in vm86_addpage()
736 page = vtophys(vmc->pmap[i].kva & PG_FRAME_PAE); in vm86_datacall()
740 pmap_invalidate_page(kernel_pmap, vmc->pmap[i].kva); in vm86_datacall()
745 page = vtophys(vmc->pmap[i].kva & PG_FRAME_NOPAE); in vm86_datacall()
788 return (vmc->pmap[i].kva + (addr & PAGE_MASK)); in vm86_getaddr()
799 if (kva >= vmc->pmap[i].kva && in vm86_getptr()
800 kva < vmc->pmap[i].kva + PAGE_SIZE) { in vm86_getptr()
[all …]
H A Dvm_machdep.c601 invlpg(sf->kva); in sf_buf_shootdown()
609 smp_masked_invlpg(other_cpus, sf->kva, kernel_pmap, in sf_buf_shootdown()
637 pmap_qenter(sf->kva, &m, 1); in sf_buf_invalidate()
638 pmap_invalidate_cache_range(sf->kva, sf->kva + PAGE_SIZE); in sf_buf_invalidate()
/freebsd/sys/i386/include/
H A Dvm86.h111 vm_offset_t kva; member

12