Home
last modified time | relevance | path

Searched refs:pfn (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dpfn_t.h41 __pfn_to_pfn_t(unsigned long pfn, u64 flags) in __pfn_to_pfn_t() argument
43 pfn_t pfn_t = { pfn | (flags & PFN_FLAGS_MASK) }; in __pfn_to_pfn_t()
49 pfn_to_pfn_t(unsigned long pfn) in pfn_to_pfn_t() argument
51 return (__pfn_to_pfn_t (pfn, 0)); in pfn_to_pfn_t()
H A Dmm.h201 unsigned long addr, unsigned long pfn, unsigned long size, in io_remap_pfn_range() argument
205 vma->vm_pfn = pfn; in io_remap_pfn_range()
213 unsigned long pfn, pgprot_t prot);
217 unsigned long pfn, pgprot_t prot) in vmf_insert_pfn_prot() argument
222 ret = lkpi_vmf_insert_pfn_prot_locked(vma, addr, pfn, prot); in vmf_insert_pfn_prot()
247 unsigned long pfn, unsigned long size, pgprot_t prot) in remap_pfn_range() argument
249 return (lkpi_remap_pfn_range(vma, addr, pfn, size, prot)); in remap_pfn_range()
H A Dio-mapping.h115 struct vm_area_struct *vma, unsigned long addr, unsigned long pfn,
120 unsigned long addr, unsigned long pfn, unsigned long size) 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 Dpage.h78 #define pfn_to_page(pfn) (PHYS_TO_VM_PAGE((pfn) << PAGE_SHIFT)) argument
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c50 u64 len, pfn; in mlx5_ib_cont_pages() local
63 pfn = sg_dma_address(sg) >> PAGE_SHIFT; in mlx5_ib_cont_pages()
64 if (base + p != pfn) { in mlx5_ib_cont_pages()
68 tmp = (unsigned long)(pfn | p); in mlx5_ib_cont_pages()
72 base = pfn; in mlx5_ib_cont_pages()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_subnet.c323 void (*pfn)(osm_subn_t *, void *)) in opts_parse_net64()
333 if (pfn) in opts_parse_net64()
334 pfn(p_subn, &val); in opts_parse_net64()
341 void (*pfn)(osm_subn_t *, void *)) in opts_parse_uint32()
351 if (pfn) in opts_parse_uint32()
352 pfn(p_subn, &val); in opts_parse_uint32()
359 void (*pfn)(osm_subn_t *, void *)) in opts_parse_net32()
369 if (pfn) in opts_parse_net32()
370 pfn(p_subn, &val); in opts_parse_net32()
377 void (*pfn)(osm_subn_t *, void *)) in opts_parse_int32()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c298 unsigned long pfn, pgprot_t prot) in lkpi_vmf_insert_pfn_prot_locked() argument
314 page = PHYS_TO_VM_PAGE(IDX_TO_OFF(pfn)); in lkpi_vmf_insert_pfn_prot_locked()
360 unsigned long addr, pfn; in lkpi_remap_pfn_range() local
366 for (addr = start_addr, pfn = start_pfn; in lkpi_remap_pfn_range()
371 ret = lkpi_vmf_insert_pfn_prot_locked(vma, addr, pfn, prot); in lkpi_remap_pfn_range()
385 pfn++; in lkpi_remap_pfn_range()
391 (pfn - start_pfn) << PAGE_SHIFT); in lkpi_remap_pfn_range()
401 unsigned long pfn, unsigned long size) in lkpi_io_mapping_map_user() argument
407 ret = lkpi_remap_pfn_range(vma, addr, pfn, size, prot); in lkpi_io_mapping_map_user()
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_kernel_if.c636 unsigned long pfn; in vmci_alloc_ppn_set() local
639 pfn = produce_q->kernel_if->dmas[i].dma_paddr >> PAGE_SHIFT; in vmci_alloc_ppn_set()
645 if (sizeof(pfn) > in vmci_alloc_ppn_set()
646 sizeof(*produce_ppns) && pfn != produce_ppns[i]) in vmci_alloc_ppn_set()
650 unsigned long pfn; in vmci_alloc_ppn_set() local
653 pfn = consume_q->kernel_if->dmas[i].dma_paddr >> PAGE_SHIFT; in vmci_alloc_ppn_set()
659 if (sizeof(pfn) > in vmci_alloc_ppn_set()
660 sizeof(*consume_ppns) && pfn != consume_ppns[i]) in vmci_alloc_ppn_set()
/freebsd/sys/contrib/xen/arch-x86/
H A Dxen-x86_32.h167 #define xen_pfn_to_cr3(pfn) (((unsigned)(pfn) << 12) | ((unsigned)(pfn) >> 20)) argument
H A Dxen-x86_64.h218 #define xen_pfn_to_cr3(pfn) ((unsigned long)(pfn) << 12) argument
/freebsd/sys/xen/
H A Dgnttab.h86 int gnttab_grant_foreign_transfer(domid_t domid, unsigned long pfn, grant_ref_t *result);
117 unsigned long pfn);
/freebsd/crypto/openssl/test/
H A Dv3nametest.c345 const struct set_name_fn *pfn = &name_fns[i]; in call_run_cert() local
349 TEST_info("%s", pfn->name); in call_run_cert()
352 || !TEST_true(pfn->fn(crt, *pname)) in call_run_cert()
353 || !run_cert(crt, *pname, pfn)) in call_run_cert()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_uar.c98 phys_addr_t pfn; in alloc_uars_page() local
132 pfn = uar2pfn(mdev, up->index); in alloc_uars_page()
134 up->map = ioremap_wc(pfn << PAGE_SHIFT, PAGE_SIZE); in alloc_uars_page()
140 up->map = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE); in alloc_uars_page()
/freebsd/sys/dev/xen/grant_table/
H A Dgrant_table.c244 gnttab_grant_foreign_transfer(domid_t domid, unsigned long pfn, in gnttab_grant_foreign_transfer() argument
253 gnttab_grant_foreign_transfer_ref(ref, domid, pfn); in gnttab_grant_foreign_transfer()
261 unsigned long pfn) in gnttab_grant_foreign_transfer_ref() argument
263 shared[ref].frame = pfn; in gnttab_grant_foreign_transfer_ref()
/freebsd/sys/dev/beri/virtio/
H A Dvirtio_block.c312 int pfn; in vq_init() local
318 pfn = be32toh(reg); in vq_init()
319 vq->vq_pfn = pfn; in vq_init()
323 (pfn << PAGE_SHIFT), size); in vq_init()
/freebsd/sys/dev/beri/virtio/network/
H A Dif_vtbe.c349 int pfn; in vq_init() local
355 pfn = be32toh(reg); in vq_init()
356 vq->vq_pfn = pfn; in vq_init()
360 (pfn << PAGE_SHIFT), size); in vq_init()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_core_uverbs.c99 unsigned long pfn, unsigned long size, pgprot_t prot, in rdma_user_mmap_io() argument
121 if (io_remap_pfn_range(vma, vma->vm_start, pfn, size, prot)) { in rdma_user_mmap_io()
/freebsd/sys/dev/mthca/
H A Dmthca_uar.c42 uar->pfn = (pci_resource_start(dev->pdev, 2) >> PAGE_SHIFT) + uar->index; in mthca_uar_alloc()
H A Dmthca_provider.h60 unsigned long pfn; member
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_pd.c159 uar->pfn = (pci_resource_start(dev->persist->pdev, 2) >> PAGE_SHIFT) in mlx4_uar_alloc()
202 uar->map = ioremap(uar->pfn << PAGE_SHIFT, PAGE_SIZE); in mlx4_bf_alloc()
/freebsd/sys/dev/hyperv/storvsc/
H A Dhv_storvsc_drv_freebsd.c1885 uint32_t pfn; in create_storvsc_request() local
2042 pfn = phys_addr >> PAGE_SHIFT; in create_storvsc_request()
2043 prplist->gpa_page[0] = pfn; in create_storvsc_request()
2054 pfn = phys_addr >> PAGE_SHIFT; in create_storvsc_request()
2055 prplist->gpa_page[i] = pfn; in create_storvsc_request()
2065 pfn = phys_addr >> PAGE_SHIFT; in create_storvsc_request()
2066 prplist->gpa_page[i] = pfn; in create_storvsc_request()
2077 pfn = phys_addr >> PAGE_SHIFT; in create_storvsc_request()
2078 prplist->gpa_page[i] = pfn; in create_storvsc_request()
/freebsd/usr.sbin/bhyve/
H A Dvirtio.c177 vi_vq_init(struct virtio_softc *vs, uint32_t pfn) in vi_vq_init() argument
185 vq->vq_pfn = pfn; in vi_vq_init()
186 phys = (uint64_t)pfn << VRING_PFN; in vi_vq_init()
/freebsd/sys/dev/liquidio/base/
H A Dlio_device.c630 lio_dispatch_fn_t pfn; in lio_register_dispatch_fn() local
653 pfn = lio_get_dispatch(oct, opcode, subcode); in lio_register_dispatch_fn()
654 if (!pfn) { in lio_register_dispatch_fn()
/freebsd/sys/contrib/xen/hvm/
H A Dhvm_op.h181 uint64_t pfn; member
/freebsd/sys/dev/xen/netfront/
H A Dnetfront.c1177 unsigned long pfn; in xn_alloc_rx_buffers() local
1193 pfn = atop(vtophys(mtod(m, vm_offset_t))); in xn_alloc_rx_buffers()
1197 xenbus_get_otherend_id(rxq->info->xbdev), pfn, 0); in xn_alloc_rx_buffers()
1989 u_long pfn; in xn_rebuild_rx_bufs() local
1998 pfn = vtophys(mtod(m, vm_offset_t)) >> PAGE_SHIFT; in xn_rebuild_rx_bufs()
2002 pfn, 0); in xn_rebuild_rx_bufs()

12