Lines Matching refs:sdev

57 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);  in shdma_chan_xfer_ld_queue()  local
58 const struct shdma_ops *ops = sdev->ops; in shdma_chan_xfer_ld_queue()
130 struct shdma_dev *sdev = in shdma_tx_submit() local
132 const struct shdma_ops *ops = sdev->ops; in shdma_tx_submit()
176 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_setup_slave() local
177 const struct shdma_ops *ops = sdev->ops; in shdma_setup_slave()
209 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_alloc_chan_resources() local
210 const struct shdma_ops *ops = sdev->ops; in shdma_alloc_chan_resources()
231 sdev->desc_size, GFP_KERNEL); in shdma_alloc_chan_resources()
280 struct shdma_dev *sdev; in shdma_chan_filter() local
290 sdev = to_shdma_dev(chan->device); in shdma_chan_filter()
299 ret = sdev->ops->set_slave(schan, slave_id, 0, true); in shdma_chan_filter()
309 dev_warn(sdev->dma_dev.dev, "invalid slave ID passed to dma_request_slave\n"); in shdma_chan_filter()
316 ret = sdev->ops->set_slave(schan, slave_id, 0, true); in shdma_chan_filter()
456 struct shdma_dev *sdev = to_shdma_dev(chan->device); in shdma_free_chan_resources() local
457 const struct shdma_ops *ops = sdev->ops; in shdma_free_chan_resources()
508 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_add_desc() local
509 const struct shdma_ops *ops = sdev->ops; in shdma_add_desc()
669 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_prep_slave_sg() local
670 const struct shdma_ops *ops = sdev->ops; in shdma_prep_slave_sg()
700 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_prep_dma_cyclic() local
702 const struct shdma_ops *ops = sdev->ops; in shdma_prep_dma_cyclic()
759 struct shdma_dev *sdev = to_shdma_dev(chan->device); in shdma_terminate_all() local
760 const struct shdma_ops *ops = sdev->ops; in shdma_terminate_all()
855 bool shdma_reset(struct shdma_dev *sdev) in shdma_reset() argument
857 const struct shdma_ops *ops = sdev->ops; in shdma_reset()
863 shdma_for_each_chan(schan, sdev, i) { in shdma_reset()
958 void shdma_chan_probe(struct shdma_dev *sdev, in shdma_chan_probe() argument
964 schan->dma_chan.device = &sdev->dma_dev; in shdma_chan_probe()
967 schan->dev = sdev->dma_dev.dev; in shdma_chan_probe()
981 &sdev->dma_dev.channels); in shdma_chan_probe()
982 sdev->schan[id] = schan; in shdma_chan_probe()
992 int shdma_init(struct device *dev, struct shdma_dev *sdev, in shdma_init() argument
995 struct dma_device *dma_dev = &sdev->dma_dev; in shdma_init()
1001 if (!sdev->ops || in shdma_init()
1002 !sdev->desc_size || in shdma_init()
1003 !sdev->ops->embedded_desc || in shdma_init()
1004 !sdev->ops->start_xfer || in shdma_init()
1005 !sdev->ops->setup_xfer || in shdma_init()
1006 !sdev->ops->set_slave || in shdma_init()
1007 !sdev->ops->desc_setup || in shdma_init()
1008 !sdev->ops->slave_addr || in shdma_init()
1009 !sdev->ops->channel_busy || in shdma_init()
1010 !sdev->ops->halt_channel || in shdma_init()
1011 !sdev->ops->desc_completed) in shdma_init()
1014 sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL); in shdma_init()
1015 if (!sdev->schan) in shdma_init()
1040 void shdma_cleanup(struct shdma_dev *sdev) in shdma_cleanup() argument
1042 kfree(sdev->schan); in shdma_cleanup()