Lines Matching refs:sgt
684 struct sg_table *sgt, void *buf, size_t len, in spi_map_buf() argument
703 ret = sg_alloc_table(sgt, sgs, GFP_KERNEL); in spi_map_buf()
714 sg_free_table(sgt); in spi_map_buf()
717 sg_set_page(&sgt->sgl[i], vm_page, in spi_map_buf()
722 sg_set_buf(&sgt->sgl[i], sg_buf, min); in spi_map_buf()
730 ret = dma_map_sg(dev, sgt->sgl, sgt->nents, dir); in spi_map_buf()
734 sg_free_table(sgt); in spi_map_buf()
738 sgt->nents = ret; in spi_map_buf()
744 struct sg_table *sgt, enum dma_data_direction dir) in spi_unmap_buf() argument
746 if (sgt->orig_nents) { in spi_unmap_buf()
747 dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in spi_unmap_buf()
748 sg_free_table(sgt); in spi_unmap_buf()