Lines Matching defs:config
41 const struct grub_serial_config *config)
67 if (divisor_tab[i].speed == config->speed)
100 divisor = serial_get_divisor (port, &port->config);
113 status |= (parities[port->config.parity]
114 | (port->config.word_len - 5)
115 | stop_bits[port->config.stop_bits]);
191 struct grub_serial_config *config)
195 divisor = serial_get_divisor (port, config);
199 if (config->parity != GRUB_SERIAL_PARITY_NONE
200 && config->parity != GRUB_SERIAL_PARITY_ODD
201 && config->parity != GRUB_SERIAL_PARITY_EVEN)
204 if (config->stop_bits != GRUB_SERIAL_STOP_BITS_1
205 && config->stop_bits != GRUB_SERIAL_STOP_BITS_2)
208 if (config->word_len < 5 || config->word_len > 8)
211 port->config = *config;