Lines Matching refs:length
58 * needed to satisfy the supplied length
60 * @len: The total required length
64 * the supplied length, taking into account chaining as well
80 total += sg->length;
137 * @buflen: IO length
477 sgt_append->prv->offset + sgt_append->prv->length) / PAGE_SIZE;
483 prv_len = sgt_append->prv->length;
487 if (sgt_append->prv->length + PAGE_SIZE > max_segment)
489 sgt_append->prv->length += PAGE_SIZE;
530 * Adjust entry length to be as before function was
534 sgt_append->prv->length = prv_len;
602 * @length: Length in bytes of the scatterlist. Must be at least one
611 struct scatterlist *sgl_alloc_order(unsigned long long length,
620 nent = round_up(length, PAGE_SIZE << order) >> (PAGE_SHIFT + order);
622 if (length > (nent << (PAGE_SHIFT + order)))
638 while (length) {
639 elem_len = min_t(u64, length, PAGE_SIZE << order);
647 length -= elem_len;
650 WARN_ONCE(length, "length = %lld\n", length);
659 * @length: Length in bytes of the scatterlist
665 struct scatterlist *sgl_alloc(unsigned long long length, gfp_t gfp,
668 return sgl_alloc_order(length, 0, false, gfp, nent_p);
739 return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT;
824 miter->__remaining = sg->offset + sg->length -
878 * @miter->addr and @miter->length point to the current mapping.
899 miter->consumed = miter->length = miter->__remaining;
925 WARN_ON(miter->consumed > miter->length);
943 miter->length = 0;
982 len = min(miter.length, buflen - offset);
1092 len = min(miter.length, buflen - offset);