Lines Matching refs:ofs
39 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
40 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
529 unsigned long ofs, last_end = 0; in lpddr_point() local
537 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_point()
538 *mtdbuf = (void *)map->virt + chip->start + ofs; in lpddr_point()
552 if ((len + ofs - 1) >> lpddr->chipshift) in lpddr_point()
553 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_point()
568 ofs = 0; in lpddr_point()
581 unsigned long ofs; in lpddr_unpoint() local
584 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_unpoint()
594 if ((len + ofs - 1) >> lpddr->chipshift) in lpddr_unpoint()
595 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_unpoint()
614 ofs = 0; in lpddr_unpoint()
640 unsigned long ofs, vec_seek, i; in lpddr_writev() local
652 ofs = to; in lpddr_writev()
657 int size = wbufsize - (ofs & (wbufsize-1)); in lpddr_writev()
663 ofs, &vecs, &vec_seek, size); in lpddr_writev()
667 ofs += size; in lpddr_writev()
682 unsigned long ofs, len; in lpddr_erase() local
688 ofs = instr->addr; in lpddr_erase()
692 ret = do_erase_oneblock(mtd, ofs); in lpddr_erase()
695 ofs += size; in lpddr_erase()
741 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock() argument
743 return do_xxlock(mtd, ofs, len, DO_XXLOCK_LOCK); in lpddr_lock()
746 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_unlock() argument
748 return do_xxlock(mtd, ofs, len, DO_XXLOCK_UNLOCK); in lpddr_unlock()