Lines Matching refs:pba_to_lba
61 int *pba_to_lba; /* physical to logical map */ member
242 if (info->pba_to_lba) in sddr55_status()
243 kfree(info->pba_to_lba); in sddr55_status()
245 info->pba_to_lba = NULL; in sddr55_status()
515 if (info->pba_to_lba[pba] == UNUSED_BLOCK) { in sddr55_write_data()
608 info->pba_to_lba[new_pba] = BAD_BLOCK; in sddr55_write_data()
618 info->pba_to_lba[pba] = UNUSED_BLOCK; in sddr55_write_data()
621 if (info->pba_to_lba[new_pba] != UNUSED_BLOCK) { in sddr55_write_data()
623 new_pba, info->pba_to_lba[new_pba]); in sddr55_write_data()
633 info->pba_to_lba[new_pba] = lba % 1000; in sddr55_write_data()
819 if (info->pba_to_lba) in sddr55_read_map()
820 kfree(info->pba_to_lba); in sddr55_read_map()
822 info->pba_to_lba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr55_read_map()
824 if (info->lba_to_pba == NULL || info->pba_to_lba == NULL) { in sddr55_read_map()
827 if (info->pba_to_lba != NULL) in sddr55_read_map()
828 kfree(info->pba_to_lba); in sddr55_read_map()
830 info->pba_to_lba = NULL; in sddr55_read_map()
836 memset(info->pba_to_lba, 0xff, numblocks*sizeof(int)); in sddr55_read_map()
867 info->pba_to_lba[i] = lba; in sddr55_read_map()
898 if (info->pba_to_lba) in sddr55_card_info_destructor()
899 kfree(info->pba_to_lba); in sddr55_card_info_destructor()