Lines Matching full:part
30 struct ef4_mtd_partition *part = to_ef4_mtd_partition(mtd); in ef4_mtd_sync() local
37 part->name, part->dev_type_name, rc); in ef4_mtd_sync()
40 static void ef4_mtd_remove_partition(struct ef4_mtd_partition *part) in ef4_mtd_remove_partition() argument
45 rc = mtd_device_unregister(&part->mtd); in ef4_mtd_remove_partition()
51 list_del(&part->node); in ef4_mtd_remove_partition()
57 struct ef4_mtd_partition *part; in ef4_mtd_add() local
61 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add()
64 part->mtd.writesize = 1; in ef4_mtd_add()
66 part->mtd.owner = THIS_MODULE; in ef4_mtd_add()
67 part->mtd.priv = efx; in ef4_mtd_add()
68 part->mtd.name = part->name; in ef4_mtd_add()
69 part->mtd._erase = ef4_mtd_erase; in ef4_mtd_add()
70 part->mtd._read = efx->type->mtd_read; in ef4_mtd_add()
71 part->mtd._write = efx->type->mtd_write; in ef4_mtd_add()
72 part->mtd._sync = ef4_mtd_sync; in ef4_mtd_add()
74 efx->type->mtd_rename(part); in ef4_mtd_add()
76 if (mtd_device_register(&part->mtd, NULL, 0)) in ef4_mtd_add()
80 list_add_tail(&part->node, &efx->mtd_list); in ef4_mtd_add()
87 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add()
89 ef4_mtd_remove_partition(part); in ef4_mtd_add()
97 struct ef4_mtd_partition *parts, *part, *next; in ef4_mtd_remove() local
107 list_for_each_entry_safe(part, next, &efx->mtd_list, node) in ef4_mtd_remove()
108 ef4_mtd_remove_partition(part); in ef4_mtd_remove()
115 struct ef4_mtd_partition *part; in ef4_mtd_rename() local
119 list_for_each_entry(part, &efx->mtd_list, node) in ef4_mtd_rename()
120 efx->type->mtd_rename(part); in ef4_mtd_rename()