Lines Matching refs:dev

88 	struct device *dev;  member
144 dev_err(spfi->dev, "Timed out waiting for transaction to complete\n"); in spfi_wait_all_done()
267 dev_err(spfi->dev, "PIO transfer timed out\n"); in img_spfi_start_pio()
487 dev_err(spfi->dev, in img_spfi_transfer_one()
518 dev_err(spfi->dev, "Illegal access interrupt"); in img_spfi_irq()
533 host = spi_alloc_host(&pdev->dev, sizeof(*spfi)); in img_spfi_probe()
539 spfi->dev = &pdev->dev; in img_spfi_probe()
555 ret = devm_request_irq(spfi->dev, spfi->irq, img_spfi_irq, in img_spfi_probe()
556 IRQ_TYPE_LEVEL_HIGH, dev_name(spfi->dev), spfi); in img_spfi_probe()
560 spfi->sys_clk = devm_clk_get(spfi->dev, "sys"); in img_spfi_probe()
565 spfi->spfi_clk = devm_clk_get(spfi->dev, "spfi"); in img_spfi_probe()
588 if (of_property_read_bool(spfi->dev->of_node, "img,supports-quad-mode")) in img_spfi_probe()
590 host->dev.of_node = pdev->dev.of_node; in img_spfi_probe()
602 if (!of_property_read_u32(spfi->dev->of_node, "spfi-max-frequency", in img_spfi_probe()
614 spfi->tx_ch = dma_request_chan(spfi->dev, "tx"); in img_spfi_probe()
622 spfi->rx_ch = dma_request_chan(spfi->dev, "rx"); in img_spfi_probe()
637 dev_warn(spfi->dev, "Failed to get DMA channels, falling back to PIO mode\n"); in img_spfi_probe()
644 pm_runtime_set_active(spfi->dev); in img_spfi_probe()
645 pm_runtime_enable(spfi->dev); in img_spfi_probe()
647 ret = devm_spi_register_controller(spfi->dev, host); in img_spfi_probe()
654 pm_runtime_disable(spfi->dev); in img_spfi_probe()
678 pm_runtime_disable(spfi->dev); in img_spfi_remove()
679 if (!pm_runtime_status_suspended(spfi->dev)) { in img_spfi_remove()
686 static int img_spfi_runtime_suspend(struct device *dev) in img_spfi_runtime_suspend() argument
688 struct spi_controller *host = dev_get_drvdata(dev); in img_spfi_runtime_suspend()
697 static int img_spfi_runtime_resume(struct device *dev) in img_spfi_runtime_resume() argument
699 struct spi_controller *host = dev_get_drvdata(dev); in img_spfi_runtime_resume()
717 static int img_spfi_suspend(struct device *dev) in img_spfi_suspend() argument
719 struct spi_controller *host = dev_get_drvdata(dev); in img_spfi_suspend()
724 static int img_spfi_resume(struct device *dev) in img_spfi_resume() argument
726 struct spi_controller *host = dev_get_drvdata(dev); in img_spfi_resume()
730 ret = pm_runtime_resume_and_get(dev); in img_spfi_resume()
734 pm_runtime_put(dev); in img_spfi_resume()