Lines Matching refs:dma_rx_chan

157 	enable_dma(sport->dma_rx_chan);  in sport_start()
172 disable_dma(sport->dma_rx_chan); in sport_stop()
190 desc = get_dma_next_desc_ptr(sport->dma_rx_chan); in sport_hook_rx_dummy()
198 while ((get_dma_curr_desc_ptr(sport->dma_rx_chan) - in sport_hook_rx_dummy()
216 set_dma_next_desc_addr(sport->dma_rx_chan, sport->curr_rx_desc); in sport_rx_dma_start()
217 set_dma_x_count(sport->dma_rx_chan, 0); in sport_rx_dma_start()
218 set_dma_x_modify(sport->dma_rx_chan, 0); in sport_rx_dma_start()
219 set_dma_config(sport->dma_rx_chan, (DMAFLOW_LARGE | NDSIZE_9 | \ in sport_rx_dma_start()
221 set_dma_curr_addr(sport->dma_rx_chan, sport->curr_rx_desc->start_addr); in sport_rx_dma_start()
258 while ((get_dma_curr_desc_ptr(sport->dma_rx_chan) - in sport_rx_start()
592 unsigned long curr = get_dma_curr_addr(sport->dma_rx_chan); in sport_curr_offset_rx()
646 status = get_dma_curr_irqstat(sport->dma_rx_chan); in sport_check_status()
648 clear_dma_irqstat(sport->dma_rx_chan); in sport_check_status()
673 sport->dma_rx_chan, in sport_dump_stat()
674 get_dma_curr_irqstat(sport->dma_rx_chan), in sport_dump_stat()
752 disable_dma(sport->dma_rx_chan); in err_handler()
757 enable_dma(sport->dma_rx_chan); in err_handler()
835 param->dma_rx_chan = res->start; in sport_config_pdev()
885 sport->dma_rx_chan = param.dma_rx_chan; in sport_init()
891 if (request_dma(sport->dma_rx_chan, "SPORT RX Data") == -EBUSY) { in sport_init()
892 dev_err(dev, "failed to request RX dma %d\n", sport->dma_rx_chan); in sport_init()
895 if (set_dma_callback(sport->dma_rx_chan, rx_handler, sport) != 0) { in sport_init()
896 dev_err(dev, "failed to request RX irq %d\n", sport->dma_rx_chan); in sport_init()
917 sport->dma_rx_chan, sport->dma_tx_chan, in sport_init()
970 free_dma(sport->dma_rx_chan); in sport_init()
1003 free_dma(sport->dma_rx_chan); in sport_done()
1048 set_dma_start_addr(sport->dma_rx_chan, (unsigned long)in_data); in sport_send_and_recv()
1049 set_dma_x_count(sport->dma_rx_chan, len/2); in sport_send_and_recv()
1050 set_dma_x_modify(sport->dma_rx_chan, 2); in sport_send_and_recv()
1051 set_dma_config(sport->dma_rx_chan, dma_config); in sport_send_and_recv()
1052 enable_dma(sport->dma_rx_chan); in sport_send_and_recv()
1090 disable_dma(sport->dma_rx_chan); in sport_send_and_recv()
1091 clear_dma_irqstat(sport->dma_rx_chan); in sport_send_and_recv()