Lines Matching defs:len
73 static inline void add_data(char *ptr, int len)
75 if (ofs + len > erasesize) {
79 memcpy(buf + ofs, ptr, len);
80 ofs += len;
195 int len = 0;
198 len = rbytes() - sizeof(ri);
199 if (len > 128)
206 if (len > sizeof(wbuf))
207 len = sizeof(wbuf);
209 len = read(fd, wbuf, len);
210 if (len <= 0)
213 ri.totlen = sizeof(ri) + len;
217 ri.csize = ri.dsize = len;
219 ri.data_crc = crc32(0, wbuf, len);
220 f_offset += len;
222 add_data(wbuf, len);