Home
last modified time | relevance | path

Searched refs:nr_page (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/hyperhold/
Dhp_iotab.c107 for (i = 0; i < hpio->nr_page; i++) in hpio_clear_pages()
113 atomic64_sub(sizeof(struct page *) * hpio->nr_page, &hpio_mem); in hpio_clear_pages()
114 hpio->nr_page = 0; in hpio_clear_pages()
121 static bool hpio_fill_pages(struct hpio *hpio, u32 nr_page, gfp_t gfp, bool new_page) in hpio_fill_pages() argument
126 hpio->nr_page = nr_page; in hpio_fill_pages()
127 hpio->pages = kcalloc(hpio->nr_page, sizeof(struct page *), gfp); in hpio_fill_pages()
130 atomic64_add(sizeof(struct page *) * hpio->nr_page, &hpio_mem); in hpio_fill_pages()
134 for (i = 0; i < hpio->nr_page; i++) { in hpio_fill_pages()
160 struct hpio *hpio_alloc(u32 nr_page, gfp_t gfp, unsigned int op, bool new_page) in hpio_alloc() argument
168 if (!hpio_fill_pages(hpio, nr_page, gfp, new_page)) in hpio_alloc()
[all …]
Dhp_iotab.h30 u32 nr_page; member
46 struct hpio *hpio_alloc(u32 nr_page, gfp_t gfp, unsigned int op, bool new_page);
51 struct hpio *hpio_get_alloc(u32 eid, u32 nr_page, gfp_t gfp, unsigned int op);
Dhp_core.c439 u32 nr_page; in hyperhold_io_alloc() local
447 nr_page = spc->ext_size / PAGE_SIZE; in hyperhold_io_alloc()
448 hpio = hpio_alloc(nr_page, gfp, op, new_page); in hyperhold_io_alloc()
479 u32 nr_page; in hyperhold_io_get() local
487 nr_page = spc->ext_size / PAGE_SIZE; in hyperhold_io_get()
488 return hpio_get_alloc(eid, nr_page, gfp, op); in hyperhold_io_get()
567 if (!CHECK_BOUND(index, 0, hpio->nr_page - 1)) in hyperhold_io_page()
582 if (!CHECK_BOUND(index, 0, hpio->nr_page - 1)) in hyperhold_io_add_page()
601 return hpio->nr_page; in hyperhold_io_nr_page()
674 BUG_ON(i >= hpio->nr_page); in hp_endio_work()
[all …]
/kernel/linux/linux-5.10/mm/
Dzsmalloc.c1367 int i, nr_page, offset; in obj_malloc() local
1379 nr_page = offset >> PAGE_SHIFT; in obj_malloc()
1383 for (i = 0; i < nr_page; i++) in obj_malloc()