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