Lines Matching refs:cppi_ch

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