Lines Matching defs:dev
525 struct device *dev;
838 dev_info(priv->dev, "stream on:%d\n", on);
881 return pm_runtime_get_sync(priv->dev);
883 return pm_runtime_put(priv->dev);
887 static int mipidphy_runtime_suspend(struct device *dev)
889 struct media_entity *me = dev_get_drvdata(dev);
904 static int mipidphy_runtime_resume(struct device *dev)
906 struct media_entity *me = dev_get_drvdata(dev);
1061 struct device *dev = priv->dev;
1062 struct device_node *parent = dev->of_node;
1099 dev_warn(priv->dev, "data rate: %lld mbps, max support %d mbps", priv->data_rate_mbps,
1189 dev_warn(priv->dev, "data rate: %lld mbps, max support %d mbps", priv->data_rate_mbps,
1373 dev_warn(priv->dev, "data rate: %lld mbps, max support %d mbps", priv->data_rate_mbps,
1519 dev_info(priv->dev, "match %s:bus type %d\n", sd->name, s_asd->mbus.type);
1528 dev_err(priv->dev, "failed to find src pad for %s\n", sensor->sd->name);
1536 dev_err(priv->dev, "failed to create link for %s\n", sensor->sd->name);
1558 static int rockchip_mipidphy_fwnode_parse(struct device *dev, struct v4l2_fwnode_endpoint *vep,
1565 dev_err(dev, "The PHY has only port 0\n");
1578 dev_err(dev, "Only CSI2 and CCP2 bus type is currently supported\n");
1617 priv->dev, &priv->notifier, sizeof(struct sensor_async_subdev), 0, rockchip_mipidphy_fwnode_parse);
1626 dev_err(priv->dev, "failed to register async notifier : %d\n", ret);
1636 struct device *dev = &pdev->dev;
1645 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
1649 priv->dev = dev;
1651 of_id = of_match_device(rockchip_mipidphy_match_id, dev);
1656 grf = syscon_node_to_regmap(dev->parent->of_node);
1658 grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf");
1660 dev_err(dev, "Can't find GRF syscon\n");
1666 priv->phy_index = of_alias_get_id(dev->of_node, "dphy");
1673 priv->clks[i] = devm_clk_get(dev, drv_data->clks[i]);
1676 dev_dbg(dev, "Failed to get %s\n", drv_data->clks[i]);
1686 priv->csihost_base_addr = devm_ioremap_resource(dev, res);
1693 priv->txrx_base_addr = devm_ioremap_resource(dev, res);
1705 sd->dev = dev;
1714 pm_runtime_enable(&pdev->dev);
1731 pm_runtime_disable(&pdev->dev);