Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/usb/storage/
Dsddr55.c97 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()
[all …]
Dalauda.c98 u16 **pba_to_lba; /* physical to logical block map */ member
297 if (media_info->pba_to_lba != NULL) in alauda_free_maps()
299 kfree(media_info->pba_to_lba[i]); in alauda_free_maps()
300 media_info->pba_to_lba[i] = NULL; in alauda_free_maps()
439 MEDIA_INFO(us).pba_to_lba = 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()
545 u16 *pba_to_lba = info->pba_to_lba[zone]; in alauda_find_unused_pba() local
549 if (pba_to_lba[i] == UNDEF) in alauda_find_unused_pba()
570 u16 *pba_to_lba = 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()
[all …]
Dsddr09.c255 int *pba_to_lba; /* physical to logical map */ member
836 if (info->pba_to_lba[zonestart+i] == UNDEF) { in sddr09_find_unused_pba()
842 if (info->pba_to_lba[zonestart+i] == UNDEF) { in sddr09_find_unused_pba()
875 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_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()
1270 info->pba_to_lba[i] = UNUSABLE; in sddr09_read_map()
1278 info->pba_to_lba[i] = UNUSABLE; in sddr09_read_map()
[all …]