Lines Matching refs:ofs
1078 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock() argument
1082 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_lock()
1086 return mtd->_lock(mtd, ofs, len); in mtd_lock()
1090 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock() argument
1094 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_unlock()
1098 return mtd->_unlock(mtd, ofs, len); in mtd_unlock()
1102 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked() argument
1106 if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) in mtd_is_locked()
1110 return mtd->_is_locked(mtd, ofs, len); in mtd_is_locked()
1114 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved() argument
1116 if (ofs < 0 || ofs >= mtd->size) in mtd_block_isreserved()
1120 return mtd->_block_isreserved(mtd, ofs); in mtd_block_isreserved()
1124 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad() argument
1126 if (ofs < 0 || ofs >= mtd->size) in mtd_block_isbad()
1130 return mtd->_block_isbad(mtd, ofs); in mtd_block_isbad()
1134 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad() argument
1138 if (ofs < 0 || ofs >= mtd->size) in mtd_block_markbad()
1142 return mtd->_block_markbad(mtd, ofs); in mtd_block_markbad()