Lines Matching full:one
365 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_read() local
368 regmap_read(one->regmap, reg, &val); in sc16is7xx_port_read()
375 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_write() local
377 regmap_write(one->regmap, reg, val); in sc16is7xx_port_write()
382 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_read() local
384 regmap_noinc_read(one->regmap, SC16IS7XX_RHR_REG, rxbuf, rxlen); in sc16is7xx_fifo_read()
389 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_write() local
398 regmap_noinc_write(one->regmap, SC16IS7XX_THR_REG, txbuf, to_send); in sc16is7xx_fifo_write()
404 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_update() local
406 regmap_update_bits(one->regmap, reg, mask, val); in sc16is7xx_port_update()
432 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_efr_lock() local
434 mutex_lock(&one->efr_lock); in sc16is7xx_efr_lock()
437 one->old_lcr = sc16is7xx_port_read(port, SC16IS7XX_LCR_REG); in sc16is7xx_efr_lock()
443 regcache_cache_bypass(one->regmap, true); in sc16is7xx_efr_lock()
448 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_efr_unlock() local
451 regcache_cache_bypass(one->regmap, false); in sc16is7xx_efr_unlock()
454 sc16is7xx_port_write(port, SC16IS7XX_LCR_REG, one->old_lcr); in sc16is7xx_efr_unlock()
456 mutex_unlock(&one->efr_lock); in sc16is7xx_efr_unlock()
462 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_ier_clear() local
466 one->config.flags |= SC16IS7XX_RECONF_IER; in sc16is7xx_ier_clear()
467 one->config.ier_mask |= bit; in sc16is7xx_ier_clear()
468 one->config.ier_val &= ~bit; in sc16is7xx_ier_clear()
469 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_ier_clear()
475 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_ier_set() local
479 one->config.flags |= SC16IS7XX_RECONF_IER; in sc16is7xx_ier_set()
480 one->config.ier_mask |= bit; in sc16is7xx_ier_set()
481 one->config.ier_val |= bit; in sc16is7xx_ier_set()
482 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_ier_set()
559 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_baud() local
586 regcache_cache_bypass(one->regmap, true); in sc16is7xx_set_baud()
589 regcache_cache_bypass(one->regmap, false); in sc16is7xx_set_baud()
742 static void sc16is7xx_update_mlines(struct sc16is7xx_one *one) in sc16is7xx_update_mlines() argument
744 struct uart_port *port = &one->port; in sc16is7xx_update_mlines()
748 lockdep_assert_held_once(&one->efr_lock); in sc16is7xx_update_mlines()
751 changed = status ^ one->old_mctrl; in sc16is7xx_update_mlines()
756 one->old_mctrl = status; in sc16is7xx_update_mlines()
777 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_irq() local
779 mutex_lock(&one->efr_lock); in sc16is7xx_port_irq()
801 * When this happens, read one byte from the FIFO to in sc16is7xx_port_irq()
813 sc16is7xx_update_mlines(one); in sc16is7xx_port_irq()
826 mutex_unlock(&one->efr_lock); in sc16is7xx_port_irq()
852 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_tx_proc() local
858 mutex_lock(&one->efr_lock); in sc16is7xx_tx_proc()
860 mutex_unlock(&one->efr_lock); in sc16is7xx_tx_proc()
885 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); in sc16is7xx_reg_proc() local
889 uart_port_lock_irqsave(&one->port, &irqflags); in sc16is7xx_reg_proc()
890 config = one->config; in sc16is7xx_reg_proc()
891 memset(&one->config, 0, sizeof(one->config)); in sc16is7xx_reg_proc()
892 uart_port_unlock_irqrestore(&one->port, irqflags); in sc16is7xx_reg_proc()
898 if (one->port.mctrl & TIOCM_RTS) in sc16is7xx_reg_proc()
901 if (one->port.mctrl & TIOCM_DTR) in sc16is7xx_reg_proc()
904 if (one->port.mctrl & TIOCM_LOOP) in sc16is7xx_reg_proc()
906 sc16is7xx_port_update(&one->port, SC16IS7XX_MCR_REG, in sc16is7xx_reg_proc()
914 sc16is7xx_port_update(&one->port, SC16IS7XX_IER_REG, in sc16is7xx_reg_proc()
918 sc16is7xx_reconf_rs485(&one->port); in sc16is7xx_reg_proc()
923 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, ms_work.work); in sc16is7xx_ms_proc() local
924 struct sc16is7xx_port *s = dev_get_drvdata(one->port.dev); in sc16is7xx_ms_proc()
926 if (one->port.state) { in sc16is7xx_ms_proc()
927 mutex_lock(&one->efr_lock); in sc16is7xx_ms_proc()
928 sc16is7xx_update_mlines(one); in sc16is7xx_ms_proc()
929 mutex_unlock(&one->efr_lock); in sc16is7xx_ms_proc()
931 kthread_queue_delayed_work(&s->kworker, &one->ms_work, HZ); in sc16is7xx_ms_proc()
937 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_enable_ms() local
942 kthread_queue_delayed_work(&s->kworker, &one->ms_work, 0); in sc16is7xx_enable_ms()
948 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_start_tx() local
950 kthread_queue_work(&s->kworker, &one->tx_work); in sc16is7xx_start_tx()
987 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_get_mctrl() local
990 return one->old_mctrl; in sc16is7xx_get_mctrl()
996 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_mctrl() local
998 one->config.flags |= SC16IS7XX_RECONF_MD; in sc16is7xx_set_mctrl()
999 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_set_mctrl()
1013 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_termios() local
1018 kthread_cancel_delayed_work_sync(&one->ms_work); in sc16is7xx_set_termios()
1116 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_config_rs485() local
1128 one->config.flags |= SC16IS7XX_RECONF_RS485; in sc16is7xx_config_rs485()
1129 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_config_rs485()
1136 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_startup() local
1153 regcache_cache_bypass(one->regmap, true); in sc16is7xx_startup()
1171 regcache_cache_bypass(one->regmap, false); in sc16is7xx_startup()
1180 one->irda_mode ? in sc16is7xx_startup()
1205 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_shutdown() local
1207 kthread_cancel_delayed_work_sync(&one->ms_work); in sc16is7xx_shutdown()