Home
last modified time | relevance | path

Searched defs:MtdDeviceMethod (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/model/storage/include/mtd/
H A Dmtd_core.h100 struct MtdDeviceMethod { struct
101 int32_t (*read)(struct MtdDevice *mtdDevice, off_t from, size_t len, uint8_t *buf);
102 int32_t (*write)(struct MtdDevice *mtdDevice, off_t to, size_t len, const uint8_t *buf);
103 int32_t (*erase)(struct MtdDevice *mtdDevice, off_t addr, size_t len, off_t *faddr);
104 int32_t (*pageTransfer)(struct MtdDevice *mtdDevice, struct MtdPage *mtdPage);
105 bool (*isBadBlock)(struct MtdDevice *mtdDevice, off_t addr);
106 int32_t (*markBadBlock)(struct MtdDevice *mtdDevice, off_t addr);
107 void (*dump)(struct MtdDevice *mtdDevice);
108 int32_t (*lock)(struct MtdDevice *mtdDevice);
109 void (*unlock)(struct MtdDevice *mtdDevice);