Lines Matching defs:sg_bytes
99 size_t off, sg_bytes;
114 sg_bytes = min(remaining, sg->length - *offset);
121 sg_bytes = min(sg_bytes,
126 *crc = crc32(*crc, buf, sg_bytes);
127 memcpy((char *)page_addr + (off & ~PAGE_MASK), buf, sg_bytes);
129 buf += sg_bytes;
130 *offset += sg_bytes;
131 remaining -= sg_bytes;
132 copy_len += sg_bytes;