Lines Matching refs:ofs
59 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs,
65 loff_t ofs; in flash_print_info() local
70 altera_qspi_get_locked_range(mtd, &ofs, &len); in flash_print_info()
74 info->start[0] + ofs, len); in flash_print_info()
233 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, in altera_qspi_get_locked_range() argument
245 *ofs = 0; in altera_qspi_get_locked_range()
252 *ofs = mtd->size - *len; in altera_qspi_get_locked_range()
256 static int altera_qspi_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_lock() argument
268 sector_start = ofs / mtd->erasesize; in altera_qspi_lock()
269 sector_end = (ofs + len) / mtd->erasesize; in altera_qspi_lock()
290 static int altera_qspi_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_unlock() argument