Lines Matching defs:offset
170 unsigned long offset = 0;
205 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset;
209 offset += (ersize * ernum);
212 if (offset != devsize) {
214 printk(KERN_WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize);
222 printk(KERN_DEBUG "%d: offset=0x%llx,size=0x%x,blocks=%d\n",
223 i, (unsigned long long)mtd->eraseregions[i].offset,
391 /* ofs: offset within the first chip that the first read should start */
911 while (i < mtd->numeraseregions && instr->addr >= regions[i].offset)
931 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset)
957 if (adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * regions[i].numblocks)) %( 1<< cfi->chipshift)))