Lines Matching refs:cur_len
2806 size_t get_numpages(const size_t wsize, const size_t len, size_t *cur_len) in get_numpages() argument
2814 if (cur_len) in get_numpages()
2815 *cur_len = clen; in get_numpages()
2859 size_t save_len, copied, bytes, cur_len = *len; in wdata_fill_from_iovec() local
2862 save_len = cur_len; in wdata_fill_from_iovec()
2864 bytes = min_t(const size_t, cur_len, PAGE_SIZE); in wdata_fill_from_iovec()
2866 cur_len -= copied; in wdata_fill_from_iovec()
2877 cur_len = save_len - cur_len; in wdata_fill_from_iovec()
2878 *len = cur_len; in wdata_fill_from_iovec()
2886 if (!cur_len) in wdata_fill_from_iovec()
2974 size_t cur_len; in cifs_write_from_iter() local
3011 cur_len = min_t(const size_t, len, wsize); in cifs_write_from_iter()
3017 from, &pagevec, cur_len, &start); in cifs_write_from_iter()
3029 cur_len = (size_t)result; in cifs_write_from_iter()
3030 iov_iter_advance(from, cur_len); in cifs_write_from_iter()
3033 (cur_len + start + PAGE_SIZE - 1) / PAGE_SIZE; in cifs_write_from_iter()
3047 cur_len - (PAGE_SIZE - start) - in cifs_write_from_iter()
3049 cur_len; in cifs_write_from_iter()
3051 nr_pages = get_numpages(wsize, len, &cur_len); in cifs_write_from_iter()
3070 wdata, from, &cur_len, &num_pages); in cifs_write_from_iter()
3087 wdata->tailsz = cur_len - ((nr_pages - 1) * PAGE_SIZE); in cifs_write_from_iter()
3096 wdata->bytes = cur_len; in cifs_write_from_iter()
3125 offset += cur_len; in cifs_write_from_iter()
3126 len -= cur_len; in cifs_write_from_iter()
3710 size_t cur_len; in cifs_send_async_read() local
3742 cur_len = min_t(const size_t, len, rsize); in cifs_send_async_read()
3749 cur_len, &start); in cifs_send_async_read()
3762 cur_len = (size_t)result; in cifs_send_async_read()
3763 iov_iter_advance(&direct_iov, cur_len); in cifs_send_async_read()
3773 npages = (cur_len + start + PAGE_SIZE-1) / PAGE_SIZE; in cifs_send_async_read()
3776 cur_len-(PAGE_SIZE-start)-(npages-2)*PAGE_SIZE : in cifs_send_async_read()
3777 cur_len; in cifs_send_async_read()
3781 npages = DIV_ROUND_UP(cur_len, PAGE_SIZE); in cifs_send_async_read()
3806 rdata->bytes = cur_len; in cifs_send_async_read()
3829 iov_iter_revert(&direct_iov, cur_len); in cifs_send_async_read()
3836 offset += cur_len; in cifs_send_async_read()
3837 len -= cur_len; in cifs_send_async_read()