Home
last modified time | relevance | path

Searched refs:lba_to_pba (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/usb/storage/
Dsddr55.c96 int *lba_to_pba; /* logical to physical map */ member
154 kfree(info->lba_to_pba); in sddr55_status()
156 info->lba_to_pba = NULL; in sddr55_status()
223 pba = info->lba_to_pba[lba]; in sddr55_read_data()
350 pba = info->lba_to_pba[lba]; in sddr55_write_data()
485 info->lba_to_pba[lba] = new_pba; in sddr55_write_data()
686 kfree(info->lba_to_pba); in sddr55_read_map()
688 info->lba_to_pba = 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()
692 kfree(info->lba_to_pba); in sddr55_read_map()
[all …]
Dalauda.c97 u16 **lba_to_pba; /* logical to physical block map */ member
291 if (media_info->lba_to_pba != NULL) in alauda_free_maps()
293 kfree(media_info->lba_to_pba[i]); in alauda_free_maps()
294 media_info->lba_to_pba[i] = NULL; in alauda_free_maps()
440 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
568 u16 *lba_to_pba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map() local
570 if (lba_to_pba == NULL || pba_to_lba == NULL) { in alauda_read_map()
579 lba_to_pba[i] = pba_to_lba[i] = UNDEF; in alauda_read_map()
653 if (lba_to_pba[lba_offset] != UNDEF) { in alauda_read_map()
657 lba_real, lba_to_pba[lba_offset], blocknum); in alauda_read_map()
[all …]
Dsddr09.c254 int *lba_to_pba; /* logical to physical map */ member
782 pba = info->lba_to_pba[lba]; in sddr09_read_data()
866 pba = info->lba_to_pba[lba]; in sddr09_write_lba()
876 info->lba_to_pba[lba] = pba; in sddr09_write_lba()
1233 kfree(info->lba_to_pba); in sddr09_read_map()
1235 info->lba_to_pba = kmalloc_array(numblocks, sizeof(int), GFP_NOIO); in sddr09_read_map()
1238 if (info->lba_to_pba == NULL || info->pba_to_lba == NULL) { in sddr09_read_map()
1245 info->lba_to_pba[i] = info->pba_to_lba[i] = UNDEF; in sddr09_read_map()
1342 if (info->lba_to_pba[lba] != UNDEF) { in sddr09_read_map()
1345 lba, info->lba_to_pba[lba], i); in sddr09_read_map()
[all …]