/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsinfo.c | 642 printf(" UNKNOWN: 0x%08x", (unsigned int)le32_to_cpu(flags)); in ntfs_dump_flags() 644 printf(" (0x%08x)\n", (unsigned)le32_to_cpu(original_flags)); in ntfs_dump_flags() 706 value_length = le32_to_cpu(attr->value_length); in ntfs_dump_attr_standard_information() 711 le32_to_cpu(standard_attr->maximum_versions)); in ntfs_dump_attr_standard_information() 713 le32_to_cpu(standard_attr->version_number)); in ntfs_dump_attr_standard_information() 715 (unsigned int)le32_to_cpu(standard_attr->class_id)); in ntfs_dump_attr_standard_information() 717 (unsigned int)le32_to_cpu(standard_attr->owner_id), in ntfs_dump_attr_standard_information() 718 (unsigned int)le32_to_cpu(standard_attr->owner_id)); in ntfs_dump_attr_standard_information() 720 (unsigned int)le32_to_cpu(standard_attr->security_id), in ntfs_dump_attr_standard_information() 721 (unsigned int)le32_to_cpu(standard_attr->security_id)); in ntfs_dump_attr_standard_information() [all …]
|
D | ntfsdump_logfile.c | 223 le32_to_cpu(AT_DATA), strerror(errno)); in logfile_open() 296 page_size = le32_to_cpu(rstr->log_page_size); in restart_header_sanity() 301 if (page_size != le32_to_cpu(rstr->system_page_size)) { in restart_header_sanity() 302 page_size = le32_to_cpu(rstr->system_page_size); in restart_header_sanity() 361 (unsigned int)le32_to_cpu(rstr->system_page_size), in dump_restart_areas_header() 362 (unsigned int)le32_to_cpu(rstr->system_page_size)); in dump_restart_areas_header() 364 (unsigned int)le32_to_cpu(rstr->log_page_size), in dump_restart_areas_header() 365 (unsigned int)le32_to_cpu(rstr->log_page_size)); in dump_restart_areas_header() 395 (unsigned int)le32_to_cpu(ra->seq_number_bits), in dump_restart_areas_area() 396 (unsigned int)le32_to_cpu(ra->seq_number_bits)); in dump_restart_areas_area() [all …]
|
D | ntfstruncate.c | 261 ntfs_log_verbose("attribute type = 0x%x\n", (unsigned int)le32_to_cpu(attr_type)); in parse_options() 447 u = le32_to_cpu(type); in dump_resident_attr_val() 450 le32_to_cpu(AT_FIRST_USER_DEFINED_ATTRIBUTE) ? in dump_resident_attr_val() 462 i = le32_to_cpu(a->value_length); in dump_resident_attr() 475 le32_to_cpu(a->value_length)); in dump_resident_attr() 524 dump_mapping_pairs_array((char*)a + i, le32_to_cpu(a->length) - i); in dump_non_resident_attr() 541 (unsigned int)le32_to_cpu(AT_END)); in dump_attr_record() 542 u = le32_to_cpu(a->length); in dump_attr_record() 546 u = le32_to_cpu(a->type); in dump_attr_record() 548 if (le32_to_cpu(attr_defs[i].type) >= u) in dump_attr_record() [all …]
|
D | ntfsck.c | 285 …ribute 0x%x not found in file record at offset %lld (0x%llx).\n", (int)le32_to_cpu(attr_rec->type), in load_runlist() 294 (int)le32_to_cpu(attr_rec->type)); in load_runlist() 298 length = le32_to_cpu(attr_rec->length); in load_runlist() 303 (int)le32_to_cpu(attr_rec->type), in load_runlist() 425 u32 attr_type = le32_to_cpu(attr_rec->type); in check_attr_record() 426 u32 length = le32_to_cpu(attr_rec->length); in check_attr_record() 530 u32 value_length = le32_to_cpu(attr_rec->value_length); in check_attr_record() 587 assert_u32_equal(le32_to_cpu(mft_rec->magic), le32_to_cpu(magic_FILE), "FILE record magic"); in check_file_record() 596 bytes_in_use = le32_to_cpu(mft_rec->bytes_in_use); in check_file_record() 597 bytes_allocated = le32_to_cpu(mft_rec->bytes_allocated); in check_file_record() [all …]
|
D | ntfscmp.c | 397 printf("attribute 0x%x", le32_to_cpu(atype)); in print_attribute_type() 559 ib_size = le32_to_cpu(cia1.ia->index.allocated_size) + 0x18; in cmp_index_allocation() 578 le32_to_cpu(cia1.ia-> in cmp_index_allocation() 665 header_size = le32_to_cpu(a1->length); in cmp_attribute_header() 725 printf("0x%x", le32_to_cpu(atype)); in vprint_attribute() 848 if (!ret1 && (le32_to_cpu(atype1) <= le32_to_cpu(atype2) || in cmp_attributes() 851 if (!ret2 && (le32_to_cpu(old_atype1) >= le32_to_cpu(atype2) || in cmp_attributes() 866 if (ret2 || le32_to_cpu(atype1) < le32_to_cpu(atype2)) { in cmp_attributes() 874 } else if (ret1 || le32_to_cpu(atype1) > le32_to_cpu(atype2)) { in cmp_attributes()
|
D | ntfsmftalloc.c | 225 u = le32_to_cpu(m->magic); in dump_mft_record() 246 u = le32_to_cpu(m->bytes_in_use); in dump_mft_record() 248 u = le32_to_cpu(m->bytes_allocated); in dump_mft_record() 258 while ((char*)a < (char*)m + le32_to_cpu(m->bytes_in_use)) { in dump_mft_record() 261 a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length)); in dump_mft_record()
|
D | playlog.c | 326 type = le32_to_cpu(attr->type); in sanity_mft() 363 k + le32_to_cpu(attr->length))) { in sanity_mft() 366 k += le32_to_cpu(attr->length); in sanity_mft() 372 (long)le32_to_cpu(attr->type), (int)k); in sanity_mft() 374 || (le32_to_cpu(record->bytes_in_use) != (k + 8)) in sanity_mft() 375 || (le32_to_cpu(record->bytes_allocated) < (k + 8))) { in sanity_mft() 378 (long)le32_to_cpu(record->bytes_in_use), in sanity_mft() 380 (long)le32_to_cpu(record->bytes_allocated)); in sanity_mft() 399 le32_to_cpu(indx->index.entries_offset); in sanity_indx() 401 le32_to_cpu(indx->index.index_length) + 24); in sanity_indx() [all …]
|
D | ntfsrecover.c | 865 && !(le32_to_cpu(logr->client_data_length) & 7) in likelyop() 867 && (le32_to_cpu(logr->client_data_length) < MAXRECSIZE) in likelyop() 914 && ((le32_to_cpu(logr->client_data_length) == 0x68) in likelyop() 915 || (le32_to_cpu(logr->client_data_length) == 0x70)); in likelyop() 1022 size = le32_to_cpu(logr->client_data_length) in firstrecord() 1225 len = le32_to_cpu(logr->client_data_length) in refresh_attributes() 1377 (long)le32_to_cpu(mftattr), in fixup() 1427 (long)le32_to_cpu(v)); in fixup() 1478 (long)le32_to_cpu(v)); in fixup() 1483 (long)le32_to_cpu(v)); in fixup() [all …]
|
D | mkntfs.c | 1019 pos > (char*)m + le32_to_cpu(m->bytes_allocated) || in make_room_for_attribute() 1020 pos + size > (char*)m + le32_to_cpu(m->bytes_allocated)) in make_room_for_attribute() 1023 if (pos - (char*)m > (int)le32_to_cpu(m->bytes_in_use) - 8) in make_room_for_attribute() 1026 biu = le32_to_cpu(m->bytes_in_use); in make_room_for_attribute() 1028 if (biu + size > le32_to_cpu(m->bytes_allocated)) in make_room_for_attribute() 1230 le32_to_cpu(ctx->attr->length)); in mkntfs_attr_find() 1232 for (;; a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length))) { in mkntfs_attr_find() 1234 le32_to_cpu(ctx->mrec->bytes_allocated)) in mkntfs_attr_find() 1237 if (((type != AT_UNUSED) && (le32_to_cpu(a->type) > in mkntfs_attr_find() 1238 le32_to_cpu(type))) || in mkntfs_attr_find() [all …]
|
/third_party/selinux/libsepol/src/ |
D | policydb.c | 1823 r->flags = le32_to_cpu(buf[0]); in role_set_read() 1841 t->flags = le32_to_cpu(buf[0]); in type_set_read() 1859 items = le32_to_cpu(buf[0]); in mls_read_range_helper() 1870 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper() 1872 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper() 1922 l->sens = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper() 1924 ncat = le32_to_cpu(buf[1]); in mls_read_semantic_level_helper() 1941 cat->low = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper() 1942 cat->high = le32_to_cpu(buf[1]); in mls_read_semantic_level_helper() 2029 c->user = le32_to_cpu(buf[0]); in context_read_and_validate() [all …]
|
D | module.c | 396 if (le32_to_cpu(buf[0]) != SEPOL_MODULE_PACKAGE_MAGIC) { in module_package_read_offsets() 399 SEPOL_MODULE_PACKAGE_MAGIC, le32_to_cpu(buf[0])); in module_package_read_offsets() 403 mod->version = le32_to_cpu(buf[1]); in module_package_read_offsets() 404 nsec = *sections = le32_to_cpu(buf[2]); in module_package_read_offsets() 431 off[i] = le32_to_cpu(buf[i]); in module_package_read_offsets() 506 switch (le32_to_cpu(buf[0])) { in sepol_module_package_read() 634 i, offsets[i], le32_to_cpu(buf[0])); in sepol_module_package_read() 696 switch (le32_to_cpu(buf[0])) { in sepol_module_package_info() 744 len = le32_to_cpu(buf[1]); in sepol_module_package_info() 777 *type = le32_to_cpu(buf[0]); in sepol_module_package_info() [all …]
|
D | conditional.c | 585 booldatum->s.value = le32_to_cpu(buf[0]); in cond_read_bool() 586 booldatum->state = le32_to_cpu(buf[1]); in cond_read_bool() 591 len = le32_to_cpu(buf[2]); in cond_read_bool() 600 booldatum->flags = le32_to_cpu(buf[0]); in cond_read_bool() 710 len = le32_to_cpu(buf[0]); in cond_read_av_list() 757 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node() 764 len = le32_to_cpu(buf[0]); in cond_read_node() 777 expr->expr_type = le32_to_cpu(buf[0]); in cond_read_node() 778 expr->bool = le32_to_cpu(buf[1]); in cond_read_node() 811 node->flags = le32_to_cpu(buf[0]); in cond_read_node() [all …]
|
D | avtab.c | 458 items2 = le32_to_cpu(buf32[0]); in avtab_read_item() 472 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 478 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 484 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 491 val = le32_to_cpu(buf32[items++]); in avtab_read_item() 512 datum.data = le32_to_cpu(buf32[items++]); in avtab_read_item() 572 xperms.perms[i] = le32_to_cpu(buf32[i]); in avtab_read_item() 580 datum.data = le32_to_cpu(*buf32); in avtab_read_item() 603 nel = le32_to_cpu(buf[0]); in avtab_read()
|
/third_party/ntfs-3g/libntfs-3g/ |
D | logfile.c | 68 logfile_system_page_size = le32_to_cpu(rp->system_page_size); in ntfs_check_restart_page_header() 69 logfile_log_page_size = le32_to_cpu(rp->log_page_size); in ntfs_check_restart_page_header() 212 if ((u32)(ra_ofs + ra_len) > le32_to_cpu(rp->system_page_size) || in ntfs_check_restart_area() 214 le32_to_cpu(rp->system_page_size) || in ntfs_check_restart_area() 247 if (le32_to_cpu(ra->seq_number_bits) != (u32)(67 - fs_bits)) { in ntfs_check_restart_area() 295 > le32_to_cpu(rp->system_page_size)) in ntfs_check_log_client_array() 301 if (offset_clients >= le32_to_cpu(rp->system_page_size)) in ntfs_check_log_client_array() 323 > le32_to_cpu(rp->system_page_size)) in ntfs_check_log_client_array() 400 if ((le32_to_cpu(rp->system_page_size) in ntfs_check_and_load_restart_page() 402 || (le32_to_cpu(rp->system_page_size) in ntfs_check_and_load_restart_page() [all …]
|
D | attrib.c | 99 "attribute\n", le32_to_cpu(flag)); in NAttrSetFlag() 135 return (s64)le32_to_cpu(a->value_length); in GenNAttrIno() 176 if (le32_to_cpu(a->value_length) + le16_to_cpu(a->value_offset) in ntfs_get_attribute_value() 177 > le32_to_cpu(a->length)) { in ntfs_get_attribute_value() 182 le32_to_cpu(a->value_length)); in ntfs_get_attribute_value() 184 return (s64)le32_to_cpu(a->value_length); in ntfs_get_attribute_value() 420 (unsigned long long)ni->mft_no, le32_to_cpu(type)); in ntfs_attr_open() 518 le16_to_cpu(a->flags), le32_to_cpu(na->ni->flags)); in ntfs_attr_open() 539 (unsigned long long)ni->mft_no, le32_to_cpu(type)); in ntfs_attr_open() 549 (long)le32_to_cpu(type), in ntfs_attr_open() [all …]
|
D | index.c | 209 return (INDEX_ENTRY *)((u8 *)ih + le32_to_cpu(ih->entries_offset)); in ntfs_ie_get_first() 220 return (u8 *)ih + le32_to_cpu(ih->index_length); in ntfs_ie_get_end() 333 new_size = le32_to_cpu(ih->index_length) - le16_to_cpu(ie->length); in ntfs_ie_delete() 353 ih->index_length = cpu_to_le32(le32_to_cpu(ih->index_length) + ie_size); in ntfs_ie_insert() 355 le32_to_cpu(ih->index_length) - ((u8 *)pos - (u8 *)ih) - ie_size); in ntfs_ie_insert() 463 u32 ib_size = (unsigned)le32_to_cpu(ib->index.allocated_size) in ntfs_index_block_inconsistent() 490 if (le32_to_cpu(ib->index.entries_offset) < sizeof(INDEX_HEADER)) { in ntfs_index_block_inconsistent() 495 if (le32_to_cpu(ib->index.index_length) in ntfs_index_block_inconsistent() 496 <= le32_to_cpu(ib->index.entries_offset)) { in ntfs_index_block_inconsistent() 501 if (le32_to_cpu(ib->index.allocated_size) in ntfs_index_block_inconsistent() [all …]
|
/third_party/f2fs-tools/fsck/ |
D | f2fs.h | 334 unsigned flag = le32_to_cpu(node_blk->footer.flag); in ofs_of_node() 345 size_t crc_offset = le32_to_cpu(cp->checksum_offset); in cur_cp_crc() 346 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); in cur_cp_crc() 351 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); in is_set_ckpt_flags() 361 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); in __bitmap_size() 363 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); in __bitmap_size() 370 return le32_to_cpu(F2FS_RAW_SUPER(sbi)->cp_payload); in __cp_payload() 382 le32_to_cpu(ckpt->nat_ver_bitmap_bytesize) : 0; in __bitmap_ptr() 384 if (le32_to_cpu(ckpt->checksum_offset) == in __bitmap_ptr() 391 if (le32_to_cpu(F2FS_RAW_SUPER(sbi)->cp_payload) > 0) { in __bitmap_ptr() [all …]
|
D | node.h | 29 nid_t ino = le32_to_cpu(node_blk->footer.ino); in ADDRS_PER_PAGE() 68 return le32_to_cpu(addr_array[offset]); in datablock_addr() 82 return le32_to_cpu(rn->i.i_nid[off - NODE_DIR1_BLOCK]); in get_nid() 84 return le32_to_cpu(rn->in.nid[off]); in get_nid() 130 return le32_to_cpu(node_blk->footer.ino); in ino_of_node() 156 return le32_to_cpu(node_blk->footer.next_blkaddr); in next_blkaddr_of_node() 161 return le32_to_cpu(node_blk->footer.flag) & (1 << type); in is_node() 166 unsigned int flag = le32_to_cpu(rn->footer.flag); in set_cold_node()
|
D | fsck.c | 184 if (le32_to_cpu(sum_entry->nid) != nid) { in is_valid_ssa_node_blk() 195 le32_to_cpu(sum_entry->nid)); in is_valid_ssa_node_blk() 225 u32 nid = le32_to_cpu(sum->nid); in is_valid_summary() 246 if (le32_to_cpu(node_blk->footer.nid) != nid) in is_valid_summary() 262 if (blk_addr == le32_to_cpu(target_blk_addr)) in is_valid_summary() 309 if (le32_to_cpu(sum_entry->nid) != parent_nid || in is_valid_ssa_data_blk() 314 le32_to_cpu(sum_entry->nid)); in is_valid_ssa_data_blk() 424 nid, le32_to_cpu(node_blk->footer.nid), in sanity_check_nid() 425 le32_to_cpu(node_blk->footer.ino)); in sanity_check_nid() 428 if (ni->ino != le32_to_cpu(node_blk->footer.ino)) { in sanity_check_nid() [all …]
|
D | dump.c | 74 le32_to_cpu(node_block->footer.flag) >> in nat_dump() 95 le32_to_cpu(node_block->footer.flag) >> in nat_dump() 222 le32_to_cpu(sum_blk->entries[i].nid)); in ssa_dump() 332 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk() 337 le32_to_cpu(node_blk->in.nid[i]), in dump_node_blk() 343 le32_to_cpu(node_blk->in.nid[i]), in dump_node_blk() 442 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk() 449 le32_to_cpu(node_blk->i.i_nid[i]), in dump_inode_blk() 454 le32_to_cpu(node_blk->i.i_nid[i]), in dump_inode_blk() 459 le32_to_cpu(node_blk->i.i_nid[i]), in dump_inode_blk() [all …]
|
D | quotaio_v2.c | 53 dquot->dq_id = le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk() 98 return le32_to_cpu(d->dqb_id) == dquot->dq_id; in v2r1_is_id() 113 m->dqi_bgrace = le32_to_cpu(d->dqi_bgrace); in v2_disk2memdqinfo() 114 m->dqi_igrace = le32_to_cpu(d->dqi_igrace); in v2_disk2memdqinfo() 115 m->u.v2_mdqi.dqi_flags = le32_to_cpu(d->dqi_flags) & V2_DQF_MASK; in v2_disk2memdqinfo() 116 m->u.v2_mdqi.dqi_qtree.dqi_blocks = le32_to_cpu(d->dqi_blocks); in v2_disk2memdqinfo() 118 le32_to_cpu(d->dqi_free_blk); in v2_disk2memdqinfo() 120 le32_to_cpu(d->dqi_free_entry); in v2_disk2memdqinfo() 165 if (V2_VERSION != le32_to_cpu(dqh.dqh_version)) in v2_check_file()
|
D | dir.c | 119 nid_t ino = le32_to_cpu(dir->footer.ino); in find_in_level() 130 bidx = dir_block_index(level, dir_level, le32_to_cpu(namehash) % nbucket); in find_in_level() 155 de->ino = le32_to_cpu(dentry->ino); in find_in_level() 173 max_depth = le32_to_cpu(dir->i.i_current_depth); in f2fs_find_entry() 234 nid_t pino = le32_to_cpu(parent->footer.ino); in f2fs_add_link() 249 current_depth = le32_to_cpu(parent->i.i_current_depth); in f2fs_add_link() 263 bidx = dir_block_index(level, dir_level, le32_to_cpu(dentry_hash) % nbucket); in f2fs_add_link() 308 u32 links = le32_to_cpu(parent->i.i_links); in f2fs_add_link() 339 nid_t ino = le32_to_cpu(inode->footer.ino); in make_empty_dir() 340 nid_t pino = le32_to_cpu(inode->i.i_pino); in make_empty_dir() [all …]
|
/third_party/exfatprogs/dump/ |
D | dump.c | 119 clu_offset = le32_to_cpu(pbsx->clu_offset); in exfat_show_ondisk_all_info() 120 total_clus = le32_to_cpu(pbsx->clu_count); in exfat_show_ondisk_all_info() 121 root_clu = le32_to_cpu(pbsx->root_cluster); in exfat_show_ondisk_all_info() 127 le32_to_cpu(pbsx->fat_offset)); in exfat_show_ondisk_all_info() 129 le32_to_cpu(pbsx->fat_length)); in exfat_show_ondisk_all_info() 133 exfat_info("Volume Serial: \t\t\t\t0x%x\n", le32_to_cpu(pbsx->vol_serial)); in exfat_show_ondisk_all_info() 162 bitmap_clu = le32_to_cpu(ed[1].bitmap_start_clu); in exfat_show_ondisk_all_info() 178 le32_to_cpu(ed[2].upcase_start_clu)); in exfat_show_ondisk_all_info() 197 total_clus = le32_to_cpu(pbsx->clu_count); in exfat_show_ondisk_all_info()
|
/third_party/exfatprogs/exfat2img/ |
D | exfat2img.c | 289 root->first_clus = le32_to_cpu(exfat->bs->bsx.root_cluster); in dump_root() 331 node->first_clus = le32_to_cpu(stream_de->stream_start_clu); in read_file_dentry_set() 378 le32_to_cpu(dentry->bitmap_start_clu), in read_bitmap() 381 if (!exfat_heap_clus(exfat, le32_to_cpu(dentry->bitmap_start_clu))) { in read_bitmap() 383 le32_to_cpu(dentry->bitmap_start_clu)); in read_bitmap() 387 exfat->disk_bitmap_clus = le32_to_cpu(dentry->bitmap_start_clu); in read_bitmap() 411 if (!exfat_heap_clus(exfat, le32_to_cpu(dentry->upcase_start_clu))) { in read_upcase_table() 413 le32_to_cpu(dentry->upcase_start_clu)); in read_upcase_table() 418 return dump_clusters(ei, le32_to_cpu(dentry->upcase_start_clu), in read_upcase_table() 419 le32_to_cpu(dentry->upcase_start_clu) + in read_upcase_table() [all …]
|
/third_party/exfatprogs/fsck/ |
D | fsck.c | 332 if (le32_to_cpu(((__le32 *)sect)[i]) != checksum) { in boot_region_checksum() 334 le32_to_cpu(((__le32 *)sect)[i]), checksum); in boot_region_checksum() 437 if (le32_to_cpu(bs->bsx.clu_count) * EXFAT_CLUSTER_SIZE(bs) > in read_boot_region() 441 le32_to_cpu(bs->bsx.clu_count), in read_boot_region() 601 if (node->size > le32_to_cpu(exfat->bs->bsx.clu_count) * in check_inode() 892 node->first_clus = le32_to_cpu(stream_de->stream_start_clu); in read_file_dentry_set() 977 le32_to_cpu(dentry->bitmap_start_clu), in read_bitmap() 986 if (!exfat_heap_clus(exfat, le32_to_cpu(dentry->bitmap_start_clu))) { in read_bitmap() 988 le32_to_cpu(dentry->bitmap_start_clu)); in read_bitmap() 992 exfat->disk_bitmap_clus = le32_to_cpu(dentry->bitmap_start_clu); in read_bitmap() [all …]
|