Lines Matching defs:offset
619 unsigned long offset = 0;
643 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset;
650 offset += (ersize * ernum);
653 if (offset != devsize) {
655 printk(KERN_WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize);
660 printk(KERN_DEBUG "erase region %d: offset=0x%llx,size=0x%x,blocks=%d\n",
661 i,(unsigned long long)mtd->eraseregions[i].offset,
1412 /* ofs: offset within the first chip that the first read should start */
1460 /* ofs: offset within the first chip that the first read should start */
1538 /* ofs: offset within the first chip that the first read should start */
2241 do_otp_read(struct map_info *map, struct flchip *chip, u_long offset,
2255 INVALIDATE_CACHED_RANGE(map, chip->start + offset, size);
2262 map_copy_from(map, buf, chip->start + offset, size);
2266 INVALIDATE_CACHED_RANGE(map, chip->start + offset, size);
2274 do_otp_write(struct map_info *map, struct flchip *chip, u_long offset,
2280 unsigned long bus_ofs = offset & ~(map_bankwidth(map)-1);
2281 int gap = offset - bus_ofs;
2290 offset += n;
2299 do_otp_lock(struct map_info *map, struct flchip *chip, u_long offset,
2511 adr = region->offset + block * len;
2611 adr = region->offset + block * len;