• 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

71 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
72 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
971 unsigned long ofs;
975 /* ofs: offset within the first chip that the first read should start */
978 ofs = from - (chipnum << cfi->chipshift);
989 if ((len + ofs -1) >> cfi->chipshift)
990 thislen = (1<<cfi->chipshift) - ofs;
994 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
1002 ofs = 0;
1056 unsigned long ofs;
1061 /* ofs: offset within the first chip that the first read should start */
1065 ofs=from & 7;
1076 if ((len + ofs -1) >> 3)
1077 thislen = (1<<3) - ofs;
1081 ret = do_read_secsi_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
1089 ofs = 0;
1210 unsigned long ofs, chipstart;
1218 ofs = to - (chipnum << cfi->chipshift);
1222 if (ofs & (map_bankwidth(map)-1)) {
1223 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1);
1224 int i = ofs - bus_ofs;
1257 ofs += n;
1262 if (ofs >> cfi->chipshift) {
1264 ofs = 0;
1277 ofs, datum);
1281 ofs += map_bankwidth(map);
1286 if (ofs >> cfi->chipshift) {
1288 ofs = 0;
1313 tmp_buf = map_read(map, ofs + chipstart);
1320 ofs, tmp_buf);
1450 unsigned long ofs;
1457 ofs = to - (chipnum << cfi->chipshift);
1460 if (ofs & (map_bankwidth(map)-1)) {
1461 size_t local_len = (-ofs)&(map_bankwidth(map)-1);
1464 ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift),
1468 ofs += local_len;
1472 if (ofs >> cfi->chipshift) {
1474 ofs = 0;
1483 int size = wbufsize - (ofs & (wbufsize-1));
1491 ofs, buf, size);
1495 ofs += size;
1500 if (ofs >> cfi->chipshift) {
1502 ofs = 0;
1511 ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift),
1704 unsigned long ofs, len;
1707 ofs = instr->addr;
1710 ret = cfi_varsize_frob(mtd, do_erase_oneblock, ofs, len, NULL);
1807 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1809 return cfi_varsize_frob(mtd, do_atmel_lock, ofs, len, NULL);
1812 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1814 return cfi_varsize_frob(mtd, do_atmel_unlock, ofs, len, NULL);