Lines Matching refs:pt_dir
51 static struct xe_pt *xe_pt_entry(struct xe_pt_dir *pt_dir, unsigned int index) in xe_pt_entry() argument
53 return container_of(pt_dir->children[index], struct xe_pt, base); in xe_pt_entry()
205 struct xe_pt_dir *pt_dir = as_xe_pt_dir(pt); in xe_pt_destroy() local
208 if (xe_pt_entry(pt_dir, i)) in xe_pt_destroy()
209 xe_pt_destroy(xe_pt_entry(pt_dir, i), flags, in xe_pt_destroy()
919 struct xe_pt_dir *pt_dir; in xe_pt_abort_bind() local
927 pt_dir = as_xe_pt_dir(pt); in xe_pt_abort_bind()
930 struct xe_pt *newpte = xe_pt_entry(pt_dir, j_); in xe_pt_abort_bind()
933 pt_dir->children[j_] = oldpte ? &oldpte->base : 0; in xe_pt_abort_bind()
949 struct xe_pt_dir *pt_dir; in xe_pt_commit_prepare_bind() local
957 pt_dir = as_xe_pt_dir(pt); in xe_pt_commit_prepare_bind()
963 if (xe_pt_entry(pt_dir, j_)) in xe_pt_commit_prepare_bind()
964 oldpte = xe_pt_entry(pt_dir, j_); in xe_pt_commit_prepare_bind()
966 pt_dir->children[j_] = &newpte->base; in xe_pt_commit_prepare_bind()
1563 struct xe_pt_dir *pt_dir = as_xe_pt_dir(pt); in xe_pt_abort_unbind() local
1571 pt_dir->children[j] = in xe_pt_abort_unbind()
1589 struct xe_pt_dir *pt_dir; in xe_pt_commit_prepare_unbind() local
1595 pt_dir = as_xe_pt_dir(pt); in xe_pt_commit_prepare_unbind()
1598 xe_pt_entry(pt_dir, j); in xe_pt_commit_prepare_unbind()
1599 pt_dir->children[j] = NULL; in xe_pt_commit_prepare_unbind()