Lines Matching refs:from

518  *	Remove a device from the list of MTD devices present in the system,
682 * Removes a callback function pair from the list of 'users' to be
928 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
937 if (from < 0 || from > mtd->size || len > mtd->size - from)
941 return mtd->_point(mtd, from, len, retlen, virt, phys);
946 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
950 if (from < 0 || from > mtd->size || len > mtd->size - from)
954 return mtd->_unpoint(mtd, from, len);
975 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
980 if (from < 0 || from > mtd->size || len > mtd->size - from)
991 ret_code = mtd->_read(mtd, from, len, retlen, buf);
998 ret_code = mtd->_read_oob(mtd, from, &ops);
1096 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops)
1101 ret_code = mtd_check_oob_ops(mtd, from, ops);
1110 ret_code = mtd->_read_oob(mtd, from, ops);
1112 ret_code = mtd->_read(mtd, from, ops->len, &ops->retlen,
1291 * mtd_ooblayout_get_bytes - Extract OOB bytes from the oob buffer
1300 * from the OOB buffer and copy them into buf.
1336 * @buf: source buffer to get OOB bytes from
1408 * mtd_ooblayout_get_eccbytes - extract ECC bytes from the oob buffer
1430 * @eccbuf: source buffer to get ECC bytes from
1448 * mtd_ooblayout_get_databytes - extract data bytes from the oob buffer
1470 * @eccbuf: source buffer to get data bytes from
1531 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
1539 return mtd->_read_fact_prot_reg(mtd, from, len, retlen, buf);
1554 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
1562 return mtd->_read_user_prot_reg(mtd, from, len, retlen, buf);
1588 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len)
1594 return mtd->_lock_user_prot_reg(mtd, from, len);
1742 * fragmented-memory situations where such reduced allocations, from a