Lines Matching defs:adev
268 * @adev: the corresponding AMBA (PrimeCell) bus entry
283 struct amba_device *adev;
395 dev_vdbg(&pl08x->adev->dev,
402 dev_vdbg(&pl08x->adev->dev,
866 dev_dbg(&pl08x->adev->dev, "no physical channel available for xfer on %s\n", plchan->name);
872 dev_dbg(&pl08x->adev->dev, "allocated physical channel %d for xfer on %s\n",
885 dev_dbg(&pl08x->adev->dev, "reassigned physical channel %d for xfer on %s\n",
1221 dev_vdbg(&pl08x->adev->dev,
1225 dev_vdbg(&pl08x->adev->dev,
1234 dev_vdbg(&pl08x->adev->dev,
1238 dev_vdbg(&pl08x->adev->dev,
1270 dev_err(&pl08x->adev->dev, "%s no memory for llis\n", __func__);
1296 dev_vdbg(&pl08x->adev->dev,
1305 dev_vdbg(&pl08x->adev->dev, "mbus=%s sbus=%s\n",
1341 dev_err(&pl08x->adev->dev, "%s sg len can't be zero",
1348 dev_err(&pl08x->adev->dev,
1378 dev_vdbg(&pl08x->adev->dev,
1391 dev_dbg(&pl08x->adev->dev,
1404 dev_vdbg(&pl08x->adev->dev,
1431 dev_vdbg(&pl08x->adev->dev,
1448 dev_vdbg(&pl08x->adev->dev,
1457 dev_err(&pl08x->adev->dev,
1464 dev_err(&pl08x->adev->dev,
1760 dev_err(&pl08x->adev->dev,
1799 dev_err(&pl08x->adev->dev,
1843 dev_err(&pl08x->adev->dev,
1893 dev_err(&pl08x->adev->dev,
1943 dev_err(&pl08x->adev->dev, "%s no txd\n", __func__);
1968 dev_err(&pl08x->adev->dev,
1976 dev_err(&pl08x->adev->dev,
1997 dev_dbg(&pl08x->adev->dev,
2003 dev_dbg(&pl08x->adev->dev, "allocated DMA request signal %d for xfer on %s\n",
2053 dev_dbg(&pl08x->adev->dev, "%s prepare transaction of %d bytes from %s\n",
2067 dev_err(&pl08x->adev->dev, "%s no mem for pl080 sg\n",
2094 dev_dbg(&pl08x->adev->dev,
2141 dev_err(&pl08x->adev->dev,
2292 dev_err(&pl08x->adev->dev, "%s error interrupt, register value 0x%08x\n",
2311 dev_err(&pl08x->adev->dev,
2407 dev_dbg(&pl08x->adev->dev,
2414 dev_info(&pl08x->adev->dev, "initialized %d virtual %s channels\n",
2503 debugfs_create_file(dev_name(&pl08x->adev->dev), S_IFREG | S_IRUGO,
2542 dev_err(&pl08x->adev->dev,
2549 dev_err(&pl08x->adev->dev,
2555 dev_dbg(&pl08x->adev->dev,
2564 static int pl08x_of_probe(struct amba_device *adev,
2574 pd = devm_kzalloc(&adev->dev, sizeof(*pd), GFP_KERNEL);
2584 dev_info(&adev->dev, "no bus masters for LLIs stated, assume all\n");
2594 dev_info(&adev->dev, "no bus masters for memory stated, assume all\n");
2601 dev_info(&adev->dev, "no memcpy burst size specified, using 1 byte\n");
2606 dev_err(&adev->dev, "illegal burst size for memcpy, set to 1\n");
2636 dev_info(&adev->dev, "no memcpy bus width specified, using 8 bits\n");
2641 dev_err(&adev->dev, "illegal bus width for memcpy, set to 8 bits\n");
2661 chanp = devm_kcalloc(&adev->dev,
2681 return of_dma_controller_register(adev->dev.of_node, pl08x_of_xlate,
2685 static inline int pl08x_of_probe(struct amba_device *adev,
2693 static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
2697 struct device_node *np = adev->dev.of_node;
2702 ret = amba_request_regions(adev, NULL);
2707 ret = dma_set_mask_and_coherent(&adev->dev, DMA_BIT_MASK(32));
2719 pl08x->adev = adev;
2722 pl08x->base = ioremap(adev->res.start, resource_size(&adev->res));
2732 dev_info(&pl08x->adev->dev, "FTDMAC020 %d.%d rel %d\n",
2735 dev_info(&pl08x->adev->dev, "FTDMAC020 %d channels, "
2744 dev_warn(&pl08x->adev->dev,
2752 pl08x->memcpy.dev = &adev->dev;
2778 pl08x->slave.dev = &adev->dev;
2799 pl08x->pd = dev_get_platdata(&adev->dev);
2802 ret = pl08x_of_probe(adev, pl08x, np);
2806 dev_err(&adev->dev, "no platform data supplied\n");
2831 pl08x->pool = dma_pool_create(DRIVER_NAME, &pl08x->adev->dev,
2850 ret = request_irq(adev->irq[0], pl08x_irq, 0, DRIVER_NAME, pl08x);
2852 dev_err(&adev->dev, "%s failed to request interrupt %d\n",
2853 __func__, adev->irq[0]);
2901 dev_info(&adev->dev, "physical channel %d reserved for secure access only\n", i);
2906 dev_dbg(&adev->dev, "physical channel %d is %s\n",
2914 dev_warn(&pl08x->adev->dev,
2925 dev_warn(&pl08x->adev->dev,
2934 dev_warn(&pl08x->adev->dev,
2943 dev_warn(&pl08x->adev->dev,
2950 amba_set_drvdata(adev, pl08x);
2952 dev_info(&pl08x->adev->dev, "DMA: PL%03x%s rev%u at 0x%08llx irq %d\n",
2953 amba_part(adev), pl08x->vd->pl080s ? "s" : "", amba_rev(adev),
2954 (unsigned long long)adev->res.start, adev->irq[0]);
2968 free_irq(adev->irq[0], pl08x);
2977 amba_release_regions(adev);