Lines Matching full:rx_ctl
864 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_stop_dma() local
870 rx_ctl->adesc = NULL; in ks8842_stop_dma()
871 if (rx_ctl->chan) in ks8842_stop_dma()
872 dmaengine_terminate_all(rx_ctl->chan); in ks8842_stop_dma()
874 if (sg_dma_address(&rx_ctl->sg)) in ks8842_stop_dma()
875 dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg), in ks8842_stop_dma()
877 sg_dma_address(&rx_ctl->sg) = 0; in ks8842_stop_dma()
879 dev_kfree_skb(rx_ctl->skb); in ks8842_stop_dma()
880 rx_ctl->skb = NULL; in ks8842_stop_dma()
886 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_dealloc_dma_bufs() local
894 if (rx_ctl->chan) in ks8842_dealloc_dma_bufs()
895 dma_release_channel(rx_ctl->chan); in ks8842_dealloc_dma_bufs()
896 rx_ctl->chan = NULL; in ks8842_dealloc_dma_bufs()
898 tasklet_kill(&rx_ctl->tasklet); in ks8842_dealloc_dma_bufs()
918 struct ks8842_rx_dma_ctl *rx_ctl = &adapter->dma_rx; in ks8842_alloc_dma_bufs() local
951 rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, in ks8842_alloc_dma_bufs()
952 (void *)(long)rx_ctl->channel); in ks8842_alloc_dma_bufs()
953 if (!rx_ctl->chan) { in ks8842_alloc_dma_bufs()
958 tasklet_setup(&rx_ctl->tasklet, ks8842_rx_frame_dma_tasklet); in ks8842_alloc_dma_bufs()