Home
last modified time | relevance | path

Searched refs:je16_to_cpu (Results 1 – 11 of 11) sorted by relevance

/linux-4.19.296/fs/jffs2/
Dscan.c350 + rx->name_len + 1 + je16_to_cpu(rx->value_len)); in jffs2_scan_xattr_node()
372 xd->value_len = je16_to_cpu(rx->value_len); in jffs2_scan_xattr_node()
720 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock()
728 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock()
735 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
743 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
748 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock()
756 crcnode.nodetype = cpu_to_je16( je16_to_cpu(node->nodetype) | JFFS2_NODE_ACCURATE); in jffs2_scan_eraseblock()
763 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
764 je16_to_cpu(node->nodetype), in jffs2_scan_eraseblock()
[all …]
Dreadinode.c895 je16_to_cpu(un->magic), je16_to_cpu(un->nodetype), in read_unknown()
901 un->nodetype = cpu_to_je16(JFFS2_NODE_ACCURATE | je16_to_cpu(un->nodetype)); in read_unknown()
903 switch(je16_to_cpu(un->nodetype) & JFFS2_COMPAT_MASK) { in read_unknown()
907 je16_to_cpu(un->nodetype), ref_offset(ref)); in read_unknown()
914 je16_to_cpu(un->nodetype), ref_offset(ref)); in read_unknown()
920 je16_to_cpu(un->nodetype), ref_offset(ref)); in read_unknown()
925 je16_to_cpu(un->nodetype), ref_offset(ref)); in read_unknown()
1062 ref_offset(ref), je16_to_cpu(node->u.magic), in jffs2_get_inode_nodes()
1063 je16_to_cpu(node->u.nodetype), in jffs2_get_inode_nodes()
1070 if (je16_to_cpu(node->u.magic) != JFFS2_MAGIC_BITMASK) { in jffs2_get_inode_nodes()
[all …]
Ddebug.c790 printk(JFFS2_DBG "magic:\t%#04x\n", je16_to_cpu(node.u.magic)); in __jffs2_dbg_dump_node()
791 printk(JFFS2_DBG "nodetype:\t%#04x\n", je16_to_cpu(node.u.nodetype)); in __jffs2_dbg_dump_node()
801 if (je16_to_cpu(node.u.magic) != JFFS2_MAGIC_BITMASK && in __jffs2_dbg_dump_node()
802 je16_to_cpu(node.u.magic) != JFFS2_OLD_MAGIC_BITMASK) in __jffs2_dbg_dump_node()
805 je16_to_cpu(node.u.magic), JFFS2_MAGIC_BITMASK); in __jffs2_dbg_dump_node()
809 switch(je16_to_cpu(node.u.nodetype)) { in __jffs2_dbg_dump_node()
817 printk(JFFS2_DBG "uid:\t%#04x\n", je16_to_cpu(node.i.uid)); in __jffs2_dbg_dump_node()
818 printk(JFFS2_DBG "gid:\t%#04x\n", je16_to_cpu(node.i.gid)); in __jffs2_dbg_dump_node()
828 printk(JFFS2_DBG "flags:\t%#04x\n", je16_to_cpu(node.i.flags)); in __jffs2_dbg_dump_node()
Dfs.c153 i_uid_write(inode, je16_to_cpu(ri->uid)); in jffs2_do_setattr()
154 i_gid_write(inode, je16_to_cpu(ri->gid)); in jffs2_do_setattr()
280 i_uid_write(inode, je16_to_cpu(latest_node.uid)); in jffs2_iget()
281 i_gid_write(inode, je16_to_cpu(latest_node.gid)); in jffs2_iget()
340 rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); in jffs2_iget()
473 i_gid_write(inode, je16_to_cpu(ri->gid)); in jffs2_new_inode()
474 i_uid_write(inode, je16_to_cpu(ri->uid)); in jffs2_new_inode()
Dsummary.c71 switch (je16_to_cpu(item->u.nodetype)) { in jffs2_sum_add_mem()
99 je16_to_cpu(item->u.nodetype)); in jffs2_sum_add_mem()
263 switch (je16_to_cpu(node->u.nodetype)) { in jffs2_sum_add_kvec()
407 switch (je16_to_cpu(((struct jffs2_sum_unknown_flash *)sp)->nodetype)) { in jffs2_sum_process_sum_data()
550 uint16_t nodetype = je16_to_cpu(((struct jffs2_sum_unknown_flash *)sp)->nodetype); in jffs2_sum_process_sum_data()
721 switch (je16_to_cpu(temp->u.nodetype)) { in jffs2_sum_write_data()
781 if ((je16_to_cpu(temp->u.nodetype) & JFFS2_COMPAT_MASK) in jffs2_sum_write_data()
784 je16_to_cpu(temp->u.nodetype)); in jffs2_sum_write_data()
Dxattr.c161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
162 if (je16_to_cpu(rx.magic) != JFFS2_MAGIC_BITMASK in do_verify_xattr_datum()
163 || je16_to_cpu(rx.nodetype) != JFFS2_NODETYPE_XATTR in do_verify_xattr_datum()
169 offset, je16_to_cpu(rx.magic), JFFS2_MAGIC_BITMASK, in do_verify_xattr_datum()
170 je16_to_cpu(rx.nodetype), JFFS2_NODETYPE_XATTR, in do_verify_xattr_datum()
179 xd->value_len = je16_to_cpu(rx.value_len); in do_verify_xattr_datum()
472 if (je16_to_cpu(rr.magic) != JFFS2_MAGIC_BITMASK in verify_xattr_ref()
473 || je16_to_cpu(rr.nodetype) != JFFS2_NODETYPE_XREF in verify_xattr_ref()
477 offset, je16_to_cpu(rr.magic), JFFS2_MAGIC_BITMASK, in verify_xattr_ref()
478 je16_to_cpu(rr.nodetype), JFFS2_NODETYPE_XREF, in verify_xattr_ref()
Dacl.c89 acl->a_entries[i].e_tag = je16_to_cpu(entry->e_tag); in jffs2_acl_from_medium()
90 acl->a_entries[i].e_perm = je16_to_cpu(entry->e_perm); in jffs2_acl_from_medium()
Dnodelist.h43 #define je16_to_cpu(x) ((x).v16) macro
54 #define je16_to_cpu(x) (be16_to_cpu(x.v16)) macro
65 #define je16_to_cpu(x) (le16_to_cpu(x.v16)) macro
Dwbuf.c191 node, je16_to_cpu(node->u.magic), je16_to_cpu(node->u.nodetype)); in jffs2_incore_replace_raw()
193 BUG_ON(je16_to_cpu(node->u.magic) != 0x1985 && in jffs2_incore_replace_raw()
194 je16_to_cpu(node->u.magic) != 0); in jffs2_incore_replace_raw()
196 switch (je16_to_cpu(node->u.nodetype)) { in jffs2_incore_replace_raw()
223 je16_to_cpu(node->u.nodetype)); in jffs2_incore_replace_raw()
Dnodemgmt.c774 if (!(je16_to_cpu(n.nodetype) & JFFS2_NODE_ACCURATE)) { in jffs2_mark_node_obsolete()
776 ref_offset(ref), je16_to_cpu(n.nodetype)); in jffs2_mark_node_obsolete()
780 n.nodetype = cpu_to_je16(je16_to_cpu(n.nodetype) & ~JFFS2_NODE_ACCURATE); in jffs2_mark_node_obsolete()
Dgc.c641 switch(je16_to_cpu(node->u.nodetype)) { in jffs2_garbage_collect_pristine()
691 ref_offset(raw), je16_to_cpu(node->u.nodetype)); in jffs2_garbage_collect_pristine()
960 if (je16_to_cpu(rd->nodetype) != JFFS2_NODETYPE_DIRENT) in jffs2_garbage_collect_deletion_dirent()
1039 if (je16_to_cpu(ri.nodetype) != JFFS2_NODETYPE_INODE) { in jffs2_garbage_collect_hole()
1042 je16_to_cpu(ri.nodetype), JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_hole()