Lines Matching refs:dev
148 struct device *dev; member
160 dev_err(sadi->dev, in sprd_adi_check_addr()
183 dev_err(sadi->dev, "drain write fifo timeout\n"); in sprd_adi_drain_fifo()
231 dev_err(sadi->dev, "get the hw lock failed\n"); in sprd_adi_read()
261 dev_err(sadi->dev, "ADI read timeout\n"); in sprd_adi_read()
297 dev_err(sadi->dev, "get the hw lock failed\n"); in sprd_adi_write()
325 dev_err(sadi->dev, "write fifo is full\n"); in sprd_adi_write()
353 dev_err(sadi->dev, "no buffer for transfer\n"); in sprd_adi_transfer_one()
447 dev_emerg(sadi->dev, "Unable to restart system\n"); in sprd_adi_restart()
466 struct device_node *np = sadi->dev->of_node; in sprd_adi_hw_init()
483 dev_info(sadi->dev, "no hw channels setting in node\n"); in sprd_adi_hw_init()
514 struct device_node *np = pdev->dev.of_node; in sprd_adi_probe()
523 dev_err(&pdev->dev, "can not find the adi bus node\n"); in sprd_adi_probe()
527 data = of_device_get_match_data(&pdev->dev); in sprd_adi_probe()
529 dev_err(&pdev->dev, "no matching driver data found\n"); in sprd_adi_probe()
536 ctlr = spi_alloc_master(&pdev->dev, sizeof(struct sprd_adi)); in sprd_adi_probe()
540 dev_set_drvdata(&pdev->dev, ctlr); in sprd_adi_probe()
553 sadi->dev = &pdev->dev; in sprd_adi_probe()
558 devm_hwspin_lock_request_specific(&pdev->dev, ret); in sprd_adi_probe()
566 dev_info(&pdev->dev, "no hardware spinlock supplied\n"); in sprd_adi_probe()
569 dev_err_probe(&pdev->dev, ret, "failed to find hwlock id\n"); in sprd_adi_probe()
579 ctlr->dev.of_node = pdev->dev.of_node; in sprd_adi_probe()
586 ret = devm_spi_register_controller(&pdev->dev, ctlr); in sprd_adi_probe()
588 dev_err(&pdev->dev, "failed to register SPI controller\n"); in sprd_adi_probe()
597 dev_err(&pdev->dev, "can not register restart handler\n"); in sprd_adi_probe()
611 struct spi_controller *ctlr = dev_get_drvdata(&pdev->dev); in sprd_adi_remove()