Home
last modified time | relevance | path

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

1234

/u-boot/tools/
A 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 …]
A 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()
81 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum()
83 checksum += le32_to_cpu(ptr->image_attributes); in zynqmpimage_checksum()
140 uint32_t attr = le32_to_cpu(ph->attributes); in print_partition()
141 unsigned long len = le32_to_cpu(ph->len) * 4; in print_partition()
[all …]
A Dstm32image.c110 (unsigned long)le32_to_cpu(stm32hdr->image_length)); in stm32image_print_header()
112 le32_to_cpu(stm32hdr->load_address)); in stm32image_print_header()
114 le32_to_cpu(stm32hdr->image_entry_point)); in stm32image_print_header()
116 le32_to_cpu(stm32hdr->image_checksum)); in stm32image_print_header()
118 le32_to_cpu(stm32hdr->option_flags)); in stm32image_print_header()
120 le32_to_cpu(stm32hdr->binary_type)); in stm32image_print_header()
A Dmtk_image.c441 if (le32_to_cpu(gbh->version) != 1 || in mtk_image_verify_gen_header()
450 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC || in mtk_image_verify_gen_header()
451 (le32_to_cpu(bh->type) != BRLYT_TYPE_NOR && in mtk_image_verify_gen_header()
452 le32_to_cpu(bh->type) != BRLYT_TYPE_EMMC && in mtk_image_verify_gen_header()
453 le32_to_cpu(bh->type) != BRLYT_TYPE_SDMMC)) in mtk_image_verify_gen_header()
466 le32_to_cpu(gfh->file_info.load_addr) + in mtk_image_verify_gen_header()
491 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC) { in mtk_image_verify_nand_header()
494 if (le32_to_cpu(bh->type) == BRLYT_TYPE_NAND) in mtk_image_verify_nand_header()
534 le32_to_cpu(gfh->file_info.load_addr) + in mtk_image_verify_nand_header()
549 if (le32_to_cpu(lk->magic) == LK_PART_MAGIC) in mtk_image_verify_header()
[all …]
A Dsunxi_egon.c30 if ((le32_to_cpu(header->b_instruction) & 0xff000000) != 0xea000000) in egon_verify_header()
36 length = le32_to_cpu(header->length); in egon_verify_header()
56 le32_to_cpu(header->length)); in egon_print_header()
65 uint32_t dt_name_offs = le32_to_cpu(header->dt_name_offset); in egon_print_header()
105 checksum += le32_to_cpu(buf32[i]); in egon_set_header()
A Dmksunxiboot.c31 length = le32_to_cpu(head_p->length); in gen_check_sum()
40 sum += le32_to_cpu(buf[i]); in gen_check_sum()
165 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main()
166 if (count != le32_to_cpu(img.header.length)) { in main()
A Dsocfpgaimage.c188 if (le32_to_cpu(header_v0.validation) != VALIDATION_WORD) in sfp_verify_header()
199 img_len = le32_to_cpu(header_v1.length_u8); in sfp_verify_header()
265 buf_crc = le32_to_cpu(*((uint32_t *)(buf + len))); in sfp_verify_buffer()
290 le32_to_cpu(header->validation)); in socfpgaimage_print_header_v0()
303 le32_to_cpu(header->validation)); in socfpgaimage_print_header_v1()
309 le32_to_cpu(header->length_u8)); in socfpgaimage_print_header_v1()
311 le32_to_cpu(header->entry_offset)); in socfpgaimage_print_header_v1()
A Dzynqmpbif.c80 checksum += le32_to_cpu(*ptr32); in zynqmp_csum()
604 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32()
613 if (le32_to_cpu(shdr->sh_addr) < min_addr) in elf2flat32()
614 min_addr = le32_to_cpu(shdr->sh_addr); in elf2flat32()
615 if ((le32_to_cpu(shdr->sh_addr) + le32_to_cpu(shdr->sh_size)) > in elf2flat32()
617 max_addr = le32_to_cpu(shdr->sh_addr) + in elf2flat32()
618 le32_to_cpu(shdr->sh_size); in elf2flat32()
627 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32()
630 char *src = elf + le32_to_cpu(shdr->sh_offset); in elf2flat32()
637 memcpy(dst, src, le32_to_cpu(shdr->sh_size)); in elf2flat32()
[all …]
/u-boot/drivers/smem/
A Dmsm_smem.c314 le32_to_cpu(e->size); in uncached_entry_next()
336 return p - le32_to_cpu(e->size); in cached_entry_to_item()
487 *size = le32_to_cpu(entry->size); in qcom_smem_get_global()
512 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
532 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
690 if (!le32_to_cpu(entry->offset) || !le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
714 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
754 if (!le32_to_cpu(entry->offset)) in qcom_smem_enumerate_partitions()
757 if (!le32_to_cpu(entry->size)) in qcom_smem_enumerate_partitions()
802 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_enumerate_partitions()
[all …]
/u-boot/cmd/
A Dqfw.c32 le32_to_cpu(setup_size), data_addr); in qemu_fwcfg_setup_kernel()
33 data_addr += le32_to_cpu(setup_size); in qemu_fwcfg_setup_kernel()
36 le32_to_cpu(kernel_size), data_addr); in qemu_fwcfg_setup_kernel()
37 data_addr += le32_to_cpu(kernel_size); in qemu_fwcfg_setup_kernel()
45 le32_to_cpu(initrd_size), data_addr); in qemu_fwcfg_setup_kernel()
46 data_addr += le32_to_cpu(initrd_size); in qemu_fwcfg_setup_kernel()
52 le32_to_cpu(cmdline_size), data_addr); in qemu_fwcfg_setup_kernel()
64 le32_to_cpu(kernel_size)); in qemu_fwcfg_setup_kernel()
68 le32_to_cpu(initrd_size)); in qemu_fwcfg_setup_kernel()
A Dbmp.c216 printf("Image size : %d x %d\n", le32_to_cpu(bmp->header.width), in bmp_info()
217 le32_to_cpu(bmp->header.height)); in bmp_info()
219 printf("Compression : %d\n", le32_to_cpu(bmp->header.compression)); in bmp_info()
/u-boot/arch/sandbox/lib/
A Dbootm.c30 le32_to_cpu(*(uint32_t *)(zimage + 0x1f4)); in bootz_setup()
37 } else if (le32_to_cpu(arm_hdr->zi_magic) == LINUX_ARM_ZIMAGE_MAGIC) { in bootz_setup()
38 *start = le32_to_cpu(arm_hdr->zi_start); in bootz_setup()
39 *end = le32_to_cpu(arm_hdr->zi_end); in bootz_setup()
/u-boot/fs/ubifs/
A Dmaster.c277 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master()
278 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
279 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master()
280 c->lhead_lnum = le32_to_cpu(c->mst_node->log_lnum); in ubifs_read_master()
281 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
285 c->lpt_lnum = le32_to_cpu(c->mst_node->lpt_lnum); in ubifs_read_master()
286 c->lpt_offs = le32_to_cpu(c->mst_node->lpt_offs); in ubifs_read_master()
289 c->ltab_lnum = le32_to_cpu(c->mst_node->ltab_lnum); in ubifs_read_master()
290 c->ltab_offs = le32_to_cpu(c->mst_node->ltab_offs); in ubifs_read_master()
295 c->lst.idx_lebs = le32_to_cpu(c->mst_node->idx_lebs); in ubifs_read_master()
[all …]
A Dsb.c375 le32_to_cpu(sup->leb_size), c->leb_size); in validate_sb()
462 if (le32_to_cpu(sup->time_gran) > 1000000000 || in validate_sb()
463 le32_to_cpu(sup->time_gran) < 1) { in validate_sb()
546 c->fmt_version = le32_to_cpu(sup->fmt_version); in ubifs_read_superblock()
608 c->leb_cnt = le32_to_cpu(sup->leb_cnt); in ubifs_read_superblock()
611 c->log_lebs = le32_to_cpu(sup->log_lebs); in ubifs_read_superblock()
612 c->lpt_lebs = le32_to_cpu(sup->lpt_lebs); in ubifs_read_superblock()
615 c->fanout = le32_to_cpu(sup->fanout); in ubifs_read_superblock()
622 c->rp_uid.val = le32_to_cpu(sup->rp_uid); in ubifs_read_superblock()
623 c->rp_gid.val = le32_to_cpu(sup->rp_gid); in ubifs_read_superblock()
[all …]
A Ddebug.c312 if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) { in ubifs_dump_node()
333 unsigned int sup_flags = le32_to_cpu(sup->flags); in ubifs_dump_node()
432 le32_to_cpu(ino->atime_nsec)); in ubifs_dump_node()
435 le32_to_cpu(ino->mtime_nsec)); in ubifs_dump_node()
438 le32_to_cpu(ino->ctime_nsec)); in ubifs_dump_node()
519 i, le32_to_cpu(br->lnum), le32_to_cpu(br->offs), in ubifs_dump_node()
520 le32_to_cpu(br->len), in ubifs_dump_node()
1887 fscki->nlink = le32_to_cpu(ino->nlink); in add_inode()
1889 fscki->xattr_cnt = le32_to_cpu(ino->xattr_cnt); in add_inode()
1892 fscki->mode = le32_to_cpu(ino->mode); in add_inode()
[all …]
A Dkey.h330 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
354 return le32_to_cpu(key->j32[0]); in key_inum_flash()
377 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
401 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
415 to->u32[0] = le32_to_cpu(f->j32[0]); in key_read()
416 to->u32[1] = le32_to_cpu(f->j32[1]); in key_read()
A Dscan.c69 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node()
90 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node()
91 int node_len = le32_to_cpu(ch->len); in ubifs_scan_a_node()
202 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
314 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_scan()
/u-boot/fs/ext4/
A Dext4_write.c157 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block()
221 bg_idx = le32_to_cpu(*di_buffer) / blk_per_grp; in delete_double_indirect_block()
229 ext4fs_reset_block_bmap(le32_to_cpu(*di_buffer), in delete_double_indirect_block()
328 if (le32_to_cpu(*tip_buffer) == 0) in delete_triple_indirect_block()
330 bg_idx = le32_to_cpu(*tip_buffer) / blk_per_grp; in delete_triple_indirect_block()
372 bg_idx = le32_to_cpu(*tigp_buffer) / blk_per_grp; in delete_triple_indirect_block()
468 no_blocks = le32_to_cpu(inode.size) / fs->blksz; in ext4fs_delete_file()
469 if (le32_to_cpu(inode.size) % fs->blksz) in ext4fs_delete_file()
481 if (le32_to_cpu(inode.flags) & EXT4_EXTENTS_FL) { in ext4fs_delete_file()
622 le32_to_cpu(ext4fs_root->sblock.total_blocks) in ext4fs_init()
[all …]
A Dext4_common.c679 inodeno = le32_to_cpu(dir->inode); in search_dir()
905 inodeno = le32_to_cpu(dir->inode); in unlink_filename()
1185 le32_to_cpu(bgd->inode_id))) in ext4fs_get_new_inode_no()
1701 le32_to_cpu(extent[i].ee_start_lo); in read_allocated_block()
1755 le32_to_cpu(inode->b.blocks. in read_allocated_block()
1758 blknr = le32_to_cpu(ext4fs_indir1_block in read_allocated_block()
2110 le32_to_cpu in ext4fs_iterate_dir()
2146 le32_to_cpu( in ext4fs_iterate_dir()
2198 le32_to_cpu(diro->inode.size)); in ext4fs_read_symlink()
2201 le32_to_cpu(diro->inode.size), in ext4fs_read_symlink()
[all …]
/u-boot/drivers/usb/host/
A Dxhci-ring.c66 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
464 le32_to_cpu(event->generic.field[2])) != in xhci_wait_for_event()
469 le32_to_cpu(event->generic.field[0]), in xhci_wait_for_event()
470 le32_to_cpu(event->generic.field[1]), in xhci_wait_for_event()
471 le32_to_cpu(event->generic.field[2]), in xhci_wait_for_event()
472 le32_to_cpu(event->generic.field[3])); in xhci_wait_for_event()
502 field = le32_to_cpu(event->trans_event.flags); in abort_td()
511 != udev->slot_id || GET_COMP_CODE(le32_to_cpu( in abort_td()
519 != udev->slot_id || GET_COMP_CODE(le32_to_cpu( in abort_td()
737 field = le32_to_cpu(event->trans_event.flags); in xhci_bulk_tx()
[all …]
/u-boot/drivers/power/
A Dpower_i2c.c107 ret_val = le32_to_cpu(buf[2] << 16 in pmic_reg_read()
110 ret_val = le32_to_cpu(buf[0] << 16 | in pmic_reg_read()
115 ret_val = le32_to_cpu(buf[1] << 8 | buf[0]); in pmic_reg_read()
117 ret_val = le32_to_cpu(buf[0] << 8 | buf[1]); in pmic_reg_read()
120 ret_val = le32_to_cpu(buf[0]); in pmic_reg_read()
/u-boot/disk/
A Dpart_efi.c111 le32_to_cpu(gpt_h->header_size)); in validate_gpt_header()
115 if (calc_crc32 != le32_to_cpu(crc32_backup)) { in validate_gpt_header()
118 le32_to_cpu(crc32_backup), calc_crc32); in validate_gpt_header()
160 le32_to_cpu(gpt_h->num_partition_entries) * in validate_gpt_entries()
161 le32_to_cpu(gpt_h->sizeof_partition_entry)); in validate_gpt_entries()
188 le32_to_cpu(gpt_h->header_size)); in prepare_backup_gpt_header()
385 le32_to_cpu(gpt_h->num_partition_entries) * in write_gpt_table()
386 le32_to_cpu(gpt_h->sizeof_partition_entry)); in write_gpt_table()
390 le32_to_cpu(gpt_h->header_size)); in write_gpt_table()
823 le32_to_cpu(gpt_h->sizeof_partition_entry)), in write_mbr_and_gpt_partitions()
[all …]
/u-boot/drivers/misc/
A Dqfw.c41 align = le32_to_cpu(entry->alloc.align); in bios_linker_allocate()
100 uint32_t offset = le32_to_cpu(entry->pointer.offset); in bios_linker_add_pointer()
140 data = (uint8_t *)(file->addr + le32_to_cpu(entry->cksum.offset)); in bios_linker_add_checksum()
141 cksum_start = (uint8_t *)(file->addr + le32_to_cpu(entry->cksum.start)); in bios_linker_add_checksum()
143 le32_to_cpu(entry->cksum.length)); in bios_linker_add_checksum()
188 switch (le32_to_cpu(entry->command)) { in write_acpi_tables()
/u-boot/drivers/net/
A Dns8382x.c283 return le32_to_cpu(*(vu_long *) (addr + dev->iobase)); in INL()
659 i, &rxd[i], le32_to_cpu(rxd[i].link), in ns8382x_init_rxd()
660 le32_to_cpu(rxd[i].cmdsts), le32_to_cpu(rxd[i].bufptr)); in ns8382x_init_rxd()
760 le32_to_cpu(txd.link), le32_to_cpu(txd.bufptr), in ns8382x_send()
761 le32_to_cpu(txd.extsts), le32_to_cpu(txd.cmdsts)); in ns8382x_send()
766 for (i = 0; (tx_stat = le32_to_cpu(txd.cmdsts)) & DescOwn; i++) { in ns8382x_send()
801 vu_long rx_status = le32_to_cpu(rxd[cur_rx].cmdsts); in ns8382x_poll()
/u-boot/drivers/usb/cdns3/
A Ddebug.h153 le32_to_cpu(trb->buffer), in cdns3_dbg_ring()
154 le32_to_cpu(trb->length), in cdns3_dbg_ring()
155 le32_to_cpu(trb->control)); in cdns3_dbg_ring()

Completed in 42 milliseconds

1234