Lines Matching refs:dma
16 #include <linux/dma-mapping.h>
23 * Allocates a generic ring segment from the ring pool, sets the dma address,
35 dma_addr_t dma;
43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma);
53 dma_pool_free(xhci->segment_pool, seg->trbs, dma);
63 seg->dma = dma;
72 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma);
111 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);
478 ctx->bytes = dma_pool_zalloc(xhci->device_pool, flags, &ctx->dma);
491 dma_pool_free(xhci->device_pool, ctx->bytes, ctx->dma);
532 struct xhci_stream_ctx *stream_ctx, dma_addr_t dma)
538 dma_free_coherent(dev, size, stream_ctx, dma);
540 dma_pool_free(xhci->medium_streams_pool, stream_ctx, dma);
542 dma_pool_free(xhci->small_streams_pool, stream_ctx, dma);
556 unsigned int num_stream_ctxs, dma_addr_t *dma,
563 return dma_alloc_coherent(dev, size, dma, mem_flags);
565 return dma_pool_zalloc(xhci->medium_streams_pool, mem_flags, dma);
567 return dma_pool_zalloc(xhci->small_streams_pool, mem_flags, dma);
654 addr = cur_ring->first_seg->dma |
969 xhci_dbg(xhci, "Slot %d output ctx = 0x%pad (dma)\n", slot_id, &dev->out_ctx->dma);
976 xhci_dbg(xhci, "Slot %d input ctx = 0x%pad (dma)\n", slot_id, &dev->in_ctx->dma);
995 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma);
1177 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma |
1484 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma |
1653 dma_addr_t dma;
1654 void *buf = dma_alloc_coherent(dev, xhci->page_size, &dma,
1659 xhci->scratchpad->sp_array[i] = dma;
1790 entry->seg_addr = cpu_to_le64(seg->dma);
1890 xhci->dcbaa, xhci->dcbaa->dma);
2300 dma_addr_t dma;
2345 xhci->dcbaa = dma_alloc_coherent(dev, sizeof(*xhci->dcbaa), &dma,
2349 xhci->dcbaa->dma = dma;
2352 &xhci->dcbaa->dma, xhci->dcbaa);
2353 xhci_write_64(xhci, dma, &xhci->op_regs->dcbaa_ptr);
2359 * and our use of dma addresses in the trb_address_map radix tree needs
2398 &xhci->cmd_ring->first_seg->dma);
2403 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) |