Lines Matching defs:from

458  * The @wunit argument can be extracted from an absolute offset using
491 * mtd_pairing_info_to_wunit - get wunit from pairing information
748 * Remove a device from the list of MTD devices present in the system,
951 * Removes a callback function pair from the list of 'users' to be
1169 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
1180 if (from < 0 || from >= mtd->size || len > mtd->size - from)
1185 from = mtd_get_master_ofs(mtd, from);
1186 return master->_point(master, from, len, retlen, virt, phys);
1191 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
1197 if (from < 0 || from >= mtd->size || len > mtd->size - from)
1201 return master->_unpoint(master, mtd_get_master_ofs(mtd, from), len);
1247 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
1256 ret = mtd_read_oob(mtd, from, &ops);
1341 static int mtd_read_oob_std(struct mtd_info *mtd, loff_t from,
1347 from = mtd_get_master_ofs(mtd, from);
1349 ret = master->_read_oob(master, from, ops);
1351 ret = master->_read(master, from, ops->len, &ops->retlen,
1436 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops)
1444 ret_code = mtd_check_oob_ops(mtd, from, ops);
1455 ret_code = mtd_io_emulated_slc(mtd, from, true, ops);
1457 ret_code = mtd_read_oob_std(mtd, from, ops);
1643 * mtd_ooblayout_get_bytes - Extract OOB bytes from the oob buffer
1652 * from the OOB buffer and copy them into buf.
1688 * @buf: source buffer to get OOB bytes from
1760 * mtd_ooblayout_get_eccbytes - extract ECC bytes from the oob buffer
1782 * @eccbuf: source buffer to get ECC bytes from
1800 * mtd_ooblayout_get_databytes - extract data bytes from the oob buffer
1822 * @databuf: source buffer to get data bytes from
1885 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
1895 return master->_read_fact_prot_reg(master, from, len, retlen, buf);
1912 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
1922 return master->_read_user_prot_reg(master, from, len, retlen, buf);
1949 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len)
1957 return master->_lock_user_prot_reg(master, from, len);
2161 * fragmented-memory situations where such reduced allocations, from a