Home
last modified time | relevance | path

Searched refs:n_pages (Results 1 – 3 of 3) sorted by relevance

/kernel/trace/
Dtracing_map.c294 for (i = 0; i < a->n_pages; i++) in tracing_map_array_clear()
308 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_free()
333 a->n_pages = n_elts / a->entries_per_page; in tracing_map_array_alloc()
334 if (!a->n_pages) in tracing_map_array_alloc()
335 a->n_pages = 1; in tracing_map_array_alloc()
339 a->pages = kcalloc(a->n_pages, sizeof(void *), GFP_KERNEL); in tracing_map_array_alloc()
343 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_alloc()
Dtracing_map.h169 unsigned int n_pages; member
/kernel/
Drelay.c61 static struct page **relay_alloc_page_array(unsigned int n_pages) in relay_alloc_page_array() argument
63 const size_t pa_size = n_pages * sizeof(struct page *); in relay_alloc_page_array()
114 unsigned int i, j, n_pages; in relay_alloc_buf() local
117 n_pages = *size >> PAGE_SHIFT; in relay_alloc_buf()
119 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf()
123 for (i = 0; i < n_pages; i++) { in relay_alloc_buf()
129 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf()
134 buf->page_count = n_pages; in relay_alloc_buf()