Home
last modified time | relevance | path

Searched refs:vtophys (Results 1 – 25 of 122) sorted by relevance

12345

/freebsd-12.1/sys/powerpc/powernv/
H A Dopal_dev.c139 rv = opal_call(OPAL_RTC_READ, vtophys(&junk), vtophys(&junk)); in opaldev_attach()
141 rv = opal_call(OPAL_RTC_READ, vtophys(&junk), vtophys(&junk)); in opaldev_attach()
221 rv = opal_call(OPAL_RTC_READ, vtophys(&ymd), vtophys(&hmsm)); in opal_gettime()
225 rv = opal_call(OPAL_RTC_READ, vtophys(&ymd), vtophys(&hmsm)); in opal_gettime()
269 rv = opal_call(OPAL_RTC_WRITE, vtophys(&ymd), vtophys(&hmsm)); in opal_settime()
306 vtophys(&events)); in opal_intr()
H A Dopal_pci.c483 config_addr, reg, vtophys(&byte)); in opalpci_read_config()
488 config_addr, reg, vtophys(&half)); in opalpci_read_config()
493 config_addr, reg, vtophys(&word)); in opalpci_read_config()
630 OPAL_PCI_DEFAULT_PE, xive, 1, vtophys(&msi32), in opalpci_map_msi()
631 vtophys(data)); in opalpci_map_msi()
635 OPAL_PCI_DEFAULT_PE, xive, 1, vtophys(addr), vtophys(data)); in opalpci_map_msi()
H A Dopal_hmi.c47 err = opal_call(OPAL_HANDLE_HMI2, vtophys(&flags)); in opal_hmi_handler2()
/freebsd-12.1/sys/dev/mn/
H A Dif_mn.c625 dp->data = vtophys(m2->m_data); in ngmn_rcvdata()
629 dp->next = vtophys(dp); in ngmn_rcvdata()
702 dp->next = vtophys(dp); in ngmn_connect()
704 dp->data = vtophys(sc->name); in ngmn_connect()
716 dp->data = vtophys(m->m_data); in ngmn_connect()
719 dp->next = vtophys(dp); in ngmn_connect()
730 dp->data = vtophys(m->m_data); in ngmn_connect()
733 dp->next = vtophys(dp2); in ngmn_connect()
954 sc->m32x->tiqba = vtophys(&sc->tiqb); in mn_reset()
1177 dp->data = vtophys(m->m_data); in mn_rx_intr()
[all …]
/freebsd-12.1/sys/x86/xen/
H A Dhvm.c194 : vtophys(&hypercall_page)); in xen_hvm_init_hypercall_stubs()
221 xatp.gpfn = vtophys(HYPERVISOR_shared_info) >> PAGE_SHIFT; in xen_hvm_init_shared_info_page()
439 info.mfn = vtophys(vcpu_info) >> PAGE_SHIFT; in xen_hvm_cpu_init()
440 info.offset = vtophys(vcpu_info) - trunc_page(vtophys(vcpu_info)); in xen_hvm_cpu_init()
/freebsd-12.1/sys/arm/freescale/imx/
H A Dimx6_sdma.c282 sc->ccb[chn].base_bd_ptr = vtophys(channel->bd); in sdma_configure()
283 sc->ccb[chn].current_bd_ptr = vtophys(channel->bd); in sdma_configure()
395 sc->ccb_phys = vtophys(sc->ccb); in boot_firmware()
399 sc->context_phys = vtophys(sc->context); in boot_firmware()
415 sc->ccb[chn].base_bd_ptr = vtophys(bd0); in boot_firmware()
416 sc->ccb[chn].current_bd_ptr = vtophys(bd0); in boot_firmware()
433 bd0->buffer_addr = vtophys(ram_code); in boot_firmware()
/freebsd-12.1/sys/x86/acpica/
H A Dacpi_wakeup.c425 sc->acpi_wakephys = vtophys(wakeaddr); in acpi_install_wakeup_handler()
431 pt4pa = vtophys(pt4); in acpi_install_wakeup_handler()
432 pt3pa = vtophys(pt3); in acpi_install_wakeup_handler()
433 pt2pa = vtophys(pt2); in acpi_install_wakeup_handler()
453 WAKECODE_FIXUP(wakeup_cr3, register_t, vtophys(kernel_pmap->pm_pdpt)); in acpi_install_wakeup_handler()
455 WAKECODE_FIXUP(wakeup_cr3, register_t, vtophys(kernel_pmap->pm_pdir)); in acpi_install_wakeup_handler()
/freebsd-12.1/sys/dev/pst/
H A Dpst-iop.c221 msg->status_word_low_addr = vtophys(&reply); in iop_reset()
253 sc->phys_obase = vtophys(sc->obase); in iop_init_outqueue()
268 msg->sgl[0].phys_addr[0] = vtophys(&reply); in iop_init_outqueue()
320 msg->sgl.phys_addr[0] = vtophys(reply); in iop_get_lct()
372 msg->sgl[0].phys_addr[0] = vtophys(param); in iop_get_util_params()
376 msg->sgl[1].phys_addr[0] = vtophys(reply); in iop_get_util_params()
485 sgl_phys = vtophys(data); in iop_create_sgl()
493 sgl_phys = vtophys(data); in iop_create_sgl()
/freebsd-12.1/sys/amd64/vmm/intel/
H A Dvmx_cpufunc.h64 addr = vtophys(region); in vmxon()
81 addr = vtophys(vmcs); in vmclear()
110 addr = vtophys(vmcs); in vmptrld()
H A Dvtd.c389 ctx_paddr = vtophys(ctx_tables[i]); in vtd_init()
415 vtdmap->rta = vtophys(root_table); in vtd_enable()
451 pt_paddr = vtophys(dom->ptp); in vtd_add_device()
582 ptp[ptpindex] = vtophys(nlp)| VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping()
/freebsd-12.1/sys/dev/ipmi/
H A Dipmi_opal.c80 err = opal_call(OPAL_IPMI_SEND, sc->sc_interface, vtophys(sc->sc_msg), in opal_ipmi_polled_request()
103 vtophys(sc->sc_msg), vtophys(&msg_len)); in opal_ipmi_polled_request()
/freebsd-12.1/sys/dev/wb/
H A Dif_wb.c816 vtophys(&ld->wb_rx_list[0]);
821 vtophys(&ld->wb_rx_list[i + 1]);
862 c->wb_ptr->wb_data = vtophys(mtod(m_new, caddr_t));
953 CSR_WRITE_4(sc, WB_RXADDR, vtophys(&sc->wb_ldata->wb_rx_list[0]));
1179 f->wb_next = vtophys(&c->wb_ptr->wb_frag[frag + 1]);
1180 f->wb_data = vtophys(mtod(m, vm_offset_t));
1212 f->wb_data = vtophys(mtod(m_new, caddr_t));
1221 f->wb_data = vtophys(&sc->wb_cdata.wb_pad);
1230 WB_TXNEXT(c) = vtophys(&c->wb_nextdesc->wb_ptr->wb_frag[0]);
1442 CSR_WRITE_4(sc, WB_RXADDR, vtophys(&sc->wb_ldata->wb_rx_list[0]));
[all …]
/freebsd-12.1/sys/mips/nlm/hal/
H A Dnlmsaelib.h515 ivlen, vtophys(hashdst_addr)); in nlm_crypto_fill_cipher_auth_pkt_param()
562 vtophys(hashdst_addr)); in nlm_crypto_fill_auth_pkt_param()
580 vtophys(input + off)); in nlm_crypto_fill_src_seg()
599 vtophys(output + off)); in nlm_crypto_fill_dst_seg()
/freebsd-12.1/sys/dev/ioat/
H A Dioat_test.c281 src = vtophys((vm_offset_t)tx->buf[2*i]); in ioat_test_submit_1_tx()
282 dest = vtophys((vm_offset_t)tx->buf[2*i+1]); in ioat_test_submit_1_tx()
310 src2 = vtophys((vm_offset_t)tx->buf[2*i] + PAGE_SIZE); in ioat_test_submit_1_tx()
311 dst2 = vtophys((vm_offset_t)tx->buf[2*i+1] + PAGE_SIZE); in ioat_test_submit_1_tx()
430 test->raw_target = vtophys(test->raw_vtarget); in ioat_dma_test()
/freebsd-12.1/sys/dev/bktr/
H A Dbktr_core.c544 (void *)(uintptr_t)vtophys(buf)); in common_bktr_attach()
2815 target_buffer = (u_long) vtophys(bktr->bigbuf);
2936 *dma_prog++ = (u_long ) vtophys(loop_point) ;
2987 target_buffer = (uint32_t) vtophys(bktr->bigbuf);
3140 target_buffer = (uint32_t) vtophys(bktr->bigbuf);
3166 *dma_prog++ = (uint32_t) vtophys(bktr->dma_prog);
3174 *dma_prog++ = (uint32_t) vtophys(bktr->dma_prog);
3209 *dma_prog++ = (uint32_t) vtophys(bktr->dma_prog);
3212 *dma_prog++ = (uint32_t) vtophys(bktr->dma_prog);
3258 target_buffer = (uint32_t) vtophys(bktr->bigbuf);
[all …]
/freebsd-12.1/sys/dev/liquidio/
H A Dlio_network.h204 *dma_handle = vtophys(mem); in lio_dma_alloc()
223 dma_addr = vtophys(((struct mbuf *)buf)->m_data); in lio_map_ring()
/freebsd-12.1/sys/dev/agp/
H A Dagp_amd.c128 gatt->ag_pdir = vtophys((vm_offset_t) gatt->ag_vdir); in agp_amd_alloc_gatt()
140 gatt->ag_physical = vtophys((vm_offset_t) gatt->ag_virtual); in agp_amd_alloc_gatt()
161 pa = vtophys(va); in agp_amd_alloc_gatt()
/freebsd-12.1/sys/powerpc/mpc85xx/
H A Dfsl_diu.c261 bus_write_4(sc->res[0], DIU_GAMMA, vtophys(sc->sc_gamma)); in diu_init()
262 bus_write_4(sc->res[0], DIU_CURSOR, vtophys(sc->sc_cursor)); in diu_init()
287 bus_write_4(sc->res[0], DIU_DESC_1, vtophys(sc->sc_planes[0])); in diu_init()
413 sc->sc_info.fb_pbase = (intptr_t)vtophys(sc->sc_info.fb_vbase); in diu_attach()
/freebsd-12.1/sys/mips/nlm/dev/sec/
H A Dnlmrsa.c177 vtophys(cmd->rsasrc)); in xlp_rsa_init()
179 vtophys(cmd->rsasrc)); in xlp_rsa_init()
419 cmd->rsafn, vtophys(cmd->rsasrc)); in nlm_crypto_complete_rsa_request()
421 vtophys(cmd->rsasrc + cmd->rsaopsize * cmd->krp->krp_iparams)); in nlm_crypto_complete_rsa_request()
/freebsd-12.1/sys/powerpc/ofw/
H A Drtas.c112 rtas_private_data = vtophys(rtas_bounce_virt); in rtas_setup()
114 rtas_bounce_phys = vtophys(rtas_bounce_virt); in rtas_setup()
/freebsd-12.1/sys/compat/x86bios/
H A Dx86bios.c129 *offset = vtophys(vaddr); in x86bios_alloc()
148 paddr = vtophys(addr); in x86bios_free()
545 *offset = vtophys(vaddr); in x86bios_alloc()
561 paddr = vtophys(addr); in x86bios_free()
721 x86bios_seg_phys = vtophys(x86bios_seg); in x86bios_map_mem()
/freebsd-12.1/sys/dev/virtio/
H A Dvirtqueue.c260 dxp->indirect_paddr = vtophys(dxp->indirect); in virtqueue_init_indirect()
369 return (vtophys(vq->vq_ring_mem)); in virtqueue_paddr()
376 return (vtophys(vq->vq_ring.desc)); in virtqueue_desc_paddr()
383 return (vtophys(vq->vq_ring.avail)); in virtqueue_avail_paddr()
390 return (vtophys(vq->vq_ring.used)); in virtqueue_used_paddr()
/freebsd-12.1/sys/powerpc/ps3/
H A Dps3pic.c136 vtophys(sc->bitmap_thread0)); in ps3pic_attach()
142 vtophys(sc->bitmap_thread1)); in ps3pic_attach()
/freebsd-12.1/sys/dev/tl/
H A Dif_tl.c1357 vtophys(&ld->tl_rx_list[i + 1]);
1382 c->tl_ptr->tl_frag.tlist_dadr = vtophys(mtod(m_new, caddr_t));
1446 vtophys(cur_rx->tl_ptr);
1501 CSR_WRITE_4(sc, TL_CH_PARM, vtophys(sc->tl_cdata.tl_rx_head->tl_ptr));
1584 vtophys(sc->tl_cdata.tl_tx_head->tl_ptr));
1797 vtophys(mtod(m, vm_offset_t));
1833 f->tlist_dadr = vtophys(mtod(m_new, caddr_t));
1848 f->tlist_dadr = vtophys(&sc->tl_ldata->tl_pad);
1920 prev->tl_ptr->tlist_fptr = vtophys(cur_tx->tl_ptr);
1950 CSR_WRITE_4(sc, TL_CH_PARM, vtophys(start_tx->tl_ptr));
[all …]
/freebsd-12.1/sys/dev/hyperv/storvsc/
H A Dhv_storvsc_drv_freebsd.c1753 phys_addr = vtophys(sgl[0].ds_addr); in storvsc_check_bounce_buffer_sgl()
1762 phys_addr = vtophys(sgl[i].ds_addr); in storvsc_check_bounce_buffer_sgl()
1777 if (phys_addr != vtophys(sgl[i-1].ds_addr + in storvsc_check_bounce_buffer_sgl()
2008 vtophys(reqp->bounce_sgl->sg_segs[0].ss_paddr); in create_storvsc_request()
2011 vtophys(storvsc_sglist[0].ds_addr); in create_storvsc_request()
2021 vtophys(reqp->bounce_sgl->sg_segs[i].ss_paddr); in create_storvsc_request()
2024 vtophys(storvsc_sglist[i].ds_addr); in create_storvsc_request()
2032 phys_addr = vtophys(storvsc_sglist[0].ds_addr); in create_storvsc_request()
2037 phys_addr = vtophys(storvsc_sglist[i].ds_addr); in create_storvsc_request()
2048 vtophys(storvsc_sglist[i-1].ds_addr + in create_storvsc_request()

12345