Home
last modified time | relevance | path

Searched refs:cpu_to_je16 (Results 1 – 14 of 14) sorted by relevance

/fs/jffs2/
Dfile.c176 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_begin()
177 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_begin()
184 ri.uid = cpu_to_je16(i_uid_read(inode)); in jffs2_write_begin()
185 ri.gid = cpu_to_je16(i_gid_read(inode)); in jffs2_write_begin()
289 ri->uid = cpu_to_je16(i_uid_read(inode)); in jffs2_write_end()
290 ri->gid = cpu_to_je16(i_gid_read(inode)); in jffs2_write_end()
Dwrite.c44 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode()
45 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_new_inode()
374 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_inode_range()
375 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_inode_range()
509 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_create()
510 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_do_create()
572 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_unlink()
573 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_do_unlink()
689 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_link()
690 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_do_link()
Dgc.c793 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_metadata()
794 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_metadata()
801 ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); in jffs2_garbage_collect_metadata()
802 ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); in jffs2_garbage_collect_metadata()
838 rd.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_dirent()
839 rd.nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_garbage_collect_dirent()
1050 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_hole()
1051 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_hole()
1072 ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); in jffs2_garbage_collect_hole()
1073 ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); in jffs2_garbage_collect_hole()
[all …]
Dfs.c94 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_setattr()
95 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_setattr()
102 ri->uid = cpu_to_je16((ivalid & ATTR_UID)? in jffs2_do_setattr()
104 ri->gid = cpu_to_je16((ivalid & ATTR_GID)? in jffs2_do_setattr()
445 ri->uid = cpu_to_je16(from_kuid(&init_user_ns, current_fsuid())); in jffs2_new_inode()
448 ri->gid = cpu_to_je16(i_gid_read(dir_i)); in jffs2_new_inode()
452 ri->gid = cpu_to_je16(from_kgid(&init_user_ns, current_fsgid())); in jffs2_new_inode()
Dnodelist.h36 #define cpu_to_je16(x) ((jint16_t){x}) macro
47 #define cpu_to_je16(x) ((jint16_t){cpu_to_be16(x)}) macro
58 #define cpu_to_je16(x) ((jint16_t){cpu_to_le16(x)}) macro
315 jdev->old_id = cpu_to_je16(old_encode_dev(rdev)); in jffs2_encode_dev()
Ddir.c412 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_symlink()
413 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_symlink()
556 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_mkdir()
557 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_mkdir()
729 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_mknod()
730 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_mknod()
Dacl.c144 entry->e_tag = cpu_to_je16(acl_e->e_tag); in jffs2_acl_to_medium()
145 entry->e_perm = cpu_to_je16(acl_e->e_perm); in jffs2_acl_to_medium()
Dsummary.c586 crcnode.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_sum_scan_sumnode()
587 crcnode.nodetype = cpu_to_je16(JFFS2_NODETYPE_SUMMARY); in jffs2_sum_scan_sumnode()
709 isum.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_sum_write_data()
710 isum.nodetype = cpu_to_je16(JFFS2_NODETYPE_SUMMARY); in jffs2_sum_write_data()
Dxattr.c303 rx.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in save_xattr_datum()
304 rx.nodetype = cpu_to_je16(JFFS2_NODETYPE_XATTR); in save_xattr_datum()
312 rx.value_len = cpu_to_je16(xd->value_len); in save_xattr_datum()
513 rr.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in save_xattr_ref()
514 rr.nodetype = cpu_to_je16(JFFS2_NODETYPE_XREF); in save_xattr_ref()
Derase.c453 .magic = cpu_to_je16(JFFS2_MAGIC_BITMASK), in jffs2_mark_erased_block()
454 .nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER), in jffs2_mark_erased_block()
Dreadinode.c901 un->nodetype = cpu_to_je16(JFFS2_NODE_ACCURATE | je16_to_cpu(un->nodetype)); in read_unknown()
1214 latest_node->gid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
1215 latest_node->uid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
Dwbuf.c618 padnode->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in __jffs2_flush_wbuf()
619 padnode->nodetype = cpu_to_je16(JFFS2_NODETYPE_PADDING); in __jffs2_flush_wbuf()
Dnodemgmt.c774 n.nodetype = cpu_to_je16(je16_to_cpu(n.nodetype) & ~JFFS2_NODE_ACCURATE); in jffs2_mark_node_obsolete()
Dscan.c749 crcnode.nodetype = cpu_to_je16( je16_to_cpu(node->nodetype) | JFFS2_NODE_ACCURATE); in jffs2_scan_eraseblock()