Home
last modified time | relevance | path

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

12

/third_party/selinux/libsepol/src/
Dwrite.c68 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 …]
Dmodule.c910 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 …]
Dprivate.h26 #define cpu_to_le32(x) (x) macro
33 #define cpu_to_le32(x) bswap_32(x) macro
/third_party/f2fs-tools/mkfs/
Df2fs_format_main.c149 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in add_default_options()
153 c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); in add_default_options()
155 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options()
156 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options()
157 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options()
158 c.feature |= cpu_to_le32(F2FS_FEATURE_VERITY); in add_default_options()
163 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in add_default_options()
166 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options()
167 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options()
168 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options()
[all …]
Df2fs_format.c263 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block()
321 cpu_to_le32(c.devices[i].total_segments); in f2fs_prepare_super_block()
416 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block()
491 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { in f2fs_prepare_super_block()
495 if ((!(c.feature & cpu_to_le32(F2FS_FEATURE_RO)) && in f2fs_prepare_super_block()
516 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in f2fs_prepare_super_block()
529 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block()
534 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) in f2fs_prepare_super_block()
537 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) in f2fs_prepare_super_block()
548 if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { in f2fs_prepare_super_block()
[all …]
/third_party/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()
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 …]
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.c139 if (hdr->a_version != cpu_to_le32(F2FS_ACL_VERSION)) { in print_acl()
291 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in print_inode_info()
293 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in print_inode_info()
295 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in print_inode_info()
297 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in print_inode_info()
299 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) { in print_inode_info()
303 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) { in print_inode_info()
536 if (f & cpu_to_le32(F2FS_FEATURE_ENCRYPT)) { in print_sb_state()
539 if (f & cpu_to_le32(F2FS_FEATURE_VERITY)) { in print_sb_state()
542 if (f & cpu_to_le32(F2FS_FEATURE_BLKZONED)) { in print_sb_state()
[all …]
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.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()
Dnode.c97 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()
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()
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()
700 bool compr_supported = c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION); in fsck_chk_inode_blk()
721 node_blk->i.i_flags &= ~cpu_to_le32(F2FS_COMPR_FL); in fsck_chk_inode_blk()
760 cpu_to_le32(i_links + 1); in fsck_chk_inode_blk()
794 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in fsck_chk_inode_blk()
823 cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) && in fsck_chk_inode_blk()
846 if ((node_blk->i.i_flags & cpu_to_le32(F2FS_CASEFOLD_FL)) && in fsck_chk_inode_blk()
[all …]
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()
Dsegment.c113 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_data_block()
471 inode->i.i_ext.fofs = cpu_to_le32(ext->fofs); in update_extent_info()
472 inode->i.i_ext.blk_addr = cpu_to_le32(ext->blk); in update_extent_info()
473 inode->i.i_ext.len = cpu_to_le32(ext->len); in update_extent_info()
598 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_build_file()
626 node_blk->i.i_flags = cpu_to_le32(F2FS_COMPR_FL); in f2fs_build_file()
700 if (!c.compress.enabled || (c.feature & cpu_to_le32(F2FS_FEATURE_RO))) in f2fs_build_file()
Dcompress.c68 cc->cbuf->clen = cpu_to_le32(cc->clen); in lzo_compress()
96 cc->cbuf->clen = cpu_to_le32(cc->clen); in lz4_compress()
/third_party/exfatprogs/mkfs/
Dmkfs.c59 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()
259 ret = write_fat_entry(fd, cpu_to_le32(clu + 1), clu); in write_fat_entries()
264 ret = write_fat_entry(fd, cpu_to_le32(EXFAT_EOF_CLUSTER), clu); in write_fat_entries()
277 ret = write_fat_entry(bd->dev_fd, cpu_to_le32(0xfffffff8), 0); in exfat_create_fat_table()
284 ret = write_fat_entry(bd->dev_fd, cpu_to_le32(0xffffffff), 1); in exfat_create_fat_table()
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfssecaudit.c2162 *pattr = cpu_to_le32(v); in showhex()
2353 *pattr = cpu_to_le32(v); in restore()
2560 cpu_to_le32(0x501), cpu_to_le32(0x05000000), cpu_to_le32(21), in tryposix()
2561 cpu_to_le32(DEFSECAUTH1), cpu_to_le32(DEFSECAUTH2), in tryposix()
2562 cpu_to_le32(DEFSECAUTH3), cpu_to_le32(1016) in tryposix()
2566 cpu_to_le32(0x501), cpu_to_le32(0x05000000), cpu_to_le32(21), in tryposix()
2567 cpu_to_le32(DEFSECAUTH1), cpu_to_le32(DEFSECAUTH2), in tryposix()
2568 cpu_to_le32(DEFSECAUTH3), cpu_to_le32(513) in tryposix()
2699 mask = cpu_to_le32(umask); in build_dummy_descr()
2713 pnhead->owner = cpu_to_le32(0); in build_dummy_descr()
[all …]
/third_party/exfatprogs/include/
Dexfat_ondisk.h18 #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))
/third_party/f2fs-tools/include/
Df2fs_fs.h206 #define cpu_to_le32(x) ((uint32_t)(x)) macro
214 #define cpu_to_le32(x) bswap_32(x) macro
578 #define set_sb_le32(member, val) (sb->member = cpu_to_le32(val))
619 #define set_cp_le32(member, val) (cp->member = cpu_to_le32(val))
1456 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in get_inline_xattr_addrs()
1648 raw_node->i.i_links = cpu_to_le32(1); in f2fs_init_qf_inode()
1649 raw_node->i.i_uid = cpu_to_le32(c.root_uid); in f2fs_init_qf_inode()
1650 raw_node->i.i_gid = cpu_to_le32(c.root_gid); in f2fs_init_qf_inode()
1655 raw_node->i.i_atime = cpu_to_le32(mtime); in f2fs_init_qf_inode()
1657 raw_node->i.i_ctime = cpu_to_le32(mtime); in f2fs_init_qf_inode()
[all …]
/third_party/ntfs-3g/libntfs-3g/
Dea.c304 ea_info.ea_query_length = cpu_to_le32(nextoffs); in ntfs_set_ntfs_ea()
495 mode = cpu_to_le32((u32)(type | 0644)); in ntfs_ea_set_wsl_not_symlink()
506 device.major = cpu_to_le32(major(dev)); in ntfs_ea_set_wsl_not_symlink()
507 device.minor = cpu_to_le32(minor(dev)); in ntfs_ea_set_wsl_not_symlink()
Dsecurity.c405 return cpu_to_le32(hash); in ntfs_security_hash()
507 phsds->length = cpu_to_le32(fullsz - gap); in entersecurity_data()
576 newsii.datasize = cpu_to_le32(attrsz in entersecurity_indexes()
600 newsdh.datasize = cpu_to_le32(attrsz in entersecurity_indexes()
762 securid = cpu_to_le32(newkey); in entersecurityattr()
3392 sd->owner = cpu_to_le32((u8*)sid - (u8*)sd); in ntfs_sd_add_everyone()
3400 sd->group = cpu_to_le32((u8*)sid - (u8*)sd); in ntfs_sd_add_everyone()
3406 sd->dacl = cpu_to_le32((u8*)acl - (u8*)sd); in ntfs_sd_add_everyone()
3971 pnhead->dacl = cpu_to_le32(pos); in build_inherited_id()
3988 pnhead->sacl = cpu_to_le32(pos); in build_inherited_id()
[all …]
Dindex.c334 ih->index_length = cpu_to_le32(new_size); in ntfs_ie_delete()
353 ih->index_length = cpu_to_le32(le32_to_cpu(ih->index_length) + ie_size); in ntfs_ie_insert()
925 ib->index.entries_offset = cpu_to_le32((ih_size + in ntfs_ib_alloc()
928 ib->index.allocated_size = cpu_to_le32(ib_size - in ntfs_ib_alloc()
1116 ib->index.index_length = cpu_to_le32(i + in ntfs_ir_to_ib()
1163 dst->index.index_length = cpu_to_le32(tail_size + in ntfs_ib_copy_tail()
1188 ib->index.index_length = cpu_to_le32(((char *)ie - ies_start) + in ntfs_ib_cut_tail()
1269 ir->index.index_length = cpu_to_le32(le32_to_cpu(ir->index.entries_offset) in ntfs_ir_reparent()
1342 icx->ir->index.allocated_size = cpu_to_le32(data_size); in ntfs_ir_truncate()
1718 ih->index_length = cpu_to_le32(le32_to_cpu(ih->index_length) - sizeof(VCN)); in ntfs_ir_leafify()
/third_party/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
/third_party/exfatprogs/exfat2img/
Dexfat2img.c635 cpu_to_le32(cc_clu_count); in dump_clusters_to_stdout()
726 ei_hdr.magic = cpu_to_le32(EI_MAGIC); in dump_header()
727 ei_hdr.major_version = cpu_to_le32(1); in dump_header()
728 ei_hdr.minor_version = cpu_to_le32(0); in dump_header()
729 ei_hdr.data_offset = cpu_to_le32(sizeof(struct exfat2img_hdr)); in dump_header()
731 cpu_to_le32(le32_to_cpu(exfat->bs->bsx.clu_offset) * in dump_header()
733 ei_hdr.cluster_size = cpu_to_le32(exfat->clus_size); in dump_header()
734 ei_hdr.cluster_count = cpu_to_le32(exfat->clus_count); in dump_header()
/third_party/f2fs-tools/lib/
Dlibf2fs.c473 f2fs_hash = cpu_to_le32(hash & ~F2FS_HASH_COL_BIT); in __f2fs_dentry_hash()
598 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in write_inode()
600 cpu_to_le32(f2fs_inode_chksum(inode)); in write_inode()
1293 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in calc_extra_isize()
1295 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in calc_extra_isize()
1297 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in calc_extra_isize()
1299 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) in calc_extra_isize()
1301 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) in calc_extra_isize()

12