Lines Matching refs:page
193 static struct page *zero_page; /* used in certain error cases */
529 static int ceph_tcp_recvpage(struct socket *sock, struct page *page, in ceph_tcp_recvpage() argument
537 kaddr = kmap(page); in ceph_tcp_recvpage()
540 kunmap(page); in ceph_tcp_recvpage()
566 static int __ceph_tcp_sendpage(struct socket *sock, struct page *page, in __ceph_tcp_sendpage() argument
572 ret = kernel_sendpage(sock, page, offset, size, flags); in __ceph_tcp_sendpage()
579 static int ceph_tcp_sendpage(struct socket *sock, struct page *page, in ceph_tcp_sendpage() argument
587 if (page_count(page) >= 1) in ceph_tcp_sendpage()
588 return __ceph_tcp_sendpage(sock, page, offset, size, more); in ceph_tcp_sendpage()
590 iov.iov_base = kmap(page) + offset; in ceph_tcp_sendpage()
593 kunmap(page); in ceph_tcp_sendpage()
813 static struct page *ceph_msg_data_bio_next(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_bio_next()
912 static struct page *
968 struct page *page; in ceph_msg_data_pagelist_cursor_init() local
979 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init()
982 cursor->page = page; in ceph_msg_data_pagelist_cursor_init()
987 static struct page *
999 BUG_ON(!cursor->page); in ceph_msg_data_pagelist_next()
1009 return cursor->page; in ceph_msg_data_pagelist_next()
1039 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head)); in ceph_msg_data_pagelist_advance()
1040 cursor->page = list_entry_next(cursor->page, lru); in ceph_msg_data_pagelist_advance()
1100 static struct page *ceph_msg_data_next(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_next()
1104 struct page *page; in ceph_msg_data_next() local
1108 page = ceph_msg_data_pagelist_next(cursor, page_offset, length); in ceph_msg_data_next()
1111 page = ceph_msg_data_pages_next(cursor, page_offset, length); in ceph_msg_data_next()
1115 page = ceph_msg_data_bio_next(cursor, page_offset, length); in ceph_msg_data_next()
1120 page = NULL; in ceph_msg_data_next()
1123 BUG_ON(!page); in ceph_msg_data_next()
1129 return page; in ceph_msg_data_next()
1478 static u32 ceph_crc32c_page(u32 crc, struct page *page, in ceph_crc32c_page() argument
1484 kaddr = kmap(page); in ceph_crc32c_page()
1487 kunmap(page); in ceph_crc32c_page()
1520 struct page *page; in write_partial_message_data() local
1527 page = ceph_msg_data_next(&msg->cursor, &page_offset, &length, in write_partial_message_data()
1529 ret = ceph_tcp_sendpage(con->sock, page, page_offset, in write_partial_message_data()
1538 crc = ceph_crc32c_page(crc, page, page_offset, length); in write_partial_message_data()
2217 struct page *page; in read_partial_msg_data() local
2230 page = ceph_msg_data_next(&msg->cursor, &page_offset, &length, in read_partial_msg_data()
2232 ret = ceph_tcp_recvpage(con->sock, page, page_offset, length); in read_partial_msg_data()
2241 crc = ceph_crc32c_page(crc, page, page_offset, ret); in read_partial_msg_data()
3097 void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages, in ceph_msg_data_add_pages()