Lines Matching defs:dbc
22 static inline struct dbc_port *dbc_to_port(struct xhci_dbc *dbc)
24 return dbc->priv;
104 dbc_read_complete(struct xhci_dbc *dbc, struct dbc_request *req)
107 struct dbc_port *port = dbc_to_port(dbc);
115 static void dbc_write_complete(struct xhci_dbc *dbc, struct dbc_request *req)
118 struct dbc_port *port = dbc_to_port(dbc);
129 dev_warn(dbc->dev, "unexpected write complete status %d\n",
143 xhci_dbc_alloc_requests(struct xhci_dbc *dbc, unsigned int direction,
151 req = dbc_alloc_request(dbc, direction, GFP_KERNEL);
387 xhci_dbc_tty_init_port(struct xhci_dbc *dbc, struct dbc_port *port)
407 static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc)
411 struct dbc_port *port = dbc_to_port(dbc);
416 xhci_dbc_tty_init_port(dbc, port);
431 ret = xhci_dbc_alloc_requests(dbc, BULK_IN, &port->read_pool,
436 ret = xhci_dbc_alloc_requests(dbc, BULK_OUT, &port->write_pool,
462 dev_err(dbc->dev, "can't register tty port, err %d\n", ret);
467 static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc)
469 struct dbc_port *port = dbc_to_port(dbc);
494 struct xhci_dbc *dbc;
505 dbc = xhci_alloc_dbc(dev, base, &dbc_driver);
507 if (!dbc) {
512 dbc->priv = port;
515 xhci->dbc = dbc;
525 * undo what probe did, assume dbc is stopped already.
528 void xhci_dbc_tty_remove(struct xhci_dbc *dbc)
530 struct dbc_port *port = dbc_to_port(dbc);
532 xhci_dbc_remove(dbc);
564 pr_err("Can't register dbc tty driver\n");