Home
last modified time | relevance | path

Searched refs:le16_to_cpu (Results 1 - 25 of 68) sorted by relevance

123

/third_party/ntfs-3g/ntfsprogs/
H A Dntfsdump_logfile.c316 usa_end_ofs = le16_to_cpu(rstr->usa_ofs) + in restart_header_sanity()
317 le16_to_cpu(rstr->usa_count) * sizeof(u16); in restart_header_sanity()
318 if (page_size / NTFS_BLOCK_SIZE + 1 != le16_to_cpu(rstr->usa_count)) in restart_header_sanity()
322 if (le16_to_cpu(rstr->usa_ofs) < offsetof(RESTART_PAGE_HEADER, usn)) in restart_header_sanity()
332 if (usa_end_ofs > le16_to_cpu(rstr->restart_area_offset)) in restart_header_sanity()
338 if (le16_to_cpu(rstr->restart_area_offset) & 7) in restart_header_sanity()
353 ntfs_log_info("usa_ofs = %u (0x%x)\n", le16_to_cpu(rstr->usa_ofs), in dump_restart_areas_header()
354 le16_to_cpu(rstr->usa_ofs)); in dump_restart_areas_header()
355 ntfs_log_info("usa_count = %u (0x%x)\n", le16_to_cpu(rstr->usa_count), in dump_restart_areas_header()
356 le16_to_cpu(rst in dump_restart_areas_header()
[all...]
H A Dntfsrecover.c227 xusa = le16_to_cpu(record->usa_ofs); in replaceusa()
228 nusa = le16_to_cpu(record->usa_count); in replaceusa()
484 c = le16_to_cpu(n[i]); in showname()
673 name[i] = le16_to_cpu(pa->name[i]); in attrname()
819 offset = 0x30 + le16_to_cpu(logr->undo_offset); in get_undo_offset()
821 offset = 0x28 + le16_to_cpu(logr->undo_offset); in get_undo_offset()
830 offset = 0x30 + le16_to_cpu(logr->redo_offset); in get_redo_offset()
832 offset = 0x28 + le16_to_cpu(logr->redo_offset); in get_redo_offset()
842 + le16_to_cpu(logr->redo_length); in get_extra_offset()
844 + le16_to_cpu(log in get_extra_offset()
[all...]
H A Dntfsinfo.c475 printf("\tVolume Flags: 0x%04x", (int)le16_to_cpu(vol->flags)); in ntfs_dump_volume()
684 le16_to_cpu(attr->value_offset)); in ntfs_dump_attr_standard_information()
779 ((u8 *) entry + le16_to_cpu(entry->length))) { in ntfs_dump_attr_list()
784 (unsigned)le16_to_cpu(entry->length), in ntfs_dump_attr_list()
785 (unsigned)le16_to_cpu(entry->length)); in ntfs_dump_attr_list()
802 (unsigned)le16_to_cpu(entry->instance), in ntfs_dump_attr_list()
803 (unsigned)le16_to_cpu(entry->instance)); in ntfs_dump_attr_list()
822 le16_to_cpu(entry->length)); in ntfs_dump_attr_list()
881 le16_to_cpu(file_name_attr->packed_ea_size), in ntfs_dump_filename()
883 le16_to_cpu(file_name_att in ntfs_dump_filename()
[all...]
H A Dplaylog.c127 + ((u32)le16_to_cpu(logr->cluster_index) in inode_number()
318 nextinstance = le16_to_cpu(record->next_attr_instance); in sanity_mft()
320 k = le16_to_cpu(record->attrs_offset); in sanity_mft()
332 instance = le16_to_cpu(attr->instance); in sanity_mft()
362 k + le16_to_cpu(attr->value_offset) + 32, in sanity_mft()
434 count = le16_to_cpu(logr->lcns_to_follow); in read_raw()
503 count = le16_to_cpu(logr->lcns_to_follow); in write_raw()
557 count = le16_to_cpu(logr->lcns_to_follow); in write_mirr()
599 pos = le16_to_cpu(logr->cluster_index) in read_protected()
612 (int)le16_to_cpu(log in read_protected()
[all...]
H A Dntfstruncate.c295 u = le16_to_cpu(src[i]); in ucstos()
362 printf("Volume flags = 0x%x: ", le16_to_cpu(flags)); in dump_resident_attr_val()
464 i = le16_to_cpu(a->value_offset); in dump_resident_attr()
474 dump_resident_attr_val(a->type, (char*)a + le16_to_cpu(a->value_offset), in dump_resident_attr()
503 le16_to_cpu(a->mapping_pairs_offset)); in dump_non_resident_attr()
523 i = le16_to_cpu(a->mapping_pairs_offset); in dump_non_resident_attr()
568 printf("Name offset = %u (0x%x)\n", le16_to_cpu(a->name_offset), in dump_attr_record()
569 le16_to_cpu(a->name_offset)); in dump_attr_record()
573 le16_to_cpu(a->name_offset)), in dump_attr_record()
584 printf("Attribute flags = 0x%x: ", le16_to_cpu(flag in dump_attr_record()
[all...]
H A Dntfsmftalloc.c228 u = le16_to_cpu(m->usa_ofs); in dump_mft_record()
230 ntfs_log_info("Update sequence array size = %u\n", le16_to_cpu(m->usa_count)); in dump_mft_record()
233 ntfs_log_info("Sequence number = %u\n", le16_to_cpu(m->sequence_number)); in dump_mft_record()
235 le16_to_cpu(m->link_count)); in dump_mft_record()
236 u = le16_to_cpu(m->attrs_offset); in dump_mft_record()
238 ntfs_log_info("Flags = %u: ", le16_to_cpu(m->flags)); in dump_mft_record()
255 le16_to_cpu(m->next_attr_instance)); in dump_mft_record()
256 a = (ATTR_RECORD*)((char*)m + le16_to_cpu(m->attrs_offset)); in dump_mft_record()
H A Dntfsck.c215 bytes_per_sector = le16_to_cpu(ntfs_boot->bpb.bytes_per_sector); in verify_boot_sector()
272 attrs_offset = le16_to_cpu(((MFT_RECORD*)buf)->attrs_offset); in load_runlist()
424 u16 attrs_offset = le16_to_cpu(mft_rec->attrs_offset); in check_attr_record()
468 // current_mft_record, (int)attr_type, (int)le16_to_cpu(attr_rec->instance), (int)mft_rec->base_mft_record); in check_attr_record()
475 (int)le16_to_cpu(attr_rec->flags)); in check_attr_record()
485 name_offset = le16_to_cpu(attr_rec->name_offset); in check_attr_record()
529 u16 value_offset = le16_to_cpu(attr_rec->value_offset); in check_attr_record()
593 usa_ofs = le16_to_cpu(mft_rec->usa_ofs); in check_file_record()
594 usa_count = le16_to_cpu(mft_rec->usa_count); in check_file_record()
595 attrs_offset = le16_to_cpu(mft_re in check_file_record()
[all...]
H A Dsd.c95 le16_to_cpu(aa_ace->size)); in init_system_file_sd()
226 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
247 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
269 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
288 ace = (ACCESS_ALLOWED_ACE*)((char*)ace + le16_to_cpu(ace->size)); in init_root_sd()
310 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
329 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
350 ace = (ACCESS_ALLOWED_ACE*)((u8*)ace + le16_to_cpu(ace->size)); in init_root_sd()
459 ace = (ACCESS_ALLOWED_ACE*)((char*)ace + le16_to_cpu(ace->size)); in init_secure_sds()
555 ace = (ACCESS_ALLOWED_ACE*)((char*)ace + le16_to_cpu(ac in init_secure_sds()
[all...]
H A Dntfsfix.c267 c = (VOLUME_INFORMATION*)(le16_to_cpu(a->value_offset) + (char*)a); in OLD_ntfs_volume_set_flags()
271 le16_to_cpu(a->value_offset) + in OLD_ntfs_volume_set_flags()
713 && (le16_to_cpu(upcase[k]) in fix_upcase()
786 offset = le16_to_cpu(mrec->attrs_offset); in find_unnamed_attr()
851 seqn = le16_to_cpu( in short_mft_selfloc_condition()
906 ((char*)a + le16_to_cpu(a->value_offset)); in attrlist_selfloc_condition()
918 length -= le16_to_cpu(al->length); in attrlist_selfloc_condition()
920 ((char*)al + le16_to_cpu(al->length)); in attrlist_selfloc_condition()
982 == le16_to_cpu(mft1->sequence_number))) { in self_mapped_selfloc_condition()
1072 usa_ofs = le16_to_cpu(mft in fix_selfloc_conditions()
[all...]
H A Dmkntfs.c1262 (ntfschar*)((char*)a + le16_to_cpu(a->name_offset)), in mkntfs_attr_find()
1268 le16_to_cpu(a->name_offset)), in mkntfs_attr_find()
1284 le16_to_cpu(a->name_offset)), in mkntfs_attr_find()
1305 rc = memcmp(val, (char*)a +le16_to_cpu(a->value_offset), in mkntfs_attr_find()
1554 m->next_attr_instance = cpu_to_le16((le16_to_cpu(m->next_attr_instance) in insert_positioned_attr_in_mft_record()
1747 m->next_attr_instance = cpu_to_le16((le16_to_cpu(m->next_attr_instance) in insert_non_resident_attr_in_mft_record()
1894 m->next_attr_instance = cpu_to_le16((le16_to_cpu(m->next_attr_instance) in insert_resident_attr_in_mft_record()
1903 memcpy((char*)a + le16_to_cpu(a->value_offset), val, val_len); in insert_resident_attr_in_mft_record()
1990 le16_to_cpu(ctx->attr->value_offset)); in stdinfo_time()
2033 le16_to_cpu(ct in add_attr_file_name()
[all...]
/third_party/ntfs-3g/libntfs-3g/
H A Dlogfile.c108 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
114 if (usa_count != le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
120 usa_ofs = le16_to_cpu(rp->usa_ofs); in ntfs_check_restart_page_header()
135 ra_ofs = le16_to_cpu(rp->restart_area_offset); in ntfs_check_restart_page_header()
177 ra_ofs = le16_to_cpu(rp->restart_area_offset); in ntfs_check_restart_area()
197 ca_ofs = le16_to_cpu(ra->client_array_offset); in ntfs_check_restart_area()
210 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) * in ntfs_check_restart_area()
213 (u32)(ra_ofs + le16_to_cpu(ra->restart_area_length)) > in ntfs_check_restart_area()
215 ra_len > le16_to_cpu(ra->restart_area_length)) { in ntfs_check_restart_area()
228 le16_to_cpu(r in ntfs_check_restart_area()
[all...]
H A Dbootsect.c76 if (le16_to_cpu(b->bpb.bytes_per_sector) < 256 || in ntfs_boot_sector_is_ntfs()
77 le16_to_cpu(b->bpb.bytes_per_sector) > 4096) { in ntfs_boot_sector_is_ntfs()
79 le16_to_cpu(b->bpb.bytes_per_sector)); in ntfs_boot_sector_is_ntfs()
107 i = (u32)le16_to_cpu(b->bpb.bytes_per_sector) * sectors_per_cluster; in ntfs_boot_sector_is_ntfs()
114 if (le16_to_cpu(b->bpb.reserved_sectors) || in ntfs_boot_sector_is_ntfs()
115 le16_to_cpu(b->bpb.root_entries) || in ntfs_boot_sector_is_ntfs()
116 le16_to_cpu(b->bpb.sectors) || in ntfs_boot_sector_is_ntfs()
117 le16_to_cpu(b->bpb.sectors_per_fat) || in ntfs_boot_sector_is_ntfs()
122 le16_to_cpu(b->bpb.reserved_sectors), in ntfs_boot_sector_is_ntfs()
123 le16_to_cpu( in ntfs_boot_sector_is_ntfs()
[all...]
H A Dmst.c74 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_post_read_fixup_warn()
75 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn()
124 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn()
185 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_pre_write_fixup()
186 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_pre_write_fixup()
234 u16 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_post_write_fixup()
235 u16 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_write_fixup()
H A Dunistr.c187 u1 = c1 = le16_to_cpu(*name1); in ntfs_names_full_collate()
188 u2 = c2 = le16_to_cpu(*name2); in ntfs_names_full_collate()
190 u1 = le16_to_cpu(upcase[u1]); in ntfs_names_full_collate()
192 u2 = le16_to_cpu(upcase[u2]); in ntfs_names_full_collate()
196 u1 = le16_to_cpu(*name1); in ntfs_names_full_collate()
198 u2 = le16_to_cpu(*name2); in ntfs_names_full_collate()
200 u1 = le16_to_cpu(upcase[u1]); in ntfs_names_full_collate()
202 u2 = le16_to_cpu(upcase[u2]); in ntfs_names_full_collate()
218 u1 = le16_to_cpu(*name1); in ntfs_names_full_collate()
220 u2 = le16_to_cpu(*name in ntfs_names_full_collate()
[all...]
H A Dattrlist.c90 ale = (ATTR_LIST_ENTRY *)((u8*)ale + le16_to_cpu(ale->length)); in ntfs_attrlist_need()
126 mref = MK_LE_MREF(ni->mft_no, le16_to_cpu(ni->mrec->sequence_number)); in ntfs_attrlist_entry_add()
151 ((u8*)attr + le16_to_cpu(attr->name_offset)) : in ntfs_attrlist_entry_add()
155 le16_to_cpu(attr->value_offset)), (attr->non_resident) ? in ntfs_attrlist_entry_add()
167 le16_to_cpu(ctx->al_entry->length)); in ntfs_attrlist_entry_add()
199 memcpy(ale->name, (u8 *)attr + le16_to_cpu(attr->name_offset), in ntfs_attrlist_entry_add()
277 new_al_len = base_ni->attr_list_size - le16_to_cpu(ale->length); in ntfs_attrlist_entry_rm()
297 memcpy(new_al + ((u8*)ale - base_ni->attr_list), (u8*)ale + le16_to_cpu( in ntfs_attrlist_entry_rm()
H A Dindex.c196 return (leVCN *)((u8 *)ie + le16_to_cpu(ie->length) - sizeof(leVCN)); in ntfs_ie_get_vcn_addr()
214 return (INDEX_ENTRY *)((char *)ie + le16_to_cpu(ie->length)); in ntfs_ie_get_next()
333 new_size = le32_to_cpu(ih->index_length) - le16_to_cpu(ie->length); in ntfs_ie_delete()
335 memmove(ie, (u8 *)ie + le16_to_cpu(ie->length), in ntfs_ie_delete()
349 int ie_size = le16_to_cpu(ie->length); in ntfs_ie_insert()
365 dup = ntfs_malloc(le16_to_cpu(ie->length)); in ntfs_ie_dup()
367 memcpy(dup, ie, le16_to_cpu(ie->length)); in ntfs_ie_dup()
375 int size = le16_to_cpu(ie->length); in ntfs_ie_dup_novcn()
416 ir = (INDEX_ROOT *)((char *)a + le16_to_cpu(a->value_offset)); in ntfs_ir_lookup()
532 && ((le16_to_cpu(i in ntfs_index_entry_inconsistent()
[all...]
H A Dmft.c266 if (le16_to_cpu(m->attrs_offset) & 7) { in ntfs_mft_record_check()
272 a = (ATTR_RECORD *)((char *)m + le16_to_cpu(m->attrs_offset)); in ntfs_mft_record_check()
280 offset = le16_to_cpu(m->attrs_offset); in ntfs_mft_record_check()
371 if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number)) { in ntfs_file_record_read()
374 le16_to_cpu(m->sequence_number)); in ntfs_file_record_read()
380 *attr = (ATTR_RECORD*)((char*)m + le16_to_cpu(m->attrs_offset)); in ntfs_file_record_read()
443 *(le16*)((u8*)mrec + le16_to_cpu(mrec->usa_ofs)) = const_cpu_to_le16(1); in ntfs_mft_record_layout()
448 mrec->attrs_offset = cpu_to_le16((le16_to_cpu(mrec->usa_ofs) + in ntfs_mft_record_layout()
449 (le16_to_cpu(mrec->usa_count) << 1) + 7) & ~7); in ntfs_mft_record_layout()
455 mrec->bytes_in_use = cpu_to_le32((le16_to_cpu(mre in ntfs_mft_record_layout()
[all...]
H A Dattrib.c168 "this yet.\n", le16_to_cpu(a->flags)); in ntfs_get_attribute_value()
176 if (le32_to_cpu(a->value_length) + le16_to_cpu(a->value_offset) in ntfs_get_attribute_value()
181 memcpy(b, (const char*)a + le16_to_cpu(a->value_offset), in ntfs_get_attribute_value()
458 + le16_to_cpu(a->name_offset)); in ntfs_attr_open()
518 le16_to_cpu(a->flags), le32_to_cpu(na->ni->flags)); in ntfs_attr_open()
1057 val = (char*)ctx->attr + le16_to_cpu(ctx->attr->value_offset); in ntfs_attr_pread_i()
1974 val = (char*)ctx->attr + le16_to_cpu(ctx->attr->value_offset);
2904 && ((le16_to_cpu(a->name_offset)
2914 le16_to_cpu(a->name_offset)),
2940 rc = memcmp(val, (char*)a +le16_to_cpu(
[all...]
H A Ddir.c288 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_lookup_by_name()
305 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_inode_lookup_by_name()
309 (u8*)ie + le16_to_cpu(ie->length) > in ntfs_inode_lookup_by_name()
394 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_inode_lookup_by_name()
425 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_inode_lookup_by_name()
429 (u8*)ie + le16_to_cpu(ie->length) > in ntfs_inode_lookup_by_name()
487 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_inode_lookup_by_name()
1072 le16_to_cpu(ctx->attr->value_offset)); in ntfs_mft_get_parent_ref()
1156 le16_to_cpu(dir_ni->mrec->sequence_number)), in ntfs_readdir()
1193 le16_to_cpu(ct in ntfs_readdir()
[all...]
H A Dreparse.c156 cpuchar = le16_to_cpu(uname[i]); in ntfs_fix_file_name()
164 && (le16_to_cpu(vol->upcase[cpuchar]) < cpuchar)) in ntfs_fix_file_name()
203 uname[i] = vol->locase[le16_to_cpu(found->file_name[i])]; in ntfs_fix_file_name()
481 && (((size_t)le16_to_cpu(reparse_attr->reparse_data_length) in valid_reparse_data()
495 offs = le16_to_cpu(mount_point_data->subst_name_offset); in valid_reparse_data()
496 lth = le16_to_cpu(mount_point_data->subst_name_length); in valid_reparse_data()
512 offs = le16_to_cpu(symlink_data->subst_name_offset); in valid_reparse_data()
513 lth = le16_to_cpu(symlink_data->subst_name_length); in valid_reparse_data()
522 if ((le16_to_cpu(reparse_attr->reparse_data_length) in valid_reparse_data()
814 offs = le16_to_cpu(mount_point_dat in ntfs_make_symlink()
[all...]
H A Dinode.c200 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_real_open()
639 if (seq_no && seq_no != le16_to_cpu( in ntfs_extent_inode_open()
727 ale = (ATTR_LIST_ENTRY *)((u8*)ale + le16_to_cpu(ale->length)); in ntfs_inode_attach_all_extents()
758 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_sync_standard_information()
818 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_sync_file_name()
826 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_sync_file_name()
1177 le16_to_cpu(ni->mrec->sequence_number)); in ntfs_inode_add_attrlist()
1180 le16_to_cpu(ctx->attr->name_offset), in ntfs_inode_add_attrlist()
1274 ale = (ATTR_LIST_ENTRY*)((u8*)ale + le16_to_cpu(ale->length)); in ntfs_inode_add_attrlist()
1444 (ntfschar *)((u8 *)attr + le16_to_cpu(att in ntfs_inode_badclus_bad()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dplatform.h7 #define le16_to_cpu le_to_host16 macro
18 #define get_unaligned_le16(p) le16_to_cpu(get_unaligned((le16 *)(p)))
/third_party/f2fs-tools/include/
H A Df2fs_fs.h208 #define le16_to_cpu(x) ((uint16_t)(x)) macro
216 #define le16_to_cpu(x) bswap_16(x) macro
290 #member":", le16_to_cpu(((ptr)->member))); \
293 #member, le16_to_cpu(((ptr)->member)), \
294 le16_to_cpu(((ptr)->member))); \
586 #define get_sb_le16(member) le16_to_cpu(sb->member)
589 #define get_newsb_le16(member) le16_to_cpu(new_sb->member)
627 #define get_cp_le16(member) le16_to_cpu(cp->member)
1184 (le16_to_cpu((raw_sit)->vblocks) & SIT_VBLOCKS_MASK)
1186 ((le16_to_cpu((raw_si
[all...]
/third_party/f2fs-tools/fsck/
H A Dquotaio_tree.c226 if (le16_to_cpu(dh->dqdh_entries) + 1 >= in find_free_dqentry()
231 cpu_to_le16(le16_to_cpu(dh->dqdh_entries) + 1); in find_free_dqentry()
382 cpu_to_le16(le16_to_cpu(dh->dqdh_entries) - 1); in free_dqentry()
384 if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */ in free_dqentry()
393 if (le16_to_cpu(dh->dqdh_entries) == in free_dqentry()
576 entries = le16_to_cpu(dh->dqdh_entries); in report_block()
/third_party/fsverity-utils/common/
H A Dcommon_defs.h81 # define le16_to_cpu(v) ((__force u16)(__le16)(v)) macro
88 # define le16_to_cpu(v) (__builtin_bswap16((__force u16)(v))) macro

Completed in 34 milliseconds

123