Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
mtd_info Struct Reference

#include <mtd.h>

Data Fields

u_char type
 
uint32_t flags
 
uint64_t size
 
uint32_t erasesize
 
uint32_t writesize
 
uint32_t writebufsize
 
uint32_t oobsize
 
uint32_t oobavail
 
unsigned int erasesize_shift
 
unsigned int writesize_shift
 
unsigned int erasesize_mask
 
unsigned int writesize_mask
 
unsigned int bitflip_threshold
 
const charname
 
int index
 
struct nand_ecclayoutecclayout
 
unsigned int ecc_strength
 
int numeraseregions
 
struct mtd_erase_region_infoeraseregions
 
int(* _erase )(struct mtd_info *mtd, struct erase_info *instr)
 
int(* _point )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, void **virt, resource_size_t *phys)
 
int(* _unpoint )(struct mtd_info *mtd, loff_t from, size_t len)
 
unsigned long(* _get_unmapped_area )(struct mtd_info *mtd, unsigned long len, unsigned long offset, unsigned long flags)
 
int(* _read )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
 
int(* _write )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
 
int(* _panic_write )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
 
int(* _read_oob )(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops)
 
int(* _write_oob )(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
 
int(* _get_fact_prot_info )(struct mtd_info *mtd, struct otp_info *buf, size_t len)
 
int(* _read_fact_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
 
int(* _get_user_prot_info )(struct mtd_info *mtd, struct otp_info *buf, size_t len)
 
int(* _read_user_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
 
int(* _write_user_prot_reg )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, u_char *buf)
 
int(* _lock_user_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len)
 
int(* _writev )(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen)
 
void(* _sync )(struct mtd_info *mtd)
 
int(* _lock )(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
int(* _unlock )(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
int(* _is_locked )(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
int(* _block_isbad )(struct mtd_info *mtd, loff_t ofs)
 
int(* _block_markbad )(struct mtd_info *mtd, loff_t ofs)
 
int(* _suspend )(struct mtd_info *mtd)
 
void(* _resume )(struct mtd_info *mtd)
 
int(* _get_device )(struct mtd_info *mtd)
 
void(* _put_device )(struct mtd_info *mtd)
 
struct backing_dev_infobacking_dev_info
 
struct notifier_block reboot_notifier
 
struct mtd_ecc_stats ecc_stats
 
int subpage_sft
 
voidpriv
 
struct moduleowner
 
struct device dev
 
int usecount
 

Detailed Description

Definition at line 117 of file mtd.h.

Field Documentation

int(* _block_isbad)(struct mtd_info *mtd, loff_t ofs)

Definition at line 225 of file mtd.h.

int(* _block_markbad)(struct mtd_info *mtd, loff_t ofs)

Definition at line 226 of file mtd.h.

Definition at line 189 of file mtd.h.

int(* _get_device)(struct mtd_info *mtd)

Definition at line 233 of file mtd.h.

int(* _get_fact_prot_info)(struct mtd_info *mtd, struct otp_info *buf, size_t len)

Definition at line 207 of file mtd.h.

unsigned long(* _get_unmapped_area)(struct mtd_info *mtd, unsigned long len, unsigned long offset, unsigned long flags)

Definition at line 193 of file mtd.h.

int(* _get_user_prot_info)(struct mtd_info *mtd, struct otp_info *buf, size_t len)

Definition at line 211 of file mtd.h.

int(* _is_locked)(struct mtd_info *mtd, loff_t ofs, uint64_t len)

Definition at line 224 of file mtd.h.

int(* _lock)(struct mtd_info *mtd, loff_t ofs, uint64_t len)

Definition at line 222 of file mtd.h.

int(* _lock_user_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len)

Definition at line 217 of file mtd.h.

int(* _panic_write)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)

Definition at line 201 of file mtd.h.

int(* _point)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, void **virt, resource_size_t *phys)

Definition at line 190 of file mtd.h.

void(* _put_device)(struct mtd_info *mtd)

Definition at line 234 of file mtd.h.

int(* _read)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

Definition at line 197 of file mtd.h.

int(* _read_fact_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

Definition at line 209 of file mtd.h.

int(* _read_oob)(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops)

Definition at line 203 of file mtd.h.

int(* _read_user_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

Definition at line 213 of file mtd.h.

void(* _resume)(struct mtd_info *mtd)

Definition at line 228 of file mtd.h.

int(* _suspend)(struct mtd_info *mtd)

Definition at line 227 of file mtd.h.

void(* _sync)(struct mtd_info *mtd)

Definition at line 221 of file mtd.h.

int(* _unlock)(struct mtd_info *mtd, loff_t ofs, uint64_t len)

Definition at line 223 of file mtd.h.

int(* _unpoint)(struct mtd_info *mtd, loff_t from, size_t len)

Definition at line 192 of file mtd.h.

int(* _write)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)

Definition at line 199 of file mtd.h.

int(* _write_oob)(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)

Definition at line 205 of file mtd.h.

int(* _write_user_prot_reg)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, u_char *buf)

Definition at line 215 of file mtd.h.

int(* _writev)(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen)

Definition at line 219 of file mtd.h.

Definition at line 239 of file mtd.h.

unsigned int bitflip_threshold

Definition at line 167 of file mtd.h.

Definition at line 251 of file mtd.h.

struct mtd_ecc_stats ecc_stats

Definition at line 244 of file mtd.h.

unsigned int ecc_strength

Definition at line 177 of file mtd.h.

struct nand_ecclayout* ecclayout

Definition at line 174 of file mtd.h.

Definition at line 183 of file mtd.h.

uint32_t erasesize

Definition at line 126 of file mtd.h.

unsigned int erasesize_mask

Definition at line 157 of file mtd.h.

unsigned int erasesize_shift

Definition at line 154 of file mtd.h.

uint32_t flags

Definition at line 119 of file mtd.h.

int index

Definition at line 171 of file mtd.h.

const char* name

Definition at line 170 of file mtd.h.

int numeraseregions

Definition at line 182 of file mtd.h.

uint32_t oobavail

Definition at line 148 of file mtd.h.

uint32_t oobsize

Definition at line 147 of file mtd.h.

struct module* owner

Definition at line 250 of file mtd.h.

Definition at line 248 of file mtd.h.

struct notifier_block reboot_notifier

Definition at line 241 of file mtd.h.

uint64_t size

Definition at line 120 of file mtd.h.

int subpage_sft

Definition at line 246 of file mtd.h.

Definition at line 118 of file mtd.h.

int usecount

Definition at line 252 of file mtd.h.

uint32_t writebufsize

Definition at line 145 of file mtd.h.

uint32_t writesize

Definition at line 134 of file mtd.h.

unsigned int writesize_mask

Definition at line 158 of file mtd.h.

unsigned int writesize_shift

Definition at line 155 of file mtd.h.


The documentation for this struct was generated from the following file: