Searched refs:sg_io (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/i2c/busses/ |
D | i2c-mxs.c | 128 struct scatterlist sg_io[2]; member 157 dma_unmap_sg(i2c->dev, &i2c->sg_io[0], 1, DMA_TO_DEVICE); in mxs_i2c_dma_finish() 158 dma_unmap_sg(i2c->dev, &i2c->sg_io[1], 1, DMA_FROM_DEVICE); in mxs_i2c_dma_finish() 160 dma_unmap_sg(i2c->dev, i2c->sg_io, 2, DMA_TO_DEVICE); in mxs_i2c_dma_finish() 199 sg_init_one(&i2c->sg_io[0], &i2c->addr_data, 1); in mxs_i2c_dma_setup_xfer() 200 dma_map_sg(i2c->dev, &i2c->sg_io[0], 1, DMA_TO_DEVICE); in mxs_i2c_dma_setup_xfer() 201 desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[0], 1, in mxs_i2c_dma_setup_xfer() 228 sg_init_one(&i2c->sg_io[1], buf, msg->len); in mxs_i2c_dma_setup_xfer() 229 dma_map_sg(i2c->dev, &i2c->sg_io[1], 1, DMA_FROM_DEVICE); in mxs_i2c_dma_setup_xfer() 230 desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[1], 1, in mxs_i2c_dma_setup_xfer() [all …]
|
/Linux-v6.6/drivers/scsi/ |
D | scsi_ioctl.c | 410 static int sg_io(struct scsi_device *sdev, struct sg_io_hdr *hdr, in sg_io() function 820 err = sg_io(sdev, &hdr, open_for_write); in scsi_cdrom_send_packet() 844 error = sg_io(sdev, &hdr, open_for_write); in scsi_ioctl_sg_io()
|