Lines Matching refs:lun_offs
40 int *lun_offs; member
119 int *lun_offs = ch_map->lun_offs; in nvm_remove_tgt_dev() local
124 int lun = j + lun_offs[j]; in nvm_remove_tgt_dev()
132 kfree(ch_map->lun_offs); in nvm_remove_tgt_dev()
179 int *lun_roffs = ch_rmap->lun_offs; in nvm_create_tgt_dev()
181 int *lun_offs; in nvm_create_tgt_dev() local
191 lun_offs = kcalloc(luns_in_chnl, sizeof(int), GFP_KERNEL); in nvm_create_tgt_dev()
192 if (!lun_offs) in nvm_create_tgt_dev()
200 lun_offs[j] = blun; in nvm_create_tgt_dev()
204 ch_map->lun_offs = lun_offs; in nvm_create_tgt_dev()
239 kfree(dev_map->chnls[i].lun_offs); in nvm_create_tgt_dev()
529 ch_rmap->lun_offs = lun_roffs; in nvm_register_map()
537 kfree(rmap->chnls[i].lun_offs); in nvm_register_map()
550 kfree(rmap->chnls[i].lun_offs); in nvm_unregister_map()
560 int lun_off = ch_map->lun_offs[p->a.lun]; in nvm_map_to_dev()
571 int lun_roff = ch_rmap->lun_offs[p->a.lun]; in nvm_map_to_tgt()