MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pfe_mem_vtop

Function pfe_mem_vtop

dpdk/drivers/net/pfe/base/pfe.h:411–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409static phys_addr_t pfe_mem_vtop(uint64_t vaddr) __rte_unused;
410
411static inline phys_addr_t pfe_mem_vtop(uint64_t vaddr)
412{
413 const struct rte_memseg *memseg;
414
415 memseg = rte_mem_virt2memseg((void *)(uintptr_t)vaddr, NULL);
416 if (memseg)
417 return memseg->iova + RTE_PTR_DIFF(vaddr, memseg->addr);
418
419 return (size_t)NULL;
420}
421
422#endif /* _PFE_H_ */

Callers 1

pfe_hif_alloc_descrFunction · 0.85

Calls 1

rte_mem_virt2memsegFunction · 0.85

Tested by

no test coverage detected