Lines Matching defs:pdc

1452 	struct atmel_dma_buffer *pdc = &atmel_port->pdc_tx;
1455 pdc->dma_addr,
1456 pdc->dma_size,
1467 struct atmel_dma_buffer *pdc = &atmel_port->pdc_tx;
1474 xmit->tail += pdc->ofs;
1477 port->icount.tx += pdc->ofs;
1478 pdc->ofs = 0;
1487 pdc->dma_addr,
1488 pdc->dma_size,
1492 pdc->ofs = count;
1495 pdc->dma_addr + xmit->tail);
1516 struct atmel_dma_buffer *pdc = &atmel_port->pdc_tx;
1519 pdc->buf = xmit->buf;
1520 pdc->dma_addr = dma_map_single(port->dev,
1521 pdc->buf,
1524 pdc->dma_size = UART_XMIT_SIZE;
1525 pdc->ofs = 0;
1604 struct atmel_dma_buffer *pdc = &atmel_port->pdc_rx[i];
1607 pdc->dma_addr,
1608 pdc->dma_size,
1610 kfree(pdc->buf);
1618 struct atmel_dma_buffer *pdc;
1628 pdc = &atmel_port->pdc_rx[rx_idx];
1629 head = atmel_uart_readl(port, ATMEL_PDC_RPR) - pdc->dma_addr;
1630 tail = pdc->ofs;
1642 head = min(head, pdc->dma_size);
1645 dma_sync_single_for_cpu(port->dev, pdc->dma_addr,
1646 pdc->dma_size, DMA_FROM_DEVICE);
1656 tty_insert_flip_string(tport, pdc->buf + pdc->ofs,
1659 dma_sync_single_for_device(port->dev, pdc->dma_addr,
1660 pdc->dma_size, DMA_FROM_DEVICE);
1663 pdc->ofs = head;
1670 if (head >= pdc->dma_size) {
1671 pdc->ofs = 0;
1672 atmel_uart_writel(port, ATMEL_PDC_RNPR, pdc->dma_addr);
1673 atmel_uart_writel(port, ATMEL_PDC_RNCR, pdc->dma_size);
1678 } while (head >= pdc->dma_size);
1698 struct atmel_dma_buffer *pdc = &atmel_port->pdc_rx[i];
1700 pdc->buf = kmalloc(PDC_BUFFER_SIZE, GFP_KERNEL);
1701 if (pdc->buf == NULL) {
1712 pdc->dma_addr = dma_map_single(port->dev,
1713 pdc->buf,
1716 pdc->dma_size = PDC_BUFFER_SIZE;
1717 pdc->ofs = 0;