Lines Matching refs:pba_to_lba
98 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()
544 u16 *pba_to_lba = info->pba_to_lba[zone]; in alauda_find_unused_pba() local
548 if (pba_to_lba[i] == UNDEF) in alauda_find_unused_pba()
569 u16 *pba_to_lba = 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()
594 pba_to_lba[i] = UNUSABLE; in alauda_read_map()
612 pba_to_lba[i] = UNUSABLE; in alauda_read_map()
620 pba_to_lba[i] = UNUSABLE; in alauda_read_map()
629 pba_to_lba[i] = UNUSABLE; in alauda_read_map()
661 pba_to_lba[i] = lba_real; in alauda_read_map()
667 MEDIA_INFO(us).pba_to_lba[zone] = pba_to_lba; in alauda_read_map()
673 kfree(pba_to_lba); in alauda_read_map()
685 || MEDIA_INFO(us).pba_to_lba[zone] == NULL) in alauda_ensure_map_for_zone()
888 MEDIA_INFO(us).pba_to_lba[zone][new_pba_offset] = lba; in alauda_write_lba()
897 MEDIA_INFO(us).pba_to_lba[zone][pba_offset] = UNDEF; in alauda_write_lba()
1093 kfree(media_info->pba_to_lba); in alauda_info_destructor()