Lines Matching refs:m_addr_t
194 typedef u_long m_addr_t; /* Enough bits to bit-hack addresses */ typedef
203 m_addr_t vaddr;
204 m_addr_t baddr;
210 ((((m_addr_t) (m)) >> MEMO_CLUSTER_SHIFT) & VTOB_HASH_MASK)
214 m_addr_t (*getp)(struct m_pool *);
215 void (*freep)(struct m_pool *, m_addr_t);
227 m_addr_t a; in ___m_alloc()
249 a = (m_addr_t) h[j].next; in ___m_alloc()
270 m_addr_t a, b; in ___m_free()
285 a = (m_addr_t) ptr; in ___m_free()
347 static m_addr_t ___mp0_getp(m_pool_s *mp) in ___mp0_getp()
349 m_addr_t m = __get_free_pages(MEMO_GFP_FLAGS, MEMO_PAGE_ORDER); in ___mp0_getp()
355 static void ___mp0_freep(m_pool_s *mp, m_addr_t m) in ___mp0_freep()
371 static m_addr_t ___dma_getp(m_pool_s *mp) in ___dma_getp()
373 m_addr_t vp; in ___dma_getp()
379 vp = (m_addr_t) dma_alloc_coherent(mp->bush, in ___dma_getp()
397 static void ___dma_freep(m_pool_s *mp, m_addr_t m) in ___dma_freep()
482 static m_addr_t __vtobus(m_bush_t bush, void *m) in __vtobus()
488 m_addr_t a = ((m_addr_t) m) & ~MEMO_CLUSTER_MASK; in __vtobus()
494 while (vp && (m_addr_t) vp->vaddr != a) in __vtobus()
498 return vp ? vp->baddr + (((m_addr_t) m) - a) : 0; in __vtobus()