Home
last modified time | relevance | path

Searched refs:cpu_to_le32 (Results 1 – 25 of 27) sorted by relevance

12

/external/selinux/libsepol/src/
Dwrite.c69 buf[0] = cpu_to_le32(MAPSIZE); in ebitmap_write()
70 buf[1] = cpu_to_le32(e->highbit); in ebitmap_write()
75 buf[2] = cpu_to_le32(count); in ebitmap_write()
82 bit = cpu_to_le32(n->startbit); in ebitmap_write()
130 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
132 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
134 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
170 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
195 cpu_to_le32(node->datum.data); in avtab_write_item()
201 buf32[items++] = cpu_to_le32(cur->datum.data); in avtab_write_item()
[all …]
Dmodule.c905 buf[0] = cpu_to_le32(SEPOL_MODULE_PACKAGE_MAGIC); in sepol_module_package_write()
906 buf[1] = cpu_to_le32(p->version); in sepol_module_package_write()
907 buf[2] = cpu_to_le32(nsec); in sepol_module_package_write()
913 buf[0] = cpu_to_le32(offsets[0]); in sepol_module_package_write()
918 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
925 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
931 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
937 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
950 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_FC); in sepol_module_package_write()
957 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_SEUSER); in sepol_module_package_write()
[all …]
Dprivate.h27 #define cpu_to_le32(x) (x) macro
34 #define cpu_to_le32(x) bswap_32(x) macro
/external/f2fs-tools/mkfs/
Df2fs_format.c253 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block()
311 cpu_to_le32(c.devices[i].total_segments); in f2fs_prepare_super_block()
406 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block()
466 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { in f2fs_prepare_super_block()
470 if ((!(c.feature & cpu_to_le32(F2FS_FEATURE_RO)) && in f2fs_prepare_super_block()
491 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in f2fs_prepare_super_block()
501 if (c.feature & cpu_to_le32(F2FS_FEATURE_QUOTA_INO)) { in f2fs_prepare_super_block()
503 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_prepare_super_block()
510 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block()
515 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) in f2fs_prepare_super_block()
[all …]
Df2fs_format_main.c113 c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); in add_default_options()
114 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options()
115 c.feature |= cpu_to_le32(F2FS_FEATURE_VERITY); in add_default_options()
122 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in add_default_options()
125 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options()
126 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options()
249 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in f2fs_parse_options()
260 if (!(c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR))) { in f2fs_parse_options()
261 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) { in f2fs_parse_options()
266 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) { in f2fs_parse_options()
[all …]
/external/f2fs-tools/fsck/
Ddir.c212 de->ino = cpu_to_le32(ino); in f2fs_update_dentry()
301 if (parent->i.i_current_depth != cpu_to_le32(current_depth)) { in f2fs_add_link()
302 parent->i.i_current_depth = cpu_to_le32(current_depth); in f2fs_add_link()
309 parent->i.i_links = cpu_to_le32(links + 1); in f2fs_add_link()
352 dent_blk->dentry[0].ino = cpu_to_le32(ino); in make_empty_dir()
358 dent_blk->dentry[1].ino = cpu_to_le32(pino); in make_empty_dir()
373 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in make_empty_dir()
409 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in page_symlink()
491 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
492 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block()
[all …]
Dquotaio_v2.c85 d->dqb_id = cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk()
129 d->dqi_bgrace = cpu_to_le32(m->dqi_bgrace); in v2_mem2diskdqinfo()
130 d->dqi_igrace = cpu_to_le32(m->dqi_igrace); in v2_mem2diskdqinfo()
131 d->dqi_flags = cpu_to_le32(m->u.v2_mdqi.dqi_flags & V2_DQF_MASK); in v2_mem2diskdqinfo()
132 d->dqi_blocks = cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_blocks); in v2_mem2diskdqinfo()
134 cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_free_blk); in v2_mem2diskdqinfo()
136 cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_free_entry); in v2_mem2diskdqinfo()
247 ddqheader.dqh_magic = cpu_to_le32(file_magics[h->qh_type]); in v2_new_io()
248 ddqheader.dqh_version = cpu_to_le32(V2_VERSION); in v2_new_io()
Dmount.c138 if (hdr->a_version != cpu_to_le32(F2FS_ACL_VERSION)) { in print_acl()
290 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in print_inode_info()
292 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in print_inode_info()
294 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in print_inode_info()
296 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in print_inode_info()
298 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) { in print_inode_info()
302 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) { in print_inode_info()
532 if (f & cpu_to_le32(F2FS_FEATURE_ENCRYPT)) { in print_sb_state()
535 if (f & cpu_to_le32(F2FS_FEATURE_VERITY)) { in print_sb_state()
538 if (f & cpu_to_le32(F2FS_FEATURE_BLKZONED)) { in print_sb_state()
[all …]
Dnode.h74 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid()
76 rn->in.nid[off] = cpu_to_le32(nid); in set_nid()
172 rn->footer.flag = cpu_to_le32(flag); in set_cold_node()
Dquotaio_tree.c127 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
128 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
163 dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0); in remove_free_dqentry()
179 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry); in insert_free_dqentry()
180 dh->dqdh_prev_free = cpu_to_le32(0); in insert_free_dqentry()
185 cpu_to_le32(blk); in insert_free_dqentry()
293 cpu_to_le32(newblk); in do_insert_tree()
428 ref[get_index(dquot->dq_id, depth)] = cpu_to_le32(0); in remove_tree()
Dnode.c50 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr()
79 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
81 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block()
93 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_node_block()
Dxattr.c62 header->h_magic = cpu_to_le32(F2FS_XATTR_MAGIC); in read_all_xattrs()
63 header->h_refcount = cpu_to_le32(1); in read_all_xattrs()
109 inode->i.i_xattr_nid = cpu_to_le32(new_nid); in write_all_xattrs()
Dfsck.c155 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_node_blk()
202 sum_entry->nid = cpu_to_le32(nid); in is_valid_ssa_node_blk()
276 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_data_blk()
330 sum_entry->nid = cpu_to_le32(parent_nid); in is_valid_ssa_data_blk()
715 cpu_to_le32(i_links + 1); in fsck_chk_inode_blk()
749 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in fsck_chk_inode_blk()
778 cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) && in fsck_chk_inode_blk()
801 if ((node_blk->i.i_flags & cpu_to_le32(F2FS_CASEFOLD_FL)) && in fsck_chk_inode_blk()
803 !(c.feature & cpu_to_le32(F2FS_FEATURE_CASEFOLD)))) { in fsck_chk_inode_blk()
807 node_blk->i.i_flags &= ~cpu_to_le32(F2FS_CASEFOLD_FL); in fsck_chk_inode_blk()
[all …]
Dcompress.c68 cc->cbuf->clen = cpu_to_le32(cc->clen); in lzo_compress()
95 cc->cbuf->clen = cpu_to_le32(cc->clen); in lz4_compress()
Dmain.c363 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in f2fs_parse_options()
862 if (c.feature & cpu_to_le32(F2FS_FEATURE_QUOTA_INO)) { in do_fsck()
918 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) { in do_defrag()
992 & cpu_to_le32(F2FS_FEATURE_COMPRESSION))) { in init_compr()
Dsegment.c113 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_data_block()
496 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_build_file()
524 node_blk->i.i_flags = cpu_to_le32(F2FS_COMPR_FL); in f2fs_build_file()
Df2fs.h572 sum->nid = cpu_to_le32(nid); in set_summary()
/external/erofs-utils/mkfs/
Dmain.c291 .magic = cpu_to_le32(EROFS_SUPER_MAGIC_V1), in erofs_mkfs_update_super_block()
295 .build_time_nsec = cpu_to_le32(sbi.build_time_nsec), in erofs_mkfs_update_super_block()
299 .feature_incompat = cpu_to_le32(sbi.feature_incompat), in erofs_mkfs_update_super_block()
300 .feature_compat = cpu_to_le32(sbi.feature_compat & in erofs_mkfs_update_super_block()
308 sb.blocks = cpu_to_le32(*blocks); in erofs_mkfs_update_super_block()
364 sb->feature_compat = cpu_to_le32(le32_to_cpu(sb->feature_compat) | in erofs_mkfs_superblock_csum_set()
369 sb->checksum = cpu_to_le32(crc); in erofs_mkfs_superblock_csum_set()
/external/erofs-utils/lib/
Dinode.c408 u.dic.i_size = cpu_to_le32((u32)inode->i_size); in erofs_bh_flush_write_inode()
410 u.dic.i_ino = cpu_to_le32(inode->i_ino[0]); in erofs_bh_flush_write_inode()
420 u.dic.i_u.rdev = cpu_to_le32(inode->u.i_rdev); in erofs_bh_flush_write_inode()
426 cpu_to_le32(inode->u.i_blocks); in erofs_bh_flush_write_inode()
429 cpu_to_le32(inode->u.i_blkaddr); in erofs_bh_flush_write_inode()
437 u.die.i_nlink = cpu_to_le32(inode->i_nlink); in erofs_bh_flush_write_inode()
440 u.die.i_ino = cpu_to_le32(inode->i_ino[0]); in erofs_bh_flush_write_inode()
446 u.die.i_ctime_nsec = cpu_to_le32(inode->i_ctime_nsec); in erofs_bh_flush_write_inode()
453 u.die.i_u.rdev = cpu_to_le32(inode->u.i_rdev); in erofs_bh_flush_write_inode()
459 cpu_to_le32(inode->u.i_blocks); in erofs_bh_flush_write_inode()
[all …]
Dcompress.c82 di.di_u.blkaddr = cpu_to_le32(ctx->blkaddr); in vle_write_indexes()
100 di.di_u.blkaddr = cpu_to_le32(ctx->blkaddr); in vle_write_indexes()
302 *(__le32 *)(out + destsize * vcnt - 4) = cpu_to_le32(*blkaddr_ret); in write_compacted_indexes()
/external/fsverity-utils/common/
Dcommon_defs.h82 # define cpu_to_le32(v) ((__force __le32)(u32)(v)) macro
89 # define cpu_to_le32(v) ((__force __le32)__builtin_bswap32(v)) macro
/external/erofs-utils/include/erofs/
Ddefs.h68 #define cpu_to_le32(x) ((__u32)(x)) macro
77 #define cpu_to_le32(x) (__builtin_bswap32(x)) macro
/external/f2fs-tools/lib/
Dlibf2fs.c473 f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); in __f2fs_dentry_hash()
591 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in write_inode()
593 cpu_to_le32(f2fs_inode_chksum(inode)); in write_inode()
1264 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in calc_extra_isize()
1266 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in calc_extra_isize()
1268 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in calc_extra_isize()
1270 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) in calc_extra_isize()
1272 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) in calc_extra_isize()
/external/f2fs-tools/include/
Df2fs_fs.h191 #define cpu_to_le32(x) ((__u32)(x)) macro
198 #define cpu_to_le32(x) bswap_32(x) macro
554 #define set_sb_le32(member, val) (sb->member = cpu_to_le32(val))
595 #define set_cp_le32(member, val) (cp->member = cpu_to_le32(val))
1369 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in get_inline_xattr_addrs()
1589 c.feature |= cpu_to_le32(mask); in set_feature_bits()
/external/kernel-headers/original/uapi/linux/
Dmsdos_fs.h25 #define CT_LE_L(v) cpu_to_le32(v)

12