Lines Matching refs:bam_cache
128 uint32_t *bam_cache;
279 part->bam_cache = kmalloc(part->BlocksPerUnit * sizeof(uint32_t),
281 if (!part->bam_cache)
294 (unsigned char *)part->bam_cache);
300 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[j]))) {
303 } else if ((BLOCK_TYPE(le32_to_cpu(part->bam_cache[j])) == BLOCK_DATA) &&
304 (BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j])) < blocks))
305 part->VirtualBlockMap[BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j]))] =
307 else if (BLOCK_DELETED(le32_to_cpu(part->bam_cache[j])))
316 kfree(part->bam_cache);
490 &retlen, (u_char *) (part->bam_cache));
520 switch (BLOCK_TYPE(le32_to_cpu(part->bam_cache[i]))) {
544 part->bam_cache[i] = cpu_to_le32(0xffffffff);
555 (u_char *)part->bam_cache);
753 &retlen, (u_char *) (part->bam_cache));
764 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break;
875 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) {
882 le32_to_cpu(part->bam_cache[blk]), old_addr);
887 part->bam_cache[blk] = le_virt_addr;
1043 kfree(part->bam_cache);
1044 part->bam_cache = NULL;