Home
last modified time | relevance | path

Searched refs:dev_map (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/lightnvm/
Dcore.c104 struct nvm_dev_map *dev_map = tgt_dev->map; in nvm_remove_tgt_dev() local
107 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() local
153 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 …]
/Linux-v5.4/drivers/media/common/saa7146/
Dsaa7146_core.c502 } dev_map[] = { in saa7146_remove_one() local
521 for (p = dev_map; p->addr; p++) in saa7146_remove_one()