Lines Matching defs:ofs
43 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
44 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
387 unsigned long ofs;
391 /* ofs: offset within the first chip that the first read should start */
393 ofs = from - (chipnum << cfi->chipshift);
401 if ((len + ofs -1) >> cfi->chipshift)
402 thislen = (1<<cfi->chipshift) - ofs;
406 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
414 ofs = 0;
614 unsigned long ofs;
617 ofs = to - (chipnum << cfi->chipshift);
622 printk("%s: ofs[%x] len[%x]\n", __func__, ofs, len);
628 int size = wbufsize - (ofs & (wbufsize-1));
634 ofs, buf, size);
638 ofs += size;
643 if (ofs >> cfi->chipshift) {
645 ofs = 0;
1126 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1136 if (ofs & (mtd->erasesize - 1))
1142 chipnum = ofs >> cfi->chipshift;
1143 adr = ofs - (chipnum << cfi->chipshift);
1272 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1282 chipnum = ofs >> cfi->chipshift;
1283 adr = ofs - (chipnum << cfi->chipshift);