Searched refs:cppi_ch (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/musb/
H A Dcppi_dma.c284 struct cppi_channel *cppi_ch; cppi_channel_allocate() local
303 cppi_ch = controller->tx + index; cppi_channel_allocate()
309 cppi_ch = controller->rx + index; cppi_channel_allocate()
316 if (cppi_ch->hw_ep) cppi_channel_allocate()
318 index, transmit ? 'T' : 'R', cppi_ch); cppi_channel_allocate()
319 cppi_ch->hw_ep = ep; cppi_channel_allocate()
320 cppi_ch->channel.status = MUSB_DMA_STATUS_FREE; cppi_channel_allocate()
321 cppi_ch->channel.max_len = 0x7fffffff; cppi_channel_allocate()
324 return &cppi_ch->channel; cppi_channel_allocate()
952 struct cppi_channel *cppi_ch; cppi_channel_program() local
956 cppi_ch = container_of(ch, struct cppi_channel, channel); cppi_channel_program()
957 controller = cppi_ch->controller; cppi_channel_program()
965 cppi_ch->transmit ? 'T' : 'R', cppi_channel_program()
966 cppi_ch->index); cppi_channel_program()
971 cppi_ch->transmit ? 'T' : 'R', cppi_channel_program()
972 cppi_ch->index); cppi_channel_program()
977 cppi_ch->transmit ? 'T' : 'R', cppi_channel_program()
978 cppi_ch->index); cppi_channel_program()
987 cppi_ch->buf_dma = dma_addr; cppi_channel_program()
988 cppi_ch->offset = 0; cppi_channel_program()
989 cppi_ch->maxpacket = maxpacket; cppi_channel_program()
990 cppi_ch->buf_len = len; cppi_channel_program()
991 cppi_ch->channel.actual_len = 0; cppi_channel_program()
994 if (cppi_ch->transmit) cppi_channel_program()
995 cppi_next_tx_segment(musb, cppi_ch); cppi_channel_program()
997 cppi_next_rx_segment(musb, cppi_ch, mode); cppi_channel_program()
1372 struct cppi_channel *cppi_ch; cppi_channel_abort() local
1380 cppi_ch = container_of(channel, struct cppi_channel, channel); cppi_channel_abort()
1382 controller = cppi_ch->controller; cppi_channel_abort()
1390 regs = cppi_ch->hw_ep->regs; cppi_channel_abort()
1399 if (!cppi_ch->transmit && cppi_ch->head) cppi_channel_abort()
1400 cppi_dump_rxq(3, "/abort", cppi_ch); cppi_channel_abort()
1405 queue = cppi_ch->head; cppi_channel_abort()
1406 cppi_ch->head = NULL; cppi_channel_abort()
1407 cppi_ch->tail = NULL; cppi_channel_abort()
1413 musb_ep_select(mbase, cppi_ch->index + 1); cppi_channel_abort()
1415 if (cppi_ch->transmit) { cppi_channel_abort()
1419 cppi_dump_tx(6, cppi_ch, " (teardown)"); cppi_channel_abort()
1425 musb_writel(tibase, DAVINCI_TXCPPI_TEAR_REG, cppi_ch->index); cppi_channel_abort()
1427 tx_ram = cppi_ch->state_ram; cppi_channel_abort()
1450 cppi_ch->head = NULL; cppi_channel_abort()
1452 cppi_dump_tx(5, cppi_ch, " (done teardown)"); cppi_channel_abort()
1467 core_rxirq_disable(tibase, cppi_ch->index + 1); cppi_channel_abort()
1470 if (is_host_active(cppi_ch->controller->musb)) { cppi_channel_abort()
1472 value &= ~((0x3) << (cppi_ch->index * 2)); cppi_channel_abort()
1479 if (is_host_active(cppi_ch->controller->musb)) { cppi_channel_abort()
1501 cppi_rx_scan(controller, cppi_ch->index); cppi_channel_abort()
1514 cppi_reset_rx(cppi_ch->state_ram); cppi_channel_abort()
1519 cppi_dump_rx(5, cppi_ch, " (done abort)"); cppi_channel_abort()
1522 cppi_bd_free(cppi_ch, cppi_ch->last_processed); cppi_channel_abort()
1523 cppi_ch->last_processed = NULL; cppi_channel_abort()
1528 cppi_bd_free(cppi_ch, queue); cppi_channel_abort()
1534 cppi_ch->buf_dma = 0; cppi_channel_abort()
1535 cppi_ch->offset = 0; cppi_channel_abort()
1536 cppi_ch->buf_len = 0; cppi_channel_abort()
1537 cppi_ch->maxpacket = 0; cppi_channel_abort()

Completed in 37 milliseconds