Lines Matching refs:dev

159 	struct device *dev;  member
365 dev_err(adev->dev, "invalid dma direction\n"); in adm_prep_slave_sg()
380 dev_err(adev->dev, "invalid burst value: %d\n", in adm_prep_slave_sg()
387 dev_err(adev->dev, "invalid crci value\n"); in adm_prep_slave_sg()
407 dev_err(adev->dev, "not enough memory for async_desc struct\n"); in adm_prep_slave_sg()
420 dev_err(adev->dev, "not enough memory for cpl struct\n"); in adm_prep_slave_sg()
441 async_desc->dma_addr = dma_map_single(adev->dev, async_desc->cpl, in adm_prep_slave_sg()
444 if (dma_mapping_error(adev->dev, async_desc->dma_addr)) { in adm_prep_slave_sg()
445 dev_err(adev->dev, "dma mapping error for cpl\n"); in adm_prep_slave_sg()
452 dma_sync_single_for_cpu(adev->dev, cple_addr, sizeof(*cple), in adm_prep_slave_sg()
456 dma_sync_single_for_device(adev->dev, cple_addr, sizeof(*cple), in adm_prep_slave_sg()
691 dma_unmap_single(async_desc->adev->dev, async_desc->dma_addr, in adm_dma_free_desc()
721 struct dma_device *dev = ofdma->of_dma_data; in adm_dma_xlate() local
725 if (!dev || dma_spec->args_count > 2) in adm_dma_xlate()
728 list_for_each_entry(chan, &dev->channels, device_node) in adm_dma_xlate()
752 adev = devm_kzalloc(&pdev->dev, sizeof(*adev), GFP_KERNEL); in adm_dma_probe()
756 adev->dev = &pdev->dev; in adm_dma_probe()
766 ret = of_property_read_u32(pdev->dev.of_node, "qcom,ee", &adev->ee); in adm_dma_probe()
768 dev_err(adev->dev, "Execution environment unspecified\n"); in adm_dma_probe()
772 adev->core_clk = devm_clk_get(adev->dev, "core"); in adm_dma_probe()
776 adev->iface_clk = devm_clk_get(adev->dev, "iface"); in adm_dma_probe()
780 adev->clk_reset = devm_reset_control_get_exclusive(&pdev->dev, "clk"); in adm_dma_probe()
782 dev_err(adev->dev, "failed to get ADM0 reset\n"); in adm_dma_probe()
786 adev->c0_reset = devm_reset_control_get_exclusive(&pdev->dev, "c0"); in adm_dma_probe()
788 dev_err(adev->dev, "failed to get ADM0 C0 reset\n"); in adm_dma_probe()
792 adev->c1_reset = devm_reset_control_get_exclusive(&pdev->dev, "c1"); in adm_dma_probe()
794 dev_err(adev->dev, "failed to get ADM0 C1 reset\n"); in adm_dma_probe()
798 adev->c2_reset = devm_reset_control_get_exclusive(&pdev->dev, "c2"); in adm_dma_probe()
800 dev_err(adev->dev, "failed to get ADM0 C2 reset\n"); in adm_dma_probe()
806 dev_err(adev->dev, "failed to prepare/enable core clock\n"); in adm_dma_probe()
812 dev_err(adev->dev, "failed to prepare/enable iface clock\n"); in adm_dma_probe()
828 adev->channels = devm_kcalloc(adev->dev, ADM_MAX_CHANNELS, in adm_dma_probe()
857 ret = devm_request_irq(adev->dev, adev->irq, adm_dma_irq, in adm_dma_probe()
864 adev->common.dev = adev->dev; in adm_dma_probe()
865 adev->common.dev->dma_parms = &adev->dma_parms; in adm_dma_probe()
886 dev_err(adev->dev, "failed to register dma async device\n"); in adm_dma_probe()
890 ret = of_dma_controller_register(pdev->dev.of_node, adm_dma_xlate, in adm_dma_probe()
913 of_dma_controller_free(pdev->dev.of_node); in adm_dma_remove()
926 devm_free_irq(adev->dev, adev->irq, adev); in adm_dma_remove()