Lines Matching refs:dev
61 struct device *dev; member
131 if (device_property_read_string(st->dev, "dma-names", &dma_name)) in axi_adc_request_buffer()
134 buffer = iio_dmaengine_buffer_alloc(st->dev, dma_name); in axi_adc_request_buffer()
136 dev_err(st->dev, "Could not get DMA buffer, %ld\n", in axi_adc_request_buffer()
181 st = devm_kzalloc(&pdev->dev, sizeof(*st), GFP_KERNEL); in adi_axi_adc_probe()
189 st->dev = &pdev->dev; in adi_axi_adc_probe()
190 st->regmap = devm_regmap_init_mmio(&pdev->dev, base, in adi_axi_adc_probe()
195 expected_ver = device_get_match_data(&pdev->dev); in adi_axi_adc_probe()
199 clk = devm_clk_get_enabled(&pdev->dev, NULL); in adi_axi_adc_probe()
216 dev_err(&pdev->dev, in adi_axi_adc_probe()
227 ret = devm_iio_backend_register(&pdev->dev, &adi_axi_adc_generic, st); in adi_axi_adc_probe()
231 dev_info(&pdev->dev, "AXI ADC IP core (%d.%.2d.%c) probed\n", in adi_axi_adc_probe()