Searched refs:msp_maps (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/mtd/maps/
H A Dpmcmsp-flash.c47 static struct map_info *msp_maps; variable in typeref:struct:map_info
86 msp_maps = kcalloc(fcnt, sizeof(struct mtd_info), GFP_KERNEL); init_msp_flash()
87 if (!msp_maps) init_msp_flash()
124 msp_maps[i].size = size; init_msp_flash()
125 msp_maps[i].phys = addr; init_msp_flash()
134 msp_maps[i].virt = ioremap(addr, size); init_msp_flash()
135 if (msp_maps[i].virt == NULL) { init_msp_flash()
141 msp_maps[i].bankwidth = 1; init_msp_flash()
142 msp_maps[i].name = kmalloc(7, GFP_KERNEL); init_msp_flash()
143 if (!msp_maps[i].name) { init_msp_flash()
144 iounmap(msp_maps[i].virt); init_msp_flash()
149 msp_maps[i].name = strncpy(msp_maps[i].name, flash_name, 7); init_msp_flash()
160 kfree(msp_maps[i].name); init_msp_flash()
161 iounmap(msp_maps[i].virt); init_msp_flash()
172 simple_map_init(&msp_maps[i]); init_msp_flash()
173 msp_flash[i] = do_map_probe("cfi_probe", &msp_maps[i]); init_msp_flash()
180 kfree(msp_maps[i].name); init_msp_flash()
181 iounmap(msp_maps[i].virt); init_msp_flash()
193 kfree(msp_maps[i].name); init_msp_flash()
194 iounmap(msp_maps[i].virt); init_msp_flash()
197 kfree(msp_maps); init_msp_flash()
212 iounmap((void *)msp_maps[i].virt); cleanup_msp_flash()
215 kfree(msp_maps[i].name); cleanup_msp_flash()
221 kfree(msp_maps); cleanup_msp_flash()

Completed in 34 milliseconds