Lines Matching full:pa
65 struct cmm_page_array *pa, *npa; in cmm_alloc_pages() local
73 pa = *list; in cmm_alloc_pages()
74 if (!pa || pa->index >= CMM_NR_PAGES) { in cmm_alloc_pages()
84 pa = *list; in cmm_alloc_pages()
85 if (!pa || pa->index >= CMM_NR_PAGES) { in cmm_alloc_pages()
86 npa->next = pa; in cmm_alloc_pages()
88 pa = npa; in cmm_alloc_pages()
89 *list = pa; in cmm_alloc_pages()
94 pa->pages[pa->index++] = addr; in cmm_alloc_pages()
105 struct cmm_page_array *pa; in __cmm_free_pages() local
109 pa = *list; in __cmm_free_pages()
111 if (!pa || pa->index <= 0) in __cmm_free_pages()
113 addr = pa->pages[--pa->index]; in __cmm_free_pages()
114 if (pa->index == 0) { in __cmm_free_pages()
115 pa = pa->next; in __cmm_free_pages()
117 *list = pa; in __cmm_free_pages()