Searched refs:dev_map (Results 1 – 2 of 2) sorted by relevance
104 struct nvm_dev_map *dev_map = tgt_dev->map; in nvm_remove_tgt_dev() local107 for (i = 0; i < dev_map->num_ch; i++) { in nvm_remove_tgt_dev()108 struct nvm_ch_map *ch_map = &dev_map->chnls[i]; in nvm_remove_tgt_dev()125 kfree(dev_map->chnls); in nvm_remove_tgt_dev()126 kfree(dev_map); in nvm_remove_tgt_dev()138 struct nvm_dev_map *dev_map; in nvm_create_tgt_dev() local153 dev_map = kmalloc(sizeof(struct nvm_dev_map), GFP_KERNEL); in nvm_create_tgt_dev()154 if (!dev_map) in nvm_create_tgt_dev()157 dev_map->chnls = kcalloc(num_ch, sizeof(struct nvm_ch_map), GFP_KERNEL); in nvm_create_tgt_dev()158 if (!dev_map->chnls) in nvm_create_tgt_dev()[all …]
502 } dev_map[] = { in saa7146_remove_one() local521 for (p = dev_map; p->addr; p++) in saa7146_remove_one()