Lines Matching defs:ofs
19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len)
24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len)
29 if (ofs || len != nor->params->size)
40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len)
65 * @ofs: offset in bytes
71 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs,
78 if (ofs || len != nor->params->size)
121 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, u64 len)
123 return atmel_nor_set_global_protection(nor, ofs, len, true);
126 static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, u64 len)
128 return atmel_nor_set_global_protection(nor, ofs, len, false);
131 static int atmel_nor_is_global_protected(struct spi_nor *nor, loff_t ofs,
136 if (ofs >= nor->params->size || (ofs + len) > nor->params->size)