Lines Matching refs:buf
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()
840 size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, in sg_copy_buffer() argument
863 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer()
865 memcpy(miter.addr, buf + offset, len); 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()