Lines Matching refs:ofs
1034 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock() argument
1038 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_lock()
1042 return mtd->_lock(mtd, ofs, len); in mtd_lock()
1046 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock() argument
1050 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_unlock()
1054 return mtd->_unlock(mtd, ofs, len); in mtd_unlock()
1058 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked() argument
1062 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_is_locked()
1066 return mtd->_is_locked(mtd, ofs, len); in mtd_is_locked()
1070 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved() argument
1072 if (ofs < 0 || ofs >= mtd->size) in mtd_block_isreserved()
1076 return mtd->_block_isreserved(mtd, ofs); in mtd_block_isreserved()
1080 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad() argument
1082 if (ofs < 0 || ofs >= mtd->size) in mtd_block_isbad()
1086 return mtd->_block_isbad(mtd, ofs); in mtd_block_isbad()
1090 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad() argument
1094 if (ofs < 0 || ofs >= mtd->size) in mtd_block_markbad()
1098 return mtd->_block_markbad(mtd, ofs); in mtd_block_markbad()