Lines Matching refs:driver
117 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver)
122 if (driver >= NCI_UART_DRIVER_MAX)
125 if (!nci_uart_drivers[driver])
132 memcpy(nu, nci_uart_drivers[driver], sizeof(struct nci_uart));
174 /* Flush any pending characters in the driver */
212 * device driver can accept more send data.
234 * Called by tty low level driver when receive data is
328 * bytes are received it passes it to nci_uart driver for processing.
379 /* Pass RX packet to driver */
411 /* Add this driver in the driver list */
412 if (nci_uart_drivers[nu->driver]) {
413 pr_err("driver %d is already registered\n", nu->driver);
416 nci_uart_drivers[nu->driver] = nu;
418 pr_info("NCI uart driver '%s [%d]' registered\n", nu->name, nu->driver);
426 pr_info("NCI uart driver '%s [%d]' unregistered\n", nu->name,
427 nu->driver);
429 /* Remove this driver from the driver list */
430 nci_uart_drivers[nu->driver] = NULL;
485 MODULE_DESCRIPTION("NFC NCI UART driver");