Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mtd.c File Reference
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/rtnetlink.h>
#include "net_driver.h"
#include "spi.h"
#include "efx.h"
#include "nic.h"
#include "mcdi.h"
#include "mcdi_pcol.h"

Go to the source code of this file.

Data Structures

struct  efx_mtd_partition
 
struct  efx_mtd_ops
 
struct  efx_mtd
 
struct  siena_nvram_type_info
 

Macros

#define EFX_SPI_VERIFY_BUF_LEN   16
 
#define efx_for_each_partition(part, efx_mtd)
 
#define to_efx_mtd_partition(mtd)   container_of(mtd, struct efx_mtd_partition, mtd)
 

Functions

void efx_mtd_remove (struct efx_nic *efx)
 
void efx_mtd_rename (struct efx_nic *efx)
 
int efx_mtd_probe (struct efx_nic *efx)
 

Macro Definition Documentation

#define efx_for_each_partition (   part,
  efx_mtd 
)
Value:
for ((part) = &(efx_mtd)->part[0]; \
(part) != &(efx_mtd)->part[(efx_mtd)->n_parts]; \
(part)++)

Definition at line 60 of file mtd.c.

#define EFX_SPI_VERIFY_BUF_LEN   16

Definition at line 25 of file mtd.c.

#define to_efx_mtd_partition (   mtd)    container_of(mtd, struct efx_mtd_partition, mtd)

Definition at line 65 of file mtd.c.

Function Documentation

int efx_mtd_probe ( struct efx_nic efx)

Definition at line 307 of file mtd.c.

void efx_mtd_remove ( struct efx_nic efx)

Definition at line 287 of file mtd.c.

void efx_mtd_rename ( struct efx_nic efx)

Definition at line 297 of file mtd.c.