Lines Matching refs:le32_to_cpu
239 le32_to_cpu(header.EraseCount); in build_maps()
249 part->XferInfo[xtrans].EraseCount = le32_to_cpu(header.EraseCount); in build_maps()
254 le32_to_cpu(part->header.EraseCount); in build_maps()
270 blocks = le32_to_cpu(header.FormattedSize) >> header.BlockSize; in build_maps()
289 offset = part->EUNInfo[i].Offset + le32_to_cpu(header.BAMOffset); in build_maps()
299 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[j]))) { in build_maps()
302 } else if ((BLOCK_TYPE(le32_to_cpu(part->bam_cache[j])) == BLOCK_DATA) && in build_maps()
303 (BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j])) < blocks)) in build_maps()
304 part->VirtualBlockMap[BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j]))] = in build_maps()
306 else if (BLOCK_DELETED(le32_to_cpu(part->bam_cache[j]))) in build_maps()
433 le32_to_cpu(part->header.BAMOffset) + SECTOR_SIZE - 1) / SECTOR_SIZE; in prepare_xfer()
435 offset = xfer->Offset + le32_to_cpu(part->header.BAMOffset); in prepare_xfer()
485 offset = eun->Offset + le32_to_cpu(part->header.BAMOffset); in copy_erase_unit()
519 switch (BLOCK_TYPE(le32_to_cpu(part->bam_cache[i]))) { in copy_erase_unit()
553 xfer->Offset + le32_to_cpu(part->header.BAMOffset), in copy_erase_unit()
751 part->EUNInfo[eun].Offset + le32_to_cpu(part->header.BAMOffset), in find_free()
765 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break; in find_free()
804 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read()
850 le32_to_cpu(part->header.BAMOffset)); in set_bam_entry()
859 old_addr = le32_to_cpu(old_addr); in set_bam_entry()
876 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) { in set_bam_entry()
883 le32_to_cpu(part->bam_cache[blk]), old_addr); in set_bam_entry()
926 if (virt_addr >= le32_to_cpu(part->header.FormattedSize)) { in ftl_write()
987 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE; in ftl_getgeo()
1065 le32_to_cpu(partition->header.FormattedSize) >> 10); in ftl_add_mtd()
1067 partition->mbd.size = le32_to_cpu(partition->header.FormattedSize) >> 9; in ftl_add_mtd()