Lines Matching defs:efx
14 #include "efx.h"
23 struct ef4_nic *efx = mtd->priv;
25 return efx->type->mtd_erase(mtd, erase->addr, erase->len);
31 struct ef4_nic *efx = mtd->priv;
34 rc = efx->type->mtd_sync(mtd);
54 int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts,
67 part->mtd.priv = efx;
70 part->mtd._read = efx->type->mtd_read;
71 part->mtd._write = efx->type->mtd_write;
74 efx->type->mtd_rename(part);
80 list_add_tail(&part->node, &efx->mtd_list);
95 void ef4_mtd_remove(struct ef4_nic *efx)
99 WARN_ON(ef4_dev_registered(efx));
101 if (list_empty(&efx->mtd_list))
104 parts = list_first_entry(&efx->mtd_list, struct ef4_mtd_partition,
107 list_for_each_entry_safe(part, next, &efx->mtd_list, node)
113 void ef4_mtd_rename(struct ef4_nic *efx)
119 list_for_each_entry(part, &efx->mtd_list, node)
120 efx->type->mtd_rename(part);