Lines Matching refs:dma_tx_chan
158 enable_dma(sport->dma_tx_chan); in sport_start()
173 disable_dma(sport->dma_tx_chan); in sport_stop()
235 set_dma_next_desc_addr(sport->dma_tx_chan, sport->curr_tx_desc); in sport_tx_dma_start()
236 set_dma_x_count(sport->dma_tx_chan, 0); in sport_tx_dma_start()
237 set_dma_x_modify(sport->dma_tx_chan, 0); in sport_tx_dma_start()
238 set_dma_config(sport->dma_tx_chan, in sport_tx_dma_start()
240 set_dma_curr_addr(sport->dma_tx_chan, sport->curr_tx_desc->start_addr); in sport_tx_dma_start()
311 desc = get_dma_next_desc_ptr(sport->dma_tx_chan); in sport_hook_tx_dummy()
319 while ((get_dma_curr_desc_ptr(sport->dma_tx_chan) - \ in sport_hook_tx_dummy()
342 while ((get_dma_curr_desc_ptr(sport->dma_tx_chan) - in sport_tx_start()
600 unsigned long curr = get_dma_curr_addr(sport->dma_tx_chan); in sport_curr_offset_tx()
655 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_check_status()
657 clear_dma_irqstat(sport->dma_tx_chan); in sport_check_status()
675 sport->dma_tx_chan, in sport_dump_stat()
676 get_dma_curr_irqstat(sport->dma_tx_chan)); in sport_dump_stat()
745 disable_dma(sport->dma_tx_chan); in err_handler()
750 enable_dma(sport->dma_tx_chan); in err_handler()
842 param->dma_tx_chan = res->start; in sport_config_pdev()
886 sport->dma_tx_chan = param.dma_tx_chan; in sport_init()
900 if (request_dma(sport->dma_tx_chan, "SPORT TX Data") == -EBUSY) { in sport_init()
901 dev_err(dev, "failed to request TX dma %d\n", sport->dma_tx_chan); in sport_init()
905 if (set_dma_callback(sport->dma_tx_chan, tx_handler, sport) != 0) { in sport_init()
906 dev_err(dev, "failed to request TX irq %d\n", sport->dma_tx_chan); in sport_init()
917 sport->dma_rx_chan, sport->dma_tx_chan, in sport_init()
968 free_dma(sport->dma_tx_chan); in sport_init()
1004 free_dma(sport->dma_tx_chan); in sport_done()
1037 set_dma_start_addr(sport->dma_tx_chan, (unsigned long)out_data); in sport_send_and_recv()
1038 set_dma_x_count(sport->dma_tx_chan, len/2); in sport_send_and_recv()
1039 set_dma_x_modify(sport->dma_tx_chan, 2); in sport_send_and_recv()
1040 set_dma_config(sport->dma_tx_chan, dma_config); in sport_send_and_recv()
1041 enable_dma(sport->dma_tx_chan); in sport_send_and_recv()
1060 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_send_and_recv()
1063 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_send_and_recv()
1086 disable_dma(sport->dma_tx_chan); in sport_send_and_recv()
1088 clear_dma_irqstat(sport->dma_tx_chan); in sport_send_and_recv()