/openbmc/linux/fs/jffs2/ |
H A D | read.c | 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() 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() 100 if (len < je32_to_cpu(ri->dsize)) { in jffs2_read_dnode() 124 if (crc != je32_to_cpu(ri->data_crc)) { in jffs2_read_dnode() 133 je32_to_cpu(ri->csize), readbuf, in jffs2_read_dnode() 134 je32_to_cpu(ri->dsize), decomprbuf); in jffs2_read_dnode() [all …]
|
H A D | scan.c | 347 xid = je32_to_cpu(rx->xid); in jffs2_scan_xattr_node() 348 version = je32_to_cpu(rx->version); in jffs2_scan_xattr_node() 425 ref->ino = je32_to_cpu(rr->ino); in jffs2_scan_xref_node() 426 ref->xid = je32_to_cpu(rr->xid); in jffs2_scan_xref_node() 769 je32_to_cpu(node->totlen), in jffs2_scan_eraseblock() 770 je32_to_cpu(node->hdr_crc), in jffs2_scan_eraseblock() 781 ofs, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock() 1032 je32_to_cpu(ri->ino), je32_to_cpu(ri->version), in jffs2_scan_inode_node() 1033 je32_to_cpu(ri->offset), in jffs2_scan_inode_node() 1034 je32_to_cpu(ri->offset)+je32_to_cpu(ri->dsize)); in jffs2_scan_inode_node() [all …]
|
H A 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() 412 ino = je32_to_cpu(spi->inode); 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() 441 jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen)); in jffs2_sum_process_sum_data() 455 je32_to_cpu(spd->offset), in jffs2_sum_process_sum_data() 478 fd->ino = je32_to_cpu(spd->ino); in jffs2_sum_process_sum_data() 498 jeb->offset + je32_to_cpu(spx->offset) + je32_to_cpu(spx->totlen), in jffs2_sum_process_sum_data() 499 je32_to_cpu(spx->xid), je32_to_cpu(spx->version)); in jffs2_sum_process_sum_data() [all …]
|
H A D | write.c | 84 __func__, je32_to_cpu(ri->totlen), 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() 195 je32_to_cpu(ri->csize), je32_to_cpu(ri->node_crc), in jffs2_write_dnode() 196 je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen)); in jffs2_write_dnode() 218 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 219 je32_to_cpu(rd->name_crc)); in jffs2_write_dirent() 231 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 232 je32_to_cpu(rd->name_crc)); in jffs2_write_dirent() [all …]
|
H A D | readinode.c | 634 fd->version = je32_to_cpu(rd->version); in read_direntry() 635 fd->ino = je32_to_cpu(rd->ino); in read_direntry() 740 csize = je32_to_cpu(rd->csize); in read_dnode() 746 if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) || in read_dnode() 747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode() 840 tn->fn->ofs = je32_to_cpu(rd->offset); in read_dnode() 858 je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize); in read_dnode() 896 je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc)); in read_unknown() 1064 je32_to_cpu(node->u.totlen), in jffs2_get_inode_nodes() 1065 je32_to_cpu(node->u.hdr_crc)); in jffs2_get_inode_nodes() [all …]
|
H A D | debug.c | 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() 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() 824 printk(JFFS2_DBG "csize:\t%#08x\n", je32_to_cpu(node.i.csize)); in __jffs2_dbg_dump_node() 833 if (crc != je32_to_cpu(node.i.node_crc)) { in __jffs2_dbg_dump_node() 842 printk(JFFS2_DBG "pino:\t%#08x\n", je32_to_cpu(node.d.pino)); in __jffs2_dbg_dump_node() 844 printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.d.ino)); in __jffs2_dbg_dump_node() [all …]
|
H A D | gc.c | 635 if (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() 651 if (je32_to_cpu(node->i.dsize)) { 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() 682 je32_to_cpu(node->d.name_crc), crc); in jffs2_garbage_collect_pristine() 964 if (je32_to_cpu(rd->name_crc) != name_crc) in jffs2_garbage_collect_deletion_dirent() 1048 je32_to_cpu(ri.totlen), sizeof(ri)); in jffs2_garbage_collect_hole() 1052 if (crc != je32_to_cpu(ri.node_crc)) { in jffs2_garbage_collect_hole() [all …]
|
H A D | fs.c | 150 inode->i_atime = ITIME(je32_to_cpu(ri->atime)); in jffs2_do_setattr() 151 inode_set_ctime_to_ts(inode, 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_set_ctime_to_ts(inode, 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()
|
H A 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() 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() 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() 482 ref->ino = je32_to_cpu(rr.ino); in verify_xattr_ref() 483 ref->xid = je32_to_cpu(rr.xid); in verify_xattr_ref() [all …]
|
H A 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()
|
H A 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) )
|
H A D | dir.c | 208 ITIME(je32_to_cpu(ri->ctime))); in jffs2_create() 427 ITIME(je32_to_cpu(rd->mctime))); in jffs2_symlink() 572 ITIME(je32_to_cpu(rd->mctime))); in jffs2_mkdir() 750 ITIME(je32_to_cpu(rd->mctime))); in jffs2_mknod()
|
H A 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()
|
H A D | file.c | 321 ITIME(je32_to_cpu(ri->ctime))); in jffs2_write_end()
|
H A D | wbuf.c | 202 frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset)); in jffs2_incore_replace_raw()
|