Searched refs:lba_to_pba (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/usb/storage/ |
D | sddr55.c | 96 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 …]
|
D | alauda.c | 97 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() 441 if (MEDIA_INFO(us).pba_to_lba == NULL || MEDIA_INFO(us).lba_to_pba == NULL) in alauda_init_media() 569 u16 *lba_to_pba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map() local 571 if (lba_to_pba == NULL || pba_to_lba == NULL) { in alauda_read_map() 580 lba_to_pba[i] = pba_to_lba[i] = UNDEF; in alauda_read_map() 654 if (lba_to_pba[lba_offset] != UNDEF) { in alauda_read_map() [all …]
|
D | sddr09.c | 254 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 …]
|