• Home
  • Raw
  • Download

Lines Matching refs:cur

189 	unsigned int nr, cur;  member
211 iter->cur = 0; in z_erofs_bvset_flip()
218 unsigned int cur) in z_erofs_bvec_iter_begin() argument
225 while (cur > iter->nr) { in z_erofs_bvec_iter_begin()
226 cur -= iter->nr; in z_erofs_bvec_iter_begin()
229 iter->cur = cur; in z_erofs_bvec_iter_begin()
237 if (iter->cur >= iter->nr) { in z_erofs_bvec_enqueue()
253 iter->bvset->bvec[iter->cur++] = *bvec; in z_erofs_bvec_enqueue()
261 if (iter->cur == iter->nr) in z_erofs_bvec_dequeue()
265 *bvec = iter->bvset->bvec[iter->cur++]; in z_erofs_bvec_dequeue()
949 unsigned int cur, unsigned int end, erofs_off_t pos) in z_erofs_read_fragment() argument
959 for (; cur < end; cur += cnt, pos += cnt) { in z_erofs_read_fragment()
960 cnt = min_t(unsigned int, end - cur, in z_erofs_read_fragment()
968 memcpy_to_page(page, cur, src + erofs_blkoff(sb, pos), cnt); in z_erofs_read_fragment()
982 unsigned int cur, end, len, split; in z_erofs_do_read_page() local
1000 cur = offset > map->m_la ? 0 : map->m_la - offset; in z_erofs_do_read_page()
1005 zero_user_segment(page, cur, end); in z_erofs_do_read_page()
1011 erofs_off_t fpos = offset + cur - map->m_la; in z_erofs_do_read_page()
1013 len = min_t(unsigned int, map->m_llen - fpos, end - cur); in z_erofs_do_read_page()
1014 err = z_erofs_read_fragment(inode->i_sb, page, cur, cur + len, in z_erofs_do_read_page()
1035 exclusive = (!cur && ((split <= 1) || (tight && bs == PAGE_SIZE))); in z_erofs_do_read_page()
1036 if (cur) in z_erofs_do_read_page()
1060 map->m_llen = offset + cur - map->m_la; in z_erofs_do_read_page()
1063 end = cur; in z_erofs_do_read_page()
1148 unsigned int end, cur; in z_erofs_fill_other_copies() local
1152 cur = bvi->bvec.offset < 0 ? -bvi->bvec.offset : 0; in z_erofs_fill_other_copies()
1156 while (cur < end) { in z_erofs_fill_other_copies()
1159 pgnr = (bvi->bvec.offset + cur + off0) >> PAGE_SHIFT; in z_erofs_fill_other_copies()
1162 scur = bvi->bvec.offset + cur - in z_erofs_fill_other_copies()
1164 len = min_t(unsigned int, end - cur, PAGE_SIZE - scur); in z_erofs_fill_other_copies()
1167 cur += len; in z_erofs_fill_other_copies()
1171 memcpy(dst + cur, src + scur, len); in z_erofs_fill_other_copies()
1173 cur += len; in z_erofs_fill_other_copies()
1659 erofs_off_t cur, end; in z_erofs_submit_queue() local
1679 cur = mdev.m_pa; in z_erofs_submit_queue()
1680 end = cur + pcl->pclustersize; in z_erofs_submit_queue()
1686 if (bio && (cur != last_pa || in z_erofs_submit_queue()
1707 bio->bi_iter.bi_sector = cur >> 9; in z_erofs_submit_queue()
1715 if (cur + bvec.bv_len > end) in z_erofs_submit_queue()
1716 bvec.bv_len = end - cur; in z_erofs_submit_queue()
1722 last_pa = cur + bvec.bv_len; in z_erofs_submit_queue()
1724 } while ((cur += bvec.bv_len) < end); in z_erofs_submit_queue()
1780 erofs_off_t cur, end, headoffset = f->headoffset; in z_erofs_pcluster_readmore() local
1796 cur = round_up(map->m_la + map->m_llen, PAGE_SIZE); in z_erofs_pcluster_readmore()
1797 readahead_expand(rac, headoffset, cur - headoffset); in z_erofs_pcluster_readmore()
1808 cur = map->m_la + map->m_llen - 1; in z_erofs_pcluster_readmore()
1809 while ((cur >= end) && (cur < i_size_read(inode))) { in z_erofs_pcluster_readmore()
1810 pgoff_t index = cur >> PAGE_SHIFT; in z_erofs_pcluster_readmore()
1827 if (cur < PAGE_SIZE) in z_erofs_pcluster_readmore()
1829 cur = (index << PAGE_SHIFT) - 1; in z_erofs_pcluster_readmore()