Lines Matching defs:efx
14 #include "efx.h"
23 struct efx_nic *efx = mtd->priv;
25 return efx->type->mtd_erase(mtd, erase->addr, erase->len);
31 struct efx_nic *efx = mtd->priv;
34 rc = efx->type->mtd_sync(mtd);
54 int efx_siena_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
70 part->mtd.priv = efx;
73 part->mtd._read = efx->type->mtd_read;
74 part->mtd._write = efx->type->mtd_write;
77 efx->type->mtd_rename(part);
83 list_add_tail(&part->node, &efx->mtd_list);
98 void efx_siena_mtd_remove(struct efx_nic *efx)
102 WARN_ON(efx_dev_registered(efx));
104 if (list_empty(&efx->mtd_list))
107 parts = list_first_entry(&efx->mtd_list, struct efx_mtd_partition,
110 list_for_each_entry_safe(part, next, &efx->mtd_list, node)
116 void efx_siena_mtd_rename(struct efx_nic *efx)
122 list_for_each_entry(part, &efx->mtd_list, node)
123 efx->type->mtd_rename(part);