Home
last modified time | relevance | path

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

/drivers/usb/storage/
Dsddr55.c105 int *pba_to_lba; /* physical to logical map */ member
162 kfree(info->pba_to_lba); in sddr55_status()
164 info->pba_to_lba = NULL; in sddr55_status()
396 if (info->pba_to_lba[pba] == UNUSED_BLOCK) { in sddr55_write_data()
481 info->pba_to_lba[new_pba] = BAD_BLOCK; in sddr55_write_data()
493 info->pba_to_lba[pba] = UNUSED_BLOCK; in sddr55_write_data()
496 if (info->pba_to_lba[new_pba] != UNUSED_BLOCK) { in sddr55_write_data()
498 new_pba, info->pba_to_lba[new_pba]); in sddr55_write_data()
506 info->pba_to_lba[new_pba] = lba % 1000; in sddr55_write_data()
693 kfree(info->pba_to_lba); in sddr55_read_map()
[all …]
Dalauda.c107 u16 **pba_to_lba; /* physical to logical block map */ member
301 if (media_info->pba_to_lba != NULL) in alauda_free_maps()
303 kfree(media_info->pba_to_lba[i]); in alauda_free_maps()
304 media_info->pba_to_lba[i] = NULL; in alauda_free_maps()
443 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
548 u16 *pba_to_lba = info->pba_to_lba[zone]; in alauda_find_unused_pba() local
552 if (pba_to_lba[i] == UNDEF) in alauda_find_unused_pba()
573 u16 *pba_to_lba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map() local
574 if (lba_to_pba == NULL || pba_to_lba == NULL) { in alauda_read_map()
583 lba_to_pba[i] = pba_to_lba[i] = UNDEF; in alauda_read_map()
[all …]
Dsddr09.c263 int *pba_to_lba; /* physical to logical map */ member
844 if (info->pba_to_lba[zonestart+i] == UNDEF) { in sddr09_find_unused_pba()
850 if (info->pba_to_lba[zonestart+i] == UNDEF) { in sddr09_find_unused_pba()
884 info->pba_to_lba[pba] = lba; in sddr09_write_lba()
1234 kfree(info->pba_to_lba); in sddr09_read_map()
1236 info->pba_to_lba = kmalloc(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()
1270 info->pba_to_lba[i] = UNUSABLE; in sddr09_read_map()
1278 info->pba_to_lba[i] = UNUSABLE; in sddr09_read_map()
[all …]