Lines Matching refs:ofs

37 	uint32_t crc, ofs, len;  in check_node_data()  local
43 ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode); in check_node_data()
47 int adj = ofs % c->wbuf_pagesize; in check_node_data()
53 ref_offset(ref), tn->csize, ofs); in check_node_data()
57 ofs += adj; in check_node_data()
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data()
67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data()
70 mtd_unpoint(c->mtd, ofs, retlen); in check_node_data()
85 err = jffs2_flash_read(c, ofs, len, &retlen, buffer); in check_node_data()
87 JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ofs, err); in check_node_data()
92 JFFS2_ERROR("short read at %#08x: %zd instead of %d.\n", ofs, retlen, len); in check_node_data()
104 mtd_unpoint(c->mtd, ofs, len); in check_node_data()
140 mtd_unpoint(c->mtd, ofs, len); in check_node_data()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node()
187 if (tn->fn->ofs < offset) in jffs2_lookup_tn()
189 else if (tn->fn->ofs >= offset) in jffs2_lookup_tn()
222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; in jffs2_add_tn_to_tree()
225 …dbg_readinode("insert fragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, r… in jffs2_add_tn_to_tree()
250 this = jffs2_lookup_tn(&rii->tn_root, tn->fn->ofs); in jffs2_add_tn_to_tree()
266 …dbg_readinode("'this' found %#04x-%#04x (%s)\n", this->fn->ofs, this->fn->ofs + this->fn->size, th… in jffs2_add_tn_to_tree()
270 if (this->fn->ofs > fn_end) in jffs2_add_tn_to_tree()
273 this->version, this->fn->ofs, this->fn->size); in jffs2_add_tn_to_tree()
293 this->fn->ofs >= tn->fn->ofs && in jffs2_add_tn_to_tree()
294 this->fn->ofs + this->fn->size <= fn_end) { in jffs2_add_tn_to_tree()
302 while (this && this->fn->ofs + this->fn->size <= fn_end) { in jffs2_add_tn_to_tree()
307 this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
308 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
317 this->fn->ofs <= tn->fn->ofs && in jffs2_add_tn_to_tree()
318 this->fn->ofs+this->fn->size >= fn_end) { in jffs2_add_tn_to_tree()
345 if (tn->fn->ofs > insert_point->fn->ofs) in jffs2_add_tn_to_tree()
347 else if (tn->fn->ofs < insert_point->fn->ofs || in jffs2_add_tn_to_tree()
361 if (this->fn->ofs + this->fn->size > tn->fn->ofs) { in jffs2_add_tn_to_tree()
363 this, this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
364 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
386 while (this && this->fn->ofs < fn_end) { in jffs2_add_tn_to_tree()
389 this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
390 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
467 dbg_readinode("tn %p ver %d range 0x%x-0x%x ov %d\n", this, this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
468 this->fn->ofs+this->fn->size, this->overlapped); in jffs2_build_inode_fragtree()
502 this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
503 this->fn->ofs+this->fn->size); in jffs2_build_inode_fragtree()
515 this, this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
516 this->fn->ofs+this->fn->size, this->overlapped); in jffs2_build_inode_fragtree()
820 tn->fn->ofs = je32_to_cpu(rd->offset); in read_dnode()
853 tn, tn->version, tn->fn->ofs, in read_dnode()
854 tn->fn->ofs+tn->fn->size, tn->overlapped); in read_dnode()