Lines Matching refs:ch_map
118 struct nvm_ch_map *ch_map = &dev_map->chnls[i]; in nvm_remove_tgt_dev() local
119 int *lun_offs = ch_map->lun_offs; in nvm_remove_tgt_dev()
120 int ch = i + ch_map->ch_off; in nvm_remove_tgt_dev()
123 for (j = 0; j < ch_map->num_lun; j++) { in nvm_remove_tgt_dev()
132 kfree(ch_map->lun_offs); in nvm_remove_tgt_dev()
180 struct nvm_ch_map *ch_map = &dev_map->chnls[i]; in nvm_create_tgt_dev() local
188 ch_map->ch_off = ch_rmap->ch_off = bch; in nvm_create_tgt_dev()
189 ch_map->num_lun = luns_in_chnl; in nvm_create_tgt_dev()
204 ch_map->lun_offs = lun_offs; in nvm_create_tgt_dev()
559 struct nvm_ch_map *ch_map = &dev_map->chnls[p->a.ch]; in nvm_map_to_dev() local
560 int lun_off = ch_map->lun_offs[p->a.lun]; in nvm_map_to_dev()
562 p->a.ch += ch_map->ch_off; in nvm_map_to_dev()