Lines Matching refs:loff_t
235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
243 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
245 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
247 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len,
249 int (*_read_oob) (struct mtd_info *mtd, loff_t from,
251 int (*_write_oob) (struct mtd_info *mtd, loff_t to,
255 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from,
259 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from,
261 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to,
263 int (*_lock_user_prot_reg) (struct mtd_info *mtd, loff_t from,
267 unsigned long count, loff_t to, size_t *retlen);
270 int (*_lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
271 int (*_unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
272 int (*_is_locked) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
273 int (*_block_isreserved) (struct mtd_info *mtd, loff_t ofs);
274 int (*_block_isbad) (struct mtd_info *mtd, loff_t ofs);
275 int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs);
344 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
346 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
350 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
352 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
354 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
357 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
359 static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
372 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
376 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
378 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len,
380 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len);
384 unsigned long count, loff_t to, size_t *retlen);
393 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
394 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
395 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len);
396 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs);
397 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs);
398 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs);
522 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
523 loff_t *maxsize, int devtype, uint64_t chipsize);
524 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
525 loff_t *size, loff_t *maxsize, int devtype,