Lines Matching refs:m_addr_t
206 typedef u_long m_addr_t; /* Enough bits to bit-hack addresses */ typedef
215 m_addr_t vaddr;
216 m_addr_t baddr;
222 ((((m_addr_t) (m)) >> MEMO_CLUSTER_SHIFT) & VTOB_HASH_MASK)
226 m_addr_t (*getp)(struct m_pool *);
227 void (*freep)(struct m_pool *, m_addr_t);
239 m_addr_t a; in ___m_alloc()
261 a = (m_addr_t) h[j].next; in ___m_alloc()
282 m_addr_t a, b; in ___m_free()
297 a = (m_addr_t) ptr; in ___m_free()
359 static m_addr_t ___mp0_getp(m_pool_s *mp) in ___mp0_getp()
361 m_addr_t m = __get_free_pages(MEMO_GFP_FLAGS, MEMO_PAGE_ORDER); in ___mp0_getp()
367 static void ___mp0_freep(m_pool_s *mp, m_addr_t m) in ___mp0_freep()
383 static m_addr_t ___dma_getp(m_pool_s *mp) in ___dma_getp()
385 m_addr_t vp; in ___dma_getp()
391 vp = (m_addr_t) dma_alloc_coherent(mp->bush, in ___dma_getp()
409 static void ___dma_freep(m_pool_s *mp, m_addr_t m) in ___dma_freep()
494 static m_addr_t __vtobus(m_bush_t bush, void *m) in __vtobus()
500 m_addr_t a = ((m_addr_t) m) & ~MEMO_CLUSTER_MASK; in __vtobus()
506 while (vp && (m_addr_t) vp->vaddr != a) in __vtobus()
510 return vp ? vp->baddr + (((m_addr_t) m) - a) : 0; in __vtobus()