Lines Matching refs:pten
43 const u32 pten = 1 << desc->bits; in nvkm_vmm_pt_new() local
50 lpte = pten >> (desc->bits - pair->bits); in nvkm_vmm_pt_new()
52 lpte = pten; in nvkm_vmm_pt_new()
62 pgt->pde = kvcalloc(pten, sizeof(*pgt->pde), GFP_KERNEL); in nvkm_vmm_pt_new()
210 const u32 pten = min(sptn - spti, ptes); in nvkm_vmm_unref_sptes() local
211 pgt->pte[lpti] -= pten; in nvkm_vmm_unref_sptes()
212 ptes -= pten; in nvkm_vmm_unref_sptes()
309 const u32 pten = min(sptn - spti, ptes); in nvkm_vmm_ref_sptes() local
310 pgt->pte[lpti] += pten; in nvkm_vmm_ref_sptes()
311 ptes -= pten; in nvkm_vmm_ref_sptes()
422 u32 pten = 1 << desc->bits; in nvkm_vmm_ref_hwpt() local
424 u32 size = desc->size * pten; in nvkm_vmm_ref_hwpt()
447 for (ptei = pteb = 0; ptei < pten; pteb = ptei) { in nvkm_vmm_ref_hwpt()
449 for (ptes = 1, ptei++; ptei < pten; ptes++, ptei++) { in nvkm_vmm_ref_hwpt()
469 nvkm_vmm_sparse_ptes(desc, pgt, 0, pten); in nvkm_vmm_ref_hwpt()
470 desc->func->sparse(vmm, pt, 0, pten); in nvkm_vmm_ref_hwpt()
472 desc->func->invalid(vmm, pt, 0, pten); in nvkm_vmm_ref_hwpt()
534 const u32 pten = 1 << desc->bits; in nvkm_vmm_iter() local
536 const u32 ptes = min_t(u64, it.cnt, pten - ptei); in nvkm_vmm_iter()