Lines Matching refs:ofs
19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_lock() argument
24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_unlock() argument
29 if (ofs || len != nor->params->size) in at25fs_nor_unlock()
40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_is_locked() argument
69 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_nor_set_global_protection() argument
76 if (ofs || len != nor->params->size) in atmel_nor_set_global_protection()
119 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_protect() argument
122 return atmel_nor_set_global_protection(nor, ofs, len, true); in atmel_nor_global_protect()
125 static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_unprotect() argument
128 return atmel_nor_set_global_protection(nor, ofs, len, false); in atmel_nor_global_unprotect()
131 static int atmel_nor_is_global_protected(struct spi_nor *nor, loff_t ofs, in atmel_nor_is_global_protected() argument
136 if (ofs >= nor->params->size || (ofs + len) > nor->params->size) in atmel_nor_is_global_protected()