Lines Matching refs:chipshift
392 chipnum = (from >> cfi->chipshift); in cfi_staa_read()
393 ofs = from - (chipnum << cfi->chipshift); in cfi_staa_read()
401 if ((len + ofs -1) >> cfi->chipshift) in cfi_staa_read()
402 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read()
616 chipnum = to >> cfi->chipshift; in cfi_staa_write_buffers()
617 ofs = to - (chipnum << cfi->chipshift); in cfi_staa_write_buffers()
643 if (ofs >> cfi->chipshift) { in cfi_staa_write_buffers()
942 chipnum = instr->addr >> cfi->chipshift; in cfi_staa_erase_varsize()
943 adr = instr->addr - (chipnum << cfi->chipshift); in cfi_staa_erase_varsize()
957 …(adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * region… in cfi_staa_erase_varsize()
960 if (adr >> cfi->chipshift) { in cfi_staa_erase_varsize()
1142 chipnum = ofs >> cfi->chipshift; in cfi_staa_lock()
1143 adr = ofs - (chipnum << cfi->chipshift); in cfi_staa_lock()
1167 if (adr >> cfi->chipshift) { in cfi_staa_lock()
1282 chipnum = ofs >> cfi->chipshift; in cfi_staa_unlock()
1283 adr = ofs - (chipnum << cfi->chipshift); in cfi_staa_unlock()