Lines Matching refs:nu
48 struct nci_uart *nu = priv->drv_data; in nfcmrvl_uart_nci_send() local
50 return nu->ops.send(nu, skb); in nfcmrvl_uart_nci_send()
56 struct nci_uart *nu = priv->drv_data; in nfcmrvl_uart_nci_update_config() local
59 nci_uart_set_config(nu, le32_to_cpu(config->baudrate), in nfcmrvl_uart_nci_update_config()
110 static int nfcmrvl_nci_uart_open(struct nci_uart *nu) in nfcmrvl_nci_uart_open() argument
115 struct device *dev = nu->tty->dev; in nfcmrvl_nci_uart_open()
136 priv = nfcmrvl_nci_register_dev(NFCMRVL_PHY_UART, nu, &uart_ops, in nfcmrvl_nci_uart_open()
143 nu->drv_data = priv; in nfcmrvl_nci_uart_open()
144 nu->ndev = priv->ndev; in nfcmrvl_nci_uart_open()
149 static void nfcmrvl_nci_uart_close(struct nci_uart *nu) in nfcmrvl_nci_uart_close() argument
151 nfcmrvl_nci_unregister_dev((struct nfcmrvl_private *)nu->drv_data); in nfcmrvl_nci_uart_close()
154 static int nfcmrvl_nci_uart_recv(struct nci_uart *nu, struct sk_buff *skb) in nfcmrvl_nci_uart_recv() argument
156 return nfcmrvl_nci_recv_frame((struct nfcmrvl_private *)nu->drv_data, in nfcmrvl_nci_uart_recv()
160 static void nfcmrvl_nci_uart_tx_start(struct nci_uart *nu) in nfcmrvl_nci_uart_tx_start() argument
162 struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; in nfcmrvl_nci_uart_tx_start()
168 if (priv->config.break_control && nu->tty->ops->break_ctl) { in nfcmrvl_nci_uart_tx_start()
169 nu->tty->ops->break_ctl(nu->tty, 0); in nfcmrvl_nci_uart_tx_start()
174 static void nfcmrvl_nci_uart_tx_done(struct nci_uart *nu) in nfcmrvl_nci_uart_tx_done() argument
176 struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; in nfcmrvl_nci_uart_tx_done()
186 if (priv->config.break_control && nu->tty->ops->break_ctl) { in nfcmrvl_nci_uart_tx_done()
187 nu->tty->ops->break_ctl(nu->tty, -1); in nfcmrvl_nci_uart_tx_done()