Lines Matching defs:offset
50 D1(printk(KERN_DEBUG "Node read from %08x: node_crc %08x, calculated CRC %08x. dsize %x, csize %x, offset %x, buf %p\n",
53 je32_to_cpu(ri->offset), buf));
154 unsigned char *buf, uint32_t offset, uint32_t len)
156 uint32_t end = offset + len;
161 f->inocache->ino, offset, offset+len));
163 frag = jffs2_lookup_node_frag(&f->fragtree, offset);
168 while(offset < end) {
169 D2(printk(KERN_DEBUG "jffs2_read_inode_range: offset %d, end %d\n", offset, end));
170 if (unlikely(!frag || frag->ofs > offset ||
171 frag->ofs + frag->size <= offset)) {
172 uint32_t holesize = end - offset;
173 if (frag && frag->ofs > offset) {
174 D1(printk(KERN_NOTICE "Eep. Hole in ino #%u fraglist. frag->ofs = 0x%08x, offset = 0x%08x\n", f->inocache->ino, frag->ofs, offset));
175 holesize = min(holesize, frag->ofs - offset);
177 D1(printk(KERN_DEBUG "Filling non-frag hole from %d-%d\n", offset, offset+holesize));
180 offset += holesize;
184 D1(printk(KERN_DEBUG "Filling frag hole from %d-%d (frag 0x%x 0x%x)\n", offset, holeend, frag->ofs, frag->ofs + frag->size));
185 memset(buf, 0, holeend - offset);
186 buf += holeend - offset;
187 offset = holeend;
192 uint32_t fragofs; /* offset within the frag to start reading */
194 fragofs = offset - frag->ofs;
195 readlen = min(frag->size - fragofs, end - offset);
207 offset += readlen;