Home
last modified time | relevance | path

Searched refs:n_pages (Results 1 – 4 of 4) 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/module/
Ddecompress.c208 unsigned int n_pages; in module_decompress() local
216 n_pages = DIV_ROUND_UP(size, PAGE_SIZE) * 2; in module_decompress()
217 error = module_extend_max_pages(info, n_pages); in module_decompress()
/kernel/
Drelay.c61 static struct page **relay_alloc_page_array(unsigned int n_pages) in relay_alloc_page_array() argument
63 return kvcalloc(n_pages, sizeof(struct page *), GFP_KERNEL); in relay_alloc_page_array()
111 unsigned int i, j, n_pages; in relay_alloc_buf() local
114 n_pages = *size >> PAGE_SHIFT; in relay_alloc_buf()
116 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf()
120 for (i = 0; i < n_pages; i++) { in relay_alloc_buf()
126 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf()
131 buf->page_count = n_pages; in relay_alloc_buf()