Searched refs:n_pages (Results 1 – 3 of 3) sorted by relevance
293 for (i = 0; i < a->n_pages; i++) in tracing_map_array_clear()307 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_free()331 a->n_pages = n_elts / a->entries_per_page; in tracing_map_array_alloc()332 if (!a->n_pages) in tracing_map_array_alloc()333 a->n_pages = 1; in tracing_map_array_alloc()337 a->pages = kcalloc(a->n_pages, sizeof(void *), GFP_KERNEL); in tracing_map_array_alloc()341 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_alloc()
169 unsigned int n_pages; member
71 static struct page **relay_alloc_page_array(unsigned int n_pages) in relay_alloc_page_array() argument73 const size_t pa_size = n_pages * sizeof(struct page *); in relay_alloc_page_array()126 unsigned int i, j, n_pages; in relay_alloc_buf() local129 n_pages = *size >> PAGE_SHIFT; in relay_alloc_buf()131 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf()135 for (i = 0; i < n_pages; i++) { in relay_alloc_buf()141 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf()146 buf->page_count = n_pages; in relay_alloc_buf()