/external/u-boot/drivers/mtd/ubispl/ |
D | ubispl.c | 76 magic = be32_to_cpu(vh->magic); in ubi_io_read_vid_hdr() 87 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr() 110 if (be32_to_cpu(vh->vol_id) == fm_vol_id && in ubi_rescan_fm_vid_hdr() 112 be32_to_cpu(vh->lnum) == fm_lnum) in ubi_rescan_fm_vid_hdr() 116 be32_to_cpu(vh->vol_id), in ubi_rescan_fm_vid_hdr() 117 fm_lnum, be32_to_cpu(vh->lnum)); in ubi_rescan_fm_vid_hdr() 207 vol_id = be32_to_cpu(vh->vol_id); in ubi_scan_vid_hdr() 221 lnum = be32_to_cpu(vh->lnum); in ubi_scan_vid_hdr() 256 pnum = be32_to_cpu(pebs[i]); in scan_pool() 305 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap() [all …]
|
/external/u-boot/drivers/mtd/ubi/ |
D | fastmap.c | 284 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol() 285 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol() 319 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol() 321 be32_to_cpu(new_vh->data_size); in update_vol() 343 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol() 344 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol() 345 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol() 349 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol() 376 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb() 377 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb() [all …]
|
D | debug.c | 56 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 …]
|
D | attach.c | 192 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr() 193 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() 194 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr() 260 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume() 284 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume() 285 av->data_pad = be32_to_cpu(vid_hdr->data_pad); in add_volume() 391 len = be32_to_cpu(vid_hdr->data_size); in ubi_compare_lebs() 398 data_crc = be32_to_cpu(vid_hdr->data_crc); in ubi_compare_lebs() 453 vol_id = be32_to_cpu(vid_hdr->vol_id); in ubi_add_to_av() 454 lnum = be32_to_cpu(vid_hdr->lnum); in ubi_add_to_av() [all …]
|
D | io.c | 668 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr() 669 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr() 750 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr() 788 hdr_crc = be32_to_cpu(ec_hdr->hdr_crc); in ubi_io_read_ec_hdr() 875 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr() 876 int lnum = be32_to_cpu(vid_hdr->lnum); in validate_vid_hdr() 878 int data_size = be32_to_cpu(vid_hdr->data_size); in validate_vid_hdr() 879 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr() 880 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr() 881 int data_crc = be32_to_cpu(vid_hdr->data_crc); in validate_vid_hdr() [all …]
|
D | vtbl.c | 174 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); 175 alignment = be32_to_cpu(vtbl[i].alignment); 176 data_pad = be32_to_cpu(vtbl[i].data_pad); 183 if (be32_to_cpu(vtbl[i].crc) != crc) { 185 i, crc, be32_to_cpu(vtbl[i].crc)); 538 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0) 545 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); 546 vol->alignment = be32_to_cpu(vtbl[i].alignment); 547 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
|
/external/u-boot/fs/ext4/ |
D | ext4_journal.c | 218 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/qe/ |
D | qe.c | 346 const u32 *code = base + be32_to_cpu(ucode->code_offset); in qe_upload_microcode() 357 out_be32(&qe_immr->iram.iadd, be32_to_cpu(ucode->iram_offset) | in qe_upload_microcode() 360 for (i = 0; i < be32_to_cpu(ucode->count); i++) in qe_upload_microcode() 361 out_be32(&qe_immr->iram.idata, be32_to_cpu(code[i])); in qe_upload_microcode() 401 length = be32_to_cpu(hdr->length); in qe_upload_firmware() 435 be32_to_cpu(firmware->microcode[i].count); in qe_upload_firmware() 447 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in qe_upload_firmware() 489 u32 trap = be32_to_cpu(ucode->traps[j]); in qe_upload_firmware() 496 out_be32(&qe_immr->rsp[i].eccr, be32_to_cpu(ucode->eccr)); in qe_upload_firmware() 540 length = be32_to_cpu(hdr->length); in u_qe_upload_firmware() [all …]
|
/external/blktrace/ |
D | blktrace.h | 79 #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/net/pfe_eth/ |
D | pfe_hw.c | 142 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 …]
|
D | pfe_cmd.c | 45 val = be32_to_cpu(val); in pfe_command_pe() 79 val = be32_to_cpu(val); in pfe_command_pe() 126 val = be32_to_cpu(val); in pfe_command_pe() 383 val = be32_to_cpu(val); in pfe_command_expt()
|
/external/u-boot/fs/cbfs/ |
D | cbfs.c | 43 dest->magic = be32_to_cpu(src->magic); in swap_header() 44 dest->version = be32_to_cpu(src->version); in swap_header() 45 dest->rom_size = be32_to_cpu(src->rom_size); in swap_header() 46 dest->boot_block_size = be32_to_cpu(src->boot_block_size); in swap_header() 47 dest->align = be32_to_cpu(src->align); in swap_header() 48 dest->offset = be32_to_cpu(src->offset); in swap_header() 56 dest->len = be32_to_cpu(src->len); in swap_file_header() 57 dest->type = be32_to_cpu(src->type); in swap_file_header() 58 dest->checksum = be32_to_cpu(src->checksum); in swap_file_header() 59 dest->offset = be32_to_cpu(src->offset); in swap_file_header()
|
/external/blktrace/btt/ |
D | mmap.c | 59 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()
|
D | trace_remap.c | 25 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/e2fsprogs/debugfs/ |
D | logdump.c | 71 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/ |
D | test-vphn.c | 9 #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/ |
D | tricorder-eeprom.c | 43 if (be32_to_cpu(eepromv0.crc32) != crc) { in handle_eeprom_v0() 44 warn_wrong_value("CRC", be32_to_cpu(eepromv0.crc32), in handle_eeprom_v0() 69 if (be32_to_cpu(eeprom->crc32) != crc) { in handle_eeprom_v1() 70 warn_wrong_value("CRC", be32_to_cpu(eeprom->crc32), crc); in handle_eeprom_v1() 87 if (be32_to_cpu(eeprom->magic) != TRICORDER_EEPROM_MAGIC) { in tricorder_get_eeprom() 89 be32_to_cpu(eeprom->magic)); in tricorder_get_eeprom()
|
/external/u-boot/drivers/net/fm/ |
D | fm.c | 84 out_be32(&imem->idata, (be32_to_cpu(ucode[i]))); in fm_upload_ucode() 88 while ((in_be32(&imem->idata) != be32_to_cpu(ucode[0])) && --timeout) in fm_upload_ucode() 124 length = be32_to_cpu(hdr->length); in fman_upload_firmware() 157 be32_to_cpu(firmware->microcode[i].count); in fman_upload_firmware() 170 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware() 181 if (be32_to_cpu(ucode->code_offset)) { in fman_upload_firmware() 188 be32_to_cpu(ucode->code_offset); in fman_upload_firmware() 189 ucode_size = sizeof(u32) * be32_to_cpu(ucode->count); in fman_upload_firmware()
|
/external/u-boot/board/varisys/common/ |
D | sys_eeprom.c | 83 be32_to_cpu(e.version)); in show_eeprom() 112 if (crc == be32_to_cpu(e.crc)) in show_eeprom() 113 printf("CRC: %08x\n", be32_to_cpu(e.crc)); in show_eeprom() 116 be32_to_cpu(e.crc), crc); in show_eeprom() 457 if (crc != be32_to_cpu(*crcp)) { in mac_read_from_eeprom_common() 459 be32_to_cpu(e.crc)); in mac_read_from_eeprom_common() 494 be32_to_cpu(e.version)); in mac_read_from_eeprom_common()
|
/external/u-boot/board/freescale/common/ |
D | sys_eeprom.c | 92 be32_to_cpu(e.version)); in show_eeprom() 126 if (crc == be32_to_cpu(e.crc)) in show_eeprom() 127 printf("CRC: %08x\n", be32_to_cpu(e.crc)); in show_eeprom() 130 be32_to_cpu(e.crc), crc); in show_eeprom() 448 if (crc != be32_to_cpu(*crcp)) { in mac_read_from_eeprom() 449 printf("CRC mismatch (%08x != %08x)\n", crc, be32_to_cpu(e.crc)); in mac_read_from_eeprom() 487 be32_to_cpu(e.version)); in mac_read_from_eeprom()
|
/external/u-boot/drivers/usb/gadget/ |
D | f_sdp.c | 258 be32_to_cpu(cmd->addr), be32_to_cpu(cmd->cnt)); in sdp_rx_command_complete() 266 sdp->dnl_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete() 267 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete() 277 sdp->dnl_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete() 278 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete() 297 sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt); in sdp_rx_command_complete() 304 sdp->jmp_address = be32_to_cpu(cmd->addr); in sdp_rx_command_complete()
|
/external/u-boot/drivers/misc/ |
D | qfw.c | 53 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/ |
D | generic.h | 95 #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/tools/ |
D | default_image.c | 57 if (be32_to_cpu(hdr->ih_magic) != IH_MAGIC) { in image_verify_header() 66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header() 78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header()
|
/external/u-boot/include/ |
D | compiler.h | 104 # define be32_to_cpu(x) uswap_32(x) macro 117 # define be32_to_cpu(x) (x) macro
|