Lines Matching refs:msp_parts
46 static struct mtd_partition **msp_parts; variable
82 msp_parts = kcalloc(fcnt, sizeof(*msp_parts), GFP_KERNEL); in init_msp_flash()
83 if (!msp_parts) in init_msp_flash()
104 msp_parts[i] = kcalloc(pcnt, sizeof(struct mtd_partition), in init_msp_flash()
106 if (!msp_parts[i]) in init_msp_flash()
115 kfree(msp_parts[i]); in init_msp_flash()
137 kfree(msp_parts[i]); in init_msp_flash()
145 kfree(msp_parts[i]); in init_msp_flash()
160 kfree(msp_parts[i]); in init_msp_flash()
164 msp_parts[i][j].size = size; in init_msp_flash()
165 msp_parts[i][j].offset = offset; in init_msp_flash()
166 msp_parts[i][j].name = env + coff; in init_msp_flash()
174 mtd_device_register(msp_flash[i], msp_parts[i], pcnt); in init_msp_flash()
180 kfree(msp_parts[i]); in init_msp_flash()
193 kfree(msp_parts[i]); in init_msp_flash()
197 kfree(msp_parts); in init_msp_flash()
214 kfree(msp_parts[i]); in cleanup_msp_flash()
218 kfree(msp_parts); in cleanup_msp_flash()