Lines Matching defs:sdev

54 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
55 const struct shdma_ops *ops = sdev->ops;
127 struct shdma_dev *sdev =
129 const struct shdma_ops *ops = sdev->ops;
173 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
174 const struct shdma_ops *ops = sdev->ops;
206 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
207 const struct shdma_ops *ops = sdev->ops;
228 sdev->desc_size, GFP_KERNEL);
277 struct shdma_dev *sdev;
287 sdev = to_shdma_dev(chan->device);
296 ret = sdev->ops->set_slave(schan, slave_id, 0, true);
306 dev_warn(sdev->dma_dev.dev, "invalid slave ID passed to dma_request_slave\n");
313 ret = sdev->ops->set_slave(schan, slave_id, 0, true);
453 struct shdma_dev *sdev = to_shdma_dev(chan->device);
454 const struct shdma_ops *ops = sdev->ops;
505 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
506 const struct shdma_ops *ops = sdev->ops;
666 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
667 const struct shdma_ops *ops = sdev->ops;
697 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
699 const struct shdma_ops *ops = sdev->ops;
756 struct shdma_dev *sdev = to_shdma_dev(chan->device);
757 const struct shdma_ops *ops = sdev->ops;
852 bool shdma_reset(struct shdma_dev *sdev)
854 const struct shdma_ops *ops = sdev->ops;
860 shdma_for_each_chan(schan, sdev, i) {
955 void shdma_chan_probe(struct shdma_dev *sdev,
961 schan->dma_chan.device = &sdev->dma_dev;
964 schan->dev = sdev->dma_dev.dev;
978 &sdev->dma_dev.channels);
979 sdev->schan[id] = schan;
989 int shdma_init(struct device *dev, struct shdma_dev *sdev,
992 struct dma_device *dma_dev = &sdev->dma_dev;
998 if (!sdev->ops ||
999 !sdev->desc_size ||
1000 !sdev->ops->embedded_desc ||
1001 !sdev->ops->start_xfer ||
1002 !sdev->ops->setup_xfer ||
1003 !sdev->ops->set_slave ||
1004 !sdev->ops->desc_setup ||
1005 !sdev->ops->slave_addr ||
1006 !sdev->ops->channel_busy ||
1007 !sdev->ops->halt_channel ||
1008 !sdev->ops->desc_completed)
1011 sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL);
1012 if (!sdev->schan)
1037 void shdma_cleanup(struct shdma_dev *sdev)
1039 kfree(sdev->schan);