Lines Matching refs:lba_to_phys_table
757 zone->lba_to_phys_table = kmalloc_array(ftl->max_lba, 2, GFP_KERNEL); in sm_init_zone()
759 if (!zone->lba_to_phys_table) in sm_init_zone()
761 memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); in sm_init_zone()
766 kfree(zone->lba_to_phys_table); in sm_init_zone()
780 kfree(zone->lba_to_phys_table); in sm_init_zone()
815 if (zone->lba_to_phys_table[lba] < 0) { in sm_init_zone()
817 zone->lba_to_phys_table[lba] = block; in sm_init_zone()
823 lba, zone->lba_to_phys_table[lba], block, zone_num); in sm_init_zone()
831 zone->lba_to_phys_table[lba])) { in sm_init_zone()
832 zone->lba_to_phys_table[lba] = block; in sm_init_zone()
935 block_num = zone->lba_to_phys_table[ftl->cache_block]; in sm_cache_flush()
969 zone->lba_to_phys_table[ftl->cache_block] = write_sector; in sm_cache_flush()
1026 block = zone->lba_to_phys_table[block]; in sm_read()
1230 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev()