/fs/jffs2/ |
D | read.c | 54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), in jffs2_read_dnode() 55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), in jffs2_read_dnode() 56 je32_to_cpu(ri->offset), buf); in jffs2_read_dnode() 57 if (crc != je32_to_cpu(ri->node_crc)) { in jffs2_read_dnode() 59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); in jffs2_read_dnode() 65 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) && in jffs2_read_dnode() 66 je32_to_cpu(ri->csize)) { in jffs2_read_dnode() 71 D1(if(ofs + len > je32_to_cpu(ri->dsize)) { in jffs2_read_dnode() 73 len, ofs, je32_to_cpu(ri->dsize)); in jffs2_read_dnode() 90 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) { in jffs2_read_dnode() [all …]
|
D | scan.c | 339 if (crc != je32_to_cpu(rx->node_crc)) { in jffs2_scan_xattr_node() 341 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node() 342 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 347 xid = je32_to_cpu(rx->xid); in jffs2_scan_xattr_node() 348 version = je32_to_cpu(rx->version); in jffs2_scan_xattr_node() 352 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node() 354 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node() 355 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 374 xd->data_crc = je32_to_cpu(rx->data_crc); in jffs2_scan_xattr_node() 395 if (crc != je32_to_cpu(rr->node_crc)) { in jffs2_scan_xref_node() [all …]
|
D | summary.c | 76 je32_to_cpu(item->i.inode)); in jffs2_sum_add_mem() 82 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem() 89 je32_to_cpu(item->x.xid), je32_to_cpu(item->x.version)); in jffs2_sum_add_mem() 344 c->summary->sum_padded += je32_to_cpu(node->u.totlen); in jffs2_sum_add_kvec() 397 for (i=0; i<je32_to_cpu(summary->sum_num); i++) { in jffs2_sum_process_sum_data() 412 ino = je32_to_cpu(spi->inode); in jffs2_sum_process_sum_data() 415 jeb->offset + je32_to_cpu(spi->offset), in jffs2_sum_process_sum_data() 416 jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen)); in jffs2_sum_process_sum_data() 424 sum_link_node_ref(c, jeb, je32_to_cpu(spi->offset) | REF_UNCHECKED, in jffs2_sum_process_sum_data() 425 PAD(je32_to_cpu(spi->totlen)), ic); in jffs2_sum_process_sum_data() [all …]
|
D | write.c | 72 D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dnode() 82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode() 84 __func__, je32_to_cpu(ri->totlen), in jffs2_write_dnode() 100 if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(ri->version) < f->highest_version)) { in jffs2_write_dnode() 104 je32_to_cpu(ri->version), f->highest_version); in jffs2_write_dnode() 175 if ((je32_to_cpu(ri->dsize) >= PAGE_SIZE) || in jffs2_write_dnode() 176 ( ((je32_to_cpu(ri->offset)&(PAGE_SIZE-1))==0) && in jffs2_write_dnode() 177 (je32_to_cpu(ri->dsize)+je32_to_cpu(ri->offset) == je32_to_cpu(ri->isize)))) { in jffs2_write_dnode() 189 fn->ofs = je32_to_cpu(ri->offset); in jffs2_write_dnode() 190 fn->size = je32_to_cpu(ri->dsize); in jffs2_write_dnode() [all …]
|
D | readinode.c | 597 if (unlikely(crc != je32_to_cpu(rd->node_crc))) { in read_direntry() 599 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_direntry() 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 634 fd->version = je32_to_cpu(rd->version); in read_direntry() 635 fd->ino = je32_to_cpu(rd->ino); in read_direntry() 642 if(fd->version > rii->mctime_ver && je32_to_cpu(rd->mctime)) { in read_direntry() 644 rii->latest_mctime = je32_to_cpu(rd->mctime); in read_direntry() 682 if (unlikely(crc != je32_to_cpu(rd->name_crc))) { in read_direntry() 685 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_direntry() [all …]
|
D | debug.c | 792 printk(JFFS2_DBG "totlen:\t%#08x\n", je32_to_cpu(node.u.totlen)); in __jffs2_dbg_dump_node() 793 printk(JFFS2_DBG "hdr_crc:\t%#08x\n", je32_to_cpu(node.u.hdr_crc)); in __jffs2_dbg_dump_node() 796 if (crc != je32_to_cpu(node.u.hdr_crc)) { in __jffs2_dbg_dump_node() 814 printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.i.ino)); in __jffs2_dbg_dump_node() 815 printk(JFFS2_DBG "version:\t%#08x\n", je32_to_cpu(node.i.version)); in __jffs2_dbg_dump_node() 819 printk(JFFS2_DBG "isize:\t%#08x\n", je32_to_cpu(node.i.isize)); in __jffs2_dbg_dump_node() 820 printk(JFFS2_DBG "atime:\t%#08x\n", je32_to_cpu(node.i.atime)); in __jffs2_dbg_dump_node() 821 printk(JFFS2_DBG "mtime:\t%#08x\n", je32_to_cpu(node.i.mtime)); in __jffs2_dbg_dump_node() 822 printk(JFFS2_DBG "ctime:\t%#08x\n", je32_to_cpu(node.i.ctime)); in __jffs2_dbg_dump_node() 823 printk(JFFS2_DBG "offset:\t%#08x\n", je32_to_cpu(node.i.offset)); in __jffs2_dbg_dump_node() [all …]
|
D | gc.c | 635 if (je32_to_cpu(node->u.hdr_crc) != crc) { in jffs2_garbage_collect_pristine() 637 ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc); in jffs2_garbage_collect_pristine() 644 if (je32_to_cpu(node->i.node_crc) != crc) { in jffs2_garbage_collect_pristine() 646 ref_offset(raw), je32_to_cpu(node->i.node_crc), in jffs2_garbage_collect_pristine() 651 if (je32_to_cpu(node->i.dsize)) { in jffs2_garbage_collect_pristine() 652 crc = crc32(0, node->i.data, je32_to_cpu(node->i.csize)); in jffs2_garbage_collect_pristine() 653 if (je32_to_cpu(node->i.data_crc) != crc) { in jffs2_garbage_collect_pristine() 656 je32_to_cpu(node->i.data_crc), crc); in jffs2_garbage_collect_pristine() 664 if (je32_to_cpu(node->d.node_crc) != crc) { in jffs2_garbage_collect_pristine() 667 je32_to_cpu(node->d.node_crc), crc); in jffs2_garbage_collect_pristine() [all …]
|
D | xattr.c | 155 if (crc != je32_to_cpu(rx.node_crc)) { in do_verify_xattr_datum() 157 offset, je32_to_cpu(rx.hdr_crc), crc); in do_verify_xattr_datum() 164 || je32_to_cpu(rx.totlen) != totlen in do_verify_xattr_datum() 165 || je32_to_cpu(rx.xid) != xd->xid in do_verify_xattr_datum() 166 || je32_to_cpu(rx.version) != xd->version) { in do_verify_xattr_datum() 171 je32_to_cpu(rx.totlen), totlen, in do_verify_xattr_datum() 172 je32_to_cpu(rx.xid), xd->xid, in do_verify_xattr_datum() 173 je32_to_cpu(rx.version), xd->version); in do_verify_xattr_datum() 180 xd->data_crc = je32_to_cpu(rx.data_crc); in do_verify_xattr_datum() 467 if (crc != je32_to_cpu(rr.node_crc)) { in verify_xattr_ref() [all …]
|
D | fs.c | 150 inode->i_atime = ITIME(je32_to_cpu(ri->atime)); in jffs2_do_setattr() 151 inode->i_ctime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_do_setattr() 152 inode->i_mtime = ITIME(je32_to_cpu(ri->mtime)); in jffs2_do_setattr() 284 inode->i_size = je32_to_cpu(latest_node.isize); in jffs2_iget() 285 inode->i_atime = ITIME(je32_to_cpu(latest_node.atime)); in jffs2_iget() 286 inode->i_mtime = ITIME(je32_to_cpu(latest_node.mtime)); in jffs2_iget() 287 inode->i_ctime = ITIME(je32_to_cpu(latest_node.ctime)); in jffs2_iget() 344 rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); in jffs2_iget() 474 inode->i_ino = je32_to_cpu(ri->ino); in jffs2_new_inode()
|
D | acl.c | 68 ver = je32_to_cpu(header->a_version); in jffs2_acl_from_medium() 105 je32_to_cpu(entry->e_id)); in jffs2_acl_from_medium() 113 je32_to_cpu(entry->e_id)); in jffs2_acl_from_medium()
|
D | nodelist.h | 44 #define je32_to_cpu(x) ((x).v32) macro 55 #define je32_to_cpu(x) (be32_to_cpu(x.v32)) macro 66 #define je32_to_cpu(x) (le32_to_cpu(x.v32)) macro 144 #define dirent_node_state(rd) ( (je32_to_cpu((rd)->ino)?REF_PRISTINE:REF_NORMAL) )
|
D | dir.c | 207 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_create() 425 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime)); in jffs2_symlink() 569 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime)); in jffs2_mkdir() 746 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime)); in jffs2_mknod()
|
D | nodemgmt.c | 769 if (PAD(je32_to_cpu(n.totlen)) != PAD(freed_len)) { in jffs2_mark_node_obsolete() 771 je32_to_cpu(n.totlen), freed_len); in jffs2_mark_node_obsolete()
|
D | file.c | 320 inode->i_ctime = inode->i_mtime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_write_end()
|
D | wbuf.c | 202 frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset)); in jffs2_incore_replace_raw()
|