Lines Matching refs:addrshift

323       priv->chips[I].addrshift = 0;  in handle_jedecs()
324 for (Bank = Count; Bank != 1; Bank >>= 1, priv->chips[I].addrshift++); in handle_jedecs()
329 (JEDEC->size << priv->chips[I].addrshift) - Bank) in handle_jedecs()
330 priv->bank_fill[Bank/my_bank_size] = base + (JEDEC->size << priv->chips[I].addrshift) - Bank; in handle_jedecs()
548 #define flread(x) map->read8(map,chip->base+((x)<<chip->addrshift)) in flash_erase()
549 #define flwrite(v,x) map->write8(map,v,chip->base+((x)<<chip->addrshift)) in flash_erase()
633 if ((priv->chips[J].base & (~((1<<chip->addrshift)-1))) == in flash_erase()
634 (chip->base & (~((1<<chip->addrshift)-1)))) in flash_erase()
637 todo[priv->chips[J].base & ((1<<chip->addrshift)-1)] = 1; in flash_erase()
654 Last[0] = map->read8(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
655 Last[1] = map->read8(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
656 Last[2] = map->read8(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
659 Last[0] = map->read16(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
660 Last[1] = map->read16(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
661 Last[2] = map->read16(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
664 Last[0] = map->read32(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
665 Last[1] = map->read32(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
666 Last[2] = map->read32(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
702 Last[Count % 4] = map->read8(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
705 Last[Count % 4] = map->read16(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
708 Last[Count % 4] = map->read32(map,(chip->base >> chip->addrshift) + chip->start + off); in flash_erase()
734 if ((priv->chips[J].base & (~((1<<chip->addrshift)-1))) == in flash_erase()
735 (chip->base & (~((1<<chip->addrshift)-1)))) in flash_erase()
760 #define flread(x) map->read8(map,base+(off&((1<<chip->addrshift)-1))+((x)<<chip->addrshift)) in flash_write()
761 … #define flwrite(v,x) map->write8(map,v,base+(off&((1<<chip->addrshift)-1))+((x)<<chip->addrshift)) in flash_write()
782 off = ((unsigned long)start) % (chip->size << chip->addrshift); in flash_write()
795 for (; off != (chip->size << chip->addrshift) && len != 0; start++, len--, off++,buf++) in flash_write()
853 unsigned long ChipEndByte = chip->offset + (chip->size << chip->addrshift); in jedec_flash_chip_scan()
857 ChipEndByte - (1 << chip->addrshift) < start) in jedec_flash_chip_scan()
867 chip->start = (start - chip->offset + (1 << chip->addrshift)-1) >> chip->addrshift; in jedec_flash_chip_scan()
872 chip->length = (ChipEndByte - ByteStart) >> chip->addrshift; in jedec_flash_chip_scan()
874 chip->length = (start + len - ByteStart + (1 << chip->addrshift)-1) >> chip->addrshift; in jedec_flash_chip_scan()