Lines Matching refs:ch_map
108 struct nvm_ch_map *ch_map = &dev_map->chnls[i]; in nvm_remove_tgt_dev() local
109 int *lun_offs = ch_map->lun_offs; in nvm_remove_tgt_dev()
110 int ch = i + ch_map->ch_off; in nvm_remove_tgt_dev()
113 for (j = 0; j < ch_map->num_lun; j++) { in nvm_remove_tgt_dev()
122 kfree(ch_map->lun_offs); in nvm_remove_tgt_dev()
170 struct nvm_ch_map *ch_map = &dev_map->chnls[i]; in nvm_create_tgt_dev() local
178 ch_map->ch_off = ch_rmap->ch_off = bch; in nvm_create_tgt_dev()
179 ch_map->num_lun = luns_in_chnl; in nvm_create_tgt_dev()
194 ch_map->lun_offs = lun_offs; in nvm_create_tgt_dev()
566 struct nvm_ch_map *ch_map = &dev_map->chnls[p->a.ch]; in nvm_map_to_dev() local
567 int lun_off = ch_map->lun_offs[p->a.lun]; in nvm_map_to_dev()
569 p->a.ch += ch_map->ch_off; in nvm_map_to_dev()