• Home
  • Raw
  • Download

Lines Matching refs:tx_ctl

875 	struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx;  in ks8842_stop_dma()  local
878 tx_ctl->adesc = NULL; in ks8842_stop_dma()
879 if (tx_ctl->chan) in ks8842_stop_dma()
880 dmaengine_terminate_all(tx_ctl->chan); in ks8842_stop_dma()
897 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx; in ks8842_dealloc_dma_bufs() local
902 if (tx_ctl->chan) in ks8842_dealloc_dma_bufs()
903 dma_release_channel(tx_ctl->chan); in ks8842_dealloc_dma_bufs()
904 tx_ctl->chan = NULL; in ks8842_dealloc_dma_bufs()
912 if (sg_dma_address(&tx_ctl->sg)) in ks8842_dealloc_dma_bufs()
913 dma_unmap_single(adapter->dev, sg_dma_address(&tx_ctl->sg), in ks8842_dealloc_dma_bufs()
915 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_dealloc_dma_bufs()
917 kfree(tx_ctl->buf); in ks8842_dealloc_dma_bufs()
918 tx_ctl->buf = NULL; in ks8842_dealloc_dma_bufs()
929 struct ks8842_tx_dma_ctl *tx_ctl = &adapter->dma_tx; in ks8842_alloc_dma_bufs() local
939 sg_init_table(&tx_ctl->sg, 1); in ks8842_alloc_dma_bufs()
941 tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, in ks8842_alloc_dma_bufs()
942 (void *)(long)tx_ctl->channel); in ks8842_alloc_dma_bufs()
943 if (!tx_ctl->chan) { in ks8842_alloc_dma_bufs()
949 tx_ctl->buf = kmalloc(DMA_BUFFER_SIZE, GFP_KERNEL); in ks8842_alloc_dma_bufs()
950 if (!tx_ctl->buf) { in ks8842_alloc_dma_bufs()
955 sg_dma_address(&tx_ctl->sg) = dma_map_single(adapter->dev, in ks8842_alloc_dma_bufs()
956 tx_ctl->buf, DMA_BUFFER_SIZE, DMA_TO_DEVICE); in ks8842_alloc_dma_bufs()
957 if (dma_mapping_error(adapter->dev, sg_dma_address(&tx_ctl->sg))) { in ks8842_alloc_dma_bufs()
959 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_alloc_dma_bufs()