Lines Matching refs:sg_dma_address
444 sg_dma_address(&ctl->sg), 0, sg_dma_len(&ctl->sg), in ks8842_tx_frame_dma()
552 sg_dma_address(sg) = dma_map_single(adapter->dev, in __ks8842_start_new_rx_dma()
554 if (dma_mapping_error(adapter->dev, sg_dma_address(sg))) { in __ks8842_start_new_rx_dma()
556 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
575 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
581 if (sg_dma_address(sg)) in __ks8842_start_new_rx_dma()
582 dma_unmap_single(adapter->dev, sg_dma_address(sg), in __ks8842_start_new_rx_dma()
584 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
598 dma_addr_t addr = sg_dma_address(&ctl->sg); in ks8842_rx_frame_dma_tasklet()
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()
900 if (sg_dma_address(&tx_ctl->sg)) in ks8842_dealloc_dma_bufs()
901 dma_unmap_single(adapter->dev, sg_dma_address(&tx_ctl->sg), in ks8842_dealloc_dma_bufs()
903 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_dealloc_dma_bufs()
943 sg_dma_address(&tx_ctl->sg) = dma_map_single(adapter->dev, in ks8842_alloc_dma_bufs()
945 if (dma_mapping_error(adapter->dev, sg_dma_address(&tx_ctl->sg))) { in ks8842_alloc_dma_bufs()
947 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_alloc_dma_bufs()