/external/selinux/libsepol/src/ |
D | write.c | 68 buf[0] = cpu_to_le32(MAPSIZE); in ebitmap_write() 69 buf[1] = cpu_to_le32(e->highbit); in ebitmap_write() 74 buf[2] = cpu_to_le32(count); in ebitmap_write() 81 bit = cpu_to_le32(n->startbit); in ebitmap_write() 129 buf32[items++] = cpu_to_le32(val); in avtab_write_item() 131 buf32[items++] = cpu_to_le32(val); in avtab_write_item() 133 buf32[items++] = cpu_to_le32(val); in avtab_write_item() 169 buf32[items++] = cpu_to_le32(val); in avtab_write_item() 194 cpu_to_le32(node->datum.data); in avtab_write_item() 200 buf32[items++] = cpu_to_le32(cur->datum.data); in avtab_write_item() [all …]
|
D | module.c | 910 buf[0] = cpu_to_le32(SEPOL_MODULE_PACKAGE_MAGIC); in sepol_module_package_write() 911 buf[1] = cpu_to_le32(p->version); in sepol_module_package_write() 912 buf[2] = cpu_to_le32(nsec); in sepol_module_package_write() 918 buf[0] = cpu_to_le32(offsets[0]); in sepol_module_package_write() 923 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write() 930 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write() 936 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write() 942 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write() 955 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_FC); in sepol_module_package_write() 962 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_SEUSER); in sepol_module_package_write() [all …]
|
D | private.h | 26 #define cpu_to_le32(x) (x) macro 33 #define cpu_to_le32(x) bswap_32(x) macro
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format_main.c | 147 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in add_default_options() 151 c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); in add_default_options() 153 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options() 154 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options() 155 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options() 156 c.feature |= cpu_to_le32(F2FS_FEATURE_VERITY); in add_default_options() 161 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in add_default_options() 164 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options() 165 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options() 166 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options() [all …]
|
D | f2fs_format.c | 261 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block() 319 cpu_to_le32(c.devices[i].total_segments); in f2fs_prepare_super_block() 414 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block() 490 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { in f2fs_prepare_super_block() 494 if ((!(c.feature & cpu_to_le32(F2FS_FEATURE_RO)) && in f2fs_prepare_super_block() 514 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in f2fs_prepare_super_block() 527 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block() 532 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) in f2fs_prepare_super_block() 535 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block() 546 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { in f2fs_prepare_super_block() [all …]
|
/external/f2fs-tools/fsck/ |
D | dir.c | 212 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() 499 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block() 500 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block() [all …]
|
D | quotaio_v2.c | 84 d->dqb_id = cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk() 128 d->dqi_bgrace = cpu_to_le32(m->dqi_bgrace); in v2_mem2diskdqinfo() 129 d->dqi_igrace = cpu_to_le32(m->dqi_igrace); in v2_mem2diskdqinfo() 130 d->dqi_flags = cpu_to_le32(m->u.v2_mdqi.dqi_flags & V2_DQF_MASK); in v2_mem2diskdqinfo() 131 d->dqi_blocks = cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_blocks); in v2_mem2diskdqinfo() 133 cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_free_blk); in v2_mem2diskdqinfo() 135 cpu_to_le32(m->u.v2_mdqi.dqi_qtree.dqi_free_entry); in v2_mem2diskdqinfo() 246 ddqheader.dqh_magic = cpu_to_le32(file_magics[h->qh_type]); in v2_new_io() 247 ddqheader.dqh_version = cpu_to_le32(V2_VERSION); in v2_new_io()
|
D | mount.c | 139 if (hdr->a_version != cpu_to_le32(F2FS_ACL_VERSION)) { in print_acl() 292 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in print_inode_info() 294 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in print_inode_info() 296 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in print_inode_info() 298 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in print_inode_info() 300 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) { in print_inode_info() 304 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) { in print_inode_info() 546 if (f & cpu_to_le32(F2FS_FEATURE_ENCRYPT)) { in print_sb_state() 549 if (f & cpu_to_le32(F2FS_FEATURE_VERITY)) { in print_sb_state() 552 if (f & cpu_to_le32(F2FS_FEATURE_BLKZONED)) { in print_sb_state() [all …]
|
D | quotaio_tree.c | 126 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk() 127 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk() 162 dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0); in remove_free_dqentry() 178 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry); in insert_free_dqentry() 179 dh->dqdh_prev_free = cpu_to_le32(0); in insert_free_dqentry() 184 cpu_to_le32(blk); in insert_free_dqentry() 292 cpu_to_le32(newblk); in do_insert_tree() 427 ref[get_index(dquot->dq_id, depth)] = cpu_to_le32(0); in remove_tree()
|
D | node.h | 74 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()
|
D | segment.c | 60 if (sbi->raw_super->feature & cpu_to_le32(F2FS_FEATURE_RO)) { in reserve_new_block() 126 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_data_block() 484 inode->i.i_ext.fofs = cpu_to_le32(ext->fofs); in update_extent_info() 485 inode->i.i_ext.blk_addr = cpu_to_le32(ext->blk); in update_extent_info() 486 inode->i.i_ext.len = cpu_to_le32(ext->len); in update_extent_info() 611 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_build_file() 639 node_blk->i.i_flags = cpu_to_le32(F2FS_COMPR_FL); in f2fs_build_file() 713 if (!c.compress.enabled || (c.feature & cpu_to_le32(F2FS_FEATURE_RO))) in f2fs_build_file()
|
D | node.c | 97 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr() 126 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block() 128 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block() 140 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_node_block()
|
D | xattr.c | 63 header->h_magic = cpu_to_le32(F2FS_XATTR_MAGIC); in read_all_xattrs() 64 header->h_refcount = cpu_to_le32(1); in read_all_xattrs() 118 inode->i.i_xattr_nid = cpu_to_le32(new_nid); in write_all_xattrs()
|
D | fsck.c | 155 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() 280 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_data_blk() 334 sum_entry->nid = cpu_to_le32(parent_nid); in is_valid_ssa_data_blk() 755 bool compr_supported = c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION); in fsck_chk_inode_blk() 779 node_blk->i.i_flags &= ~cpu_to_le32(F2FS_COMPR_FL); in fsck_chk_inode_blk() 821 cpu_to_le32(i_links + 1); in fsck_chk_inode_blk() 855 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in fsck_chk_inode_blk() 884 cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) && in fsck_chk_inode_blk() 907 if ((node_blk->i.i_flags & cpu_to_le32(F2FS_CASEFOLD_FL)) && in fsck_chk_inode_blk() [all …]
|
D | compress.c | 65 cc->cbuf->clen = cpu_to_le32(cc->clen); in lzo_compress() 93 cc->cbuf->clen = cpu_to_le32(cc->clen); in lz4_compress()
|
/external/exfatprogs/mkfs/ |
D | mkfs.c | 59 pbsx->fat_offset = cpu_to_le32(finfo.fat_byte_off / bd->sector_size); in exfat_setup_boot_sector() 60 pbsx->fat_length = cpu_to_le32(finfo.fat_byte_len / bd->sector_size); in exfat_setup_boot_sector() 61 pbsx->clu_offset = cpu_to_le32(finfo.clu_byte_off / bd->sector_size); in exfat_setup_boot_sector() 62 pbsx->clu_count = cpu_to_le32(finfo.total_clu_cnt); in exfat_setup_boot_sector() 63 pbsx->root_cluster = cpu_to_le32(finfo.root_start_clu); in exfat_setup_boot_sector() 64 pbsx->vol_serial = cpu_to_le32(finfo.volume_serial); in exfat_setup_boot_sector() 248 ret = write_fat_entry(fd, cpu_to_le32(clu + 1), clu); in write_fat_entries() 253 ret = write_fat_entry(fd, cpu_to_le32(EXFAT_EOF_CLUSTER), clu); in write_fat_entries() 266 ret = write_fat_entry(bd->dev_fd, cpu_to_le32(0xfffffff8), 0); in exfat_create_fat_table() 273 ret = write_fat_entry(bd->dev_fd, cpu_to_le32(0xffffffff), 1); in exfat_create_fat_table() [all …]
|
/external/exfatprogs/include/ |
D | exfat_ondisk.h | 18 #define cpu_to_le32(x) \ macro 21 #define cpu_to_le64(x) (cpu_to_le32((uint64_t)(x)) << 32 | \ 22 cpu_to_le32((uint64_t)(x) >> 32)) 25 #define cpu_to_le32(x) (x) macro 30 #define le32_to_cpu(x) ((uint32_t)cpu_to_le32(x))
|
/external/f2fs-tools/include/ |
D | f2fs_fs.h | 212 #define cpu_to_le32(x) ((uint32_t)(x)) macro 220 #define cpu_to_le32(x) bswap_32(x) macro 582 #define set_sb_le32(member, val) (sb->member = cpu_to_le32(val)) 623 #define set_cp_le32(member, val) (cp->member = cpu_to_le32(val)) 1503 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in get_inline_xattr_addrs() 1700 raw_node->i.i_links = cpu_to_le32(1); in f2fs_init_qf_inode() 1701 raw_node->i.i_uid = cpu_to_le32(c.root_uid); in f2fs_init_qf_inode() 1702 raw_node->i.i_gid = cpu_to_le32(c.root_gid); in f2fs_init_qf_inode() 1707 raw_node->i.i_atime = cpu_to_le32(mtime); in f2fs_init_qf_inode() 1709 raw_node->i.i_ctime = cpu_to_le32(mtime); in f2fs_init_qf_inode() [all …]
|
/external/erofs-utils/mkfs/ |
D | main.c | 444 .magic = cpu_to_le32(EROFS_SUPER_MAGIC_V1), in erofs_mkfs_update_super_block() 448 .build_time_nsec = cpu_to_le32(sbi.build_time_nsec), in erofs_mkfs_update_super_block() 452 .feature_incompat = cpu_to_le32(sbi.feature_incompat), in erofs_mkfs_update_super_block() 453 .feature_compat = cpu_to_le32(sbi.feature_compat & in erofs_mkfs_update_super_block() 463 sb.blocks = cpu_to_le32(*blocks); in erofs_mkfs_update_super_block() 511 sb->feature_compat = cpu_to_le32(le32_to_cpu(sb->feature_compat) | in erofs_mkfs_superblock_csum_set() 516 sb->checksum = cpu_to_le32(crc); in erofs_mkfs_superblock_csum_set()
|
/external/erofs-utils/lib/ |
D | inode.c | 441 u.dic.i_size = cpu_to_le32((u32)inode->i_size); in erofs_bh_flush_write_inode() 443 u.dic.i_ino = cpu_to_le32(inode->i_ino[0]); in erofs_bh_flush_write_inode() 453 u.dic.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() 466 cpu_to_le32(inode->u.i_blkaddr); in erofs_bh_flush_write_inode() 474 u.die.i_nlink = cpu_to_le32(inode->i_nlink); in erofs_bh_flush_write_inode() 477 u.die.i_ino = cpu_to_le32(inode->i_ino[0]); in erofs_bh_flush_write_inode() 479 u.die.i_uid = cpu_to_le32(inode->i_uid); in erofs_bh_flush_write_inode() 480 u.die.i_gid = cpu_to_le32(inode->i_gid); in erofs_bh_flush_write_inode() 483 u.die.i_mtime_nsec = cpu_to_le32(inode->i_mtime_nsec); in erofs_bh_flush_write_inode() [all …]
|
D | compress.c | 85 di.di_u.blkaddr = cpu_to_le32(ctx->blkaddr); in vle_write_indexes() 124 di.di_u.blkaddr = cpu_to_le32(ctx->blkaddr); in vle_write_indexes() 444 *(__le32 *)(out + destsize * vcnt - 4) = cpu_to_le32(*blkaddr_ret); in write_compacted_indexes() 781 .dict_size = cpu_to_le32(cfg.c_dict_size), in z_erofs_build_compr_cfgs()
|
/external/fsverity-utils/common/ |
D | common_defs.h | 82 # define cpu_to_le32(v) ((__force __le32)(u32)(v)) macro 89 # define cpu_to_le32(v) ((__force __le32)__builtin_bswap32(v)) macro
|
/external/f2fs-tools/lib/ |
D | libf2fs.c | 468 f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); in __f2fs_dentry_hash() 593 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in write_inode() 595 cpu_to_le32(f2fs_inode_chksum(inode)); in write_inode() 1287 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in calc_extra_isize() 1289 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in calc_extra_isize() 1291 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in calc_extra_isize() 1293 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) in calc_extra_isize() 1295 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) in calc_extra_isize()
|
/external/erofs-utils/include/erofs/ |
D | defs.h | 70 #define cpu_to_le32(x) ((__u32)(x)) macro 79 #define cpu_to_le32(x) (__builtin_bswap32(x)) macro
|
/external/e2fsprogs/lib/ext2fs/ |
D | jfs_compat.h | 22 #define cpu_to_le32(x) ext2fs_cpu_to_le32(x) macro
|