Lines Matching refs:dma

15 #include <linux/dma-mapping.h>
22 * Allocates a generic ring segment from the ring pool, sets the dma address,
34 dma_addr_t dma;
42 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma);
52 dma_pool_free(xhci->segment_pool, seg->trbs, dma);
62 seg->dma = dma;
71 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma);
110 cpu_to_le64(next->dma);
185 * if we allow the PCI dma mask to be bigger than 32-bits. So don't do that.
195 key = (unsigned long)(seg->dma >> TRB_SEGMENT_SHIFT);
214 key = (unsigned long)(seg->dma >> TRB_SEGMENT_SHIFT);
487 ctx->bytes = dma_pool_zalloc(xhci->device_pool, flags, &ctx->dma);
500 dma_pool_free(xhci->device_pool, ctx->bytes, ctx->dma);
541 struct xhci_stream_ctx *stream_ctx, dma_addr_t dma)
548 stream_ctx, dma);
551 stream_ctx, dma);
554 stream_ctx, dma);
568 unsigned int num_stream_ctxs, dma_addr_t *dma,
576 dma, mem_flags);
579 mem_flags, dma);
582 mem_flags, dma);
689 addr = cur_ring->first_seg->dma |
1013 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id,
1014 (unsigned long long)dev->out_ctx->dma);
1021 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id,
1022 (unsigned long long)dev->in_ctx->dma);
1041 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma);
1227 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma |
1533 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma |
1702 dma_addr_t dma;
1703 void *buf = dma_alloc_coherent(dev, xhci->page_size, &dma,
1708 xhci->scratchpad->sp_array[i] = dma;
1840 entry->seg_addr = cpu_to_le64(seg->dma);
1918 xhci->dcbaa, xhci->dcbaa->dma);
2008 { xhci->event_ring->first_seg->dma - 16, NULL },
2010 { xhci->event_ring->first_seg->dma - 1, NULL },
2012 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg },
2014 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16,
2017 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL },
2019 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL },
2034 .input_dma = xhci->cmd_ring->first_seg->dma,
2041 .input_dma = xhci->cmd_ring->first_seg->dma,
2048 .input_dma = xhci->cmd_ring->first_seg->dma,
2055 .input_dma = xhci->event_ring->first_seg->dma + 4*16,
2062 .input_dma = xhci->event_ring->first_seg->dma + 2*16,
2069 .input_dma = xhci->event_ring->first_seg->dma + 2*16,
2076 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16,
2083 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16,
2429 dma_addr_t dma;
2478 xhci->dcbaa = dma_alloc_coherent(dev, sizeof(*xhci->dcbaa), &dma,
2482 xhci->dcbaa->dma = dma;
2485 (unsigned long long)xhci->dcbaa->dma, xhci->dcbaa);
2486 xhci_write_64(xhci, dma, &xhci->op_regs->dcbaa_ptr);
2492 * and our use of dma addresses in the trb_address_map radix tree needs
2531 (unsigned long long)xhci->cmd_ring->first_seg->dma);
2536 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) |