Lines Matching defs:cppi_ch
286 struct cppi_channel *cppi_ch;
305 cppi_ch = controller->tx + index;
311 cppi_ch = controller->rx + index;
318 if (cppi_ch->hw_ep)
320 index, transmit ? 'T' : 'R', cppi_ch);
321 cppi_ch->hw_ep = ep;
322 cppi_ch->channel.status = MUSB_DMA_STATUS_FREE;
323 cppi_ch->channel.max_len = 0x7fffffff;
326 return &cppi_ch->channel;
951 struct cppi_channel *cppi_ch;
955 cppi_ch = container_of(ch, struct cppi_channel, channel);
956 controller = cppi_ch->controller;
964 cppi_ch->transmit ? 'T' : 'R',
965 cppi_ch->index);
970 cppi_ch->transmit ? 'T' : 'R',
971 cppi_ch->index);
976 cppi_ch->transmit ? 'T' : 'R',
977 cppi_ch->index);
986 cppi_ch->buf_dma = dma_addr;
987 cppi_ch->offset = 0;
988 cppi_ch->maxpacket = maxpacket;
989 cppi_ch->buf_len = len;
990 cppi_ch->channel.actual_len = 0;
993 if (cppi_ch->transmit)
994 cppi_next_tx_segment(musb, cppi_ch);
996 cppi_next_rx_segment(musb, cppi_ch, mode);
1374 struct cppi_channel *cppi_ch;
1382 cppi_ch = container_of(channel, struct cppi_channel, channel);
1384 controller = cppi_ch->controller;
1392 regs = cppi_ch->hw_ep->regs;
1401 if (!cppi_ch->transmit && cppi_ch->head)
1402 cppi_dump_rxq(3, "/abort", cppi_ch);
1407 queue = cppi_ch->head;
1408 cppi_ch->head = NULL;
1409 cppi_ch->tail = NULL;
1415 musb_ep_select(mbase, cppi_ch->index + 1);
1417 if (cppi_ch->transmit) {
1421 cppi_dump_tx(6, cppi_ch, " (teardown)");
1427 musb_writel(tibase, DAVINCI_TXCPPI_TEAR_REG, cppi_ch->index);
1429 tx_ram = cppi_ch->state_ram;
1452 cppi_ch->head = NULL;
1454 cppi_dump_tx(5, cppi_ch, " (done teardown)");
1469 core_rxirq_disable(tibase, cppi_ch->index + 1);
1472 if (is_host_active(cppi_ch->controller->controller.musb)) {
1474 value &= ~((0x3) << (cppi_ch->index * 2));
1481 if (is_host_active(cppi_ch->controller->controller.musb)) {
1503 cppi_rx_scan(controller, cppi_ch->index);
1516 cppi_reset_rx(cppi_ch->state_ram);
1521 cppi_dump_rx(5, cppi_ch, " (done abort)");
1524 cppi_bd_free(cppi_ch, cppi_ch->last_processed);
1525 cppi_ch->last_processed = NULL;
1530 cppi_bd_free(cppi_ch, queue);
1536 cppi_ch->buf_dma = 0;
1537 cppi_ch->offset = 0;
1538 cppi_ch->buf_len = 0;
1539 cppi_ch->maxpacket = 0;