Lines Matching refs:cx
142 struct cx18 *cx = s->cx; in cx18_queue_get_mdl() local
279 struct cx18 *cx = s->cx; in cx18_load_queues() local
307 cx18_writel(cx, buf->dma_handle, in cx18_load_queues()
308 &cx->scb->cpu_mdl[mdl_id + i].paddr); in cx18_load_queues()
309 cx18_writel(cx, s->buf_size, in cx18_load_queues()
310 &cx->scb->cpu_mdl[mdl_id + i].length); in cx18_load_queues()
323 cx18_writel(cx, partial_buf_size, in cx18_load_queues()
324 &cx->scb->cpu_mdl[mdl_id + i - 1].length); in cx18_load_queues()
339 struct pci_dev *pci_dev = s->cx->pci_dev; in _cx18_mdl_sync_for_device()
349 struct cx18 *cx = s->cx; in cx18_stream_alloc() local
361 if (((char __iomem *)&cx->scb->cpu_mdl[cx->free_mdl_idx + s->buffers] - in cx18_stream_alloc()
362 (char __iomem *)cx->scb) > SCB_RESERVED_SIZE) { in cx18_stream_alloc()
363 unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE - in cx18_stream_alloc()
364 ((char __iomem *)cx->scb->cpu_mdl)); in cx18_stream_alloc()
372 s->mdl_base_idx = cx->free_mdl_idx; in cx18_stream_alloc()
404 buf->dma_handle = pci_map_single(s->cx->pci_dev, in cx18_stream_alloc()
410 cx->free_mdl_idx += s->buffers; in cx18_stream_alloc()
422 struct cx18 *cx = s->cx; in cx18_stream_free() local
438 pci_unmap_single(s->cx->pci_dev, buf->dma_handle, in cx18_stream_free()