dbc 6157 drivers/scsi/ncr53c8xx.c u32 dbc = INL (nc_dbc); dbc 6164 drivers/scsi/ncr53c8xx.c ncr_name(np), hsts, dbc, sstat1); dbc 6189 drivers/scsi/ncr53c8xx.c if (!(dbc & 0xc0000000)) dbc 6190 drivers/scsi/ncr53c8xx.c phase = (dbc >> 24) & 7; dbc 6236 drivers/scsi/ncr53c8xx.c u32 dbc; dbc 6250 drivers/scsi/ncr53c8xx.c dbc = INL (nc_dbc); dbc 6253 drivers/scsi/ncr53c8xx.c cmd = dbc >> 24; dbc 6254 drivers/scsi/ncr53c8xx.c rest = dbc & 0xffffff; dbc 2301 drivers/scsi/sym53c8xx_2/sym_hipd.c u32 dbc = INL(np, nc_dbc); dbc 2304 drivers/scsi/sym53c8xx_2/sym_hipd.c u_char cmd = dbc >> 24; dbc 2310 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_name(np), hsts, dbc, sbcl); dbc 2388 drivers/scsi/sym53c8xx_2/sym_hipd.c u32 dbc; dbc 2404 drivers/scsi/sym53c8xx_2/sym_hipd.c dbc = INL(np, nc_dbc); dbc 2407 drivers/scsi/sym53c8xx_2/sym_hipd.c cmd = dbc >> 24; dbc 2408 drivers/scsi/sym53c8xx_2/sym_hipd.c rest = dbc & 0xffffff; dbc 88 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc; dbc 95 drivers/usb/host/xhci-dbgcap.c dbc = xhci->dbc; dbc 96 drivers/usb/host/xhci-dbgcap.c if (!dbc) dbc 100 drivers/usb/host/xhci-dbgcap.c info = (struct dbc_info_context *)dbc->ctx->bytes; dbc 101 drivers/usb/host/xhci-dbgcap.c dma = dbc->string_dma; dbc 109 drivers/usb/host/xhci-dbgcap.c ep_ctx = dbc_bulkout_ctx(dbc); dbc 110 drivers/usb/host/xhci-dbgcap.c max_burst = DBC_CTRL_MAXBURST(readl(&dbc->regs->control)); dbc 111 drivers/usb/host/xhci-dbgcap.c deq = dbc_bulkout_enq(dbc); dbc 114 drivers/usb/host/xhci-dbgcap.c ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); dbc 117 drivers/usb/host/xhci-dbgcap.c ep_ctx = dbc_bulkin_ctx(dbc); dbc 118 drivers/usb/host/xhci-dbgcap.c deq = dbc_bulkin_enq(dbc); dbc 121 drivers/usb/host/xhci-dbgcap.c ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); dbc 124 drivers/usb/host/xhci-dbgcap.c xhci_write_64(xhci, dbc->ctx->dma, &dbc->regs->dccp); dbc 127 drivers/usb/host/xhci-dbgcap.c writel(dev_info, &dbc->regs->devinfo1); dbc 130 drivers/usb/host/xhci-dbgcap.c writel(dev_info, &dbc->regs->devinfo2); dbc 134 drivers/usb/host/xhci-dbgcap.c __releases(&dbc->lock) dbc 135 drivers/usb/host/xhci-dbgcap.c __acquires(&dbc->lock) dbc 138 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = dep->dbc; dbc 139 drivers/usb/host/xhci-dbgcap.c struct xhci_hcd *xhci = dbc->xhci; dbc 140 drivers/usb/host/xhci-dbgcap.c struct device *dev = xhci_to_hcd(dbc->xhci)->self.sysdev; dbc 157 drivers/usb/host/xhci-dbgcap.c spin_unlock(&dbc->lock); dbc 159 drivers/usb/host/xhci-dbgcap.c spin_lock(&dbc->lock); dbc 183 drivers/usb/host/xhci-dbgcap.c static void xhci_dbc_flush_requests(struct xhci_dbc *dbc) dbc 185 drivers/usb/host/xhci-dbgcap.c xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_OUT]); dbc 186 drivers/usb/host/xhci-dbgcap.c xhci_dbc_flush_endpoint_requests(&dbc->eps[BULK_IN]); dbc 245 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = dep->dbc; dbc 283 drivers/usb/host/xhci-dbgcap.c writel(DBC_DOOR_BELL_TARGET(dep->direction), &dbc->regs->doorbell); dbc 293 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = dep->dbc; dbc 294 drivers/usb/host/xhci-dbgcap.c struct xhci_hcd *xhci = dbc->xhci; dbc 332 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = dep->dbc; dbc 335 drivers/usb/host/xhci-dbgcap.c spin_lock_irqsave(&dbc->lock, flags); dbc 336 drivers/usb/host/xhci-dbgcap.c if (dbc->state == DS_CONFIGURED) dbc 338 drivers/usb/host/xhci-dbgcap.c spin_unlock_irqrestore(&dbc->lock, flags); dbc 340 drivers/usb/host/xhci-dbgcap.c mod_delayed_work(system_wq, &dbc->event_work, 0); dbc 350 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 352 drivers/usb/host/xhci-dbgcap.c dep = &dbc->eps[direction]; dbc 353 drivers/usb/host/xhci-dbgcap.c dep->dbc = dbc; dbc 355 drivers/usb/host/xhci-dbgcap.c dep->ring = direction ? dbc->ring_in : dbc->ring_out; dbc 368 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 370 drivers/usb/host/xhci-dbgcap.c memset(dbc->eps, 0, sizeof(struct dbc_ep) * ARRAY_SIZE(dbc->eps)); dbc 378 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 381 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt = xhci_ring_alloc(xhci, 1, 1, TYPE_EVENT, 0, flags); dbc 382 drivers/usb/host/xhci-dbgcap.c if (!dbc->ring_evt) dbc 385 drivers/usb/host/xhci-dbgcap.c dbc->ring_in = xhci_ring_alloc(xhci, 1, 1, TYPE_BULK, 0, flags); dbc 386 drivers/usb/host/xhci-dbgcap.c if (!dbc->ring_in) dbc 389 drivers/usb/host/xhci-dbgcap.c dbc->ring_out = xhci_ring_alloc(xhci, 1, 1, TYPE_BULK, 0, flags); dbc 390 drivers/usb/host/xhci-dbgcap.c if (!dbc->ring_out) dbc 394 drivers/usb/host/xhci-dbgcap.c ret = xhci_alloc_erst(xhci, dbc->ring_evt, &dbc->erst, flags); dbc 399 drivers/usb/host/xhci-dbgcap.c dbc->ctx = xhci_alloc_container_ctx(xhci, XHCI_CTX_TYPE_DEVICE, flags); dbc 400 drivers/usb/host/xhci-dbgcap.c if (!dbc->ctx) dbc 404 drivers/usb/host/xhci-dbgcap.c dbc->string_size = sizeof(struct dbc_str_descs); dbc 405 drivers/usb/host/xhci-dbgcap.c dbc->string = dbc_dma_alloc_coherent(xhci, dbc 406 drivers/usb/host/xhci-dbgcap.c dbc->string_size, dbc 407 drivers/usb/host/xhci-dbgcap.c &dbc->string_dma, dbc 409 drivers/usb/host/xhci-dbgcap.c if (!dbc->string) dbc 413 drivers/usb/host/xhci-dbgcap.c writel(dbc->erst.erst_size, &dbc->regs->ersts); dbc 414 drivers/usb/host/xhci-dbgcap.c xhci_write_64(xhci, dbc->erst.erst_dma_addr, &dbc->regs->erstba); dbc 415 drivers/usb/host/xhci-dbgcap.c deq = xhci_trb_virt_to_dma(dbc->ring_evt->deq_seg, dbc 416 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt->dequeue); dbc 417 drivers/usb/host/xhci-dbgcap.c xhci_write_64(xhci, deq, &dbc->regs->erdp); dbc 420 drivers/usb/host/xhci-dbgcap.c string_length = xhci_dbc_populate_strings(dbc->string); dbc 424 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_INITIALIZED; dbc 429 drivers/usb/host/xhci-dbgcap.c xhci_free_container_ctx(xhci, dbc->ctx); dbc 430 drivers/usb/host/xhci-dbgcap.c dbc->ctx = NULL; dbc 432 drivers/usb/host/xhci-dbgcap.c xhci_free_erst(xhci, &dbc->erst); dbc 434 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_out); dbc 435 drivers/usb/host/xhci-dbgcap.c dbc->ring_out = NULL; dbc 437 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_in); dbc 438 drivers/usb/host/xhci-dbgcap.c dbc->ring_in = NULL; dbc 440 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_evt); dbc 441 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt = NULL; dbc 448 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 450 drivers/usb/host/xhci-dbgcap.c if (!dbc) dbc 455 drivers/usb/host/xhci-dbgcap.c if (dbc->string) { dbc 457 drivers/usb/host/xhci-dbgcap.c dbc->string_size, dbc 458 drivers/usb/host/xhci-dbgcap.c dbc->string, dbc->string_dma); dbc 459 drivers/usb/host/xhci-dbgcap.c dbc->string = NULL; dbc 462 drivers/usb/host/xhci-dbgcap.c xhci_free_container_ctx(xhci, dbc->ctx); dbc 463 drivers/usb/host/xhci-dbgcap.c dbc->ctx = NULL; dbc 465 drivers/usb/host/xhci-dbgcap.c xhci_free_erst(xhci, &dbc->erst); dbc 466 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_out); dbc 467 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_in); dbc 468 drivers/usb/host/xhci-dbgcap.c xhci_ring_free(xhci, dbc->ring_evt); dbc 469 drivers/usb/host/xhci-dbgcap.c dbc->ring_in = NULL; dbc 470 drivers/usb/host/xhci-dbgcap.c dbc->ring_out = NULL; dbc 471 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt = NULL; dbc 478 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 480 drivers/usb/host/xhci-dbgcap.c if (dbc->state != DS_DISABLED) dbc 483 drivers/usb/host/xhci-dbgcap.c writel(0, &dbc->regs->control); dbc 484 drivers/usb/host/xhci-dbgcap.c ret = xhci_handshake(&dbc->regs->control, dbc 494 drivers/usb/host/xhci-dbgcap.c ctrl = readl(&dbc->regs->control); dbc 496 drivers/usb/host/xhci-dbgcap.c &dbc->regs->control); dbc 497 drivers/usb/host/xhci-dbgcap.c ret = xhci_handshake(&dbc->regs->control, dbc 503 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_ENABLED; dbc 510 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 512 drivers/usb/host/xhci-dbgcap.c if (dbc->state == DS_DISABLED) dbc 515 drivers/usb/host/xhci-dbgcap.c writel(0, &dbc->regs->control); dbc 516 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_DISABLED; dbc 525 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 527 drivers/usb/host/xhci-dbgcap.c WARN_ON(!dbc); dbc 531 drivers/usb/host/xhci-dbgcap.c spin_lock_irqsave(&dbc->lock, flags); dbc 533 drivers/usb/host/xhci-dbgcap.c spin_unlock_irqrestore(&dbc->lock, flags); dbc 540 drivers/usb/host/xhci-dbgcap.c return mod_delayed_work(system_wq, &dbc->event_work, 1); dbc 547 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 548 drivers/usb/host/xhci-dbgcap.c struct dbc_port *port = &dbc->port; dbc 550 drivers/usb/host/xhci-dbgcap.c WARN_ON(!dbc); dbc 552 drivers/usb/host/xhci-dbgcap.c cancel_delayed_work_sync(&dbc->event_work); dbc 557 drivers/usb/host/xhci-dbgcap.c spin_lock_irqsave(&dbc->lock, flags); dbc 559 drivers/usb/host/xhci-dbgcap.c spin_unlock_irqrestore(&dbc->lock, flags); dbc 571 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 573 drivers/usb/host/xhci-dbgcap.c portsc = readl(&dbc->regs->portsc); dbc 587 drivers/usb/host/xhci-dbgcap.c writel(portsc & ~DBC_PORTSC_RESET_CHANGE, &dbc->regs->portsc); dbc 647 drivers/usb/host/xhci-dbgcap.c static enum evtreturn xhci_dbc_do_handle_events(struct xhci_dbc *dbc) dbc 653 drivers/usb/host/xhci-dbgcap.c struct xhci_hcd *xhci = dbc->xhci; dbc 657 drivers/usb/host/xhci-dbgcap.c switch (dbc->state) { dbc 663 drivers/usb/host/xhci-dbgcap.c portsc = readl(&dbc->regs->portsc); dbc 665 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_CONNECTED; dbc 671 drivers/usb/host/xhci-dbgcap.c ctrl = readl(&dbc->regs->control); dbc 673 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_CONFIGURED; dbc 675 drivers/usb/host/xhci-dbgcap.c portsc = readl(&dbc->regs->portsc); dbc 676 drivers/usb/host/xhci-dbgcap.c writel(portsc, &dbc->regs->portsc); dbc 683 drivers/usb/host/xhci-dbgcap.c portsc = readl(&dbc->regs->portsc); dbc 687 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_ENABLED; dbc 688 drivers/usb/host/xhci-dbgcap.c xhci_dbc_flush_requests(dbc); dbc 696 drivers/usb/host/xhci-dbgcap.c writel(portsc, &dbc->regs->portsc); dbc 697 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_ENABLED; dbc 698 drivers/usb/host/xhci-dbgcap.c xhci_dbc_flush_requests(dbc); dbc 704 drivers/usb/host/xhci-dbgcap.c ctrl = readl(&dbc->regs->control); dbc 708 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_STALLED; dbc 725 drivers/usb/host/xhci-dbgcap.c writel(ctrl, &dbc->regs->control); dbc 726 drivers/usb/host/xhci-dbgcap.c ctrl = readl(&dbc->regs->control); dbc 731 drivers/usb/host/xhci-dbgcap.c ctrl = readl(&dbc->regs->control); dbc 735 drivers/usb/host/xhci-dbgcap.c dbc->state = DS_CONFIGURED; dbc 741 drivers/usb/host/xhci-dbgcap.c xhci_err(xhci, "Unknown DbC state %d\n", dbc->state); dbc 746 drivers/usb/host/xhci-dbgcap.c evt = dbc->ring_evt->dequeue; dbc 748 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt->cycle_state) { dbc 755 drivers/usb/host/xhci-dbgcap.c trace_xhci_dbc_handle_event(dbc->ring_evt, &evt->generic); dbc 768 drivers/usb/host/xhci-dbgcap.c inc_deq(xhci, dbc->ring_evt); dbc 769 drivers/usb/host/xhci-dbgcap.c evt = dbc->ring_evt->dequeue; dbc 775 drivers/usb/host/xhci-dbgcap.c deq = xhci_trb_virt_to_dma(dbc->ring_evt->deq_seg, dbc 776 drivers/usb/host/xhci-dbgcap.c dbc->ring_evt->dequeue); dbc 777 drivers/usb/host/xhci-dbgcap.c xhci_write_64(xhci, deq, &dbc->regs->erdp); dbc 787 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc; dbc 791 drivers/usb/host/xhci-dbgcap.c dbc = container_of(to_delayed_work(work), struct xhci_dbc, event_work); dbc 792 drivers/usb/host/xhci-dbgcap.c xhci = dbc->xhci; dbc 794 drivers/usb/host/xhci-dbgcap.c spin_lock_irqsave(&dbc->lock, flags); dbc 795 drivers/usb/host/xhci-dbgcap.c evtr = xhci_dbc_do_handle_events(dbc); dbc 796 drivers/usb/host/xhci-dbgcap.c spin_unlock_irqrestore(&dbc->lock, flags); dbc 818 drivers/usb/host/xhci-dbgcap.c mod_delayed_work(system_wq, &dbc->event_work, 1); dbc 826 drivers/usb/host/xhci-dbgcap.c kfree(xhci->dbc); dbc 827 drivers/usb/host/xhci-dbgcap.c xhci->dbc = NULL; dbc 834 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc; dbc 844 drivers/usb/host/xhci-dbgcap.c dbc = kzalloc(sizeof(*dbc), GFP_KERNEL); dbc 845 drivers/usb/host/xhci-dbgcap.c if (!dbc) dbc 848 drivers/usb/host/xhci-dbgcap.c dbc->regs = base + dbc_cap_offs; dbc 851 drivers/usb/host/xhci-dbgcap.c reg = readl(&dbc->regs->control); dbc 853 drivers/usb/host/xhci-dbgcap.c kfree(dbc); dbc 858 drivers/usb/host/xhci-dbgcap.c if (xhci->dbc) { dbc 860 drivers/usb/host/xhci-dbgcap.c kfree(dbc); dbc 863 drivers/usb/host/xhci-dbgcap.c xhci->dbc = dbc; dbc 866 drivers/usb/host/xhci-dbgcap.c dbc->xhci = xhci; dbc 867 drivers/usb/host/xhci-dbgcap.c INIT_DELAYED_WORK(&dbc->event_work, xhci_dbc_handle_events); dbc 868 drivers/usb/host/xhci-dbgcap.c spin_lock_init(&dbc->lock); dbc 878 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc; dbc 882 drivers/usb/host/xhci-dbgcap.c dbc = xhci->dbc; dbc 884 drivers/usb/host/xhci-dbgcap.c switch (dbc->state) { dbc 928 drivers/usb/host/xhci-dbgcap.c static DEVICE_ATTR_RW(dbc); dbc 961 drivers/usb/host/xhci-dbgcap.c if (!xhci->dbc) dbc 973 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 975 drivers/usb/host/xhci-dbgcap.c if (!dbc) dbc 978 drivers/usb/host/xhci-dbgcap.c if (dbc->state == DS_CONFIGURED) dbc 979 drivers/usb/host/xhci-dbgcap.c dbc->resume_required = 1; dbc 989 drivers/usb/host/xhci-dbgcap.c struct xhci_dbc *dbc = xhci->dbc; dbc 991 drivers/usb/host/xhci-dbgcap.c if (!dbc) dbc 994 drivers/usb/host/xhci-dbgcap.c if (dbc->resume_required) { dbc 995 drivers/usb/host/xhci-dbgcap.c dbc->resume_required = 0; dbc 105 drivers/usb/host/xhci-dbgcap.h struct xhci_dbc *dbc; dbc 183 drivers/usb/host/xhci-dbgcap.h struct xhci_dbc *dbc = xhci->dbc; dbc 185 drivers/usb/host/xhci-dbgcap.h return &dbc->eps[BULK_IN]; dbc 190 drivers/usb/host/xhci-dbgcap.h struct xhci_dbc *dbc = xhci->dbc; dbc 192 drivers/usb/host/xhci-dbgcap.h return &dbc->eps[BULK_OUT]; dbc 97 drivers/usb/host/xhci-dbgtty.c struct xhci_dbc *dbc = xhci->dbc; dbc 98 drivers/usb/host/xhci-dbgtty.c struct dbc_port *port = &dbc->port; dbc 109 drivers/usb/host/xhci-dbgtty.c struct xhci_dbc *dbc = xhci->dbc; dbc 110 drivers/usb/host/xhci-dbgtty.c struct dbc_port *port = &dbc->port; dbc 287 drivers/usb/host/xhci-dbgtty.c struct xhci_dbc *dbc = xhci->dbc; dbc 307 drivers/usb/host/xhci-dbgtty.c dbc_tty_driver->driver_state = &dbc->port; dbc 447 drivers/usb/host/xhci-dbgtty.c struct xhci_dbc *dbc = xhci->dbc; dbc 448 drivers/usb/host/xhci-dbgtty.c struct dbc_port *port = &dbc->port; dbc 494 drivers/usb/host/xhci-dbgtty.c struct xhci_dbc *dbc = xhci->dbc; dbc 495 drivers/usb/host/xhci-dbgtty.c struct dbc_port *port = &dbc->port; dbc 1903 drivers/usb/host/xhci.h void *dbc; dbc 525 sound/firewire/amdtp-stream.c unsigned int dbc; dbc 577 sound/firewire/amdtp-stream.c dbc = cip_header[0] & CIP_DBC_MASK; dbc 580 sound/firewire/amdtp-stream.c dbc = *data_block_counter; dbc 582 sound/firewire/amdtp-stream.c if ((dbc == 0x00 && (s->flags & CIP_SKIP_DBC_ZERO_CHECK)) || dbc 586 sound/firewire/amdtp-stream.c lost = dbc != *data_block_counter; dbc 595 sound/firewire/amdtp-stream.c lost = dbc != ((*data_block_counter + dbc_interval) & 0xff); dbc 601 sound/firewire/amdtp-stream.c *data_block_counter, dbc); dbc 605 sound/firewire/amdtp-stream.c *data_block_counter = dbc; dbc 686 sound/firewire/amdtp-stream.c unsigned int dbc = s->data_block_counter; dbc 701 sound/firewire/amdtp-stream.c &data_blocks, &dbc, &syt, i); dbc 708 sound/firewire/amdtp-stream.c desc->data_block_counter = dbc; dbc 712 sound/firewire/amdtp-stream.c dbc = (dbc + desc->data_blocks) & 0xff; dbc 718 sound/firewire/amdtp-stream.c s->data_block_counter = dbc; dbc 728 sound/firewire/amdtp-stream.c unsigned int dbc = s->data_block_counter; dbc 740 sound/firewire/amdtp-stream.c dbc = (dbc + desc->data_blocks) & 0xff; dbc 742 sound/firewire/amdtp-stream.c desc->data_block_counter = dbc; dbc 745 sound/firewire/amdtp-stream.c dbc = (dbc + desc->data_blocks) & 0xff; dbc 752 sound/firewire/amdtp-stream.c s->data_block_counter = dbc;