Lines Matching refs:tx_ctl
865 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx;
868 tx_ctl->adesc = NULL;
869 if (tx_ctl->chan)
870 tx_ctl->chan->device->device_control(tx_ctl->chan,
889 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx;
894 if (tx_ctl->chan)
895 dma_release_channel(tx_ctl->chan);
896 tx_ctl->chan = NULL;
904 if (sg_dma_address(&tx_ctl->sg))
905 dma_unmap_single(adapter->dev, sg_dma_address(&tx_ctl->sg),
907 sg_dma_address(&tx_ctl->sg) = 0;
909 kfree(tx_ctl->buf);
910 tx_ctl->buf = NULL;
921 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx;
931 sg_init_table(&tx_ctl->sg, 1);
933 tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
934 (void *)(long)tx_ctl->channel);
935 if (!tx_ctl->chan) {
941 tx_ctl->buf = kmalloc(DMA_BUFFER_SIZE, GFP_KERNEL);
942 if (!tx_ctl->buf) {
947 sg_dma_address(&tx_ctl->sg) = dma_map_single(adapter->dev,
948 tx_ctl->buf, DMA_BUFFER_SIZE, DMA_TO_DEVICE);
950 sg_dma_address(&tx_ctl->sg));
952 sg_dma_address(&tx_ctl->sg) = 0;