Lines Matching defs:dbc
22 static inline struct dbc_port *dbc_to_port(struct xhci_dbc *dbc)
24 return dbc->priv;
149 dbc_read_complete(struct xhci_dbc *dbc, struct dbc_request *req)
152 struct dbc_port *port = dbc_to_port(dbc);
184 static void dbc_write_complete(struct xhci_dbc *dbc, struct dbc_request *req)
187 struct dbc_port *port = dbc_to_port(dbc);
198 dev_warn(dbc->dev, "unexpected write complete status %d\n",
212 xhci_dbc_alloc_requests(struct xhci_dbc *dbc, unsigned int direction,
220 req = dbc_alloc_request(dbc, direction, GFP_KERNEL);
451 xhci_dbc_tty_init_port(struct xhci_dbc *dbc, struct dbc_port *port)
471 static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc)
475 struct dbc_port *port = dbc_to_port(dbc);
480 xhci_dbc_tty_init_port(dbc, port);
496 ret = xhci_dbc_alloc_requests(dbc, BULK_IN, &port->read_pool,
501 ret = xhci_dbc_alloc_requests(dbc, BULK_OUT, &port->write_pool,
527 dev_err(dbc->dev, "can't register tty port, err %d\n", ret);
532 static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc)
534 struct dbc_port *port = dbc_to_port(dbc);
559 struct xhci_dbc *dbc;
570 dbc = xhci_alloc_dbc(dev, base, &dbc_driver);
572 if (!dbc) {
577 dbc->priv = port;
580 xhci->dbc = dbc;
590 * undo what probe did, assume dbc is stopped already.
593 void xhci_dbc_tty_remove(struct xhci_dbc *dbc)
595 struct dbc_port *port = dbc_to_port(dbc);
597 xhci_dbc_remove(dbc);
629 pr_err("Can't register dbc tty driver\n");