All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I get physical address from a struct dma_buf
@ 2014-02-07 20:02 m silverstri
  2014-02-11 12:09 ` naveen yadav
  0 siblings, 1 reply; 2+ messages in thread
From: m silverstri @ 2014-02-07 20:02 UTC (permalink / raw)
  To: kernelnewbies

Hi,

If I have a struct dma_buf dma buffer, how can I the physical address?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* How can I get physical address from a struct dma_buf
  2014-02-07 20:02 How can I get physical address from a struct dma_buf m silverstri
@ 2014-02-11 12:09 ` naveen yadav
  0 siblings, 0 replies; 2+ messages in thread
From: naveen yadav @ 2014-02-11 12:09 UTC (permalink / raw)
  To: kernelnewbies

how about using define

page_to_phys(page)      ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)

or
 virt_to_phys ()


On Sat, Feb 8, 2014 at 1:32 AM, m silverstri
<michael.j.silverstri@gmail.com> wrote:
> Hi,
>
> If I have a struct dma_buf dma buffer, how can I the physical address?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-11 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-07 20:02 How can I get physical address from a struct dma_buf m silverstri
2014-02-11 12:09 ` naveen yadav

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.