Lines Matching refs:efx
26 struct efx_nic *efx = mtd->priv; in efx_mtd_erase() local
29 rc = efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase()
43 struct efx_nic *efx = mtd->priv; in efx_mtd_sync() local
46 rc = efx->type->mtd_sync(mtd); in efx_mtd_sync()
66 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_mtd_add() argument
79 part->mtd.priv = efx; 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()
86 efx->type->mtd_rename(part); in efx_mtd_add()
92 list_add_tail(&part->node, &efx->mtd_list); in efx_mtd_add()
107 void efx_mtd_remove(struct efx_nic *efx) in efx_mtd_remove() argument
111 WARN_ON(efx_dev_registered(efx)); in efx_mtd_remove()
113 if (list_empty(&efx->mtd_list)) in efx_mtd_remove()
116 parts = list_first_entry(&efx->mtd_list, struct efx_mtd_partition, in efx_mtd_remove()
119 list_for_each_entry_safe(part, next, &efx->mtd_list, node) in efx_mtd_remove()
125 void efx_mtd_rename(struct efx_nic *efx) in efx_mtd_rename() argument
131 list_for_each_entry(part, &efx->mtd_list, node) in efx_mtd_rename()
132 efx->type->mtd_rename(part); in efx_mtd_rename()