Lines Matching defs:ofs
26 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
27 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
541 unsigned long ofs, last_end = 0;
548 /* ofs: offset within the first chip that the first read should start */
549 ofs = adr - (chipnum << lpddr->chipshift);
550 *mtdbuf = (void *)map->virt + chip->start + ofs;
564 if ((len + ofs - 1) >> lpddr->chipshift)
565 thislen = (1<<lpddr->chipshift) - ofs;
580 ofs = 0;
593 unsigned long ofs;
595 /* ofs: offset within the first chip that the first read should start */
596 ofs = adr - (chipnum << lpddr->chipshift);
606 if ((len + ofs - 1) >> lpddr->chipshift)
607 thislen = (1<<lpddr->chipshift) - ofs;
626 ofs = 0;
652 unsigned long ofs, vec_seek, i;
664 ofs = to;
669 int size = wbufsize - (ofs & (wbufsize-1));
675 ofs, &vecs, &vec_seek, size);
679 ofs += size;
694 unsigned long ofs, len;
700 ofs = instr->addr;
704 ret = do_erase_oneblock(mtd, ofs);
707 ofs += size;
751 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
753 return do_xxlock(mtd, ofs, len, DO_XXLOCK_LOCK);
756 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
758 return do_xxlock(mtd, ofs, len, DO_XXLOCK_UNLOCK);