Lines Matching defs:ofs
44 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
45 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
388 unsigned long ofs;
392 /* ofs: offset within the first chip that the first read should start */
394 ofs = from - (chipnum << cfi->chipshift);
402 if ((len + ofs -1) >> cfi->chipshift)
403 thislen = (1<<cfi->chipshift) - ofs;
407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
415 ofs = 0;
615 unsigned long ofs;
618 ofs = to - (chipnum << cfi->chipshift);
623 printk("%s: ofs[%x] len[%x]\n", __func__, ofs, len);
629 int size = wbufsize - (ofs & (wbufsize-1));
635 ofs, buf, size);
639 ofs += size;
644 if (ofs >> cfi->chipshift) {
646 ofs = 0;
1127 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1137 if (ofs & (mtd->erasesize - 1))
1143 chipnum = ofs >> cfi->chipshift;
1144 adr = ofs - (chipnum << cfi->chipshift);
1273 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1283 chipnum = ofs >> cfi->chipshift;
1284 adr = ofs - (chipnum << cfi->chipshift);