Lines Matching defs:mode

42 // debugging, turns off buffer write mode if set to 1
99 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
100 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
133 printk(" - Page-mode read: %s\n", extp->FeatureSupport&128?"supported":"unsupported");
198 if (atmel_pri.Features & 0x20) /* page mode read supported */
207 /* burst write mode not supported */
827 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode)
836 if (mode == FL_SYNCING && chip->oldstate != FL_READY)
867 !(mode == FL_READY || mode == FL_POINT ||
868 (mode == FL_WRITING && (cfip->SuspendCmdSupport & 1))))
886 * 'read' mode. Make sure that we switch to 'read status'
887 * mode so we get the right data. --rmk
900 * Make sure we're in 'read status' mode if it had finished */
917 if (mode != FL_READY && mode != FL_POINT &&
918 (mode != FL_WRITING || !cfip || !(cfip->SuspendCmdSupport&1)))
929 if (mode == FL_READY && chip->oldstate == FL_READY)
944 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode)
951 (mode == FL_WRITING || mode == FL_ERASING || mode == FL_OTP_WRITE
952 || mode == FL_SHUTDOWN) && chip->state != FL_SYNCING) {
990 ret = chip_ready(map, contender, contender->start, mode);
1015 if (mode == FL_ERASING && shared->erasing
1029 if (mode == FL_ERASING)
1033 ret = chip_ready(map, chip, adr, mode);
1083 one in READY mode. That's bad, and caused -EROFS
1115 * mode. This is ensured by the xip_disable() and xip_enable() functions
1116 * enclosing any code path where the flash is known not to be in array mode.
1150 * array mode restored and interrupts unmasked. Task scheduling might also
1570 unsigned long adr, map_word datum, int mode)
1578 switch (mode) {
1590 ret = get_chip(map, chip, adr, mode);
1601 chip->state = mode;
2256 /* let's ensure we're not reading back cached data from array mode */
2661 and switch to array mode so any bootloader in