• Home
  • Raw
  • Download

Lines Matching full:one

366 	struct sc16is7xx_one *one = to_sc16is7xx_one(port, port);  in sc16is7xx_port_read()  local
369 regmap_read(one->regmap, reg, &val); in sc16is7xx_port_read()
376 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_write() local
378 regmap_write(one->regmap, reg, val); in sc16is7xx_port_write()
384 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_read() local
386 regmap_noinc_read(one->regmap, SC16IS7XX_RHR_REG, s->buf, rxlen); in sc16is7xx_fifo_read()
392 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_fifo_write() local
401 regmap_noinc_write(one->regmap, SC16IS7XX_THR_REG, s->buf, to_send); in sc16is7xx_fifo_write()
407 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_update() local
409 regmap_update_bits(one->regmap, reg, mask, val); in sc16is7xx_port_update()
487 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_baud() local
510 mutex_lock(&one->efr_lock); in sc16is7xx_set_baud()
519 regcache_cache_bypass(one->regmap, true); in sc16is7xx_set_baud()
524 regcache_cache_bypass(one->regmap, false); in sc16is7xx_set_baud()
529 mutex_unlock(&one->efr_lock); in sc16is7xx_set_baud()
540 regcache_cache_bypass(one->regmap, true); in sc16is7xx_set_baud()
543 regcache_cache_bypass(one->regmap, false); in sc16is7xx_set_baud()
696 static void sc16is7xx_update_mlines(struct sc16is7xx_one *one) in sc16is7xx_update_mlines() argument
698 struct uart_port *port = &one->port; in sc16is7xx_update_mlines()
702 lockdep_assert_held_once(&one->efr_lock); in sc16is7xx_update_mlines()
705 changed = status ^ one->old_mctrl; in sc16is7xx_update_mlines()
710 one->old_mctrl = status; in sc16is7xx_update_mlines()
731 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_port_irq() local
733 mutex_lock(&one->efr_lock); in sc16is7xx_port_irq()
755 * When this happens, read one byte from the FIFO to in sc16is7xx_port_irq()
767 sc16is7xx_update_mlines(one); in sc16is7xx_port_irq()
780 mutex_unlock(&one->efr_lock); in sc16is7xx_port_irq()
806 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_tx_proc() local
812 mutex_lock(&one->efr_lock); in sc16is7xx_tx_proc()
814 mutex_unlock(&one->efr_lock); in sc16is7xx_tx_proc()
839 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, reg_work); in sc16is7xx_reg_proc() local
843 uart_port_lock_irqsave(&one->port, &irqflags); in sc16is7xx_reg_proc()
844 config = one->config; in sc16is7xx_reg_proc()
845 memset(&one->config, 0, sizeof(one->config)); in sc16is7xx_reg_proc()
846 uart_port_unlock_irqrestore(&one->port, irqflags); in sc16is7xx_reg_proc()
852 if (one->port.mctrl & TIOCM_RTS) in sc16is7xx_reg_proc()
855 if (one->port.mctrl & TIOCM_DTR) in sc16is7xx_reg_proc()
858 if (one->port.mctrl & TIOCM_LOOP) in sc16is7xx_reg_proc()
860 sc16is7xx_port_update(&one->port, SC16IS7XX_MCR_REG, in sc16is7xx_reg_proc()
868 sc16is7xx_port_update(&one->port, SC16IS7XX_IER_REG, in sc16is7xx_reg_proc()
872 sc16is7xx_reconf_rs485(&one->port); in sc16is7xx_reg_proc()
878 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_ier_clear() local
882 one->config.flags |= SC16IS7XX_RECONF_IER; in sc16is7xx_ier_clear()
883 one->config.ier_mask |= bit; in sc16is7xx_ier_clear()
884 one->config.ier_val &= ~bit; in sc16is7xx_ier_clear()
885 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_ier_clear()
891 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_ier_set() local
895 one->config.flags |= SC16IS7XX_RECONF_IER; in sc16is7xx_ier_set()
896 one->config.ier_mask |= bit; in sc16is7xx_ier_set()
897 one->config.ier_val |= bit; in sc16is7xx_ier_set()
898 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_ier_set()
913 struct sc16is7xx_one *one = to_sc16is7xx_one(ws, ms_work.work); in sc16is7xx_ms_proc() local
914 struct sc16is7xx_port *s = dev_get_drvdata(one->port.dev); in sc16is7xx_ms_proc()
916 if (one->port.state) { in sc16is7xx_ms_proc()
917 mutex_lock(&one->efr_lock); in sc16is7xx_ms_proc()
918 sc16is7xx_update_mlines(one); in sc16is7xx_ms_proc()
919 mutex_unlock(&one->efr_lock); in sc16is7xx_ms_proc()
921 kthread_queue_delayed_work(&s->kworker, &one->ms_work, HZ); in sc16is7xx_ms_proc()
927 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_enable_ms() local
932 kthread_queue_delayed_work(&s->kworker, &one->ms_work, 0); in sc16is7xx_enable_ms()
938 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_start_tx() local
940 kthread_queue_work(&s->kworker, &one->tx_work); in sc16is7xx_start_tx()
977 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_get_mctrl() local
980 return one->old_mctrl; in sc16is7xx_get_mctrl()
986 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_mctrl() local
988 one->config.flags |= SC16IS7XX_RECONF_MD; in sc16is7xx_set_mctrl()
989 kthread_queue_work(&s->kworker, &one->reg_work); in sc16is7xx_set_mctrl()
1003 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); in sc16is7xx_set_termios() local
1008 kthread_cancel_delayed_work_sync(&one->ms_work); in sc16is7xx_set_termios()
1061 mutex_lock(&one->efr_lock); in sc16is7xx_set_termios()
1067 regcache_cache_bypass(one->regmap, true); in sc16is7xx_set_termios()
1086 regcache_cache_bypass(one->regmap, false); in sc16is7xx_set_termios()
1091 mutex_unlock(&one->efr_lock); 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()