Lines Matching refs:buflen
153 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one() argument
156 sg_set_buf(sg, buf, buflen); in sg_init_one()
650 size_t buflen, off_t skip, bool to_buffer) in sg_copy_buffer() argument
669 while (sg_miter_next(&miter) && offset < buflen) { in sg_copy_buffer()
672 len = min(miter.length, buflen - offset); in sg_copy_buffer()
700 const void *buf, size_t buflen) in sg_copy_from_buffer() argument
702 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, 0, false); in sg_copy_from_buffer()
717 void *buf, size_t buflen) in sg_copy_to_buffer() argument
719 return sg_copy_buffer(sgl, nents, buf, buflen, 0, true); in sg_copy_to_buffer()
735 const void *buf, size_t buflen, off_t skip) in sg_pcopy_from_buffer() argument
737 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, skip, false); in sg_pcopy_from_buffer()
753 void *buf, size_t buflen, off_t skip) in sg_pcopy_to_buffer() argument
755 return sg_copy_buffer(sgl, nents, buf, buflen, skip, true); in sg_pcopy_to_buffer()