Lines Matching refs:po
101 int po = off & ~PAGE_CACHE_MASK; in ceph_copy_user_to_page_vector() local
106 l = min_t(int, PAGE_CACHE_SIZE-po, left); in ceph_copy_user_to_page_vector()
107 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector()
112 po += l - bad; in ceph_copy_user_to_page_vector()
113 if (po == PAGE_CACHE_SIZE) { in ceph_copy_user_to_page_vector()
114 po = 0; in ceph_copy_user_to_page_vector()
127 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_to_page_vector() local
131 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_to_page_vector()
133 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector()
136 po += l; in ceph_copy_to_page_vector()
137 if (po == PAGE_CACHE_SIZE) { in ceph_copy_to_page_vector()
138 po = 0; in ceph_copy_to_page_vector()
150 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_from_page_vector() local
154 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_from_page_vector()
156 memcpy(data, page_address(pages[i]) + po, l); in ceph_copy_from_page_vector()
159 po += l; in ceph_copy_from_page_vector()
160 if (po == PAGE_CACHE_SIZE) { in ceph_copy_from_page_vector()
161 po = 0; in ceph_copy_from_page_vector()