Lines Matching refs:part

42 	struct efx_mtd_partition *part = to_efx_mtd_partition(mtd);  in efx_mtd_sync()  local
49 part->name, part->dev_type_name, rc); in efx_mtd_sync()
52 static void efx_mtd_remove_partition(struct efx_mtd_partition *part) in efx_mtd_remove_partition() argument
57 rc = mtd_device_unregister(&part->mtd); in efx_mtd_remove_partition()
63 list_del(&part->node); in efx_mtd_remove_partition()
69 struct efx_mtd_partition *part; in efx_mtd_add() local
73 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
76 part->mtd.writesize = 1; in efx_mtd_add()
78 part->mtd.owner = THIS_MODULE; in efx_mtd_add()
79 part->mtd.priv = efx; in efx_mtd_add()
80 part->mtd.name = part->name; in efx_mtd_add()
81 part->mtd._erase = efx_mtd_erase; in efx_mtd_add()
82 part->mtd._read = efx->type->mtd_read; in efx_mtd_add()
83 part->mtd._write = efx->type->mtd_write; in efx_mtd_add()
84 part->mtd._sync = efx_mtd_sync; in efx_mtd_add()
86 efx->type->mtd_rename(part); in efx_mtd_add()
88 if (mtd_device_register(&part->mtd, NULL, 0)) in efx_mtd_add()
92 list_add_tail(&part->node, &efx->mtd_list); in efx_mtd_add()
99 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
101 efx_mtd_remove_partition(part); in efx_mtd_add()
109 struct efx_mtd_partition *parts, *part, *next; in efx_mtd_remove() local
119 list_for_each_entry_safe(part, next, &efx->mtd_list, node) in efx_mtd_remove()
120 efx_mtd_remove_partition(part); in efx_mtd_remove()
127 struct efx_mtd_partition *part; in efx_mtd_rename() local
131 list_for_each_entry(part, &efx->mtd_list, node) in efx_mtd_rename()
132 efx->type->mtd_rename(part); in efx_mtd_rename()