Lines Matching refs:total_len
236 struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned int total_len)
241 rm = rds_message_alloc(ceil(total_len, PAGE_SIZE), GFP_KERNEL);
246 rm->m_inc.i_hdr.h_len = cpu_to_be32(total_len);
247 rm->m_nents = ceil(total_len, PAGE_SIZE);
259 size_t total_len)
269 rm = rds_message_alloc(ceil(total_len, PAGE_SIZE), GFP_KERNEL);
275 rm->m_inc.i_hdr.h_len = cpu_to_be32(total_len);
285 while (total_len) {
287 ret = rds_page_remainder_alloc(sg, total_len,
301 to_copy = min_t(size_t, to_copy, total_len);
315 total_len -= to_copy;