Lines Matching refs:cx
93 struct cx18 *cx = s->cx; in cx18_queue_get_buf() local
170 struct cx18 *cx = s->cx; in cx18_stream_alloc() local
180 if (((char __iomem *)&cx->scb->cpu_mdl[cx->mdl_offset + s->buffers] - in cx18_stream_alloc()
181 (char __iomem *)cx->scb) > SCB_RESERVED_SIZE) { in cx18_stream_alloc()
182 unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE - in cx18_stream_alloc()
183 ((char __iomem *)cx->scb->cpu_mdl)); in cx18_stream_alloc()
191 s->mdl_offset = cx->mdl_offset; in cx18_stream_alloc()
205 buf->id = cx->buffer_id++; in cx18_stream_alloc()
207 buf->dma_handle = pci_map_single(s->cx->dev, in cx18_stream_alloc()
213 cx->mdl_offset += s->buffers; in cx18_stream_alloc()
230 pci_unmap_single(s->cx->dev, buf->dma_handle, in cx18_stream_free()