Lines Matching defs:mode
31 static int get_chip(struct map_info *map, struct flchip *chip, int mode);
32 static int chip_ready(struct map_info *map, struct flchip *chip, int mode);
198 static int get_chip(struct map_info *map, struct flchip *chip, int mode)
204 if (chip->priv && (mode == FL_WRITING || mode == FL_ERASING)
243 ret = chip_ready(map, contender, mode);
268 if (mode == FL_ERASING && shared->erasing
282 if (mode == FL_ERASING)
287 ret = chip_ready(map, chip, mode);
294 static int chip_ready(struct map_info *map, struct flchip *chip, int mode)
301 if (FL_SYNCING == mode && FL_READY != chip->oldstate)
311 !(mode == FL_READY || mode == FL_POINT))
333 if (mode == FL_READY && chip->oldstate == FL_READY)