Lines Matching refs:pba_to_lba
97 int *pba_to_lba; /* physical to logical map */ member
155 kfree(info->pba_to_lba); in sddr55_status()
157 info->pba_to_lba = NULL; in sddr55_status()
389 if (info->pba_to_lba[pba] == UNUSED_BLOCK) { in sddr55_write_data()
474 info->pba_to_lba[new_pba] = BAD_BLOCK; in sddr55_write_data()
486 info->pba_to_lba[pba] = UNUSED_BLOCK; in sddr55_write_data()
489 if (info->pba_to_lba[new_pba] != UNUSED_BLOCK) { in sddr55_write_data()
491 new_pba, info->pba_to_lba[new_pba]); in sddr55_write_data()
499 info->pba_to_lba[new_pba] = lba % 1000; in sddr55_write_data()
687 kfree(info->pba_to_lba); in sddr55_read_map()
689 info->pba_to_lba = kmalloc_array(numblocks, sizeof(int), GFP_NOIO); in sddr55_read_map()
691 if (info->lba_to_pba == NULL || info->pba_to_lba == NULL) { in sddr55_read_map()
693 kfree(info->pba_to_lba); in sddr55_read_map()
695 info->pba_to_lba = NULL; in sddr55_read_map()
701 memset(info->pba_to_lba, 0xff, numblocks*sizeof(int)); in sddr55_read_map()
736 info->pba_to_lba[i] = lba; in sddr55_read_map()
768 kfree(info->pba_to_lba); in sddr55_card_info_destructor()