Lines Matching refs:dbc
22 static inline struct dbc_port *dbc_to_port(struct xhci_dbc *dbc) in dbc_to_port() argument
24 return dbc->priv; in dbc_to_port()
104 dbc_read_complete(struct xhci_dbc *dbc, struct dbc_request *req) in dbc_read_complete() argument
107 struct dbc_port *port = dbc_to_port(dbc); in dbc_read_complete()
115 static void dbc_write_complete(struct xhci_dbc *dbc, struct dbc_request *req) in dbc_write_complete() argument
118 struct dbc_port *port = dbc_to_port(dbc); in dbc_write_complete()
129 dev_warn(dbc->dev, "unexpected write complete status %d\n", in dbc_write_complete()
143 xhci_dbc_alloc_requests(struct xhci_dbc *dbc, unsigned int direction, in xhci_dbc_alloc_requests() argument
151 req = dbc_alloc_request(dbc, direction, GFP_KERNEL); in xhci_dbc_alloc_requests()
381 xhci_dbc_tty_init_port(struct xhci_dbc *dbc, struct dbc_port *port) in xhci_dbc_tty_init_port() argument
401 static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc) in xhci_dbc_tty_register_device() argument
405 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_register_device()
410 xhci_dbc_tty_init_port(dbc, port); in xhci_dbc_tty_register_device()
416 ret = xhci_dbc_alloc_requests(dbc, BULK_IN, &port->read_pool, in xhci_dbc_tty_register_device()
421 ret = xhci_dbc_alloc_requests(dbc, BULK_OUT, &port->write_pool, in xhci_dbc_tty_register_device()
445 dev_err(dbc->dev, "can't register tty port, err %d\n", ret); in xhci_dbc_tty_register_device()
450 static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc) in xhci_dbc_tty_unregister_device() argument
452 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_unregister_device()
473 struct xhci_dbc *dbc = xhci->dbc; in xhci_dbc_tty_probe() local
488 dbc->driver = &dbc_driver; in xhci_dbc_tty_probe()
489 dbc->priv = port; in xhci_dbc_tty_probe()
505 void xhci_dbc_tty_remove(struct xhci_dbc *dbc) in xhci_dbc_tty_remove() argument
507 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_remove()
509 dbc->driver = NULL; in xhci_dbc_tty_remove()
510 dbc->priv = NULL; in xhci_dbc_tty_remove()