Searched defs:pages (Results 1 - 17 of 17) sorted by relevance

/net/9p/
H A Dtrans_common.c23 * p9_release_req_pages - Release pages after the transaction.
25 void p9_release_pages(struct page **pages, int nr_pages) argument
28 while (pages[i] && nr_pages--) {
29 put_page(pages[i]);
36 * p9_nr_pages - Return number of pages needed to accommodate the payload.
48 * payload_gup - Translates user buffer into kernel pages and
52 * @pdata_len: Total length of the IO. gup may not return requested # of pages.
53 * @nr_pages: number of pages to accommodate the payload
54 * @rw: Indicates if the pages are for read or write.
57 int p9_payload_gup(char *data, int *nr_pages, struct page **pages, in argument
[all...]
H A Dtrans_virtio.c216 * this takes a list of pages.
219 * @pdata: a list of pages to add into sg.
220 * @nr_pages: number of pages to pack into the scatter/gather list
318 struct page **pages, char *data,
333 err = p9_payload_gup(data, &nr_pages, pages, write);
338 /* kernel buffer, no need to pin pages */
343 pages[index++] = kmap_to_page(data);
488 /* wakeup anybody waiting for slots to pin pages */
317 p9_get_mapped_pages(struct virtio_chan *chan, struct page **pages, char *data, int nr_pages, int write, int kern_buf) argument
/net/ceph/
H A Dpagevec.c13 * build a vector of user pages
18 struct page **pages; local
22 pages = kmalloc(sizeof(*pages) * num_pages, GFP_NOFS);
23 if (!pages)
30 num_pages - got, write_page, 0, pages + got, NULL);
39 return pages;
42 ceph_put_page_vector(pages, got, false);
47 void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty) argument
53 set_page_dirty_lock(pages[
60 ceph_release_page_vector(struct page **pages, int num_pages) argument
75 struct page **pages; local
95 ceph_copy_user_to_page_vector(struct page **pages, const void __user *data, loff_t off, size_t len) argument
121 ceph_copy_to_page_vector(struct page **pages, const void *data, loff_t off, size_t len) argument
144 ceph_copy_from_page_vector(struct page **pages, void *data, loff_t off, size_t len) argument
170 ceph_copy_page_vector_to_user(struct page **pages, void __user *data, loff_t off, size_t len) argument
201 ceph_zero_page_vector_range(int off, int len, struct page **pages) argument
[all...]
H A Dmessenger.c879 BUG_ON(!data->pages);
909 return data->pages[cursor->page_index];
1234 /* fill in crc (except data pages), footer */
1489 * need to map the page. If we have no pages, they have
2447 /* msg pages? */
3052 void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages, argument
3057 BUG_ON(!pages);
3062 data->pages = pages;
H A Dosd_client.c92 struct page **pages, u64 length, u32 alignment,
96 osd_data->pages = pages;
151 unsigned int which, struct page **pages,
158 ceph_osd_data_pages_init(osd_data, pages, length, alignment,
164 unsigned int which, struct page **pages,
171 ceph_osd_data_pages_init(osd_data, pages, length, alignment,
220 unsigned int which, struct page **pages, u64 length,
226 ceph_osd_data_pages_init(osd_data, pages, length, alignment,
232 unsigned int which, struct page **pages, u6
91 ceph_osd_data_pages_init(struct ceph_osd_data *osd_data, struct page **pages, u64 length, u32 alignment, bool pages_from_pool, bool own_pages) argument
150 osd_req_op_raw_data_in_pages(struct ceph_osd_request *osd_req, unsigned int which, struct page **pages, u64 length, u32 alignment, bool pages_from_pool, bool own_pages) argument
163 osd_req_op_extent_osd_data_pages(struct ceph_osd_request *osd_req, unsigned int which, struct page **pages, u64 length, u32 alignment, bool pages_from_pool, bool own_pages) argument
219 osd_req_op_cls_request_data_pages(struct ceph_osd_request *osd_req, unsigned int which, struct page **pages, u64 length, u32 alignment, bool pages_from_pool, bool own_pages) argument
231 osd_req_op_cls_response_data_pages(struct ceph_osd_request *osd_req, unsigned int which, struct page **pages, u64 length, u32 alignment, bool pages_from_pool, bool own_pages) argument
2293 ceph_osdc_readpages(struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, u64 off, u64 *plen, u32 truncate_seq, u64 truncate_size, struct page **pages, int num_pages, int page_align) argument
2334 ceph_osdc_writepages(struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, struct ceph_snap_context *snapc, u64 off, u64 len, u32 truncate_seq, u64 truncate_size, struct timespec *mtime, struct page **pages, int num_pages) argument
[all...]
/net/rds/
H A Dinfo.c48 * buffer is big enough. The destination pages that make up the buffer
65 struct page **pages; member in struct:rds_info_iterator
113 * get_user_pages() called flush_dcache_page() on the pages for us.
122 iter->addr = kmap_atomic(*iter->pages);
127 "bytes %lu\n", *iter->pages, iter->addr,
140 iter->pages++;
167 struct page **pages = NULL; local
191 pages = kmalloc(nr_pages * sizeof(struct page *), GFP_KERNEL);
192 if (!pages) {
196 ret = get_user_pages_fast(start, nr_pages, 1, pages);
[all...]
H A Drdma.c49 * get the number of pages by looking at the page indices that the start and
155 * Helper function to pin user pages.
158 struct page **pages, int write)
162 ret = get_user_pages_fast(user_addr, nr_pages, write, pages);
166 put_page(pages[ret]);
178 struct page **pages = NULL; local
207 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL);
208 if (!pages) {
232 * Pin the pages that make up the user buffer and transfer the page
241 ret = rds_pin_pages(args->vec.addr, nr_pages, pages,
157 rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, struct page **pages, int write) argument
553 struct page **pages = NULL; local
[all...]
/net/ieee802154/
H A Dnl-phy.c42 int i, pages = 0; local
62 buf[pages++] = phy->channels_supported[i] | (i << 27);
64 if (pages &&
66 pages * sizeof(uint32_t), buf))
/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c57 * - pages[] is not physically or virtually contiguous and consists of
63 * SGE[2..sge_count-2] data from xdr->pages[]
123 /* Map the pages */
130 page = xdr->pages[page_no++];
222 /* pages SGE */
228 page_address(xdr->pages[page_no]) + page_off;
268 page = xdr->pages[xdr_off >> PAGE_SHIFT];
551 int pages; local
567 ctxt->pages[0] = page;
612 * respages array. They are our pages unti
[all...]
/net/sunrpc/auth_gss/
H A Dgss_krb5_wrap.c85 ptr = kmap_atomic(buf->pages[last]);
150 * The pages, however, may be real pages in the page cache and we replace
151 * them with scratch pages from **pages before writing to them. */
159 struct xdr_buf *buf, struct page **pages)
216 tmp_pages = buf->pages;
217 buf->pages = pages;
221 buf->pages
158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf, struct page **pages) argument
434 gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, struct page **pages) argument
583 gss_wrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf, struct page **pages) argument
[all...]
H A Dgss_krb5_crypto.c393 struct page **pages; member in struct:encryptor_desc
416 /* pages are not in place: */
418 in_page = desc->pages[i];
463 int offset, struct page **pages)
476 desc.pages = pages;
598 u32 offset, u8 *iv, struct page **pages, int encrypt)
614 * page cache pages, and write the encrypted data to
615 * the supplied xdr_buf pages.
617 save_pages = buf->pages;
462 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, int offset, struct page **pages) argument
597 gss_krb5_cts_crypt(struct crypto_blkcipher *cipher, struct xdr_buf *buf, u32 offset, u8 *iv, struct page **pages, int encrypt) argument
643 gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, int ec, struct page **pages) argument
[all...]
H A Dgss_rpc_xdr.h135 * as a set of pages */
137 struct page **pages; /* Array of contiguous pages */ member in struct:gssp_in_token
/net/sunrpc/
H A Dsvc.c565 * We allocate pages and place them in rq_argpages.
570 unsigned int pages, arghi; local
576 pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply.
580 WARN_ON_ONCE(pages > RPCSVC_MAXPAGES);
581 if (pages > RPCSVC_MAXPAGES)
582 pages = RPCSVC_MAXPAGES;
583 while (pages) {
588 pages--;
590 return pages == 0;
1304 rqstp->rq_res.pages
[all...]
H A Dsvc_xprt.c578 int pages; local
581 /* now allocate needed pages. If we get a failure, sleep briefly */
582 pages = (serv->sv_max_mesg + PAGE_SIZE) / PAGE_SIZE;
583 WARN_ON_ONCE(pages >= RPCSVC_MAXPAGES);
584 if (pages >= RPCSVC_MAXPAGES)
585 /* use as many pages as possible */
586 pages = RPCSVC_MAXPAGES - 1;
587 for (i = 0; i < pages ; i++)
602 /* Make arg->head point to first page and arg->pages point to rest */
606 arg->pages
[all...]
H A Dsvcsock.c181 struct page **ppage = xdr->pages;
1015 static int copy_pages_to_kvecs(struct kvec *vec, struct page **pages, int len) argument
1021 vec[i].iov_base = page_address(pages[i]);
H A Dxdr.c125 kaddr = kmap_atomic(buf->pages[0]);
133 struct page **pages, unsigned int base, unsigned int len)
142 xdr->pages = pages;
159 * @pages: vector of pages containing both the source and dest memory area.
166 * if a memory area starts at byte 'base' in page 'pages[i]',
172 _shift_data_right_pages(struct page **pages, size_t pgto_base, argument
184 pgto = pages + (pgto_base >> PAGE_CACHE_SHIFT);
185 pgfrom = pages
132 xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, struct page **pages, unsigned int base, unsigned int len) argument
230 _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len) argument
274 _copy_from_pages(char *p, struct page **pages, size_t pgbase, size_t len) argument
516 xdr_write_pages(struct xdr_stream *xdr, struct page **pages, unsigned int base, unsigned int len) argument
639 xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, struct page **pages, unsigned int len) argument
[all...]
/net/core/
H A Dskbuff.c806 * to userspace pages.
1471 * size of pulled pages. Superb.
1476 /* Estimate size of pulled pages. */
1660 * Callback from splice_to_pipe(), if we need to release some pages
1665 put_page(spd->pages[i]);
1692 spd->pages[spd->nr_pages - 1] == page &&
1698 * Fill page/offset/length into spd, if it can hold more pages.
1719 spd->pages[spd->nr_pages] = page;
1811 struct page *pages[MAX_SKB_FRAGS]; local
1813 .pages
[all...]

Completed in 164 milliseconds