Home
last modified time | relevance | path

Searched refs:be32_to_cpu (Results 1 – 25 of 75) sorted by relevance

123

/external/u-boot/drivers/mtd/ubispl/
Dubispl.c62 ubi_dbg("\treserved_pebs %d", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
63 ubi_dbg("\talignment %d", be32_to_cpu(r->alignment)); in ubi_dump_vtbl_record()
64 ubi_dbg("\tdata_pad %d", be32_to_cpu(r->data_pad)); in ubi_dump_vtbl_record()
82 ubi_dbg("\tcrc %#08x", be32_to_cpu(r->crc)); in ubi_dump_vtbl_record()
105 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in vtbl_check()
106 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check()
107 data_pad = be32_to_cpu(vtbl[i].data_pad); in vtbl_check()
114 if (be32_to_cpu(vtbl[i].crc) != crc) { in vtbl_check()
116 i, crc, be32_to_cpu(vtbl[i].crc)); in vtbl_check()
258 magic = be32_to_cpu(vh->magic); in ubi_io_read_vid_hdr()
[all …]
/external/libsrtp2/crypto/hash/
Dsha1.c120 W[0] = be32_to_cpu(M[0]); in srtp_sha1_core()
121 W[1] = be32_to_cpu(M[1]); in srtp_sha1_core()
122 W[2] = be32_to_cpu(M[2]); in srtp_sha1_core()
123 W[3] = be32_to_cpu(M[3]); in srtp_sha1_core()
124 W[4] = be32_to_cpu(M[4]); in srtp_sha1_core()
125 W[5] = be32_to_cpu(M[5]); in srtp_sha1_core()
126 W[6] = be32_to_cpu(M[6]); in srtp_sha1_core()
127 W[7] = be32_to_cpu(M[7]); in srtp_sha1_core()
128 W[8] = be32_to_cpu(M[8]); in srtp_sha1_core()
129 W[9] = be32_to_cpu(M[9]); in srtp_sha1_core()
[all …]
/external/u-boot/fs/ext4/
Dext4_journal.c218 max = be32_to_cpu(header->r_count); in print_revoke_blks()
222 blocknr = be32_to_cpu(*((__be32 *)(revk_blk + offset))); in print_revoke_blks()
304 if (sequence_no < be32_to_cpu(header->r_header.h_sequence)) { in check_blknr_for_revoke()
306 max = be32_to_cpu(header->r_count); in check_blknr_for_revoke()
309 blocknr = be32_to_cpu(*((__be32 *) in check_blknr_for_revoke()
364 flags = be32_to_cpu(tag->flags); in recover_transaction()
369 debug("\t\ttag %u\n", be32_to_cpu(tag->block)); in recover_transaction()
371 if (check_blknr_for_revoke(be32_to_cpu(tag->block), in recover_transaction()
372 be32_to_cpu(jdb->h_sequence)) == 0) in recover_transaction()
378 put_ext4((uint64_t)((uint64_t)be32_to_cpu(tag->block) * (uint64_t)fs->blksz), in recover_transaction()
[all …]
/external/u-boot/drivers/mtd/ubi/
Dfastmap.c285 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol()
286 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
320 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
322 be32_to_cpu(new_vh->data_size); in update_vol()
344 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
345 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
346 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
350 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
377 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
378 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
[all …]
Ddebug.c56 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr()
59 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr()
60 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr()
61 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr()
62 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
75 pr_err("\tmagic %08x\n", be32_to_cpu(vid_hdr->magic)); in ubi_dump_vid_hdr()
80 pr_err("\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); in ubi_dump_vid_hdr()
81 pr_err("\tlnum %d\n", be32_to_cpu(vid_hdr->lnum)); in ubi_dump_vid_hdr()
82 pr_err("\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size)); in ubi_dump_vid_hdr()
83 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr()
[all …]
Dattach.c193 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
194 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr()
195 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr()
261 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()
285 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
286 av->data_pad = be32_to_cpu(vid_hdr->data_pad); in add_volume()
392 len = be32_to_cpu(vid_hdr->data_size); in ubi_compare_lebs()
399 data_crc = be32_to_cpu(vid_hdr->data_crc); in ubi_compare_lebs()
454 vol_id = be32_to_cpu(vid_hdr->vol_id); in ubi_add_to_av()
455 lnum = be32_to_cpu(vid_hdr->lnum); in ubi_add_to_av()
[all …]
Dio.c669 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr()
670 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr()
751 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr()
789 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in ubi_io_read_ec_hdr()
876 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
877 int lnum = be32_to_cpu(vid_hdr->lnum); in validate_vid_hdr()
879 int data_size = be32_to_cpu(vid_hdr->data_size); in validate_vid_hdr()
880 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr()
881 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr()
882 int data_crc = be32_to_cpu(vid_hdr->data_crc); in validate_vid_hdr()
[all …]
Dvtbl.c175 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
176 alignment = be32_to_cpu(vtbl[i].alignment);
177 data_pad = be32_to_cpu(vtbl[i].data_pad);
184 if (be32_to_cpu(vtbl[i].crc) != crc) {
186 i, crc, be32_to_cpu(vtbl[i].crc));
539 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0)
546 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
547 vol->alignment = be32_to_cpu(vtbl[i].alignment);
548 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
/external/blktrace/
Dblktrace.h79 #define be32_to_cpu(x) __bswap_32(x) macro
86 #define be32_to_cpu(x) (x) macro
115 t->magic = be32_to_cpu(t->magic); in trace_to_cpu()
116 t->sequence = be32_to_cpu(t->sequence); in trace_to_cpu()
119 t->bytes = be32_to_cpu(t->bytes); in trace_to_cpu()
120 t->action = be32_to_cpu(t->action); in trace_to_cpu()
121 t->pid = be32_to_cpu(t->pid); in trace_to_cpu()
122 t->device = be32_to_cpu(t->device); in trace_to_cpu()
123 t->cpu = be32_to_cpu(t->cpu); in trace_to_cpu()
/external/u-boot/drivers/qe/
Dqe.c422 const u32 *code = base + be32_to_cpu(ucode->code_offset); in qe_upload_microcode()
433 out_be32(&qe_immr->iram.iadd, be32_to_cpu(ucode->iram_offset) | in qe_upload_microcode()
436 for (i = 0; i < be32_to_cpu(ucode->count); i++) in qe_upload_microcode()
437 out_be32(&qe_immr->iram.idata, be32_to_cpu(code[i])); in qe_upload_microcode()
477 length = be32_to_cpu(hdr->length); in qe_upload_firmware()
511 be32_to_cpu(firmware->microcode[i].count); in qe_upload_firmware()
523 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in qe_upload_firmware()
565 u32 trap = be32_to_cpu(ucode->traps[j]); in qe_upload_firmware()
572 out_be32(&qe_immr->rsp[i].eccr, be32_to_cpu(ucode->eccr)); in qe_upload_firmware()
616 length = be32_to_cpu(hdr->length); in u_qe_upload_firmware()
[all …]
/external/u-boot/drivers/net/pfe_eth/
Dpfe_hw.c142 val = be32_to_cpu(readl(pe[id].mem_access_rdata)); in pe_pmem_read()
191 val = be32_to_cpu(readl(pe[id].mem_access_rdata)); in pe_dmem_read()
236 val = be32_to_cpu(readl(CLASS_BUS_ACCESS_RDATA)); in class_bus_read()
349 u32 offset = be32_to_cpu(shdr->sh_offset); in pe_load_pmem_section()
350 u32 addr = be32_to_cpu(shdr->sh_addr); in pe_load_pmem_section()
351 u32 size = be32_to_cpu(shdr->sh_size); in pe_load_pmem_section()
352 u32 type = be32_to_cpu(shdr->sh_type); in pe_load_pmem_section()
400 u32 offset = be32_to_cpu(shdr->sh_offset); in pe_load_dmem_section()
401 u32 addr = be32_to_cpu(shdr->sh_addr); in pe_load_dmem_section()
402 u32 size = be32_to_cpu(shdr->sh_size); in pe_load_dmem_section()
[all …]
/external/blktrace/btt/
Dmmap.c59 tp->magic = be32_to_cpu(t->magic); in convert_to_cpu()
60 tp->sequence = be32_to_cpu(t->sequence); in convert_to_cpu()
63 tp->bytes = be32_to_cpu(t->bytes); in convert_to_cpu()
64 tp->action = be32_to_cpu(t->action); in convert_to_cpu()
65 tp->pid = be32_to_cpu(t->pid); in convert_to_cpu()
66 tp->device = be32_to_cpu(t->device); in convert_to_cpu()
Dtrace_remap.c25 rp->device_from = be32_to_cpu(rp->device_from); in cvt_pdu_remap()
26 rp->device_to = be32_to_cpu(rp->device_to); in cvt_pdu_remap()
/external/u-boot/fs/cbfs/
Dcbfs.c49 dest->magic = be32_to_cpu(src->magic); in swap_header()
50 dest->version = be32_to_cpu(src->version); in swap_header()
51 dest->rom_size = be32_to_cpu(src->rom_size); in swap_header()
52 dest->boot_block_size = be32_to_cpu(src->boot_block_size); in swap_header()
53 dest->align = be32_to_cpu(src->align); in swap_header()
54 dest->offset = be32_to_cpu(src->offset); in swap_header()
62 dest->len = be32_to_cpu(src->len); in swap_file_header()
63 dest->type = be32_to_cpu(src->type); in swap_file_header()
64 dest->attributes_offset = be32_to_cpu(src->attributes_offset); in swap_file_header()
65 dest->offset = be32_to_cpu(src->offset); in swap_file_header()
/external/e2fsprogs/debugfs/
Dlogdump.c71 if (blocknr >= be32_to_cpu((jsb)->s_maxlen)) \
72 blocknr -= (be32_to_cpu((jsb)->s_maxlen) - \
73 be32_to_cpu((jsb)->s_first));
369 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && in dump_journal()
398 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in dump_journal()
403 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
404 transaction = be32_to_cpu(jsb->s_sequence); in dump_journal()
405 blocknr = be32_to_cpu(jsb->s_start); in dump_journal()
427 magic = be32_to_cpu(header->h_magic); in dump_journal()
428 sequence = be32_to_cpu(header->h_sequence); in dump_journal()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/vphn/
Dtest-vphn.c9 #define be32_to_cpu(x) bswap_32(x) macro
14 #define be32_to_cpu(x) (x) macro
373 len = be32_to_cpu(output[0]); in test_one()
381 u32 val = be32_to_cpu(output[i]); in test_one()
/external/u-boot/board/corscience/tricorder/
Dtricorder-eeprom.c45 if (be32_to_cpu(eepromv0.crc32) != crc) { in handle_eeprom_v0()
46 warn_wrong_value("CRC", be32_to_cpu(eepromv0.crc32), in handle_eeprom_v0()
71 if (be32_to_cpu(eeprom->crc32) != crc) { in handle_eeprom_v1()
72 warn_wrong_value("CRC", be32_to_cpu(eeprom->crc32), crc); in handle_eeprom_v1()
89 if (be32_to_cpu(eeprom->magic) != TRICORDER_EEPROM_MAGIC) { in tricorder_get_eeprom()
91 be32_to_cpu(eeprom->magic)); in tricorder_get_eeprom()
/external/u-boot/board/varisys/common/
Dsys_eeprom.c85 be32_to_cpu(e.version)); in show_eeprom()
114 if (crc == be32_to_cpu(e.crc)) in show_eeprom()
115 printf("CRC: %08x\n", be32_to_cpu(e.crc)); in show_eeprom()
118 be32_to_cpu(e.crc), crc); in show_eeprom()
459 if (crc != be32_to_cpu(*crcp)) { in mac_read_from_eeprom_common()
461 be32_to_cpu(e.crc)); in mac_read_from_eeprom_common()
496 be32_to_cpu(e.version)); in mac_read_from_eeprom_common()
/external/u-boot/drivers/net/fm/
Dfm.c87 out_be32(&imem->idata, (be32_to_cpu(ucode[i]))); in fm_upload_ucode()
91 while ((in_be32(&imem->idata) != be32_to_cpu(ucode[0])) && --timeout) in fm_upload_ucode()
127 length = be32_to_cpu(hdr->length); in fman_upload_firmware()
160 be32_to_cpu(firmware->microcode[i].count); in fman_upload_firmware()
173 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware()
184 if (be32_to_cpu(ucode->code_offset)) { in fman_upload_firmware()
191 be32_to_cpu(ucode->code_offset); in fman_upload_firmware()
192 ucode_size = sizeof(u32) * be32_to_cpu(ucode->count); in fman_upload_firmware()
/external/u-boot/board/freescale/common/
Dsys_eeprom.c94 be32_to_cpu(e.version)); in show_eeprom()
128 if (crc == be32_to_cpu(e.crc)) in show_eeprom()
129 printf("CRC: %08x\n", be32_to_cpu(e.crc)); in show_eeprom()
132 be32_to_cpu(e.crc), crc); in show_eeprom()
510 if (crc != be32_to_cpu(*crcp)) { in mac_read_from_eeprom()
511 printf("CRC mismatch (%08x != %08x)\n", crc, be32_to_cpu(e.crc)); in mac_read_from_eeprom()
549 be32_to_cpu(e.version)); in mac_read_from_eeprom()
/external/libsrtp2/crypto/include/
Ddatatypes.h272 #define be32_to_cpu(x) (x) macro
277 #define be32_to_cpu(x) bswap_32((x)) macro
283 static inline uint32_t be32_to_cpu(uint32_t v) in be32_to_cpu() function
295 #define be32_to_cpu(x) ntohl((x)) macro
305 v = (uint64_t)((be32_to_cpu((uint32_t)(v >> 32))) | in be64_to_cpu()
306 (((uint64_t)be32_to_cpu((uint32_t)v)) << 32)); in be64_to_cpu()
/external/u-boot/drivers/misc/
Dqfw.c53 size = be32_to_cpu(file->cfg.size); in bios_linker_allocate()
170 size = be32_to_cpu(file->cfg.size); in write_acpi_tables()
264 entry, size, address, be32_to_cpu(dma.control)); in qemu_fwcfg_read_entry_dma()
314 count = be32_to_cpu(count); in qemu_fwcfg_read_firmware_list()
385 if (be32_to_cpu(qemu) == QEMU_FW_CFG_SIGNATURE) in qemu_fwcfg_init()
/external/u-boot/include/linux/byteorder/
Dgeneric.h95 #define be32_to_cpu __be32_to_cpu macro
183 *var = cpu_to_be32(be32_to_cpu(*var) + val); in be32_add_cpu()
204 dst[i] = be32_to_cpu(src[i]); in be32_to_cpu_array()
/external/u-boot/drivers/usb/gadget/
Df_sdp.c260 be32_to_cpu(cmd->addr), be32_to_cpu(cmd->cnt)); in sdp_rx_command_complete()
268 sdp->dnl_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete()
269 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete()
279 sdp->dnl_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete()
280 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete()
300 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete()
307 sdp->jmp_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete()
/external/u-boot/tools/
Ddefault_image.c59 if (be32_to_cpu(hdr->ih_magic) != IH_MAGIC) { in image_verify_header()
68 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header()
80 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header()

123