Lines Matching refs:driver
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver)
110 if (driver >= NCI_UART_DRIVER_MAX)
113 if (!nci_uart_drivers[driver])
120 memcpy(nu, nci_uart_drivers[driver], sizeof(struct nci_uart));
162 /* Flush any pending characters in the driver */
200 * device driver can accept more send data.
224 * bytes are received it passes it to nci_uart driver for processing.
275 /* Pass RX packet to driver */
288 * Called by tty low level driver when receive data is
380 /* Add this driver in the driver list */
381 if (nci_uart_drivers[nu->driver]) {
382 pr_err("driver %d is already registered\n", nu->driver);
385 nci_uart_drivers[nu->driver] = nu;
387 pr_info("NCI uart driver '%s [%d]' registered\n", nu->name, nu->driver);
395 pr_info("NCI uart driver '%s [%d]' unregistered\n", nu->name,
396 nu->driver);
398 /* Remove this driver from the driver list */
399 nci_uart_drivers[nu->driver] = NULL;
452 MODULE_DESCRIPTION("NFC NCI UART driver");