Lines Matching refs:bam_cache
127 uint32_t *bam_cache; member
273 part->bam_cache = kmalloc_array(part->BlocksPerUnit, sizeof(uint32_t), in build_maps()
275 if (!part->bam_cache) in build_maps()
288 (unsigned char *)part->bam_cache); in build_maps()
294 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[j]))) { in build_maps()
297 } else if ((BLOCK_TYPE(le32_to_cpu(part->bam_cache[j])) == BLOCK_DATA) && in build_maps()
298 (BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j])) < blocks)) in build_maps()
299 part->VirtualBlockMap[BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j]))] = in build_maps()
301 else if (BLOCK_DELETED(le32_to_cpu(part->bam_cache[j]))) in build_maps()
310 kfree(part->bam_cache); in build_maps()
454 (u_char *)(part->bam_cache)); in copy_erase_unit()
484 switch (BLOCK_TYPE(le32_to_cpu(part->bam_cache[i]))) { in copy_erase_unit()
508 part->bam_cache[i] = cpu_to_le32(0xffffffff); in copy_erase_unit()
521 (u_char *)part->bam_cache); in copy_erase_unit()
715 (u_char *)(part->bam_cache)); in find_free()
726 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break; in find_free()
837 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) { in set_bam_entry()
844 le32_to_cpu(part->bam_cache[blk]), old_addr); in set_bam_entry()
849 part->bam_cache[blk] = le_virt_addr; in set_bam_entry()
1002 kfree(part->bam_cache); in ftl_freepart()
1003 part->bam_cache = NULL; in ftl_freepart()