Lines Matching refs:m_addr_t
199 typedef u_long m_addr_t; /* Enough bits to bit-hack addresses */ typedef
208 m_addr_t vaddr;
209 m_addr_t baddr;
215 ((((m_addr_t) (m)) >> MEMO_CLUSTER_SHIFT) & VTOB_HASH_MASK)
219 m_addr_t (*getp)(struct m_pool *);
220 void (*freep)(struct m_pool *, m_addr_t);
232 m_addr_t a; in ___m_alloc()
254 a = (m_addr_t) h[j].next; in ___m_alloc()
275 m_addr_t a, b; in ___m_free()
290 a = (m_addr_t) ptr; in ___m_free()
352 static m_addr_t ___mp0_getp(m_pool_s *mp) in ___mp0_getp()
354 m_addr_t m = __get_free_pages(MEMO_GFP_FLAGS, MEMO_PAGE_ORDER); in ___mp0_getp()
360 static void ___mp0_freep(m_pool_s *mp, m_addr_t m) in ___mp0_freep()
376 static m_addr_t ___dma_getp(m_pool_s *mp) in ___dma_getp()
378 m_addr_t vp; in ___dma_getp()
384 vp = (m_addr_t) dma_alloc_coherent(mp->bush, in ___dma_getp()
402 static void ___dma_freep(m_pool_s *mp, m_addr_t m) in ___dma_freep()
487 static m_addr_t __vtobus(m_bush_t bush, void *m) in __vtobus()
493 m_addr_t a = ((m_addr_t) m) & ~MEMO_CLUSTER_MASK; in __vtobus()
499 while (vp && (m_addr_t) vp->vaddr != a) in __vtobus()
503 return vp ? vp->baddr + (((m_addr_t) m) - a) : 0; in __vtobus()