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

/linux-4.4.14/drivers/mtd/maps/
H A Dpmcmsp-flash.c46 static struct mtd_partition **msp_parts; variable in typeref:struct:mtd_partition
82 msp_parts = kmalloc(fcnt * sizeof(struct mtd_partition *), GFP_KERNEL); init_msp_flash()
83 if (!msp_parts) init_msp_flash()
104 msp_parts[i] = kcalloc(pcnt, sizeof(struct mtd_partition), init_msp_flash()
106 if (!msp_parts[i]) init_msp_flash()
115 kfree(msp_parts[i]); init_msp_flash()
137 kfree(msp_parts[i]); init_msp_flash()
145 kfree(msp_parts[i]); init_msp_flash()
162 kfree(msp_parts[i]); init_msp_flash()
166 msp_parts[i][j].size = size; init_msp_flash()
167 msp_parts[i][j].offset = offset; init_msp_flash()
168 msp_parts[i][j].name = env + coff; init_msp_flash()
176 mtd_device_register(msp_flash[i], msp_parts[i], pcnt); init_msp_flash()
182 kfree(msp_parts[i]); init_msp_flash()
195 kfree(msp_parts[i]); init_msp_flash()
199 kfree(msp_parts); init_msp_flash()
216 kfree(msp_parts[i]); cleanup_msp_flash()
220 kfree(msp_parts); cleanup_msp_flash()

Completed in 78 milliseconds