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()
114 dbc_read_complete(struct xhci_dbc *dbc, struct dbc_request *req) in dbc_read_complete() argument
117 struct dbc_port *port = dbc_to_port(dbc); in dbc_read_complete()
125 static void dbc_write_complete(struct xhci_dbc *dbc, struct dbc_request *req) in dbc_write_complete() argument
128 struct dbc_port *port = dbc_to_port(dbc); in dbc_write_complete()
139 dev_warn(dbc->dev, "unexpected write complete status %d\n", in dbc_write_complete()
153 xhci_dbc_alloc_requests(struct xhci_dbc *dbc, unsigned int direction, in xhci_dbc_alloc_requests() argument
161 req = dbc_alloc_request(dbc, direction, GFP_KERNEL); in xhci_dbc_alloc_requests()
419 xhci_dbc_tty_init_port(struct xhci_dbc *dbc, struct dbc_port *port) in xhci_dbc_tty_init_port() argument
439 static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc) in xhci_dbc_tty_register_device() argument
443 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_register_device()
448 xhci_dbc_tty_init_port(dbc, port); in xhci_dbc_tty_register_device()
464 ret = xhci_dbc_alloc_requests(dbc, BULK_IN, &port->read_pool, in xhci_dbc_tty_register_device()
469 ret = xhci_dbc_alloc_requests(dbc, BULK_OUT, &port->write_pool, in xhci_dbc_tty_register_device()
495 dev_err(dbc->dev, "can't register tty port, err %d\n", ret); in xhci_dbc_tty_register_device()
500 static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc) in xhci_dbc_tty_unregister_device() argument
502 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_unregister_device()
527 struct xhci_dbc *dbc; in xhci_dbc_tty_probe() local
538 dbc = xhci_alloc_dbc(dev, base, &dbc_driver); in xhci_dbc_tty_probe()
540 if (!dbc) { in xhci_dbc_tty_probe()
545 dbc->priv = port; in xhci_dbc_tty_probe()
548 xhci->dbc = dbc; in xhci_dbc_tty_probe()
561 void xhci_dbc_tty_remove(struct xhci_dbc *dbc) in xhci_dbc_tty_remove() argument
563 struct dbc_port *port = dbc_to_port(dbc); in xhci_dbc_tty_remove()
565 xhci_dbc_remove(dbc); in xhci_dbc_tty_remove()