Home
last modified time | relevance | path

Searched refs:le32_to_cpu (Results 1 – 25 of 116) sorted by relevance

12345

/external/u-boot/tools/
Dzynqmpimage.c74 checksum += le32_to_cpu(ptr->width_detection); in zynqmpimage_checksum()
75 checksum += le32_to_cpu(ptr->image_identifier); in zynqmpimage_checksum()
76 checksum += le32_to_cpu(ptr->encryption); in zynqmpimage_checksum()
77 checksum += le32_to_cpu(ptr->image_load); in zynqmpimage_checksum()
78 checksum += le32_to_cpu(ptr->image_offset); in zynqmpimage_checksum()
79 checksum += le32_to_cpu(ptr->pfw_image_length); in zynqmpimage_checksum()
80 checksum += le32_to_cpu(ptr->total_pfw_image_length); in zynqmpimage_checksum()
81 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum()
82 checksum += le32_to_cpu(ptr->image_stored_size); in zynqmpimage_checksum()
83 checksum += le32_to_cpu(ptr->image_attributes); in zynqmpimage_checksum()
[all …]
Dzynqimage.c97 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum()
98 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum()
99 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum()
100 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum()
101 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum()
102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum()
103 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum()
104 checksum += le32_to_cpu(ptr->image_load); in zynqimage_checksum()
105 checksum += le32_to_cpu(ptr->image_stored_size); in zynqimage_checksum()
106 checksum += le32_to_cpu(ptr->__reserved2); in zynqimage_checksum()
[all …]
Dstm32image.c106 (unsigned long)le32_to_cpu(stm32hdr->image_length)); in stm32image_print_header()
108 le32_to_cpu(stm32hdr->load_address)); in stm32image_print_header()
110 le32_to_cpu(stm32hdr->image_entry_point)); in stm32image_print_header()
112 le32_to_cpu(stm32hdr->image_checksum)); in stm32image_print_header()
114 le32_to_cpu(stm32hdr->option_flags)); in stm32image_print_header()
Dzynqmpbif.c80 checksum += le32_to_cpu(*ptr32); in zynqmp_csum()
396 bif_output.imgheader->nr_parts = cpu_to_le32(le32_to_cpu( in bif_add_part()
595 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32()
598 for (i = 0; i < le32_to_cpu(ehdr->e_shnum); i++, shdr++) { in elf2flat32()
604 if (le32_to_cpu(shdr->sh_addr) < min_addr) in elf2flat32()
605 min_addr = le32_to_cpu(shdr->sh_addr); in elf2flat32()
606 if ((le32_to_cpu(shdr->sh_addr) + le32_to_cpu(shdr->sh_size)) > in elf2flat32()
608 max_addr = le32_to_cpu(shdr->sh_addr) + in elf2flat32()
609 le32_to_cpu(shdr->sh_size); in elf2flat32()
618 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32()
[all …]
/external/squashfs-tools/kernel/fs/squashfs/
Dinode.c68 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode()
69 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
145 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode()
147 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
160 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
167 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
187 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode()
189 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
201 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
229 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
[all …]
Ddir.c78 index = le32_to_cpu(dir_index.index); in get_dir_index_using_offset()
86 &index_offset, le32_to_cpu(dir_index.size) + 1); in get_dir_index_using_offset()
91 *next_block = le32_to_cpu(dir_index.start_block) + in get_dir_index_using_offset()
175 dir_count = le32_to_cpu(dirh.count) + 1; in squashfs_readdir()
198 inode_number = le32_to_cpu(dirh.inode_number) + in squashfs_readdir()
205 le32_to_cpu(dirh.start_block), in squashfs_readdir()
Dnamei.c104 size = le32_to_cpu(index->size) + 1; in get_dir_index_using_name()
116 length = le32_to_cpu(index->index); in get_dir_index_using_name()
117 *next_block = le32_to_cpu(index->start_block) + in get_dir_index_using_name()
177 dir_count = le32_to_cpu(dirh.count) + 1; in squashfs_lookup()
202 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup()
204 ino_num = le32_to_cpu(dirh.inode_number) + in squashfs_lookup()
/external/u-boot/fs/ext4/
Dext4_common.c57 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) - 1); in ext4fs_sb_free_inodes_dec()
62 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_free_blocks_dec()
63 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_free_blocks_dec()
111 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_get_free_blocks()
112 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_get_free_blocks()
156 uint64_t block_nr = le32_to_cpu(bg->block_id); in ext4fs_bg_get_block_id()
158 block_nr += (uint64_t)le32_to_cpu(bg->block_id_high) << 32; in ext4fs_bg_get_block_id()
166 uint64_t block_nr = le32_to_cpu(bg->inode_id); in ext4fs_bg_get_inode_id()
168 block_nr += (uint64_t)le32_to_cpu(bg->inode_id_high) << 32; in ext4fs_bg_get_inode_id()
177 uint64_t block_nr = le32_to_cpu(bg->inode_table_id); in ext4fs_bg_get_inode_table_id()
[all …]
Dext4_write.c32 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) + 1); in ext4fs_sb_free_inodes_inc()
37 sb->free_blocks = cpu_to_le32(le32_to_cpu(sb->free_blocks) + 1); in ext4fs_sb_free_blocks_inc()
143 uint32_t blk_per_grp = le32_to_cpu(ext4fs_root->sblock.blocks_per_group); in delete_single_indirect_block()
153 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block()
191 uint32_t blk_per_grp = le32_to_cpu(ext4fs_root->sblock.blocks_per_group); in delete_double_indirect_block()
209 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
217 bg_idx = le32_to_cpu(*di_buffer) / blk_per_grp; in delete_double_indirect_block()
219 remainder = le32_to_cpu(*di_buffer) % blk_per_grp; in delete_double_indirect_block()
225 ext4fs_reset_block_bmap(le32_to_cpu(*di_buffer), in delete_double_indirect_block()
249 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
[all …]
/external/u-boot/cmd/
Dqfw.c31 le32_to_cpu(setup_size), data_addr); in qemu_fwcfg_setup_kernel()
32 data_addr += le32_to_cpu(setup_size); in qemu_fwcfg_setup_kernel()
35 le32_to_cpu(kernel_size), data_addr); in qemu_fwcfg_setup_kernel()
36 data_addr += le32_to_cpu(kernel_size); in qemu_fwcfg_setup_kernel()
44 le32_to_cpu(initrd_size), data_addr); in qemu_fwcfg_setup_kernel()
45 data_addr += le32_to_cpu(initrd_size); in qemu_fwcfg_setup_kernel()
51 le32_to_cpu(cmdline_size), data_addr); in qemu_fwcfg_setup_kernel()
63 le32_to_cpu(kernel_size)); in qemu_fwcfg_setup_kernel()
67 le32_to_cpu(initrd_size)); in qemu_fwcfg_setup_kernel()
/external/selinux/libsepol/src/
Dpolicydb.c1811 r->flags = le32_to_cpu(buf[0]); in role_set_read()
1829 t->flags = le32_to_cpu(buf[0]); in type_set_read()
1847 items = le32_to_cpu(buf[0]); in mls_read_range_helper()
1858 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper()
1860 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper()
1910 l->sens = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper()
1912 ncat = le32_to_cpu(buf[1]); in mls_read_semantic_level_helper()
1929 cat->low = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper()
1930 cat->high = le32_to_cpu(buf[1]); in mls_read_semantic_level_helper()
2017 c->user = le32_to_cpu(buf[0]); in context_read_and_validate()
[all …]
/external/u-boot/fs/ubifs/
Dmaster.c275 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master()
276 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
277 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master()
278 c->lhead_lnum = le32_to_cpu(c->mst_node->log_lnum); in ubifs_read_master()
279 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
280 c->ihead_lnum = le32_to_cpu(c->mst_node->ihead_lnum); in ubifs_read_master()
281 c->ihead_offs = le32_to_cpu(c->mst_node->ihead_offs); in ubifs_read_master()
283 c->lpt_lnum = le32_to_cpu(c->mst_node->lpt_lnum); in ubifs_read_master()
284 c->lpt_offs = le32_to_cpu(c->mst_node->lpt_offs); in ubifs_read_master()
285 c->nhead_lnum = le32_to_cpu(c->mst_node->nhead_lnum); in ubifs_read_master()
[all …]
Dsb.c365 if (le32_to_cpu(sup->min_io_size) != c->min_io_size) { in validate_sb()
367 le32_to_cpu(sup->min_io_size), c->min_io_size); in validate_sb()
371 if (le32_to_cpu(sup->leb_size) != c->leb_size) { in validate_sb()
373 le32_to_cpu(sup->leb_size), c->leb_size); in validate_sb()
460 if (le32_to_cpu(sup->time_gran) > 1000000000 || in validate_sb()
461 le32_to_cpu(sup->time_gran) < 1) { in validate_sb()
544 c->fmt_version = le32_to_cpu(sup->fmt_version); in ubifs_read_superblock()
545 c->ro_compat_version = le32_to_cpu(sup->ro_compat_version); in ubifs_read_superblock()
606 c->leb_cnt = le32_to_cpu(sup->leb_cnt); in ubifs_read_superblock()
607 c->max_leb_cnt = le32_to_cpu(sup->max_leb_cnt); in ubifs_read_superblock()
[all …]
Ddebug.c221 pr_err("\tmagic %#x\n", le32_to_cpu(ch->magic)); in dump_ch()
222 pr_err("\tcrc %#x\n", le32_to_cpu(ch->crc)); in dump_ch()
229 pr_err("\tlen %u\n", le32_to_cpu(ch->len)); in dump_ch()
310 if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) { in ubifs_dump_node()
325 pr_err("\tpad_len %u\n", le32_to_cpu(pad->pad_len)); in ubifs_dump_node()
331 unsigned int sup_flags = le32_to_cpu(sup->flags); in ubifs_dump_node()
342 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size)); in ubifs_dump_node()
343 pr_err("\tleb_size %u\n", le32_to_cpu(sup->leb_size)); in ubifs_dump_node()
344 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node()
345 pr_err("\tmax_leb_cnt %u\n", le32_to_cpu(sup->max_leb_cnt)); in ubifs_dump_node()
[all …]
/external/f2fs-tools/fsck/
Dfsck.c180 if (le32_to_cpu(sum_entry->nid) != nid) { in is_valid_ssa_node_blk()
191 le32_to_cpu(sum_entry->nid)); in is_valid_ssa_node_blk()
221 u32 nid = le32_to_cpu(sum->nid); in is_valid_summary()
242 if (le32_to_cpu(node_blk->footer.nid) != nid) in is_valid_summary()
254 if (blk_addr == le32_to_cpu(target_blk_addr)) in is_valid_summary()
297 if (le32_to_cpu(sum_entry->nid) != parent_nid || in is_valid_ssa_data_blk()
302 le32_to_cpu(sum_entry->nid)); in is_valid_ssa_data_blk()
412 nid, le32_to_cpu(node_blk->footer.nid), in sanity_check_nid()
413 le32_to_cpu(node_blk->footer.ino)); in sanity_check_nid()
416 if (ni->ino != le32_to_cpu(node_blk->footer.ino)) { in sanity_check_nid()
[all …]
Df2fs.h239 unsigned flag = le32_to_cpu(node_blk->footer.flag); in ofs_of_node()
245 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); in is_set_ckpt_flags()
255 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); in __bitmap_size()
257 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); in __bitmap_size()
264 return le32_to_cpu(F2FS_RAW_SUPER(sbi)->cp_payload); in __cp_payload()
274 le32_to_cpu(ckpt->nat_ver_bitmap_bytesize) : 0; in __bitmap_ptr()
278 if (le32_to_cpu(F2FS_RAW_SUPER(sbi)->cp_payload) > 0) { in __bitmap_ptr()
285 le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; in __bitmap_ptr()
292 block_t start_addr = le32_to_cpu(F2FS_RAW_SUPER(sbi)->cp_blkaddr); in __start_cp_addr()
301 return le32_to_cpu(F2FS_CKPT(sbi)->cp_pack_start_sum); in __start_sum_addr()
[all …]
Ddump.c71 le32_to_cpu(node_block->footer.flag) >> in nat_dump()
92 le32_to_cpu(node_block->footer.flag) >> in nat_dump()
219 le32_to_cpu(sum_blk->entries[i].nid)); in ssa_dump()
288 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk()
292 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
296 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
387 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk()
394 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
397 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
400 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
[all …]
Dquotaio_v2.c53 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()
Ddir.c118 nid_t ino = le32_to_cpu(dir->footer.ino); in find_in_level()
128 bidx = dir_block_index(level, dir_level, le32_to_cpu(namehash) % nbucket); in find_in_level()
153 de->ino = le32_to_cpu(dentry->ino); in find_in_level()
171 max_depth = le32_to_cpu(dir->i.i_current_depth); in f2fs_find_entry()
230 nid_t pino = le32_to_cpu(parent->footer.ino); in f2fs_add_link()
245 current_depth = le32_to_cpu(parent->i.i_current_depth); in f2fs_add_link()
259 bidx = dir_block_index(level, dir_level, le32_to_cpu(dentry_hash) % nbucket); in f2fs_add_link()
304 u32 links = le32_to_cpu(parent->i.i_links); in f2fs_add_link()
335 nid_t ino = le32_to_cpu(inode->footer.ino); in make_empty_dir()
336 nid_t pino = le32_to_cpu(inode->i.i_pino); in make_empty_dir()
[all …]
/external/kernel-headers/original/uapi/linux/
Dbfs_fs.h71 ((le32_to_cpu((ip)->i_eoffset) + 1) - le32_to_cpu((ip)->i_sblock) * BFS_BSIZE)
77 ((ip)->i_sblock == 0 ? 0 : (le32_to_cpu((ip)->i_eblock) + 1) - le32_to_cpu((ip)->i_sblock))
79 …((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & SB_RD…
Dnilfs2_ondisk.h536 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \
542 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & \
548 return !!(le32_to_cpu(cp->cp_flags) & \
598 su->su_flags = cpu_to_le32(le32_to_cpu(su->su_flags) | \
605 cpu_to_le32(le32_to_cpu(su->su_flags) & \
611 return !!(le32_to_cpu(su->su_flags) & \
630 return !le32_to_cpu(su->su_flags); in nilfs_segment_usage_clean()
/external/u-boot/drivers/usb/host/
Dxhci-ring.c63 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
94 chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN; in inc_enq()
418 if ((le32_to_cpu(event->event_cmd.flags) & TRB_CYCLE) != in event_ready()
445 type = TRB_FIELD_TO_TYPE(le32_to_cpu(event->event_cmd.flags)); in xhci_wait_for_event()
456 le32_to_cpu(event->generic.field[2])) != in xhci_wait_for_event()
461 le32_to_cpu(event->generic.field[0]), in xhci_wait_for_event()
462 le32_to_cpu(event->generic.field[1]), in xhci_wait_for_event()
463 le32_to_cpu(event->generic.field[2]), in xhci_wait_for_event()
464 le32_to_cpu(event->generic.field[3])); in xhci_wait_for_event()
494 field = le32_to_cpu(event->trans_event.flags); in abort_td()
[all …]
/external/u-boot/drivers/power/
Dpower_i2c.c77 ret_val = le32_to_cpu(buf[2] << 16 in pmic_reg_read()
80 ret_val = le32_to_cpu(buf[0] << 16 | in pmic_reg_read()
85 ret_val = le32_to_cpu(buf[1] << 8 | buf[0]); in pmic_reg_read()
87 ret_val = le32_to_cpu(buf[0] << 8 | buf[1]); in pmic_reg_read()
90 ret_val = le32_to_cpu(buf[0]); in pmic_reg_read()
/external/u-boot/disk/
Dpart_efi.c99 le32_to_cpu(gpt_h->header_size)); in validate_gpt_header()
103 if (calc_crc32 != le32_to_cpu(crc32_backup)) { in validate_gpt_header()
106 le32_to_cpu(crc32_backup), calc_crc32); in validate_gpt_header()
148 le32_to_cpu(gpt_h->num_partition_entries) * in validate_gpt_entries()
149 le32_to_cpu(gpt_h->sizeof_partition_entry)); in validate_gpt_entries()
151 if (calc_crc32 != le32_to_cpu(gpt_h->partition_entry_array_crc32)) { in validate_gpt_entries()
154 le32_to_cpu(gpt_h->partition_entry_array_crc32), in validate_gpt_entries()
176 le32_to_cpu(gpt_h->header_size)); in prepare_backup_gpt_header()
246 for (i = 0; i < le32_to_cpu(gpt_head->num_partition_entries); i++) { in part_print_efi()
300 if (part > le32_to_cpu(gpt_head->num_partition_entries) || in part_get_info_efi()
[all …]
/external/u-boot/arch/sandbox/lib/
Dbootm.c28 le32_to_cpu(*(uint32_t *)(zimage + 0x1f4)); in bootz_setup()
35 } else if (le32_to_cpu(arm_hdr->zi_magic) == LINUX_ARM_ZIMAGE_MAGIC) { in bootz_setup()
36 *start = le32_to_cpu(arm_hdr->zi_start); in bootz_setup()
37 *end = le32_to_cpu(arm_hdr->zi_end); in bootz_setup()

12345