• Home
  • Raw
  • Download

Lines Matching refs:part

30 	struct efx_mtd_partition *part = to_efx_mtd_partition(mtd);  in efx_mtd_sync()  local
37 part->name, part->dev_type_name, rc); in efx_mtd_sync()
40 static void efx_mtd_remove_partition(struct efx_mtd_partition *part) in efx_mtd_remove_partition() argument
45 rc = mtd_device_unregister(&part->mtd); in efx_mtd_remove_partition()
51 list_del(&part->node); in efx_mtd_remove_partition()
57 struct efx_mtd_partition *part; in efx_mtd_add() local
61 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
64 part->mtd.writesize = 1; in efx_mtd_add()
66 if (!(part->mtd.flags & MTD_NO_ERASE)) in efx_mtd_add()
67 part->mtd.flags |= MTD_WRITEABLE; in efx_mtd_add()
69 part->mtd.owner = THIS_MODULE; in efx_mtd_add()
70 part->mtd.priv = efx; in efx_mtd_add()
71 part->mtd.name = part->name; in efx_mtd_add()
72 part->mtd._erase = efx_mtd_erase; in efx_mtd_add()
73 part->mtd._read = efx->type->mtd_read; in efx_mtd_add()
74 part->mtd._write = efx->type->mtd_write; in efx_mtd_add()
75 part->mtd._sync = efx_mtd_sync; in efx_mtd_add()
77 efx->type->mtd_rename(part); in efx_mtd_add()
79 if (mtd_device_register(&part->mtd, NULL, 0)) in efx_mtd_add()
83 list_add_tail(&part->node, &efx->mtd_list); in efx_mtd_add()
90 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
92 efx_mtd_remove_partition(part); in efx_mtd_add()
100 struct efx_mtd_partition *parts, *part, *next; in efx_mtd_remove() local
110 list_for_each_entry_safe(part, next, &efx->mtd_list, node) in efx_mtd_remove()
111 efx_mtd_remove_partition(part); in efx_mtd_remove()
118 struct efx_mtd_partition *part; in efx_mtd_rename() local
122 list_for_each_entry(part, &efx->mtd_list, node) in efx_mtd_rename()
123 efx->type->mtd_rename(part); in efx_mtd_rename()