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;
844 bool shdma_reset(struct shdma_dev *sdev)
846 const struct shdma_ops *ops = sdev->ops;
852 shdma_for_each_chan(schan, sdev, i) {
947 void shdma_chan_probe(struct shdma_dev *sdev,
953 schan->dma_chan.device = &sdev->dma_dev;
956 schan->dev = sdev->dma_dev.dev;
970 &sdev->dma_dev.channels);
971 sdev->schan[id] = schan;
981 int shdma_init(struct device *dev, struct shdma_dev *sdev,
984 struct dma_device *dma_dev = &sdev->dma_dev;
990 if (!sdev->ops ||
991 !sdev->desc_size ||
992 !sdev->ops->embedded_desc ||
993 !sdev->ops->start_xfer ||
994 !sdev->ops->setup_xfer ||
995 !sdev->ops->set_slave ||
996 !sdev->ops->desc_setup ||
997 !sdev->ops->slave_addr ||
998 !sdev->ops->channel_busy ||
999 !sdev->ops->halt_channel ||
1000 !sdev->ops->desc_completed)
1003 sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL);
1004 if (!sdev->schan)
1029 void shdma_cleanup(struct shdma_dev *sdev)
1031 kfree(sdev->schan);