Lines Matching refs:ofs
1573 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock() argument
1577 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_lock()
1581 return mtd->_lock(mtd, ofs, len); in mtd_lock()
1585 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock() argument
1589 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_unlock()
1593 return mtd->_unlock(mtd, ofs, len); in mtd_unlock()
1597 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked() argument
1601 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_is_locked()
1605 return mtd->_is_locked(mtd, ofs, len); in mtd_is_locked()
1609 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved() argument
1611 if (ofs < 0 || ofs > mtd->size) in mtd_block_isreserved()
1615 return mtd->_block_isreserved(mtd, ofs); in mtd_block_isreserved()
1619 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad() argument
1621 if (ofs < 0 || ofs > mtd->size) in mtd_block_isbad()
1625 return mtd->_block_isbad(mtd, ofs); in mtd_block_isbad()
1629 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad() argument
1633 if (ofs < 0 || ofs > mtd->size) in mtd_block_markbad()
1637 return mtd->_block_markbad(mtd, ofs); in mtd_block_markbad()