Lines Matching refs:buflen
138 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one() argument
141 sg_set_buf(sg, buf, buflen); in sg_init_one()
841 size_t buflen, off_t skip, bool to_buffer) in sg_copy_buffer() argument
857 while ((offset < buflen) && sg_miter_next(&miter)) { in sg_copy_buffer()
860 len = min(miter.length, buflen - offset); in sg_copy_buffer()
887 const void *buf, size_t buflen) in sg_copy_from_buffer() argument
889 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, 0, false); in sg_copy_from_buffer()
904 void *buf, size_t buflen) in sg_copy_to_buffer() argument
906 return sg_copy_buffer(sgl, nents, buf, buflen, 0, true); in sg_copy_to_buffer()
922 const void *buf, size_t buflen, off_t skip) in sg_pcopy_from_buffer() argument
924 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, skip, false); in sg_pcopy_from_buffer()
940 void *buf, size_t buflen, off_t skip) in sg_pcopy_to_buffer() argument
942 return sg_copy_buffer(sgl, nents, buf, buflen, skip, true); in sg_pcopy_to_buffer()
956 size_t buflen, off_t skip) in sg_zero_buffer() argument
967 while (offset < buflen && sg_miter_next(&miter)) { in sg_zero_buffer()
970 len = min(miter.length, buflen - offset); in sg_zero_buffer()