Lines Matching defs:set
38 * s3c_nand_copy_set() - copy nand set data
39 * @set: The new structure, directly copied from the old.
41 * Copy all the fields from the NAND set field from what is probably __initdata
46 * data in a previous set.
48 static int __init s3c_nand_copy_set(struct s3c2410_nand_set *set)
53 size = sizeof(struct mtd_partition) * set->nr_partitions;
55 ptr = kmemdup(set->partitions, size, GFP_KERNEL);
56 set->partitions = ptr;
62 if (set->nr_map && set->nr_chips) {
63 size = sizeof(int) * set->nr_chips;
64 ptr = kmemdup(set->nr_map, size, GFP_KERNEL);
65 set->nr_map = ptr;
71 if (set->ecc_layout) {
72 ptr = kmemdup(set->ecc_layout,
74 set->ecc_layout = ptr;
100 /* now see if we need to copy any of the nand set data */
109 npd->sets = to; /* set, even if we failed */
119 printk(KERN_ERR "%s: failed to copy set %d\n",