Lines Matching refs:lba_to_pba
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()
658 lba_real, lba_to_pba[lba_offset], blocknum); in alauda_read_map()
663 lba_to_pba[lba_offset] = blocknum; in alauda_read_map()
667 MEDIA_INFO(us).lba_to_pba[zone] = lba_to_pba; in alauda_read_map()
673 kfree(lba_to_pba); in alauda_read_map()
685 if (MEDIA_INFO(us).lba_to_pba[zone] == NULL in alauda_ensure_map_for_zone()
819 pba = MEDIA_INFO(us).lba_to_pba[zone][lba_offset]; in alauda_write_lba()
890 MEDIA_INFO(us).lba_to_pba[zone][lba_offset] = new_pba; in alauda_write_lba()
963 pba = MEDIA_INFO(us).lba_to_pba[zone][lba_offset]; in alauda_read_data()
1093 kfree(media_info->lba_to_pba); in alauda_info_destructor()