Lines Matching defs:cur
188 unsigned int nr, cur;
210 iter->cur = 0;
217 unsigned int cur)
224 while (cur > iter->nr) {
225 cur -= iter->nr;
228 iter->cur = cur;
236 if (iter->cur >= iter->nr) {
252 iter->bvset->bvec[iter->cur++] = *bvec;
260 if (iter->cur == iter->nr)
264 *bvec = iter->bvset->bvec[iter->cur++];
945 unsigned int cur, unsigned int end, erofs_off_t pos)
956 for (; cur < end; cur += cnt, pos += cnt) {
957 cnt = min_t(unsigned int, end - cur,
964 memcpy_to_page(page, cur, src + erofs_blkoff(sb, pos), cnt);
977 unsigned int cur, end, len, split;
995 cur = offset > map->m_la ? 0 : map->m_la - offset;
1000 zero_user_segment(page, cur, end);
1006 erofs_off_t fpos = offset + cur - map->m_la;
1008 len = min_t(unsigned int, map->m_llen - fpos, end - cur);
1009 err = z_erofs_read_fragment(inode->i_sb, page, cur, cur + len,
1030 exclusive = (!cur && ((split <= 1) || tight));
1031 if (cur)
1055 map->m_llen = offset + cur - map->m_la;
1058 end = cur;
1138 unsigned int end, cur;
1142 cur = bvi->bvec.offset < 0 ? -bvi->bvec.offset : 0;
1146 while (cur < end) {
1149 pgnr = (bvi->bvec.offset + cur + off0) >> PAGE_SHIFT;
1152 scur = bvi->bvec.offset + cur -
1154 len = min_t(unsigned int, end - cur, PAGE_SIZE - scur);
1157 cur += len;
1161 memcpy(dst + cur, src + scur, len);
1163 cur += len;
1657 pgoff_t cur, end;
1676 cur = erofs_blknr(sb, mdev.m_pa);
1677 end = cur + pcl->pclusterpages;
1687 if (bio && (cur != last_index + 1 ||
1709 bio->bi_iter.bi_sector = (sector_t)cur <<
1720 last_index = cur;
1722 } while (++cur < end);
1778 erofs_off_t cur, end, headoffset = f->headoffset;
1794 cur = round_up(map->m_la + map->m_llen, PAGE_SIZE);
1795 readahead_expand(rac, headoffset, cur - headoffset);
1806 cur = map->m_la + map->m_llen - 1;
1807 while ((cur >= end) && (cur < i_size_read(inode))) {
1808 pgoff_t index = cur >> PAGE_SHIFT;
1820 if (cur < PAGE_SIZE)
1822 cur = (index << PAGE_SHIFT) - 1;