Searched refs:nr_pages (Results 1 – 5 of 5) sorted by relevance
/net/rds/ |
D | info.c | 163 unsigned long nr_pages = 0; in rds_info_getsockopt() local 188 nr_pages = (PAGE_ALIGN(start + len) - (start & PAGE_MASK)) in rds_info_getsockopt() 191 pages = kmalloc(nr_pages * sizeof(struct page *), GFP_KERNEL); in rds_info_getsockopt() 196 ret = get_user_pages_fast(start, nr_pages, 1, pages); in rds_info_getsockopt() 197 if (ret != nr_pages) { in rds_info_getsockopt() 199 nr_pages = ret; in rds_info_getsockopt() 201 nr_pages = 0; in rds_info_getsockopt() 206 rdsdebug("len %d nr_pages %lu\n", len, nr_pages); in rds_info_getsockopt() 238 for (i = 0; pages && i < nr_pages; i++) in rds_info_getsockopt()
|
D | rdma.c | 157 static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, in rds_pin_pages() argument 162 ret = get_user_pages_fast(user_addr, nr_pages, write, pages); in rds_pin_pages() 164 if (ret >= 0 && ret < nr_pages) { in rds_pin_pages() 177 unsigned int nr_pages; in __rds_rdma_map() local 197 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map() 198 if (nr_pages == 0) { in __rds_rdma_map() 204 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map() 207 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in __rds_rdma_map() 241 ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1); in __rds_rdma_map() 487 unsigned int nr_pages; in rds_rdma_pages() local [all …]
|
/net/9p/ |
D | trans_common.c | 25 void p9_release_pages(struct page **pages, int nr_pages) in p9_release_pages() argument 29 for (i = 0; i < nr_pages; i++) in p9_release_pages() 57 int p9_payload_gup(char *data, int *nr_pages, struct page **pages, int write) in p9_payload_gup() argument 62 *nr_pages, write, pages); in p9_payload_gup() 66 *nr_pages = nr_mapped_pages; in p9_payload_gup()
|
D | trans_virtio.c | 225 struct page **pdata, int nr_pages, char *data, int count) in pack_sg_list_p() argument 231 BUG_ON(nr_pages > (limit - start)); in pack_sg_list_p() 237 while (nr_pages) { in pack_sg_list_p() 247 nr_pages--; in pack_sg_list_p() 318 int nr_pages, int write, int kern_buf) in p9_get_mapped_pages() argument 332 err = p9_payload_gup(data, &nr_pages, pages, write); in p9_get_mapped_pages() 335 atomic_add(nr_pages, &vp_pinned); in p9_get_mapped_pages() 339 int count = nr_pages; in p9_get_mapped_pages() 340 while (nr_pages) { in p9_get_mapped_pages() 347 nr_pages--; in p9_get_mapped_pages() [all …]
|
/net/core/ |
D | skbuff.c | 1718 return spd->nr_pages && in spd_can_coalesce() 1719 spd->pages[spd->nr_pages - 1] == page && in spd_can_coalesce() 1720 (spd->partial[spd->nr_pages - 1].offset + in spd_can_coalesce() 1721 spd->partial[spd->nr_pages - 1].len == offset); in spd_can_coalesce() 1733 if (unlikely(spd->nr_pages == MAX_SKB_FRAGS)) in spd_fill_page() 1742 spd->partial[spd->nr_pages - 1].len += *len; in spd_fill_page() 1746 spd->pages[spd->nr_pages] = page; in spd_fill_page() 1747 spd->partial[spd->nr_pages].len = *len; in spd_fill_page() 1748 spd->partial[spd->nr_pages].offset = offset; in spd_fill_page() 1749 spd->nr_pages++; in spd_fill_page() [all …]
|