Lines Matching refs:new_config
1629 struct hayes_esp_config new_config; in set_esp_config() local
1640 if (copy_from_user(&new_config, new_info, sizeof(new_config))) in set_esp_config()
1643 if ((new_config.flow_on >= new_config.flow_off) || in set_esp_config()
1644 (new_config.rx_trigger < 1) || in set_esp_config()
1645 (new_config.tx_trigger < 1) || in set_esp_config()
1646 (new_config.flow_off < 1) || in set_esp_config()
1647 (new_config.flow_on < 1) || in set_esp_config()
1648 (new_config.rx_trigger > 1023) || in set_esp_config()
1649 (new_config.tx_trigger > 1023) || in set_esp_config()
1650 (new_config.flow_off > 1023) || in set_esp_config()
1651 (new_config.flow_on > 1023) || in set_esp_config()
1652 (new_config.pio_threshold < 0) || in set_esp_config()
1653 (new_config.pio_threshold > 1024)) in set_esp_config()
1656 if ((new_config.dma_channel != 1) && (new_config.dma_channel != 3)) in set_esp_config()
1657 new_config.dma_channel = 0; in set_esp_config()
1660 change_dma = new_config.dma_channel; in set_esp_config()
1662 change_dma = (new_config.dma_channel != dma); in set_esp_config()
1665 if (new_config.dma_channel) { in set_esp_config()
1683 dma = new_config.dma_channel; in set_esp_config()
1706 info->config.pio_threshold = new_config.pio_threshold; in set_esp_config()
1708 if ((new_config.flow_off != info->config.flow_off) || in set_esp_config()
1709 (new_config.flow_on != info->config.flow_on)) { in set_esp_config()
1712 info->config.flow_off = new_config.flow_off; in set_esp_config()
1713 info->config.flow_on = new_config.flow_on; in set_esp_config()
1716 serial_out(info, UART_ESI_CMD2, new_config.flow_off >> 8); in set_esp_config()
1717 serial_out(info, UART_ESI_CMD2, new_config.flow_off); in set_esp_config()
1718 serial_out(info, UART_ESI_CMD2, new_config.flow_on >> 8); in set_esp_config()
1719 serial_out(info, UART_ESI_CMD2, new_config.flow_on); in set_esp_config()
1723 if ((new_config.rx_trigger != info->config.rx_trigger) || in set_esp_config()
1724 (new_config.tx_trigger != info->config.tx_trigger)) { in set_esp_config()
1727 info->config.rx_trigger = new_config.rx_trigger; in set_esp_config()
1728 info->config.tx_trigger = new_config.tx_trigger; in set_esp_config()
1732 new_config.rx_trigger >> 8); in set_esp_config()
1733 serial_out(info, UART_ESI_CMD2, new_config.rx_trigger); in set_esp_config()
1735 new_config.tx_trigger >> 8); in set_esp_config()
1736 serial_out(info, UART_ESI_CMD2, new_config.tx_trigger); in set_esp_config()
1740 if (new_config.rx_timeout != info->config.rx_timeout) { in set_esp_config()
1743 info->config.rx_timeout = new_config.rx_timeout; in set_esp_config()
1750 new_config.rx_timeout); in set_esp_config()