Lines Matching refs:ofs
61 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs,
67 loff_t ofs; in flash_print_info() local
72 altera_qspi_get_locked_range(mtd, &ofs, &len); in flash_print_info()
76 info->start[0] + ofs, len); in flash_print_info()
235 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, in altera_qspi_get_locked_range() argument
247 *ofs = 0; in altera_qspi_get_locked_range()
254 *ofs = mtd->size - *len; in altera_qspi_get_locked_range()
258 static int altera_qspi_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_lock() argument
270 sector_start = ofs / mtd->erasesize; in altera_qspi_lock()
271 sector_end = (ofs + len) / mtd->erasesize; in altera_qspi_lock()
292 static int altera_qspi_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_unlock() argument