Searched refs:mmu_p (Results 1 – 7 of 7) sorted by relevance
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_mmu.c | 44 px_mmu_t *mmu_p; in px_mmu_attach() local 55 mmu_p = kmem_zalloc(sizeof (px_mmu_t), KM_SLEEP); in px_mmu_attach() 56 if (mmu_p == NULL) in px_mmu_attach() 59 px_p->px_mmu_p = mmu_p; in px_mmu_attach() 60 mmu_p->mmu_px_p = px_p; in px_mmu_attach() 61 mmu_p->mmu_inst = ddi_get_instance(dip); in px_mmu_attach() 73 kmem_free(mmu_p, sizeof (px_mmu_t)); in px_mmu_attach() 79 mmu_p->mmu_dvma_base = dvma_prop->dvma_base; in px_mmu_attach() 80 mmu_p->mmu_dvma_end = dvma_prop->dvma_base + in px_mmu_attach() 89 mmu_p->mmu_dvma_cache_locks = in px_mmu_attach() [all …]
|
H A D | px_mmu.h | 103 #define MMU_PAGE_INDEX(mmu_p, dvma_pg) ((dvma_pg) - (mmu_p)->dvma_base_pg) argument 106 #define PX_DVMA_DBG_ON(mmu_p) \ argument 107 ((1ull << (mmu_p)->mmu_inst) & px_dvma_debug_on) 108 #define PX_DVMA_DBG_OFF(mmu_p) \ argument 109 ((1ull << (mmu_p)->mmu_inst) & px_dvma_debug_off) 111 extern void px_dvma_debug_fini(px_mmu_t *mmu_p); 112 extern void px_dvma_alloc_debug(px_mmu_t *mmu_p, char *address, uint_t len, 114 extern void px_dvma_free_debug(px_mmu_t *mmu_p, char *address, uint_t len, 118 extern int px_mmu_map_pages(px_mmu_t *mmu_p, ddi_dma_impl_t *mp, 120 extern int px_mmu_map_window(px_mmu_t *mmu_p, ddi_dma_impl_t *mp, [all …]
|
H A D | px_dma.c | 178 px_dma_lmts2hdl(dev_info_t *dip, dev_info_t *rdip, px_mmu_t *mmu_p, in px_dma_lmts2hdl() argument 183 uint64_t syslo = mmu_p->mmu_dvma_base; in px_dma_lmts2hdl() 184 uint64_t syshi = mmu_p->mmu_dvma_end; in px_dma_lmts2hdl() 185 uint64_t fasthi = mmu_p->mmu_dvma_fast_end; in px_dma_lmts2hdl() 271 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_dma_attr2hdl() local 320 syslo = mmu_p->mmu_dvma_base; in px_dma_attr2hdl() 321 syshi = mmu_p->mmu_dvma_end; in px_dma_attr2hdl() 354 syshi = mmu_p->mmu_dvma_fast_end; in px_dma_attr2hdl() 702 px_dvma_map_fast(px_mmu_t *mmu_p, ddi_dma_impl_t *mp) in px_dvma_map_fast() argument 708 int i = mmu_p->mmu_dvma_addr_scan_start; in px_dvma_map_fast() [all …]
|
H A D | px_fdvma.c | 55 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_fdvma_load() local 80 pg_index = dvma_pg - mmu_p->dvma_base_pg; in px_fdvma_load() 136 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_fdvma_reserve() local 153 if ((lo >= hi) || (hi < mmu_p->mmu_dvma_base)) in px_fdvma_reserve() 160 if ((long)atomic_add_long_nv(&mmu_p->mmu_dvma_reserve, -npages) < 0) { in px_fdvma_reserve() 161 atomic_add_long(&mmu_p->mmu_dvma_reserve, npages); in px_fdvma_reserve() 176 dvma_pg = MMU_BTOP((ulong_t)vmem_xalloc(mmu_p->mmu_dvma_map, in px_fdvma_reserve() 181 atomic_add_long(&mmu_p->mmu_dvma_reserve, npages); in px_fdvma_reserve() 228 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_fdvma_release() local 242 px_mmu_unmap_window(mmu_p, mp); in px_fdvma_release() [all …]
|
H A D | px.c | 841 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_dma_setup() local 849 mp = px_dma_lmts2hdl(dip, rdip, mmu_p, dmareq); in px_dma_setup() 866 if (!px_dvma_map_fast(mmu_p, mp)) in px_dma_setup() 872 if (ret = px_dvma_map(mp, dmareq, mmu_p)) in px_dma_setup() 968 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_dma_bindhdl() local 992 if (!px_dvma_map_fast(mmu_p, mp)) in px_dma_bindhdl() 998 if (ret = px_dvma_map(mp, dmareq, mmu_p)) in px_dma_bindhdl() 1049 px_mmu_t *mmu_p = px_p->px_mmu_p; in px_dma_unbindhdl() local 1066 px_mmu_unmap_window(mmu_p, mp); in px_dma_unbindhdl() 1067 px_dvma_unmap(mmu_p, mp); in px_dma_unbindhdl() [all …]
|
H A D | px_dma.h | 213 px_mmu_t *mmu_p, ddi_dma_req_t *dmareq); 219 extern int px_dvma_map_fast(px_mmu_t *mmu_p, ddi_dma_impl_t *mp); 221 px_mmu_t *mmu_p); 222 extern void px_dvma_unmap(px_mmu_t *mmu_p, ddi_dma_impl_t *mp);
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_hlib.c | 1948 px_mmu_t *mmu_p = px_p->px_mmu_p; in hvio_obptsb_detach() local 1952 dvma_map = mmu_p->mmu_dvma_map; in hvio_obptsb_detach() 1972 va = (caddr_t)(MMU_PTOB(mmu_p->dvma_base_pg + obp_tsb_bias + in hvio_obptsb_detach()
|