Lines Matching refs:modes
89 int modes[MaxFault]; member
117 switch (conf->modes[i] * 2 + dir) { in check_sector()
122 conf->modes[i] = NoPersist; in check_sector()
140 case NoPersist: conf->modes[i] = mode; return; in add_sector()
142 if (conf->modes[i] == ReadPersistent || in add_sector()
143 conf->modes[i] == ReadFixable) in add_sector()
144 conf->modes[i] = AllPersist; in add_sector()
146 conf->modes[i] = WritePersistent; in add_sector()
149 if (conf->modes[i] == WritePersistent) in add_sector()
150 conf->modes[i] = AllPersist; in add_sector()
152 conf->modes[i] = ReadPersistent; in add_sector()
155 if (conf->modes[i] == WritePersistent || in add_sector()
156 conf->modes[i] == ReadPersistent) in add_sector()
157 conf->modes[i] = AllPersist; in add_sector()
159 conf->modes[i] = ReadFixable; in add_sector()
162 } else if (conf->modes[i] == NoPersist) in add_sector()
168 conf->modes[n] = mode; in add_sector()