Lines Matching refs:VirtualBlockMap
113 uint32_t *VirtualBlockMap; member
266 part->VirtualBlockMap = vmalloc(array_size(blocks, sizeof(uint32_t))); in build_maps()
267 if (!part->VirtualBlockMap) in build_maps()
270 memset(part->VirtualBlockMap, 0xff, blocks * sizeof(uint32_t)); in build_maps()
299 part->VirtualBlockMap[BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j]))] = in build_maps()
312 vfree(part->VirtualBlockMap); in build_maps()
769 log_addr = part->VirtualBlockMap[sector+i]; in ftl_read()
922 old_addr = part->VirtualBlockMap[sector+i]; in ftl_write()
924 part->VirtualBlockMap[sector+i] = 0xffffffff; in ftl_write()
933 part->VirtualBlockMap[sector+i] = log_addr; in ftl_write()
979 uint32_t old_addr = part->VirtualBlockMap[sector]; in ftl_discardsect()
981 part->VirtualBlockMap[sector] = 0xffffffff; in ftl_discardsect()
996 vfree(part->VirtualBlockMap); in ftl_freepart()
997 part->VirtualBlockMap = NULL; in ftl_freepart()