Searched refs:media_info (Results 1 – 2 of 2) sorted by relevance
296 static void alauda_free_maps (struct alauda_media_info *media_info) in alauda_free_maps() argument298 unsigned int shift = media_info->zoneshift in alauda_free_maps()299 + media_info->blockshift + media_info->pageshift; in alauda_free_maps()300 unsigned int num_zones = media_info->capacity >> shift; in alauda_free_maps()303 if (media_info->lba_to_pba != NULL) in alauda_free_maps()305 kfree(media_info->lba_to_pba[i]); in alauda_free_maps()306 media_info->lba_to_pba[i] = NULL; in alauda_free_maps()309 if (media_info->pba_to_lba != NULL) in alauda_free_maps()311 kfree(media_info->pba_to_lba[i]); in alauda_free_maps()312 media_info->pba_to_lba[i] = NULL; in alauda_free_maps()[all …]
285 struct media_info { struct324 struct media_info media[DE_MAX_MEDIA];