Lines Matching refs:mode_var
159 const char *yamontty, *mode_var; in yamon_dt_serial_config() local
181 mode_var = fw_getenv(mode_var_name); in yamon_dt_serial_config()
182 if (mode_var) { in yamon_dt_serial_config()
183 while (mode_var[0] >= '0' && mode_var[0] <= '9') { in yamon_dt_serial_config()
185 baud += mode_var[0] - '0'; in yamon_dt_serial_config()
186 mode_var++; in yamon_dt_serial_config()
188 if (mode_var[0] == ',') in yamon_dt_serial_config()
189 mode_var++; in yamon_dt_serial_config()
190 if (mode_var[0]) in yamon_dt_serial_config()
191 parity = mode_var[0]; in yamon_dt_serial_config()
192 if (mode_var[0] == ',') in yamon_dt_serial_config()
193 mode_var++; in yamon_dt_serial_config()
194 if (mode_var[0]) in yamon_dt_serial_config()
195 stop_bits = mode_var[0] - '0'; in yamon_dt_serial_config()
196 if (mode_var[0] == ',') in yamon_dt_serial_config()
197 mode_var++; in yamon_dt_serial_config()
198 if (!strcmp(mode_var, "hw")) in yamon_dt_serial_config()