Home
last modified time | relevance | path

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

1234

/rk3399_rockchip-uboot/tools/
H A Dzynqimage.c98 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum()
99 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum()
100 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum()
101 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum()
102 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum()
103 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum()
104 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum()
105 checksum += le32_to_cpu(ptr->image_load); in zynqimage_checksum()
106 checksum += le32_to_cpu(ptr->image_stored_size); in zynqimage_checksum()
107 checksum += le32_to_cpu(ptr->__reserved2); in zynqimage_checksum()
[all …]
H A Dzynqmpimage.c112 checksum += le32_to_cpu(ptr->width_detection); in zynqmpimage_checksum()
113 checksum += le32_to_cpu(ptr->image_identifier); in zynqmpimage_checksum()
114 checksum += le32_to_cpu(ptr->encryption); in zynqmpimage_checksum()
115 checksum += le32_to_cpu(ptr->image_load); in zynqmpimage_checksum()
116 checksum += le32_to_cpu(ptr->image_offset); in zynqmpimage_checksum()
117 checksum += le32_to_cpu(ptr->pfw_image_length); in zynqmpimage_checksum()
118 checksum += le32_to_cpu(ptr->total_pfw_image_length); in zynqmpimage_checksum()
119 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum()
120 checksum += le32_to_cpu(ptr->image_stored_size); in zynqmpimage_checksum()
121 checksum += le32_to_cpu(ptr->image_attributes); in zynqmpimage_checksum()
[all …]
H 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()
168 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main()
169 if (count != le32_to_cpu(img.header.length)) { in main()
/rk3399_rockchip-uboot/cmd/
H 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()
H A Dbmp.c207 printf("Image size : %d x %d\n", le32_to_cpu(bmp->header.width), in bmp_info()
208 le32_to_cpu(bmp->header.height)); in bmp_info()
210 printf("Compression : %d\n", le32_to_cpu(bmp->header.compression)); in bmp_info()
H A Dbooti.c43 if (ih->magic != le32_to_cpu(LINUX_ARM64_IMAGE_MAGIC)) { in booti_setup()
119 lmb_reserve(&images->lmb, images->ep, le32_to_cpu(ih->image_size)); in booti_start()
/rk3399_rockchip-uboot/fs/ubifs/
H A Dmaster.c276 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master()
277 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
278 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master()
279 c->lhead_lnum = le32_to_cpu(c->mst_node->log_lnum); in ubifs_read_master()
280 c->gc_lnum = le32_to_cpu(c->mst_node->gc_lnum); in ubifs_read_master()
281 c->ihead_lnum = le32_to_cpu(c->mst_node->ihead_lnum); in ubifs_read_master()
282 c->ihead_offs = le32_to_cpu(c->mst_node->ihead_offs); in ubifs_read_master()
284 c->lpt_lnum = le32_to_cpu(c->mst_node->lpt_lnum); in ubifs_read_master()
285 c->lpt_offs = le32_to_cpu(c->mst_node->lpt_offs); in ubifs_read_master()
286 c->nhead_lnum = le32_to_cpu(c->mst_node->nhead_lnum); in ubifs_read_master()
[all …]
H A Dsb.c366 if (le32_to_cpu(sup->min_io_size) != c->min_io_size) { in validate_sb()
368 le32_to_cpu(sup->min_io_size), c->min_io_size); in validate_sb()
372 if (le32_to_cpu(sup->leb_size) != c->leb_size) { in validate_sb()
374 le32_to_cpu(sup->leb_size), c->leb_size); in validate_sb()
461 if (le32_to_cpu(sup->time_gran) > 1000000000 || in validate_sb()
462 le32_to_cpu(sup->time_gran) < 1) { in validate_sb()
545 c->fmt_version = le32_to_cpu(sup->fmt_version); in ubifs_read_superblock()
546 c->ro_compat_version = le32_to_cpu(sup->ro_compat_version); in ubifs_read_superblock()
607 c->leb_cnt = le32_to_cpu(sup->leb_cnt); in ubifs_read_superblock()
608 c->max_leb_cnt = le32_to_cpu(sup->max_leb_cnt); in ubifs_read_superblock()
[all …]
H A Ddebug.c222 pr_err("\tmagic %#x\n", le32_to_cpu(ch->magic)); in dump_ch()
223 pr_err("\tcrc %#x\n", le32_to_cpu(ch->crc)); in dump_ch()
230 pr_err("\tlen %u\n", le32_to_cpu(ch->len)); in dump_ch()
311 if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) { in ubifs_dump_node()
326 pr_err("\tpad_len %u\n", le32_to_cpu(pad->pad_len)); in ubifs_dump_node()
332 unsigned int sup_flags = le32_to_cpu(sup->flags); in ubifs_dump_node()
343 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size)); in ubifs_dump_node()
344 pr_err("\tleb_size %u\n", le32_to_cpu(sup->leb_size)); in ubifs_dump_node()
345 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node()
346 pr_err("\tmax_leb_cnt %u\n", le32_to_cpu(sup->max_leb_cnt)); in ubifs_dump_node()
[all …]
H A Dkey.h331 return le32_to_cpu(key->j32[1]) >> UBIFS_S_KEY_BLOCK_BITS; in key_type_flash()
355 return le32_to_cpu(key->j32[0]); in key_inum_flash()
378 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_HASH_MASK; in key_hash_flash()
402 return le32_to_cpu(key->j32[1]) & UBIFS_S_KEY_BLOCK_MASK; in key_block_flash()
416 to->u32[0] = le32_to_cpu(f->j32[0]); in key_read()
417 to->u32[1] = le32_to_cpu(f->j32[1]); in key_read()
H A Dscan.c68 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node()
89 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node()
90 int node_len = le32_to_cpu(ch->len); in ubifs_scan_a_node()
201 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
313 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_scan()
H A Dreplay.c450 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry()
599 if (le32_to_cpu(ino->nlink) == 0) in replay_bud()
609 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud()
652 trun_key_init(c, &key, le32_to_cpu(trun->inum)); in replay_bud()
783 int lnum = le32_to_cpu(ref->lnum); in validate_ref()
784 unsigned int offs = le32_to_cpu(ref->offs); in validate_ref()
785 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref()
919 err = add_replay_bud(c, le32_to_cpu(ref->lnum), in replay_log_leb()
920 le32_to_cpu(ref->offs), in replay_log_leb()
921 le32_to_cpu(ref->jhead), in replay_log_leb()
/rk3399_rockchip-uboot/fs/ext4/
H A Dext4_common.c58 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) - 1); in ext4fs_sb_free_inodes_dec()
63 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_free_blocks_dec()
64 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_free_blocks_dec()
112 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_get_free_blocks()
113 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_get_free_blocks()
157 uint64_t block_nr = le32_to_cpu(bg->block_id); in ext4fs_bg_get_block_id()
159 block_nr += (uint64_t)le32_to_cpu(bg->block_id_high) << 32; in ext4fs_bg_get_block_id()
167 uint64_t block_nr = le32_to_cpu(bg->inode_id); in ext4fs_bg_get_inode_id()
169 block_nr += (uint64_t)le32_to_cpu(bg->inode_id_high) << 32; in ext4fs_bg_get_inode_id()
178 uint64_t block_nr = le32_to_cpu(bg->inode_table_id); in ext4fs_bg_get_inode_table_id()
[all …]
H A Dext4_write.c33 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) + 1); in ext4fs_sb_free_inodes_inc()
38 sb->free_blocks = cpu_to_le32(le32_to_cpu(sb->free_blocks) + 1); in ext4fs_sb_free_blocks_inc()
144 uint32_t blk_per_grp = le32_to_cpu(ext4fs_root->sblock.blocks_per_group); in delete_single_indirect_block()
154 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block()
192 uint32_t blk_per_grp = le32_to_cpu(ext4fs_root->sblock.blocks_per_group); in delete_double_indirect_block()
210 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
218 bg_idx = le32_to_cpu(*di_buffer) / blk_per_grp; in delete_double_indirect_block()
220 remainder = le32_to_cpu(*di_buffer) % blk_per_grp; in delete_double_indirect_block()
226 ext4fs_reset_block_bmap(le32_to_cpu(*di_buffer), in delete_double_indirect_block()
250 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
[all …]
/rk3399_rockchip-uboot/arch/sandbox/lib/
H 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()
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dxhci-ring.c64 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
95 chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN; in inc_enq()
419 if ((le32_to_cpu(event->event_cmd.flags) & TRB_CYCLE) != in event_ready()
446 type = TRB_FIELD_TO_TYPE(le32_to_cpu(event->event_cmd.flags)); in xhci_wait_for_event()
457 le32_to_cpu(event->generic.field[2])) != in xhci_wait_for_event()
462 le32_to_cpu(event->generic.field[0]), in xhci_wait_for_event()
463 le32_to_cpu(event->generic.field[1]), in xhci_wait_for_event()
464 le32_to_cpu(event->generic.field[2]), in xhci_wait_for_event()
465 le32_to_cpu(event->generic.field[3])); in xhci_wait_for_event()
494 field = le32_to_cpu(event->trans_event.flags); in reset_ep()
[all …]
/rk3399_rockchip-uboot/drivers/power/
H A Dpower_i2c.c78 ret_val = le32_to_cpu(buf[2] << 16 in pmic_reg_read()
81 ret_val = le32_to_cpu(buf[0] << 16 | in pmic_reg_read()
86 ret_val = le32_to_cpu(buf[1] << 8 | buf[0]); in pmic_reg_read()
88 ret_val = le32_to_cpu(buf[0] << 8 | buf[1]); in pmic_reg_read()
91 ret_val = le32_to_cpu(buf[0]); in pmic_reg_read()
/rk3399_rockchip-uboot/disk/
H A Dpart_efi.c97 le32_to_cpu(gpt_h->header_size)); in validate_gpt_header()
101 if (calc_crc32 != le32_to_cpu(crc32_backup)) { in validate_gpt_header()
104 le32_to_cpu(crc32_backup), calc_crc32); in validate_gpt_header()
156 le32_to_cpu(gpt_h->num_partition_entries) * in validate_gpt_entries()
157 le32_to_cpu(gpt_h->sizeof_partition_entry)); in validate_gpt_entries()
159 if (calc_crc32 != le32_to_cpu(gpt_h->partition_entry_array_crc32)) { in validate_gpt_entries()
162 le32_to_cpu(gpt_h->partition_entry_array_crc32), in validate_gpt_entries()
184 le32_to_cpu(gpt_h->header_size)); in prepare_backup_gpt_header()
256 for (i = 0; i < le32_to_cpu(gpt_head->num_partition_entries); i++) { in part_print_efi()
337 if (part > le32_to_cpu(gpt_head->num_partition_entries) || in part_get_info_efi()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dlz4_wrapper.c42 if (le32_to_cpu(hdr->magic) != LZ4F_MAGIC || hdr->version != 1) in lz4_is_valid_header()
81 if (le32_to_cpu(h->magic) != LZ4F_MAGIC || h->version != 1) in ulz4fn()
98 b.raw = le32_to_cpu(*(u32 *)in); in ulz4fn()
/rk3399_rockchip-uboot/drivers/misc/
H 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()
/rk3399_rockchip-uboot/drivers/net/
H A Dns8382x.c282 return le32_to_cpu(*(vu_long *) (addr + dev->iobase)); in INL()
658 i, &rxd[i], le32_to_cpu(rxd[i].link), in ns8382x_init_rxd()
659 le32_to_cpu(rxd[i].cmdsts), le32_to_cpu(rxd[i].bufptr)); in ns8382x_init_rxd()
759 le32_to_cpu(txd.link), le32_to_cpu(txd.bufptr), in ns8382x_send()
760 le32_to_cpu(txd.extsts), le32_to_cpu(txd.cmdsts)); in ns8382x_send()
765 for (i = 0; (tx_stat = le32_to_cpu(txd.cmdsts)) & DescOwn; i++) { in ns8382x_send()
800 vu_long rx_status = le32_to_cpu(rxd[cur_rx].cmdsts); in ns8382x_poll()
H A Ddc2114x.c177 return le32_to_cpu(*(volatile u_long *)(addr + dev->iobase)); in INL()
409 if (le32_to_cpu(tx_ring[tx_new].status) & TD_ES) { in dc21x4x_send()
412 le32_to_cpu(tx_ring[tx_new].status)); in dc21x4x_send()
431 status = (s32)le32_to_cpu(rx_ring[rx_new].status); in dc21x4x_recv()
448 length = (le32_to_cpu(rx_ring[rx_new].status) >> 16); in dc21x4x_recv()
516 if (le32_to_cpu(tx_ring[tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
517 printf("TX error status2 = 0x%08X\n", le32_to_cpu(tx_ring[tx_new].status)); in send_setup_frame()
/rk3399_rockchip-uboot/drivers/usb/cdns3/
H 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()
/rk3399_rockchip-uboot/include/
H A Dcompiler.h95 # define le32_to_cpu(x) (x) macro
108 # define le32_to_cpu(x) uswap_32(x) macro
H A Dimage-sparse.h32 if ((le32_to_cpu(s_header->magic) == SPARSE_HEADER_MAGIC) && in is_sparse_image()

1234