Lines Matching refs:lun_offs
28 int *lun_offs; member
109 int *lun_offs = ch_map->lun_offs; in nvm_remove_tgt_dev() local
114 int lun = j + lun_offs[j]; in nvm_remove_tgt_dev()
122 kfree(ch_map->lun_offs); in nvm_remove_tgt_dev()
169 int *lun_roffs = ch_rmap->lun_offs; in nvm_create_tgt_dev()
171 int *lun_offs; in nvm_create_tgt_dev() local
181 lun_offs = kcalloc(luns_in_chnl, sizeof(int), GFP_KERNEL); in nvm_create_tgt_dev()
182 if (!lun_offs) in nvm_create_tgt_dev()
190 lun_offs[j] = blun; in nvm_create_tgt_dev()
194 ch_map->lun_offs = lun_offs; in nvm_create_tgt_dev()
229 kfree(dev_map->chnls[i].lun_offs); in nvm_create_tgt_dev()
536 ch_rmap->lun_offs = lun_roffs; in nvm_register_map()
544 kfree(rmap->chnls[i].lun_offs); in nvm_register_map()
557 kfree(rmap->chnls[i].lun_offs); in nvm_unregister_map()
567 int lun_off = ch_map->lun_offs[p->a.lun]; in nvm_map_to_dev()
578 int lun_roff = ch_rmap->lun_offs[p->a.lun]; in nvm_map_to_tgt()