• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/chips/

Lines Matching defs:ofs

63 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
64 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
65 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs,
1325 unsigned long ofs, last_end = 0;
1334 /* ofs: offset within the first chip that the first read should start */
1336 ofs = from - (chipnum << cfi->chipshift);
1338 *virt = map->virt + cfi->chips[chipnum].start + ofs;
1341 *phys = map->phys + cfi->chips[chipnum].start + ofs;
1355 if ((len + ofs -1) >> cfi->chipshift)
1356 thislen = (1<<cfi->chipshift) - ofs;
1360 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen);
1367 ofs = 0;
1378 unsigned long ofs;
1383 /* ofs: offset within the first chip that the first read should start */
1385 ofs = from - (chipnum << cfi->chipshift);
1395 if ((len + ofs -1) >> cfi->chipshift)
1396 thislen = (1<<cfi->chipshift) - ofs;
1412 ofs = 0;
1453 unsigned long ofs;
1457 /* ofs: offset within the first chip that the first read should start */
1459 ofs = from - (chipnum << cfi->chipshift);
1469 if ((len + ofs -1) >> cfi->chipshift)
1470 thislen = (1<<cfi->chipshift) - ofs;
1474 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
1482 ofs = 0;
1568 unsigned long ofs;
1575 ofs = to - (chipnum << cfi->chipshift);
1578 if (ofs & (map_bankwidth(map)-1)) {
1579 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1);
1580 int gap = ofs - bus_ofs;
1594 ofs += n;
1598 if (ofs >> cfi->chipshift) {
1600 ofs = 0;
1610 ofs, datum, FL_WRITING);
1614 ofs += map_bankwidth(map);
1619 if (ofs >> cfi->chipshift) {
1621 ofs = 0;
1634 ofs, datum, FL_WRITING);
1812 unsigned long ofs, vec_seek, i;
1823 ofs = to - (chipnum << cfi->chipshift);
1828 int size = wbufsize - (ofs & (wbufsize-1));
1833 ofs, &vecs, &vec_seek, size);
1837 ofs += size;
1841 if (ofs >> cfi->chipshift) {
1843 ofs = 0;
1956 unsigned long ofs, len;
1959 ofs = instr->addr;
1962 ret = cfi_varsize_frob(mtd, do_erase_oneblock, ofs, len, NULL);
2096 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
2101 printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n",
2102 __func__, ofs, len);
2104 ofs, len, NULL);
2108 ofs, len, DO_XXLOCK_ONEBLOCK_LOCK);
2114 ofs, len, NULL);
2120 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
2125 printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n",
2126 __func__, ofs, len);
2128 ofs, len, NULL);
2132 ofs, len, DO_XXLOCK_ONEBLOCK_UNLOCK);
2138 ofs, len, NULL);
2144 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs,
2148 ofs, len, NULL) ? 1 : 0;