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);
381 xhci_dbc_tty_init_port(struct xhci_dbc *dbc, struct dbc_port *port)
401 static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc)
405 struct dbc_port *port = dbc_to_port(dbc);
410 xhci_dbc_tty_init_port(dbc, port);
416 ret = xhci_dbc_alloc_requests(dbc, BULK_IN, &port->read_pool,
421 ret = xhci_dbc_alloc_requests(dbc, BULK_OUT, &port->write_pool,
445 dev_err(dbc->dev, "can't register tty port, err %d\n", ret);
450 static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc)
452 struct dbc_port *port = dbc_to_port(dbc);
473 struct xhci_dbc *dbc = xhci->dbc;
488 dbc->driver = &dbc_driver;
489 dbc->priv = port;
502 * undo what probe did, assume dbc is stopped already.
505 void xhci_dbc_tty_remove(struct xhci_dbc *dbc)
507 struct dbc_port *port = dbc_to_port(dbc);
509 dbc->driver = NULL;
510 dbc->priv = NULL;
541 pr_err("Can't register dbc tty driver\n");