Home
last modified time | relevance | path

Searched refs:cpu_to_le32 (Results 1 – 25 of 44) 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.c907 buf[0] = cpu_to_le32(SEPOL_MODULE_PACKAGE_MAGIC); in sepol_module_package_write()
908 buf[1] = cpu_to_le32(p->version); in sepol_module_package_write()
909 buf[2] = cpu_to_le32(nsec); in sepol_module_package_write()
915 buf[0] = cpu_to_le32(offsets[0]); in sepol_module_package_write()
920 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
927 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
933 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
939 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
952 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_FC); in sepol_module_package_write()
959 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.c295 cpu_to_le32(c.devices[i].total_segments); in f2fs_prepare_super_block()
466 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in f2fs_prepare_super_block()
476 if (c.feature & cpu_to_le32(F2FS_FEATURE_QUOTA_INO)) { in f2fs_prepare_super_block()
478 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_prepare_super_block()
485 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block()
490 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) in f2fs_prepare_super_block()
537 if (c.feature & cpu_to_le32(F2FS_FEATURE_CASEFOLD)) { in f2fs_prepare_super_block()
748 cpu_to_le32(crc); in f2fs_write_check_point_pack()
799 journal->nat_j.entries[0].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
809 journal->nat_j.entries[i].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
[all …]
Df2fs_format_main.c111 c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); in add_default_options()
112 c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO); in add_default_options()
113 c.feature |= cpu_to_le32(F2FS_FEATURE_VERITY); in add_default_options()
120 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in add_default_options()
123 c.feature |= cpu_to_le32(F2FS_FEATURE_PRJQUOTA); in add_default_options()
124 c.feature |= cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR); in add_default_options()
240 c.feature |= cpu_to_le32(F2FS_FEATURE_CASEFOLD); in f2fs_parse_options()
251 if (!(c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR))) { in f2fs_parse_options()
252 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) { in f2fs_parse_options()
257 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) { in f2fs_parse_options()
[all …]
/third_party/f2fs-tools/fsck/
Ddir.c211 de->ino = cpu_to_le32(ino); in f2fs_update_dentry()
300 if (parent->i.i_current_depth != cpu_to_le32(current_depth)) { in f2fs_add_link()
301 parent->i.i_current_depth = cpu_to_le32(current_depth); in f2fs_add_link()
308 parent->i.i_links = cpu_to_le32(links + 1); in f2fs_add_link()
351 dent_blk->dentry[0].ino = cpu_to_le32(ino); in make_empty_dir()
357 dent_blk->dentry[1].ino = cpu_to_le32(pino); in make_empty_dir()
372 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in make_empty_dir()
408 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in page_symlink()
490 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
491 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()
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()
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()
525 if (f & cpu_to_le32(F2FS_FEATURE_ENCRYPT)) { in print_sb_state()
528 if (f & cpu_to_le32(F2FS_FEATURE_VERITY)) { in print_sb_state()
531 if (f & cpu_to_le32(F2FS_FEATURE_BLKZONED)) { in print_sb_state()
[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()
Dnode.c50 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr()
78 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
80 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block()
Dfsck.c198 sum_entry->nid = cpu_to_le32(nid); in is_valid_ssa_node_blk()
322 sum_entry->nid = cpu_to_le32(parent_nid); in is_valid_ssa_data_blk()
707 cpu_to_le32(i_links + 1); in fsck_chk_inode_blk()
741 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in fsck_chk_inode_blk()
770 cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) && in fsck_chk_inode_blk()
989 node_blk->i.i_namelen = cpu_to_le32(child_d->i_namelen); in fsck_chk_inode_blk()
1018 node_blk->i.i_links = cpu_to_le32(child.links); in fsck_chk_inode_blk()
1086 if ((c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) && in fsck_chk_inode_blk()
1098 cpu_to_le32(calculated); in fsck_chk_inode_blk()
1346 dentry->hash_code = cpu_to_le32(hash_code); in f2fs_check_hash_code()
[all …]
/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 …]
Dntfscat.c137 *attr = (ATTR_TYPES)cpu_to_le32((i + 1) * 16); in parse_attribute()
144 *attr = (ATTR_TYPES)cpu_to_le32(num); in parse_attribute()
Dmkntfs.c1033 m->bytes_in_use = cpu_to_le32(biu + size); in make_room_for_attribute()
1548 a->length = cpu_to_le32(asize); in insert_positioned_attr_in_mft_record()
1741 a->length = cpu_to_le32(asize); in insert_non_resident_attr_in_mft_record()
1885 a->length = cpu_to_le32(asize); in insert_resident_attr_in_mft_record()
1896 a->value_length = cpu_to_le32(val_len); in insert_resident_attr_in_mft_record()
2061 fn->reparse_point_tag = cpu_to_le32(reparse_point_tag); in add_attr_file_name()
2290 r->index_block_size = cpu_to_le32(index_block_size); in add_attr_index_root()
2505 ia_val->index.entries_offset = cpu_to_le32((sizeof(INDEX_HEADER) + in upgrade_to_large_index()
2507 ia_val->index.allocated_size = cpu_to_le32(index_block_size - in upgrade_to_large_index()
2519 ia_val->index.index_length = cpu_to_le32(i + in upgrade_to_large_index()
[all …]
Dplaylog.c742 attr->value_length = cpu_to_le32(newvalue); in resize_attribute()
744 attr->length = cpu_to_le32(newlength); in resize_attribute()
748 entry->bytes_in_use = cpu_to_le32(newused); in resize_attribute()
752 index->index.index_length = cpu_to_le32(indexlth); in resize_attribute()
754 index->index.allocated_size = cpu_to_le32(indexalloc); in resize_attribute()
1225 entry->bytes_in_use = cpu_to_le32(newused); in insert_resident()
1323 entry->bytes_in_use = cpu_to_le32(newused); in remove_resident()
1562 record->bytes_in_use = cpu_to_le32(used); in delete_names()
1579 attr->length = cpu_to_le32(headlth + datalth); in rebuildname()
1585 attr->value_length = cpu_to_le32( in rebuildname()
[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/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/f2fs-tools/lib/
Dlibf2fs.c475 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()
1261 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in calc_extra_isize()
1263 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in calc_extra_isize()
1265 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in calc_extra_isize()
1267 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) in calc_extra_isize()
1269 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) in calc_extra_isize()
/third_party/f2fs-tools/include/
Df2fs_fs.h158 #define cpu_to_le32(x) ((__u32)(x)) macro
165 #define cpu_to_le32(x) bswap_32(x) macro
456 #define set_sb_le32(member, val) (sb->member = cpu_to_le32(val))
497 #define set_cp_le32(member, val) (cp->member = cpu_to_le32(val))
1268 if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)) in get_inline_xattr_addrs()
1488 c.feature |= cpu_to_le32(mask); in set_feature_bits()
/third_party/e2fsprogs/lib/ext2fs/
Djfs_compat.h26 #define cpu_to_le32(x) ext2fs_cpu_to_le32(x) macro

12